hn.today

Optimizing Decision Models by Asking Side Questions

cmpnd.ai39 points4 comments
Screenshot of Optimizing Decision Models by Asking Side Questions

SideQuestions is an optimizer for fast, probability-producing decision models, which differ from large reasoning models because they do not explain their conclusions or explore evidence in multiple ways. Rather than changing a decision model’s weights, the tool improves a DSPy program by finding extra yes/no questions whose answers help classify an example. In a hotel-review fraud task, questions about booking intermediaries, specific expenses, generic descriptions, and comparisons with other hotels helped Jev distinguish fabricated reviews. On held-out data, ten added questions raised accuracy from 57.3% to 79.5%, while median latency increased from 0.06 to 0.07 seconds and cost per 1,000 calls from $0.026 to $0.059.

The optimizer runs a program on training examples, uses a reflection language model to propose useful questions, and fits a small regression model to combine their answers with the original prediction. GEPA iterates on question sets, while a held-out validation set selects whether to use the augmented, reanchored, or original answer. Reported gains extend beyond hotel reviews: SideQuestions raised accuracy from 50.2% to 78.2% on AI-generated responses and from 51.2% to 100% on student essays. Questions discovered for Jev also transferred effectively to other decision models, performing within 1.6 percentage points of newly optimized versions. The prototype currently supports only programs with a single Predict call; it can be installed as a Python package and used with existing DSPy decision-model programs.

Read on cmpnd.ai4 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in AI

FreeHand

FreeHand

FreeHand is an AI agent harness that gives frontier models a shell, editable memory, and control over tools and timeouts instead of prescribing workflows. Across 11 tests, it beat first-party harnesses for three frontier model families, averaging 5.1 points higher at 49% lower cost, while preset harnesses still performed better with weaker models. (microsoft.github.io)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.