arXiv:2610.41909cs.AIOct 2026

Manuscript Offprint

arXiv:2610.41909

Structure-Aware Skill Retrieval and Arbitration for Optimization Modeling

Anran Liu, Benzhao Hou, Zongsheng Cao, Daichao Wang, Lang Chen, Shitong Chen

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Large Language Models (LLMs) can turn natural-language optimization tasks into solver-checked answers, but current agents remain brittle under narrative rewrites and often store reusable experience at the instance level. We introduce ARCHOR, an archetype-centric skill agent that builds on OPT-SKILLS by adding two retrieval-focused modules. Centroid-Aware Representation Learning (CARL) refines the ordering of cached skill representations through a low-rank prototype residual. Signature-Guided Retrieval (S3RS^3R) attaches open-dimensional structural signatures to skills, prioritizes candidates by weighted Jaccard overlap, and bounds semantic re-ranking to a top-KK set. A baseline-preserving arbitration rule determines when the structural route should replace the original selector. Experiments on the same five optimization benchmarks with the same DeepSeek-V4.1-Flash backbone and the unchanged released skill library show that these access-level changes produce consistent improvements in solver-verified accuracy.

1 Introduction

Operational optimization underlies many industrial decision pipelines, including routing, production scheduling, energy dispatch, and workforce planning. Turning these business descriptions into executable models is still a labor-intensive expert task: practitioners must identify decision variables, formalize constraints, choose objectives, and translate the formulation into solver code. Large language models (LLMs) have therefore become an attractive interface for optimization modeling. Recent systems improve this interface through multi-agent orchestration (AhmadiTeshnizi, Gao, and Udell 2024; Xiao et al. 2024), domain-oriented fine-tuning (Jiang et al. 2025a; Huang et al. 2025a), or reinforcement learning with solver feedback (Chen et al. 2025; Ding et al. 2026).

However, strong benchmark accuracy does not by itself solve the reuse problem that matters in practice. A deployed modeling agent should recognize that two differently narrated requests may instantiate the same optimization archetype, route repeated instances through a stable workflow, and extend its library when the distribution shifts. Recent experience-based systems move in this direction: AlphaOPT (Kong et al. 2025) maintains solver-verified insights,

while LEAN-LLM-OPT (Liang et al. 2026) retrieves structured exemplars to seed workflow construction. Their stored artifacts are still largely instance-centered, so surface narratives, noisy descriptions, and missing coverage can distort retrieval even when the underlying mathematical structure is familiar.

The central difficulty is that optimization skills are defined by structure rather than by wording alone. Two assignment problems can mention different commodities, agents, and budgets while requiring the same variable pattern and constraint family; conversely, two descriptions can share terms such as “distribute” or “mix” while calling for incompatible formulations. A raw cached vector and a natural-language skill card have no explicit reason to preserve these archetype boundaries, leaving robust generalization and in-distribution routing unresolved. A convincing skill-reuse system should therefore show that its retrieval space and selection rules align with optimization structure.

We address this issue with ARCHOR, an archetype-centric skill agent for LLM-based optimization modeling. Rather than modifying skill construction, ARCHOR starts from the released OPTSKILLS library, whose workflow-level skills consolidate successful and failed trajectories for optimization archetypes. The proposed system changes how a query is routed to those skills: CARL refines cached skill-vector ordering, S3RS^3R imposes structural filtering, and baseline-preserving arbitration retains the original route when structural coverage is uncertain. Two lightweight modules make this archetype view operational. Centroid-Aware Representation Learning (CARL) transforms cached skill vectors with archetype prototypes and a low-rank residual so that neighboring skills are ordered by structural archetype rather than surface wording. Signature-Guided Retrieval (S3RS^3R) attaches an open-dimensional structural signature to every skill, with attributes such as problem_class, var_pattern, and constraint_family. At test time, a query signature prioritizes compatible candidates by weighted overlap before LLM semantic re-ranking over a bounded candidate set. Because neither signal is reliable on every cross-domain query, ARCHOR treats the inherited selector as a fallback and overrides it only when inference-time evidence supports the structural route.

Both components are needed because a fixed solver can be effective for one family of optimization structures yet

*Corresponding author: Shenzhen University.

fail when the variable pattern or constraint family changes. ARCHOR therefore represents the problem structure, keeps a portfolio of complementary workflow skills, and routes each query to the most compatible workflow. CARL improves the ordering of cached archetype representations, while S³R provides a discrete guardrail against semantically plausible but structurally wrong skills. Table 4 further validates the representation-level improvement on the learned skill library.

Empirically, with the same DeepSeek-V4.1-Flash backbone (DeepSeek-AI 2026), ARCHOR produces consistent end-to-end accuracy improvements across five complementary benchmarks, while system-level and module ablations separate retrieval quality, routing behavior, and arbitration safety. Our contributions are threefold:

  1. We identify retrieval as the limiting component of archetype-centric skill libraries: raw cached skill vectors can blur archetype boundaries, while semantics-only skill cards can make structurally incompatible workflows appear applicable.

  2. We introduce two complementary modules that operationalize this view: one sharpens cached-vector neighborhoods, and the other records auditable structural attributes and uses their overlap to restrict the candidate set. A baseline-preserving arbitration rule prevents incomplete signature coverage from discarding reliable baseline skills.

  3. We evaluate ARCHOR across five benchmarks with the same backbone and released skill library; system-level ablations, module ablations, and leave-one-out retrieval diagnostics show when structural routing helps and when it must fall back to the baseline.

References (35)