COMPASS: Composable Policy-Amortized Structured Search for LLM-Based Optimization Modeling
Nguyen Le Minh Hoang, Van Duc Cuong, Bui Trong Duc, Huynh Thi Thanh Binh
NeurIPS 2026
Abstract. Large language models offer a promising technique for translating natural-language optimization problems into solver code, but their reliability remains constrained by the quality of template retrieval. While recent structured methods improve over flat prompting through hierarchical taxonomy search, their traversal rules remain fixed or LLM-driven at inference time, leaving retrieval unable to improve from past successes and failures. This motivates treating template retrieval as a policy that can be learned from modeling experience, rather than as a static inference-time rule. We propose COMPASS, a policy-amortized framework for retrieving optimization templates in LLM-based solver modeling, which represents the template library as a directed acyclic graph and formulates retrieval as a sequential decision process over template nodes. A deep Q-network learns a reusable traversal policy from template-level judgments and execution feedback, reducing reliance on fixed heuristic traversal through feedback-driven graph navigation. To support extensible retrieval, COMPASS embeds problem descriptions and template nodes in a shared semantic space, allowing newly inserted templates to be scored from their text descriptions without redefining the action space. Experiments across multiple LLM backbones and optimization-modeling benchmarks demonstrate that COMPASS consistently improves over heuristic structured retrieval, with the largest gains on complex and mixed-category problems.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:47 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
This paper proposes COMPASS, a policy-amortized structured retrieval framework for LLM-based optimization modeling. COMPASS organizes reusable modeling templates into a DAG and learns a retrieval policy to select and compose relevant structures to generate formulation. The proposed framework mitigates failures caused by inappropriate modeling structures and provides a useful alternative to flat retrieval and costly instance-level search.
I have read the authors' response and considered the subsequent reviewer feedback. The authors have adequately addressed the reviewers' main technical concerns through additional controlled experiments, methodological clarifications, and robustness analyses. In particular, the authors separated the contribution of the learned retrieval policy and the DAG structure, clarified the semantics and construction of the DAG and the template composition operator, and provided further evidence for the reliability of the learning signals and the robustness of the empirical results. The reviewers generally responded positively to these clarifications and additional experiments.
One remaining concern is that the core idea is not specific to optimization modeling, as prior work has explored related forms of structured guidance for general-purpose LLM agents (e.g., COMPASS: Enhancing Agent Long-Horizon Reasoning with Evolving Context, ACL 2026). In the camera-ready version, the authors should clarify the methodological differences and further explain the optimization-specific role of the DAG-based representation and retrieval policy. Overall, I believe the authors have addressed the major concerns, and I recommend acceptance of this paper.
Final justification
Please see the final meta-review.
- Final justification
- Please see the final meta-review.
Read meta-review
Meta-review
This paper proposes COMPASS, a policy-amortized structured retrieval framework for LLM-based optimization modeling. COMPASS organizes reusable modeling templates into a DAG and learns a retrieval policy to select and compose relevant structures to generate formulation. The proposed framework mitigates failures caused by inappropriate modeling structures and provides a useful alternative to flat retrieval and costly instance-level search.
I have read the authors' response and considered the subsequent reviewer feedback. The authors have adequately addressed the reviewers' main technical concerns through additional controlled experiments, methodological clarifications, and robustness analyses. In particular, the authors separated the contribution of the learned retrieval policy and the DAG structure, clarified the semantics and construction of the DAG and the template composition operator, and provided further evidence for the reliability of the learning signals and the robustness of the empirical results. The reviewers generally responded positively to these clarifications and additional experiments.
One remaining concern is that the core idea is not specific to optimization modeling, as prior work has explored related forms of structured guidance for general-purpose LLM agents (e.g., COMPASS: Enhancing Agent Long-Horizon Reasoning with Evolving Context, ACL 2026). In the camera-ready version, the authors should clarify the methodological differences and further explain the optimization-specific role of the DAG-based representation and retrieval policy. Overall, I believe the authors have addressed the major concerns, and I recommend acceptance of this paper.
3 comments
Thank you for the summary of the updates. I will take these supplement materials into account in my final assessment.
Dear Area Chair and Reviewers,
We sincerely thank the Area Chair for the time and effort devoted to coordinating the review process, and the reviewers for their thoughtful evaluations and constructive suggestions.
We believe these discussions have substantially strengthened both the empirical validation and the overall contribution of COMPASS. We will carefully revise the paper and incorporate the relevant clarifications, additional experiments, examples, and limitations into the revised manuscript.
Best regards,
The Authors
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 2/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposes COMPASS, a template retrieval framework for LLM-based optimization modeling. Instead of treating template retrieval as a one-time similarity matching process or searching along a fixed tree structure, it organizes the template library into a Directed Acyclic Graph (DAG) and learns a reusable traversal policy over the graph. The system combines semantic node scoring, LLM priors, beam search, solver feedback, judge feedback, and controlled template expansion to select more appropriate modeling templates for natural language optimization problems.
Strengths and weaknesses
Strengths:
This paper tackles a real and significant problem: LLMs often fail to write correct optimization code not because of poor coding capabilities, but because they select the wrong mathematical modeling structure from the outset. The experiments comprehensively cover multiple benchmarks and various LLM backbones. Furthermore, the performance improvements are more pronounced on complex combinatorial problems, which aligns well with the paper's core motivation.
Weaknesses:
The most critical issue with this paper is its claim of learning a reusable retrieval policy. The current evidence is insufficient to prove that the model has genuinely learned transferable modeling knowledge, rather than merely memorizing template preferences for specific benchmarks.
While the DQN formulation appears mathematically complete, the action space is heavily constrained by the manually constructed DAG. Consequently, the true performance driver might be the template graph itself, rather than the RL-based policy.
The paper relies on both an LLM judge and LLM-generated new templates, which introduces circularity into the training signal. The method claims to reduce reliance on LLM reasoning for retrieval, yet the reward and node expansions are still largely dictated by the LLM.
The template composition operator is described too cursorily, despite being the fundamental core of whether the system can actually handle mixed-structure problems.
The reward design masks a severe credit assignment problem. The ultimate success or failure of the execution is backpropagated to the entire path; however, errors could originate from code generation, data parsing, solver configurations, or template merging, and not necessarily from a specific retrieval node. This will cause the retriever to learn from noisy or incorrect feedback.
Questions
How is the initial DAG constructed? How much expert workload is required, and what is the anticipated maintenance cost?
When two retrieved leaf templates define overlapping variables or conflicting constraints, how exactly does the template composition operator resolve this?
Among the newly generated nodes from the controlled DAG expansion, what proportion are genuinely useful, and how many are redundant or potentially harmful?
If all baselines were provided with the exact same template library, repair prompts, solver settings, and inference budget, would the performance gains of COMPASS still hold?
Limitations
see Weaknesses.
Final justification
The author's response addresses my concerns, but it needs to be explained in detail in the revised paper.
Formatting concerns
In the Methodology section, critical details regarding template construction, template merging, and DAG expansion should be moved to the main text, as these elements are vital for reproducibility.
5 comments
Rebuttal
Thank you for the constructive review. We provide direct evidence and implementation details for each point below.
W1: Transferable knowledge
We agree that held-out instances alone cannot distinguish transfer from memorization. We therefore remove what the policy could memorize.
We hold out 40 MAMO-Complex Diet/integer problems and remove all related OR-Instruct training examples. In the stricter setting, we additionally remove the corresponding DAG nodes during training and restore them only at test time via their semantic embeddings .
| Setting | Target problems seen? | Target nodes seen? | DAG-Greedy | Frozen | Frozen COMPASS |
|---|---|---|---|---|---|
| In-domain | ✓ | ✓ | 47.5 | 65.0 | 72.5 |
| Unseen family | ✗ | ✓ | 47.5 | 62.5 | 67.5 |
| Unseen family + nodes | ✗ | ✗ | 47.5 | 55.0 | 62.5 |
The last row is the critical test: has seen neither the target problems nor the target actions, yet Frozen COMPASS still achieves 62.5% vs. 47.5% for DAG-Greedy.
Performance degrades gracefully, , rather than collapsing to DAG-Greedy. This shows that removing target-specific exposure reduces, but does not eliminate, the learned-policy advantage—supporting transferable problem–formulation knowledge rather than template-preference memorization.
W2: RL policy
The decisive question is whether adds value after the DAG and admissible actions are held fixed.
We test this directly on held-out MAMO-Complex problems. For each Layer-1 decision, all selectors receive the identical candidate set. We force each candidate and estimate its downstream utility from five independent solver rollouts; the highest-utility candidate defines the empirical best child. These rollouts are evaluation-only.
| Selector | Best-Child Acc. ↑ | Downstream Success ↑ |
|---|---|---|
| Random within DAG | 45% | 11.3% |
| DAG-Greedy | 66% | 54.5% |
| -only | 75% | 58.2% |
| COMPASS | 87% | 61.6% |
Because the graph and available actions are identical, the 66% → 75% gain from DAG-Greedy to -only cannot come from structural pruning. It comes from learning which of the same admissible choices has higher downstream utility.
We further stratify decisions by residual ambiguity after DAG pruning:
| Ambiguity | DAG-Greedy | -only | COMPASS |
|---|---|---|---|
| Low | 88% | 92% | 100% |
| Medium | 82% | 86% | 92% |
| High | 28% | 47% | 69% |
The mechanism is clear: the DAG removes implausible actions; resolves ambiguity among the plausible ones. Accordingly, policy learning adds little when the graph leaves an obvious choice, but becomes critical under high ambiguity, where COMPASS improves from 28% to 69%.
W3: Execution-grounded learning
We test whether learns executable utility or merely distills LLM preference by changing only the reward source:
| Reward | MAMO-Complex Acc. ↑ |
|---|---|
| LLM judge only | 54.2 |
| Execution only | 59.8 |
| Mixed (COMPASS) | 61.6 |
Execution-only clearly outperforms judge-only and nearly matches COMPASS, showing that learns useful retrieval values without LLM judgment. Q2 further shows that -only outperforms LLM-based selection on identical candidates.
Thus, the roles are distinct: the LLM proposes and guides; execution grounds what learns to reuse.
W5: Reward Design
COMPASS combines two complementary signals: provides grounded but noisy credit, since failures may arise beyond retrieval, while provides retrieval-specific but less grounded credit. We isolate their roles by varying only , with all other training conditions fixed.
| Dataset | 0.0 | 0.1 | 0.3 | 0.5 | 0.7 | 1.0 |
|---|---|---|---|---|---|---|
| OptMATH | 47.6 | 49.4 | 50.6 | 49.4 | 49.4 | 48.8 |
| IndustryOR | 61.0 | 64.0 | 66.0 | 64.0 | 64.0 | 63.0 |
| NL4Opt | 93.5 | 94.7 | 95.1 | 94.7 | 94.3 | 93.9 |
| Macro | 67.4 | 69.4 | 70.6 | 69.4 | 69.2 | 68.6 |
The consistent optimum at supports the design: execution provides grounded correctness but noisy attribution, while the judge provides retrieval-specific guidance without execution grounding. Their combination mitigates both errors, providing more reliable credit for learning .
Q1: DAG
COMPASS seeds broad canonical families-routing, assignment/matching, knapsack/packing, scheduling, network flow, facility location, inventory/production, and set covering--rather than manually authoring complete formulations. From representative OR-Instruct training instances, the LLM proposes template fields and Layer-1 relations, while experts verify only the seed-level architecture and relation validity.
After the seed graph is fixed, expansion for specialized training domains is fully automated and requires no further expert intervention. Expansion is enabled only when and . Graph management automatically assigns unique IDs, rejects duplicate edges and cycle-inducing relations, removes dangling references, and applies transitive reduction. COMPASS therefore extends the graph during training while keeping evaluation-time retrieval fixed and reproducible.
Q2 and W4: Composition Operator
We agree that was underspecified. In $ t^\star=\mu({t_v:v\in L(p)}),$ is a semantic scaffold composition operator, not a symbolic program merger. It combines the selected templates' modeling descriptions and reasoning guidance into one scaffold; variables, constraints, domains, and objectives are then instantiated once by the downstream generator from the original problem and this scaffold.
The motivation is that mixed-structure problems may require complementary modeling knowledge from multiple templates. We first vary , the number of templates entering , while fixing all other components:
| Dataset | ||||
|---|---|---|---|---|
| MAMO-Complex | 59.2% | 61.6% | 59.7% | 42.2% |
| IndustryOR | 64.0% | 66.0% | 61.0% | 43.0% |
| OptMATH | 49.4% | 50.6% | 48.8% | 37.3% |
consistently performs best, while larger beams degrade, showing that composition benefits from selective complementarity rather than simply more templates.
To verify this mechanism, two independent annotators, blind to generated outputs and correctness, classify all 377 selected template pairs. -only denotes problems solved with but not , and vice versa.
| Pair type | Count (%) | Acc. | -only | -only |
|---|---|---|---|---|
| Complementary | 304 (80.6%) | 61.8% | 12 | 3 |
| Redundant | 38 (10.1%) | 47.4% | 2 | 2 |
| Debatable | 21 (5.6%) | 28.6% | 1 | 2 |
| Conflicting | 14 (3.7%) | 14.3% | 0 | 1 |
The human audit shows both selection quality and composition utility: 80.6% of retrieved pairs are complementary and only 3.7% are conflicting. Moreover, complementary pairs achieve the highest accuracy and account for the positive composition gain (+9 net: 12 gained vs. 3 lost), whereas redundant or conflicting pairs provide no positive net contribution.
Q3: DAG Expansion
We audit all 677 nodes added during controlled expansion on MAMO-Easy using , where evaluates the affected problems with node included, and evaluates the same problems with node removed.
classifying nodes as useful (), neutral (), or harmful ().
| Outcome | Nodes | Proportion |
|---|---|---|
| Useful | 522 | 77.1% |
| Neutral | 118 | 17.4% |
| Harmful | 37 | 5.5% |
Thus, 77.1% of expansions provide measurable utility, while only 5.5% are harmful. Harmful nodes subsequently receive lower values and are rarely retrieved, showing that expansion is followed by experience-based filtering rather than unconditional accumulation.
Q4: Matched Inference
Because external methods such as SolverLLM and AutoFormulator construct candidates differently, forcing COMPASS's library into them would change their algorithms. We therefore answer this causal question with matched internal controls, where template content and the entire downstream pipeline are fixed.
On MAMO-Complex (), all variants use the same 261 terminal templates, node content, generator, formulation/repair prompts, solver, data split, and inference budget. We vary only retrieval topology (Flat/Tree/DAG) and selection policy (Heuristic/Learned).
| Topology | Selector | Exact Acc. | Candidates/problem | Calls/problem |
|---|---|---|---|---|
| Flat | Heuristic | 50.2% | 261.0 | 28.2 |
| Flat | Learned | 54.0% | 261.0 | 28.2 |
| Tree | Heuristic | 57.8% | 94.2 | 9.2 |
| Tree | Learned | 58.3% | 89.1 | 8.0 |
| DAG | Heuristic | 54.5% | 96.3 | 9.4 |
| DAG | Learned | 61.6% | 90.2 | 8.2 |
Under matched conditions, DAG-Learned remains best at 61.6%. It exceeds Tree-Learned by 3.3 points at essentially the same inference cost (8.2 vs. 8.0 calls), and Flat-Learned by 7.6 points while considering far fewer candidates.
The strongest control holds even the topology fixed: DAG-Greedy and COMPASS use the identical DAG, templates, generator, prompts, repair, solver, and budget. Replacing heuristic traversal with the learned policy improves MAMO-Complex from 54.5% to 61.6% (17 wins vs. 2 losses, ), with consistent gains on IndustryOR (63.0% → 66.0%) and NL4Opt (93.9% → 95.1%).
Thus, the gains persist under matched templates, pipeline, and budget: the topology control isolates structured DAG retrieval, while the identical-DAG control isolates the learned policy.
We hope these responses address the reviewer’s concerns and welcome further discussion.
Request to Review the Authors’ Rebuttal
Dear Reviewer VWFk,
Many thanks for your effort. Please take a look at the authors‘ rebuttal and engage in the discussions. The authors are eager to see if they have properly addressed your concerns.
Best regards,
Area Chair Gky6
Dear Reviewer,
As the discussion period approaches the end, we would be grateful if you could review our rebuttal and let us know whether our responses have adequately addressed your concerns. If any concerns remain, please feel free to share them, and we would be pleased to provide further clarification.
Thank you very much for your time and consideration.
Best regards, The Authors
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper proposes COMPASS that learns a reusable retrieval policy for selection optimization templates when an LLM translatied NL optimization problems to solver code.
The templates library is organized as a DAG so its not a flat list. A DQN then learns to traverse this DAG using feedback from an LLM judge that scores structural fit and actual solver execution success or failure. During inference, the paper uses beam search to to retrieve one or more templates that can jointly support solver code generation. New templates can be scored zero shot with shared semantic embeddings.
Strengths and weaknesses
Strengths: -novel framing: template retrieval as learned sequential decision over a DAG. -the paper shows largest gains where it matters most i.e., on hard compositional problems -the evaluations are comprehensive (across 6 datasets) and generalizability shown across 5 LLMs i.e, trained on 2 and transgered to 3 others) -Appendix contains prompt templates and algorithms.
Weaknesses: -the paper does not provide compute cost -The Composition operator is not explained in detail. This is responsible for producing a merged template. How are conflicts between templates resolved? are templates compatible, what is the success rate of composition, etc. -the embedding model is old, have you tried newer ones? -its not clear if the LLM judge is reliable, is it well calibrated?
Questions
-The Composition operator is not explained in detail. This is responsible for producing a merged template. How are conflicts between templates resolved? are templates compatible, what is the success rate of composition, etc. -the embedding model is old, have you tried newer ones? -its not clear if the LLM judge is reliable, is it well calibrated?
Limitations
mostly. It would help to include (or address) the following in the paper
- explain the Composition operator and how it works/helps, with examples of successful and failed compositions.
- how was the initial DAG built, was it with experts? -all results seem to be from a single DQN training run, why not multiple seeds? -is the LLM judge is reliable, is it well calibrated?
Formatting concerns
None
5 comments
Rebuttal
Thank you for the constructive review. We provide direct evidence and implementation details for each point below.
W1: Computational cost
We report inference cost under a common accounting procedure. All methods use the same DeepSeek-V3 backend, temperature, solver, evaluation instances, and token-accounting protocol. The table reports measured input-plus-output tokens per problem.
| Method | NL4 | ME | MC | LP | IO | OM |
|---|---|---|---|---|---|---|
| AutoFormulator | 234.6 | 236.0 | 237.7 | 260.4 | 263.8 | 428.3 |
| SolverLLM | 211.5 | 211.7 | 221.3 | 234.0 | 258.1 | 360.8 |
| OptiTree | 34.5 | 35.6 | 38.2 | 37.5 | 41.9 | 46.0 |
| COMPASS | 39.2 | 43.9 | 49.6 | 42.7 | 51.0 | 55.0 |
All values are measured input-plus-output tokens per problem, reported in thousands. NL4, ME, MC, LP, IO, and OM denote NL4Opt, MAMO-Easy, MAMO-Complex, LPWP, IndustryOR, and OptMATH, respectively.
COMPASS uses substantially fewer inference tokens than AutoFormulator and SolverLLM. Its moderate additional budget relative to OptiTree supports policy-guided DAG traversal and feedback-based repair, and is accompanied by higher exact accuracy than OptiTree across all six benchmarks.
W2 and Q1: Composition operator
The paper defines $ t^\star=\mu({t_v:v\in L(p)}).$ We make explicit here. A template is a textual modeling schema rather than a complete program, so performs prompt-level textual consolidation rather than symbolically unioning independently instantiated formulations. For the selected leaves, it concatenates problem types, retains descriptions in source-labeled [problem type]: description blocks, and preserves the within-template order of reasoning steps. Repeated string steps are removed by exact matching; structured steps are compared after canonical JSON serialization with sorted keys. The first selected template supplies the example application, and increment is initialized as empty.
Variables, constraints, objectives, and domains are instantiated once by the downstream generator from the original problem and the consolidated scaffold. The generator is explicitly instructed to adapt the scaffold to the input. With no valid leaf, COMPASS uses the root template; empty or failing code receives one correction attempt.
The submitted beam ablation uses the same trained checkpoint, generator, prompts, solver, repair policy, and test instances for every beam width. achieves the strongest result on all three datasets:
| Dataset | ||||
|---|---|---|---|---|
| MAMO-Complex | 59.2% | 61.6% | 59.7% | 42.2% |
| IndustryOR | 64.0% | 66.0% | 61.0% | 43.0% |
| OptMATH | 49.4% | 50.6% | 48.8% | 37.3% |
Controlled beam-composition analysis
Two independent annotators inspect the problem and selected templates while blind to the generated formulation and correctness. They classify each pair as complementary, redundant, debatable, or conflicting; disagreements are resolved by consensus.
Human audit of selected template-pair compatibility.
| Dataset | Complementary | Redundant | Debatable | Conflicting |
|---|---|---|---|---|
| MAMO-Complex | 85.8% | 6.6% | 4.3% | 3.3% |
| OptMATH | 74.1% | 14.5% | 7.2% | 4.2% |
| Pooled | 80.6% | 10.1% | 5.6% | 3.7% |
K=2-only denotes an instance solved under but not ; K=1-only denotes the reverse.
Outcomes conditioned on the human compatibility category.
| Pair type | Count | Acc. | CER | -only | -only |
|---|---|---|---|---|---|
| Complementary | 304 | 61.8% | 100% | 12 | 3 |
| Redundant | 38 | 47.4% | 100% | 2 | 2 |
| Debatable | 21 | 28.6% | 100% | 1 | 2 |
| Conflicting | 14 | 14.3% | 100% | 0 | 1 |
| Overall | 377 | 56.8% | 100% | 15 | 8 |
The gains are concentrated in complementary pairs, which yield a net gain of nine instances. Overall, obtains 56.8% accuracy versus 54.9% for , while CER remains 100%. This directly demonstrates the benefit of combining compatible modeling structures and motivates the submitted choice of . The revision adds complementary, redundant, and conflicting examples to make the composition behavior concrete.
W3: Embedding-Backbone Robustness
We therefore replace it with two newer embedding backbones under a strictly matched setting, fixing the DAG, data split, seed, optimizer, replay, policy updates, LLM backend, beam width, and inference budget. All encoders are frozen; only the policy input projection is adjusted to their embedding dimension.
| Encoder | Dim. | MAMO-C | IndustryOR | OptMATH | Macro Acc. |
|---|---|---|---|---|---|
| all-MiniLM-L6-v2 | 384 | 61.6% | 66.0% | 50.6% | 59.4% |
| gte-modernbert-base | 768 | 61.6% | 65.0% | 49.4% | 58.7% |
| embeddinggemma-300m | 768 | 61.1% | 66.0% | 50.0% | 59.0% |
The result is remarkably stable: three different encoders yield only a 0.7-point macro spread, with no newer backbone consistently improving performance across datasets. This shows that COMPASS is not dependent on MiniLM-specific representations; the embedding provides a semantic interface, while learns the task-specific problem--formulation utility on top of it.
We therefore retain MiniLM for efficiency: its compact 384-D representation matches or slightly exceeds the larger 768-D alternatives. More importantly, replacing the encoder leaves COMPASS's performance essentially unchanged, demonstrating that the retrieval policy is robust to the embedding backbone rather than deriving its gains from a particular encoder.
W4 and Q2: Reliability of the LLM judge
The judge is deliberately used as a bounded auxiliary structural signal, while execution provides direct correctness verification. The submitted reward is
so checker-verified execution receives the dominant weight. The training judge uses DeepSeek-V3 at temperature 0 and scores structural fit using . Its prompt evaluates objective type, variables, and constraints independently of execution. JSON outputs are repaired and clipped to ; a failed call or parse receives the neutral score 0.5.
Two OR annotators label 200 held-out pairs while blind to judge output and execution correctness.
Human audit and calibration of judge reliability.
| Measure | Agreement |
|---|---|
| Human-human | 86% |
| Judge-human consensus | 82% |
| Expected calibration error | 6% |
The 82% judge-human consensus agreement and 6% calibration error support the judge's role as a moderately weighted structural signal.
Reward-mixture sensitivity
We retrain once per , holding the data, DAG, seed, optimizer, update count, replay configuration, and evaluation protocol fixed.
| Dataset | 0.0 | 0.1 | 0.3 | 0.5 | 0.7 | 1.0 |
|---|---|---|---|---|---|---|
| OptMATH | 47.6% | 49.4% | 50.6% | 49.4% | 49.4% | 48.8% |
| IndustryOR | 61.0% | 64.0% | 66.0% | 64.0% | 64.0% | 63.0% |
| NL4Opt | 93.5% | 94.7% | 95.1% | 94.7% | 94.3% | 93.9% |
| Macro | 67.4% | 69.4% | 70.6% | 69.4% | 69.2% | 68.6% |
Performance peaks consistently at . This setting combines dense structural guidance from the judge with direct correctness verification from execution, outperforming both execution-only and judge-only training on all three datasets.
W5: Initial DAG construction and expert workload
COMPASS seeds broad canonical families--routing, assignment/matching, knapsack/packing, scheduling, network flow, facility location, inventory/production, and set covering--rather than manually authoring complete formulations. From representative OR-Instruct training instances, the LLM proposes template fields and Layer-1 relations, while experts verify only the seed-level architecture and relation validity.
After the seed graph is fixed, expansion for specialized training domains is fully automated and requires no further expert intervention. Expansion is enabled only when and . Graph management automatically assigns unique IDs, rejects duplicate edges and cycle-inducing relations, removes dangling references, and applies transitive reduction. COMPASS therefore extends the graph during training while keeping evaluation-time retrieval fixed and reproducible.
W6: Multi-seed stability
We repeat end-to-end training and evaluation with five seeds, varying DQN initialization, exploration, replay sampling, and training order while holding the seed DAG, data split, hyperparameters, and evaluation protocol fixed. Temperature-zero LLM calls and guarded expansion are rerun independently from the same seed graph, so the analysis captures end-to-end stability across both policy learning and graph evolution.
| Dataset | Exact Acc. (mean SD) | 95% -CI |
|---|---|---|
| MAMO-Complex | 61.14 1.07% | [59.81, 62.47] |
| IndustryOR | 65.60 1.14% | [64.18, 67.02] |
| OptMATH | 50.24 1.17% | [48.79, 51.69] |
The narrow variation and means near the submitted checkpoint demonstrate stable end-to-end performance across independent training seeds, including variation from both policy learning and the evolved graph.
We hope these responses fully address the reviewer’s concerns and clarify the key points raised. We welcome any further questions or discussion.
Request to Review the Authors’ Rebuttal
Dear Reviewer bF4Y,
Many thanks for your effort. Please take a look at the authors‘ rebuttal and engage in the discussions. The authors are eager to see if they have properly addressed your concerns.
Best regards,
Area Chair Gky6
Dear Reviewer,
As the discussion period approaches the end, we would be grateful if you could review our rebuttal and let us know whether our responses have adequately addressed your concerns. If any concerns remain, please feel free to share them, and we would be pleased to provide further clarification.
Thank you very much for your time and consideration.
Best regards, The Authors
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 2/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
In this paper, the authors have proposed an end-to-end training method for q-function, to help retrieve templates from the library in multi-steps for downstream code generation in optimization modeling problems. The experiments results seed solid and demonstrate effectiveness compared with other baselines.
Strengths and weaknesses
Strengths
- The experimental results are strong and demonstrate better performance compared with other baselines and multiple backbones.
- The idea is straightforward.
Weakness
- The writing is a little bit confusing since there is no example for optimization modeling nor one for the template. Also modeling the template library is also little bit abstract since I do not see the relationship between different formulations merely from Figure 1 (Apologize it because I do not have too much background knowledge about LLM-based optimization modeling)
- Based on 1, what are the benefits of defining it as a DAG problem? It seems like this is just because it well fit into the template search setting (sequential decision making)? Are there any dependence relationships between different formulations?
Questions
As mentioned above, what are the benefits of defining it as a DAG problem? It seems like this is just because it well fit into the template search setting (sequential decision making)? Are there any dependence relationships between different formulations?
Limitations
yes
Final justification
In the rebuttal phase, the authors have clarified about the template details and intuitions about sequential modeling, which look good to me. I decide to keep my original score as I do not have too much concerns about the methodology.
Formatting concerns
No
6 comments
Rebuttal
Thank you for the valuable assessment. We make the complete optimization-modeling pipeline, the dependence semantics of the graph, and the representational benefit of the DAG concrete below.
W1: Concrete Modeling and Template Example
Each template is a structured textual modeling scaffold containing (i) a problem-type description, (ii) reusable variable and constraint structures, (iii) a reasoning sequence, and (iv) an example application. Its textual content is encoded by all-MiniLM-L6-v2 into , the semantic representation used by the retrieval policy.
The DAG organizes structural refinement between templates: upper nodes represent broader modeling concepts, while descendants introduce more specialized structures. The complete pipeline is
Importantly, retrieval returns reusable modeling knowledge rather than a completed formulation. Problem-specific coefficients, requirements, and exceptional constraints always come from the original input.
For example, in an additional recorded IndustryOR case study, instance 6 requires production planning for three products over four quarters under inventory dynamics and a shared 15,000-hour production capacity. COMPASS retrieves two complementary terminal templates:
- Node 205, Multi-Period Multi-Product Procurement Planning with Dynamic Inventory Constraints, which contributes time-indexed decisions, inventory flow, and carry-over;
- Node 215, Multi-Product Inventory Allocation with Demand and Space Constraints, which contributes the structural pattern in which multiple product decisions share a limited resource.
The generator instantiates these structures using the original problem. Let denote production, ending inventory, ending backlog, demand, and the production hours required per unit. The generated formulation includes
for temporal inventory balance, and
$ \sum_i a_i x_{i,t}\leq15000, $
for shared quarterly capacity, together with problem-specific conditions such as and . Gurobi returns an optimal objective value of 10,755, exactly matching the benchmark answer.
This example makes the division of roles concrete: the embedding represents template semantics, the DAG organizes structural refinement, retrieval selects reusable modeling structures, and the generator instantiates them with problem-specific information. The revision will include the corresponding problem DAG path selected templates generated formulation trace.
W2 and Q1: Dependency Semantics and Why a DAG
The DAG is not introduced merely to make retrieval sequential. Sequential decision making describes how the policy operates—one transition at a time—whereas the DAG describes the global organization of modeling knowledge, including branching and reconvergence through multiple parents.
An edge denotes structural refinement or reuse: retains relevant modeling primitives from while adding a domain, variable family, constraint, objective, or assumption. It encodes modeling dependence rather than a requirement that formulation must be executed before formulation .
A formulation can have valid relations to several parent families when it combines their modeling structures. A concrete stored example is node 571, Marketing Budget Allocation Problem, whose parents are node 570, Capital Budgeting with Portfolio Constraints, and node 683, Resource Allocation Problem. It combines portfolio-style budget decisions with shared-resource allocation constraints. A strict tree must retain only one ancestry or duplicate the formulation, whereas the DAG preserves both modeling contexts in a single node with shared textual representation and learned statistics.
Thus, the three topologies have distinct semantics:
- Flat: no formulation relationships;
- Tree: hierarchical refinement with one ancestry per node;
- DAG: hierarchical refinement with multiple valid parent and refinement paths.
Multiple-parent relations encode compositional overlap between modeling structures; node indegree itself is not used as an empirical measure of problem difficulty.
Matched Flat/Tree/DAG Control
We test these effects with a matched topology-policy study on MAMO-Complex (). All variants use the same 261 terminal templates, node content, generator backend, prompts, downstream formulation and repair budget, solver, training split, test instances, and stopping rule. The table reports the realized retrieval consumption of each topology separately; only the admissible topology and selector vary.
In the heuristic variants, the same temperature-zero LLM scores structural compatibility. Flat-Heuristic scores the terminal templates in batches of ten, while Tree-Heuristic and DAG-Heuristic score admissible children at each traversal step. In the learned variants, the same architecture, random seed, update count, replay configuration, and reward are used. The Tree variant assigns each multi-parent node one fixed canonical parent before training; the temperature-zero LLM selects the strongest structural refinement relation, with lower parent ID breaking ties. This map is fixed before training and evaluation, uses no test problem or label, and preserves all nodes and terminal templates.
| Topology | Selector | Exact Acc. | Candidates/problem | Calls/problem | Retrieval latency |
|---|---|---|---|---|---|
| Flat | Heuristic | 50.2% | 261.0 | 28.2 | 72.0 s |
| Flat | Learned | 54.0% | 261.0 | 28.2 | 72.0 s |
| Tree | Heuristic | 57.8% | 94.2 | 9.2 | 32.5 s |
| Tree | Learned | 58.3% | 89.1 | 8.0 | 30.4 s |
| DAG | Heuristic | 54.5% | 96.3 | 9.4 | 33.1 s |
| DAG | Learned | 61.6% | 90.2 | 8.2 | 31.8 s |
The table separates the contributions:
- Flat Tree/DAG shows the efficiency of structured retrieval: DAG-Learned evaluates 65.4% fewer candidates and uses 70.9% fewer calls than Flat-Learned.
- Heuristic Learned shows that topology alone is insufficient: learning improves Flat from 50.2% to 54.0% and DAG from 54.5% to 61.6%.
- Tree-Learned DAG-Learned is the DAG-specific comparison. At comparable search cost, preserving multi-parent refinement paths improves accuracy from 58.3% to 61.6%.
If hierarchical pruning were the whole benefit, Tree-Learned should match DAG-Learned. Instead, the 3.3-point difference supports the benefit of preserving multiple valid modeling dependencies that a single-parent tree cannot represent faithfully.
The submitted same-DAG control independently isolates the learned selector: DAG-Greedy and COMPASS use the identical DAG, template library, generator, and executor. COMPASS improves from 54.5% to 61.6% on MAMO-Complex, from 63.0% to 66.0% on IndustryOR, and from 93.9% to 95.1% on NL4Opt. On MAMO-Complex, the paired comparison gives 17 wins versus 2 losses ().
Together, these controls show complementary roles: hierarchical structure makes retrieval efficient, the multi-parent DAG preserves compositional formulation knowledge, and the learned policy exploits that structure for problem-specific traversal. The revision will expand Figure 1 with the real multi-parent example and add the complete IndustryOR trace.
We believe these responses directly address the reviewer’s concerns and provide the requested clarification and evidence. We welcome any further feedback.
Request to Review the Authors’ Rebuttal
Dear Reviewer ZyT3,
Many thanks for your effort. Please take a look at the authors‘ rebuttal and engage in the discussions. The authors are eager to see if they have properly addressed your concerns.
Best regards,
Area Chair Gky6
Dear Reviewer,
As the discussion period approaches the end, we would be grateful if you could review our rebuttal and let us know whether our responses have adequately addressed your concerns. If any concerns remain, please feel free to share them, and we would be pleased to provide further clarification.
Thank you very much for your time and consideration.
Best regards,
The Authors
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Summary of Rebuttal Updates
Dear Area Chair,
Thank you for clearly identifying the central issues requiring further evidence. During the discussion period, we added targeted experiments specifically designed to isolate these concerns. We summarize the most decision-relevant evidence below.
1. Transferability and contribution of policy learning
Unseen-family + unseen-node transfer. We hold out 40 MAMO-Complex Diet/integer problems and remove all related OR-Instruct training examples; in the strictest setting, we additionally remove the corresponding formulation nodes during training. With Qθ frozen, COMPASS still achieves 62.5% vs. 47.5% for DAG-Greedy, despite seeing neither the target family nor target actions during training. This rules out simple target-family or template-identity memorization in this controlled setting.
Same-candidate-set policy control. We hold the DAG and Layer-1 candidate actions identical and independently estimate each candidate's downstream utility. DAG-Greedy achieves 66% best-child accuracy, Qθ-only 75%, and COMPASS 87%. Under high ambiguity, the gap widens to 28% / 47% / 69%, showing that the DAG constrains admissible choices, while Qθ learns which choice is useful for the current problem.
2. DAG semantics, construction, and composition
Matched Flat/Tree/DAG control. With identical templates, generator, solver, learned architecture, and inference budget, Flat-, Tree-, and DAG-Learned achieve 54.0%, 58.3%, and 61.6%. Tree and DAG have essentially identical retrieval cost, so the Tree → DAG gain isolates the benefit of preserving multi-parent structural-refinement relations, rather than merely sequential pruning.
Composition audit. We explicitly define μ as a composition of modeling scaffolds rather than a symbolic program union and manually audit 377 retrieved template pairs. 80.6% are complementary and only 3.7% conflicting; importantly, the K=2 gain is concentrated in complementary pairs (+9 net solved instances). We additionally provide a complete problem → DAG → templates → formulation → Gurobi trace and clarify both initial DAG construction and automated expansion.
3. Reliability and grounding of learning signals
Reward-source ablation. Holding all other training conditions fixed, judge-only, execution-only, and mixed training achieve 54.2%, 59.8%, and 61.6%, respectively. Thus, Qθ learns useful retrieval values even without LLM judgment. Execution provides grounded correctness, while the judge improves retrieval-level attribution.
Independent signal validation. Against blinded human annotations, the LLM judge achieves 82% judge-human consensus with 6% calibration error. We also counterfactually audit all 677 LLM-generated expansion nodes: 77.1% have positive utility, 17.4% are neutral, and only 5.5% are harmful. Together, these results support the intended separation: the LLM proposes and provides dense guidance, while execution grounds what the policy learns to reuse.
We also clarify that terminal execution remains an imperfect credit signal; the mixed reward is designed to mitigate, rather than eliminate, downstream attribution noise.
4. Robustness, efficiency, and fairness
Matched inference control. Using the same 261 templates, generator, prompts, repair policy, solver, and inference budget, DAG-Learned remains strongest at 61.6%. Under the identical DAG, replacing heuristic traversal with the learned policy improves MAMO-Complex from 54.5% to 61.6% (17 wins vs. 2 losses, p<0.001), isolating the policy contribution from template content and downstream inference.
Robustness checks. We additionally report five independent training runs, computational cost, and three embedding backbones. Performance varies by only 0.7 macro points across encoders, while multi-seed results remain stable, showing that the gains are not tied to a particular embedding backbone or stochastic run.
Overall, these additions provide a controlled decomposition of COMPASS: the DAG organizes and efficiently narrows compositional modeling knowledge; Qθ learns transferable utility among the remaining choices; and execution feedback grounds this learned knowledge in solver outcomes. We believe these experiments directly address the metareview's central concerns regarding contribution attribution, transferability, graph construction and composition, feedback reliability, robustness, and comparison fairness.
We sincerely thank the Area Chair and reviewers for the constructive feedback, which led us to strengthen both the empirical validation and presentation of COMPASS substantially.