An AI agent that keeps learning after deployment faces the continual-learning problem: each fine-tuning update can silently change behaviour that should stay consistent, such as earlier skills, general chat or safety refusals. Today such regressions are found only after training, on the benchmarks someone chose to run. We bound them before training, for every behaviour score at once, on the prompt distributions that must stay protected. We propose FireGate, which places each task's update, such as a new LoRA, behind a gate: a classifier on the model's frozen lower layers that decides, for each prompt, whether the update is used. Wherever no gate fires, the model computes exactly what the old model computes, so over a whole stream of updates, the average of every bounded behaviour score on any prompt distribution changes by at most the gates' firing rate there. We calibrate each gate on unlabeled prompts whose behaviour must not change, which fixes the firing rate before training with a PAC guarantee (at most epsilon with probability 1-delta on each protected distribution), whatever weights training produces. The price is set by the gate's power: no update with the same budget can change the new task more often than the best test between new-task and protected prompts allows. On reinforcement-learning streams of up to five tasks, gated training keeps the earlier tasks and changes only 3.3% of held-out chat responses, whereas ungated training changes 91.8%, and the gain kept behind the gate follows the gate's firing rate on new-task prompts, measured before training. When tool-using agents are trained inside their tool loop, on a calculator task and on the API calls of a public dialogue benchmark, gated training leaves every episode of the earlier skill identical, whereas ungated training changes most of them and, on the benchmark, stops refusing most harmful requests.
翻译:暂无翻译