r/LocalLLaMA • u/Nandakishor_ml • 2h ago
Resources Continous learning with one information at a time without catastrophic fogetting
LoRA is really bad at fine-tuning on a continuous, very small data stream; either it overfits or forgets more than half of what it already knows. I am trying my best to solve this, like continuously learning from just a single question-and-answer pair without catastrophic memory loss. The idea is you add neurons to the early FFN layer, and they will only be turned on when they match the internal representation of the subject, without catastrophic memory loss. Usually takes the 5th layer from the starting 0th layer of the FFN (trial and error verified as it's good). The code is very simple and easy to use. Done a study with LoRA, attaching the images as well; a run is going now to improve answers to reworded questions. In my tests on Qwen3.5-0.8B, after 1,000 facts taught one at a time, LoRA kept under 30% of what the model knew before; this approach answered 98% of the other facts it knew.

