SideQuestions optimizer learns auxiliary questions to improve Jev decisions
SideQuestions is an installable DSPy optimizer that learns which auxiliary questions improve Jev decisions. Its authors report benchmark gains with about 6 ms of extra latency and a cost of $0.02 per 1,000 calls.

TL;DR
- SideQuestions learns auxiliary yes/no questions and a regression combiner for DSPy decision-model programs, as dbreunig explains.
- Jev gained an average of 26 accuracy points across the author's benchmarks, with roughly 6 ms of extra latency and $0.02 more per 1,000 calls, according to the launch announcement.
- The first question set often captured almost all the improvement; further GEPA search added little in these tests, dbreunig said in a follow-up.
The compiled program can discard all auxiliary questions and fall back to the original student. Questions discovered for Jev also transfer to other decision models, after refitting the regression.
Question generation and fitting
Compilation has five stages:
- Score the student. Run the program on training examples and evaluate outputs with the supplied metric.
- Propose questions. A reflection LLM examines the results and writes auxiliary yes/no questions.
- Fit the combiner. The decision model answers those questions. A small regression combines their answers with the original prediction, weighting useful signals and dropping unhelpful ones.
- Search question sets. GEPA repeats proposal and fitting, evolving candidates from the best lists found so far.
- Select each output's implementation. A final comparison reserves half the validation set by default. Each output keeps the original prediction, recalibration alone, or the side-question combiner; ties favor the simpler option.
Drew Breunig, Cmpnd's CEO, reported that the regression often found the winners in the initial question set without needing further search.
Shared-state inference
The clever bit is the shared input read: questions are answered independently against the same state. Their probability-valued answers feed the regression directly, without an LLM synthesizing them into a natural-language answer.
The README reports that a request with 11 questions costs about twice as much as one with a single question. The large reflection model proposes questions during compilation; the deployed combiner uses the decision model's numeric answers.
Benchmark gains
Cmpnd published these held-out accuracy results:
- Deceptive hotel reviews: 57.3% → 79.5%, +22.2 points.
- Beemo AI-written response detection: 50.2% → 78.2%, +28.0 points.
- Ghostbuster essay detection: 51.2% → 100.0%, +48.8 points.
The repository's benchmark protocol uses one train/validation/test split and one default compile call per task. The launch post reports median latency over 40 sequential calls and costs per 1,000 calls.
SideQuestions also beat ReAnchor on almost every benchmark the author tried, with higher cost and slightly higher latency. ReAnchor recalibrates the student's existing answers without adding questions.
Shared questions across outputs
Multiple outputs share a question pool, with a separate regression combiner for each output. L1 regularization gives unhelpful signals zero weight, and the returned program removes questions unused by every output.
In the full CVSS experiment, one shared list of 15 questions was compared with eight separate single-output compiles:
- Mean accuracy across eight metrics was 91.0% to 91.3% over three searches, versus 91.7% for separate compiles.
- Cost per CVE was 31% of the separate programs' cost.
- The largest individual-metric shortfall was 2.4 to 5.2 points, usually on availability.
Cross-model question transfer
On 640 held-out hotel reviews, questions discovered for Jev were reused with a regression refitted to each target model. Cmpnd's transfer results compare that approach with discovering questions afresh:
- clef-flash: 75.0% with Jev's questions, versus 75.9% from a fresh compile.
- djev: 74.5% with Jev's questions, versus 73.0% from a fresh compile.
- pplx-decider-v1.3: 82.3% with Jev's questions, versus 83.6% from a fresh compile.
Installation and program limits
The prototype requires Python 3.11 or later and DSPy 3.5. Its current program constraints are narrow:
- The student must be a
dspy.Predict, or a module containing exactly onePredict. - Every output must use
Noul,Choice, orScore; multiple output fields are supported.
The experiment scripts make live model calls and overwrite their result files when rerun.