Self-Improvement Loops and LDV-RSI
Self-improvement loops for LLM agents--propose an edit, evaluate, keep if better--have only been shown with cloud frontier models as optimizer and LLM-judge, human, or RL-executor graders. We present LDV-RSI, the first self-improvement loop operating entirely on consumer Apple Silicon: a local open-weight proposer (8B) mutates a compaction prompt, a local open-weight model (4B) executes it, and the keep/rollback gate is a frozen deterministic verifier--a pure function of output versus fixture, gated by a paired sign-flip permutation test. The loop's only cross-round state is a verdict-gated evolution memory of SIM-shaped records.
Experimental Results
Across 9 loop runs (3 seeds x 3 information arms) on an M5 Max, every run whose gate accepted >= 2 candidates improved 2.5-3.1x over the baseline prompt (0.650 -> 1.6-2.0 on a 2.0 oracle ceiling, zero cloud calls), at ~21 minutes per kept improvement, the gate itself costing zero model tokens.
Negative Results and Release
Three negative results are as load-bearing as the positive ones:
- (1) pooled two-sample gates are systematically conservative on heterogeneous task sets and stall the loop--pairing fixes it;
- (2) a weak proposer starves without verbatim failure evidence, and evolution-memory summaries alone cannot be shown to add value on top of evidence (all arm means fall inside the ~0.3-0.4 re-score noise floor);
- (3) across three gated trials with 11 planted grader-hack decoys, a local 32B LLM judge kept 8/11 decoys and never selected the genuine improvement, while the deterministic gate kept 0/11 decoys and the genuine candidate in every run--at local scale, selection signals must not share a loss surface with the thing they grade.
We release the loop kernel as a pure-stdlib library and give