- Rating
- 4
- Clarity
- 3
- Confidence
- 3
- Originality
- 2
- Quality
- 3
- Significance
- 2
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.
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.
Final justification
The author's response addresses my concerns, but it needs to be explained in detail in the revised paper.
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 ev.
The last row is the critical test: Qθ 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, 72.5→67.5→62.5, 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 Qθ 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.
Because the graph and available actions are identical, the 66% → 75% gain from DAG-Greedy to Qθ-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:
The mechanism is clear: the DAG removes implausible actions; Qθ 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 Qθ learns executable utility or merely distills LLM preference by changing only the reward source:
Execution-only clearly outperforms judge-only and nearly matches COMPASS, showing that Qθ learns useful retrieval values without LLM judgment. Q2 further shows that Qθ-only outperforms LLM-based selection on identical candidates.
Thus, the roles are distinct: the LLM proposes and guides; execution grounds what Qθ learns to reuse.
W5: Reward Design
COMPASS combines two complementary signals: Rexec provides grounded but noisy credit, since failures may arise beyond retrieval, while Rjudge provides retrieval-specific but less grounded credit. We isolate their roles by varying only R=αRjudge+(1−α)Rexec, with all other training conditions fixed.
The consistent optimum at α=0.3 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 Qθ.
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 t≥1600 and ϵt≤0.4. 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 K=∣L(p)∣, the number of templates entering μ, while fixing all other components:
K=2 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 K=2 template pairs. K=2-only denotes problems solved with K=2 but not K=1, and vice versa.
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 Δ(v)=Acc+v−Acc−v, where Acc+v evaluates the affected problems with node v included, and Acc−v evaluates the same problems with node v removed.
classifying nodes as useful (Δ>0), neutral (Δ=0), or harmful (Δ<0).
Thus, 77.1% of expansions provide measurable utility, while only 5.5% are harmful. Harmful nodes subsequently receive lower Qθ 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 (N=211), 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).
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, p<0.001), 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.