A language model grows exact answers by checking new code
A Self-Improving Agent that Grows its Own DSL: Oracle-Free Operator Induction for Exact Question Answering · arXiv:2610.20809
In plain words
A computer can answer exact questions by running small programs, but it cannot answer questions that its available operations do not express. This paper introduces a system in which one frozen language model finds more answerable questions and proposes new program operations.
The system checks answers by comparing independently written programs and testing rules such as whether group totals add up to the whole. On synthetic merchant records, one round found 36 answerable question types using the same nine operations, up from 10. These checks cover tested records, not every possible input.
The research
When answers must be exact, how can a system learn to answer new kinds of questions without an answer key, reward, or judge that might accept a plausible but wrong capability?
The paper asks whether program operations and answers can instead be expanded through checks that rely on a trusted interpreter.
A two-loop system expands exact question answering by checking expressions and new operators against independent implementations and trusted relations.
The system's inner loop finds more questions answerable with existing operations; its outer loop proposes operations for gaps the current set cannot express.
The model and trusted interpreter check expressions through independent agreement and relations among operations, without an answer key or judge.
On synthetic merchant records, one inner-loop round grew the answerable set from 10 to 36 types while keeping nine operations fixed. A separate gold extractor matched the DSL on evaluated precise or compute types for non-truncated sequences, apart from count ties handled differently. These results support expanded, checked answers within the tested conditions.
The checks compare programs on finite validation records and fuzzed inputs; they do not prove correctness for every possible input. The system also cannot admit the most-frequent-value operation, and runs beyond three induction rounds were not tested.
What the evidence shows
- The exact-answering problem
The paper introduces a two-loop system for expanding exact question answering with executable program expressions. A fixed set of operations limits which questions those expressions can answer, while reward or a judge's approval cannot establish that a new operation is correct.
The system therefore uses a trusted interpreter and checks program agreement and relations among operations, without an answer key or judge model.
- Find more with existing operations
In the inner loop, a frozen language model proposes questions and expressions using the existing operations. It writes a second expression independently from each question; both expressions must return the same values on every validation record, and the value must represent a new quantity.
On the amounts-and-timing seed, this process raised the answerable set from 10 to 36 types in one round without changing the nine operations.
- Admit operations through checks
The outer loop proposes an operation for a recurring gap in what the current language can express. The system checks two independently written implementations against each other, tests relations such as whether per-group totals add up to a global total, and requires newly unlocked questions to pass the inner-loop checks.
A no-induction control on the amounts-and-timing seed produced no new types using a per-group operation, while 25 of 65 new types did so when induction was enabled in that round.
- Check answers and gate reliability
The researchers compared the DSL's answers with a separately implemented gold extractor on 3,000 held-out synthetic merchants. The answers matched exactly for the evaluated precise or compute types on non-truncated sequences, except for busiest-day or busiest-hour count ties, where the two systems used different tie-breaking rules.
A mutation study also found that the gate admitted none of 138 buggy variants with an independent reference, but admitted 10 when both implementations deliberately shared the same bug.
- Test two other domains
The same loop and gate were tested on separate business-ledger and clinical-encounter datasets, with a parser adapted to each schema. The answerable set grew from 15 to 162 question types on a 63-account BookSQL cohort, and from 13 to 248 on a 63-patient EHRSQL cohort.
These results support transfer to those tested domains; they do not establish performance on all domains or on seeds centered on unrelated capabilities.
Deep
- Original paper authors
- Yun-Shiuan Chuang, Yirou Ge, Yixi Li, Yiming Bian, Zijie Pan
- Submitted to arXiv
- License
- arXiv non-exclusive