Study a constrained fine-tuning method as a defense against poisoned or corrupted training data.
Reproduce the paper's experiments comparing standard LoRA fine-tuning against manifold-constrained adaptation.
Explore using loss spikes as an automatic signal that training data may be corrupted.
| infinition/z-manifold | 0xustaz/streamgate | a-bissell/unleash-lite | |
|---|---|---|---|
| Stars | 1 | 1 | 1 |
| Language | Python | Python | Python |
| Setup difficulty | hard | hard | hard |
| Complexity | 5/5 | 4/5 | 4/5 |
| Audience | researcher | developer | researcher |
Figures from each repo's GitHub metadata at analysis time.
Reproducing results requires ML research infrastructure, a base language model, and a public adapter pool.
Z-manifold is a research project exploring a safer way to teach new skills to an existing language model, a process usually called fine tuning. The standard way of fine tuning lets a model freely rewrite millions of its internal settings to match whatever examples it is shown, which means it will just as happily learn something false or harmful if the training data has been tampered with, without any warning signs. This project's approach is to first build a map of what many existing, legitimate skills look like, based on a large collection of already trained adapters, which are small add on components that give a language model a specific skill. Instead of letting the model rewrite itself freely, the model is only allowed to move around within that map of legitimate skill patterns. It can still learn genuinely new things that fit somewhere on the map, but a deliberately wrong or malicious behavior typically does not correspond to any point on that map, so it becomes very hard for the model to learn it even if someone tries to poison the training data. The README reports results based on a smaller open source language model and a public collection of about two hundred existing adapters. In their tests, when training labels were deliberately flipped to be wrong, the standard fine tuning approach saw its accuracy collapse dramatically, while this constrained approach kept performing close to normal, though the paper is careful to note this benefit varied depending on how well the reference collection of skills covered a given task, and that one specific task tested did not benefit at all. They also found that when the model is shown truly nonsensical training data, this constrained approach produces a visible spike in a technical training measurement called loss, acting as a built in early warning signal that something is wrong. The authors describe potential applications such as medical assistant apps, systems connected to sensitive company data, and models trained on data scraped from the open web, all situations where corrupted training data could otherwise teach a model dangerous or harmful behavior. The README is explicit that these are intended future use cases rather than things fully proven in the repository itself, which focuses on demonstrating the underlying mechanism on smaller classification style tasks and honestly reporting where the approach does and does not help.
Z-manifold is a research project constraining language model fine-tuning to a map of legitimate skills, resisting poisoned training data and flagging corrupted data via loss spikes.
Mainly Python. The stack also includes Python.
No license information is stated in the README.
Setup difficulty is rated hard, with roughly 1day+ to a first successful run.
Mainly researcher.
This repo across BitVibe Labs
Verify against the repo before relying on details.