AI Research
Local AI Model Boosts Program Search with Memory and Rejection Tactics
Researchers test three operator packages to improve verified search—where AI proposes code and algorithms select the best—finding that memory and diversity constraints help close the gap to mathematical records.
Researchers have conducted a controlled analysis of components that improve how language models can search for novel programs, testing three techniques designed to sharpen an AI's ability to propose better solutions on a tight computational budget.
The Setup#
The team built a minimal version of FunSearch—a method in which a language model generates candidate programs, a verifier evaluates them, and a selection process keeps the best ones—and ran it locally on a 30-billion-parameter model using just a laptop. Rather than working with massive compute clusters, they generated between 120 and 600 verified samples per run, making this a practical "office scale" experiment.
Three Techniques Tested#
The researchers evaluated three operator packages to boost performance:
- Schematic memory: Instead of carrying exact elite solutions, the model writes and uses a notebook-like summary of what works.
- Named obstacle: A specific constraint identifying a known blocking point.
- Behavioural repulsion: A mechanism that steers the model away from construction strategies it has already attempted.
On nine construction problems from a public benchmark, a full factorial design with two repeats revealed that the complete combination of all three techniques performed best. The approach closed more of the gap between starting solutions and mathematical records (+0.196 gap closure; nominal p=0.023), with a median per-problem gain of +0.045.
Key Findings#
Repulsion alone significantly increased construction diversity in eight of nine problems (one-sided p=0.0039), suggesting the technique reliably produces varied candidates. No meaningful interaction emerged between memory and repulsion (bounded to ±0.04); instead, their benefits stacked additively. Notably, the memory-plus-repulsion combination was the only setup that never collapsed across 18 runs—staying within 0.025 of full performance.
When the researchers substituted a frontier-grade proposer under the same loop, it achieved in tens of samples what the local model needed hundreds to reach, and it succeeded without the added operators. However, the searches consistently stalled after closing 85–92% of the gap, a plateau the team later attributed to a resolution limit in the underlying mathematical family itself: the reference value appears to be a continuum limit, and the unaided final solutions already encode the family's structure.