COMPASS: Composable Policy-Amortized Structured Search for LLM-Based Optimization Modeling
Nguyen Le Minh Hoang, Van D Cuong, Bui T Duc, Huynh Thi Thanh Binh
NeurIPS page · OpenReview · Open on the map
Category: LLM Agents, Evals & Benchmarks › LLM-Driven Tool-Use and Planning · Type: new method · Keywords: template retrieval, policy amortization, graph navigation, deep reinforcement learning, LLM-based optimization, semantic embedding
Summary
COMPASS introduces a policy-amortized framework that learns a reusable traversal policy for retrieving optimization templates in LLM-based solver modeling, improving retrieval performance on complex and mixed-category problems.
Explained to a 5-year-old
A system helps a language model turn math problems into code by picking the right pieces of code. Instead of using fixed rules, it learns from its mistakes and successes, like a game that gets better each time you play. It arranges the pieces of code like a tree, so it can walk through them step by step. A learning part watches whether the chosen pieces work and tells the system which path to take next. This makes the computer more reliable when it writes code for new and tricky math problems.
Explained to a 5-year-old, longer
Imagine you have a big box of puzzle pieces that can be used to build different math solutions. A computer program looks at a new math problem and needs to choose which pieces to use. Instead of always following the same rule to pick pieces, it watches what happens when it uses each piece and learns from its successes and failures. Over time, it becomes better at picking the right pieces quickly. The pieces are organized in a tree structure, so the program can move from one piece to the next in a logical order. A special learning brain watches whether the chosen pieces lead to correct solutions and gives hints about which direction to go next. This way, the program can handle new and more complicated problems without needing someone to manually tell it what to do. It also can add new puzzle pieces later, and the program will know how to use them because they are described in the same language as the old pieces. As a result, the computer becomes more reliable and can generate better code for solving math problems.
For a technical reader
COMPASS treats template retrieval as a sequential decision problem over a directed acyclic graph, learning a reusable policy via a deep Q-network that receives feedback from template judgments and execution results. It embeds problem descriptions and template nodes in a shared semantic space, enabling zero-cost integration of new templates. Experiments across multiple LLM backbones and optimization benchmarks show consistent gains over heuristic structured retrieval, especially on complex and mixed-category tasks.
Problem
Existing LLM-based optimization modeling relies on static or LLM-driven template retrieval rules that cannot learn from past successes and failures, limiting reliability. This creates a need for a dynamic, learnable retrieval policy that can improve over time.
Method
The approach formulates template retrieval as a sequential decision process over a directed acyclic graph representing the template library, and learns a traversal policy using a deep Q-network that receives feedback from template-level judgments and execution outcomes. It also embeds problem descriptions and template nodes in a shared semantic space to allow extensible retrieval without redefining the action space.
Results
The approach shows consistent improvements over heuristic structured retrieval, especially on complex and mixed-category optimization problems.
Contributions
It introduces a policy-amortized framework that learns a reusable traversal policy for template retrieval, models the template library as a directed acyclic graph, and supports extensible retrieval via shared semantic embeddings.
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction