PID-Gated Continual Prompt Adaptation Under Noisy Feedback
Organizations: Independent Researcher, Sunnyvale, CA, USA
Abstract
Deploying LLM agents in non-stationary environments requires continually revising their instructions as the task drifts, yet rewriting after every reported mistake can turn noisy feedback into persistent errors. This raises an often-overlooked scheduling question in prompt adaptation: when should feedback trigger a lasting instruction update, and at what editor-call cost? Taking inspiration from proportional-integral-derivative (PID) control, we introduce a family of lightweight gates that react to the current error, accumulate evidence over time, and roll back deterioration after an edit. We benchmark these gates against both simple baselines and advanced prompt optimizers (TextGrad and GEPA), over a diverse suite of drifting tasks, LLM parameter sizes, feedback-noise levels, and random seeds. PID-gated continual prompt adaptation yields a more favorable Pareto trade-off between task performance (high accuracy, low error) and editor-call budget than the baselines considered, pointing to control-theoretic scheduling as a simple, general tool for robust prompt adaptation under unreliable feedback.
Figures & tables
| Parity | Guess number | Track moving target | ||||
| Policy | Acc.(%) | Calls | MAE | Calls | RMSE | Calls |
| No Edit | ||||||
| Fixed Cadence | ||||||
| TextGrad | ||||||
| GEPA | ||||||
| Proportional Gate (P) | ||||||
| Parity | Guess number | Track moving target | ||||
| Policy | Acc.(%) | Calls | MAE | Calls | RMSE | Calls |
| No Edit | ||||||
| Fixed Cadence | ||||||
| TextGrad | ||||||
| GEPA | ||||||
| Proportional Gate (P) | ||||||
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
| Symbol | Meaning |
|---|---|
| Step index and horizon; steps per trajectory. | |
| Input and hidden ground-truth target; never reaches the editor. | |
| Predictor output and observed (possibly corrupted) feedback. | |
| Observed error: for categorical tasks, or a bucketed distance for numeric ones. | |
| Current prompt (plant state); the editor’s target of change. | |
| LLM predictor and LLM editor (invoked when the gate fires). |