arXiv(opens in a new tab)math.OCSep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.05258

Ask Before You Optimize: Dynamic Pre-Formulation Clarification for Interactive Optimization

Sihan Ge, Yichen Lin, Chenyu Zhou, Jianghao Lin, Tao Yao, Dongdong Ge

Sihan Ge¹,* , Yichen Lin²,* , Chenyu Zhou²,* , Jianghao Lin²,†, Tao Yao²,†, Dongdong Ge²

¹ Cardinal Operations

² Shanghai Jiao Tong University, Shanghai, China

enoch-n@outlook.com {linyichen, chenyuzhou, linjianghao, taoyao, ddge}@sjtu.edu.cn

  • Equal contribution † Corresponding authors

Abstract Large language models (LLMs) are increasingly used to formulate optimization models from natural-language problem descriptions, yet realistic operations research (OR) requests are often incomplete: missing objectives, constraints, or business rules can change the resulting mathematical program. Existing evaluations largely assume a complete specification and therefore overlook whether an agent knows when clarification is needed before modeling. We introduce OR-Clarify, a benchmark for pre-formulation clarification. Each task presents a partial public problem description, withholds structured hidden slots, and evaluates agents through bounded interaction with a simulated user. The benchmark supports both open-ended and choice-based clarification, and measures slot recovery, stopping behavior, silent assumptions, and interaction cost. We further propose Interactive Optimization (InterOPT), a two-stage framework that identifies unresolved formulation-critical gaps and uses them to guide whether to ask the next question or to stop. In our choice-based experiments, InterOPT substantially outperforms all baselines in exact slot recovery; in the open-ended setting, it remains competitive with strong prior methods. Together, OR-Clarify and InterOPT reframe OR assistance as a selective completeness decision: clarify when needed, stop when ready, and quantify what remains missing.

Code: https://github.com/AIOR-Research/InterOpt

Data: https://huggingface.co/datasets/AIOR-Research/OR-Clarify

1. Introduction

The structure of an operations research (OR) model—including its objective function, constraints, decision variables, and feasible region—is determined by the business problem specification. With large language models (LLMs), non-experts can now describe problems in natural language and receive a candidate mathematical formulation [15, 18], lowering the barrier to OR modeling. However, real-world business requests are rarely delivered as complete textbook-like specifications. A user may describe capacities and demands without specifying the objective, or state a routing rule without clarifying whether the time windows are hard or soft. These omissions are not superficial: they can fundamentally alter the mathematical structure of the problem.

The central failure mode in this setting is premature formulation. Most evaluations of LLM-based optimization agents assume a sufficient specification and measure whether the agent can solve or express a given model [1, 7], missing the earlier question of whether the available information supports a meaningful formulation. We find that strong LLM agents often declare readiness while core business facts remain unclarified, or silently fill missing facts with unsupported defaults. For example, in a vehicle-routing context, if a user omits whether a courier must return to the origin, an agent that silently assumes a closed tour changes the constraint structure without asking for confirmation.

Figure

Figure 1: Motivation for pre-formulation clarification.

Recent interactive OR systems have begun to incorporate user interaction. ORPilot [20] uses interviews within an end-to-end modeling pipeline, while Drossman et al. [6] study conversational optimization through iterative solution refinement toward stakeholder utility. Taken together, these studies demonstrate the value of interaction in OR problem solving. However, interaction is embedded within a broader interactive process, and its effectiveness is not isolated as an explicit evaluation target. In particular, it remains unclear whether an agent actually recovers formulation-critical missing requirements and whether it knows when enough information has been obtained to proceed. These capabilities matter because unresolved requirements can change the resulting optimization formulation. We therefore study pre-formulation clarification as a distinct research problem and develop both a dedicated evaluation framework and clarification methods tailored to this problem.

This paper studies pre-formulation clarification as a standalone OR task. We define a fact as formulation-critical if its value can change the structure of the resulting optimization formulation. The task is to determine whether the current public specification is model-ready and, when it is not, to recover the missing formulation-critical facts with as little interaction as possible. To address this challenge, we propose Interactive Optimization (InterOPT), a two-stage framework that separates gap diagnosis from interaction control. The first stage, Dynamic Gap Search, identifies formulation-critical gaps and maintains a cross-turn record of those that remain unresolved by the public transcript. The second stage, Gap-Guided Action Search, uses the currently unresolved gaps to decide whether to ask a targeted question or stop. By separating persistent gap tracking from action selection, InterOPT aims to improve specification recovery without unnecessary interaction.

To systematically study this task, we build OR-Clarify, an evaluation framework and benchmark for pre-formulation clarification in OR. Each instance pairs an incomplete public brief with private, source-supported formulation-critical facts, fact-bounded simulated-user responses, and slot-level recovery rubrics, enabling controlled evaluation under both free-form and choice protocols. Its construction pipeline further converts fully specified optimization tasks into clarification instances by withholding formulation-critical facts and generating the corresponding interaction and evaluation artifacts. To our knowledge, OR-Clarify is the first OR-specific framework to jointly evaluate formulation-gap recovery, readiness decisions, and interaction cost before LLM-driven autoformulation.

In summary, this paper makes three contributions.

(1) The pre-formulation clarification task and the InterOPT framework. We formulate pre-formulation clarification as the joint problem of assessing whether a public specification is model-ready and recovering missing formulation-critical facts while minimizing unnecessary interaction. We then propose InterOPT, a two-stage framework in which Dynamic Gap Search identifies and tracks unresolved formulation gaps across turns and Gap-Guided Action Search uses this state to decide what to ask and when to stop.

(2) The OR-Clarify construction and evaluation framework. OR-Clarify converts fully specified optimization tasks into controlled clarification instances by withholding formulation-critical facts and generating the corresponding public briefs, fact-bounded simulated-user responses, and slot-level evaluation artifacts. It supports controlled evaluation under both free-form and Choice interaction protocols.

(3) A systematic empirical study of pre-formulation clarification. We compare InterOPT with strong LLM-based baselines and analyze exact requirement recovery, readiness decisions, silent assumptions, and interaction cost. The results demonstrate strong recovery gains in the Choice setting and competitive performance in the free-form setting, while the ablations and behavioral diagnostics reveal the roles of gap tracking, question selection, and stopping.

References (23)