Cmpnd’s SideQuestions adds yes/no questions to a decision model, which returns probabilities over fixed answers. A second model reviews training mistakes and proposes questions. For a hotel review, it might ask whether the writer names a booking channel. The decision model answers the main question and the extra ones in one request. A fitted regression model weights those answers to make the final decision.
The implementation uses GEPA to search for question lists. It reserves part of validation to choose between the original predictor, an adjusted decision rule, and the side questions. That check chooses the program; a separate test measures it. The package is a third-party optimizer for DSPy 3.5 or later and targets programs with one dspy.Predict and typed decision outputs.
On 640 held-out hotel reviews, Cmpnd reports 57.3% accuracy for jev-latest, 65.6% with the decision rule adjusted by ReAnchor, and 79.5% with ten side questions. In its 40-call timing and cost sample, the extra questions raised median latency by 7% and cost per call by 2.27×. Those figures exclude the cost of finding the questions.
Proposed exercise
Sketch three ways to route synthetic support tickets: the original classifier, one with a cutoff tuned on validation, and one that also asks two yes/no questions. Score the baseline on its own request. A December 1 fix separates its cached answers from those collected with extra questions. Freeze all three versions, then compare accuracy, missed urgent tickets, and cost on ticket templates held back from tuning.
Caveat: the hotel-review gain is Cmpnd’s result on one split. It does not show that the questions would work on another dataset.
See Metrics before optimizers or return to Start here.