Program Synthesis Dialog Agents for Interactive Decision-Making
Matthew Toles, Nikhil Balwani, Rattandeep Singh, Valentina Giulia Sartori Rodriguez, Zhou Yu
TL;DR
This work tackles interactive decision-making for real-world eligibility tasks by introducing BeNYfits, a benchmark for overlapping public-benefit programs, and ProADA, a program-synthesis based agent that generates a Python decision tool to guide dialog. BeNYfits evaluates accuracy and dialog efficiency across diverse and representative user populations, using ground-truth eligibility checkers derived from human-written requirements. ProADA outperforms strong baselines on both accuracy and efficiency, achieving F1 scores in the mid-50s with substantially fewer dialog turns, and benefits from human-in-the-loop usability improvements in a concurrent user study. The approach emphasizes transparency and reliability by using a generated Python tool for reasoning, reducing hallucinations and enabling traceable decision logic, while acknowledging limitations related to data sources and real-world deployment risks.
Abstract
Many real-world eligibility problems, ranging from medical diagnosis to tax planning, can be mapped to decision problems expressed in natural language, wherein a model must make a binary choice based on user features. Large-scale domains such as legal codes or frequently updated funding opportunities render human annotation (e.g., web forms or decision trees) impractical, highlighting the need for agents that can automatically assist in decision-making. Since relevant information is often only known to the user, it is crucial that these agents ask the right questions. As agents determine when to terminate a conversation, they face a trade-off between accuracy and the number of questions asked, a key metric for both user experience and cost. To evaluate this task, we propose BeNYfits, a new benchmark for determining user eligibility for multiple overlapping social benefits opportunities through interactive decision-making. Our experiments show that current language models struggle with frequent hallucinations, with GPT-4o scoring only 35.7 F1 using a ReAct-style chain-of-thought. To address this, we introduce ProADA, a novel approach that leverages program synthesis to assist in decision-making by mapping dialog planning to a code generation problem and using gaps in structured data to determine the best next action. Our agent, ProADA, improves the F1 score to 55.6 while maintaining nearly the same number of dialog turns.
