SAC-Opt: Semantic Anchors for Iterative Correction in Optimization Modeling

Yansen Zhang, Qingcan Kang, Yujie Chen, Yufei Wang, Xiongwei Han +3 more
9/28/2025
cs.AIcs.CLcs.PL

No confident code implementation found for this paper.

Abstract

Large language models (LLMs) have opened new paradigms in optimization modeling by enabling the generation of executable solver code from natural language descriptions. Despite this promise, existing approaches typically remain solver-driven: they rely on single-pass forward generation and apply limited post-hoc fixes based on solver error messages, leaving undetected semantic errors that silently produce syntactically correct but logically flawed models. To address this challenge, we propose SAC-Opt, a backward-guided correction framework that grounds optimization modeling in problem semantics rather than solver feedback. At each step, SAC-Opt aligns the original semantic anchors with those reconstructed from the generated code and selectively corrects only the mismatched components, driving convergence toward a semantically faithful model. This anchor-driven correction enables fine-grained refinement of constraint and objective logic, enhancing both fidelity and robustness without requiring additional training or supervision. Empirical results on seven public datasets demonstrate that SAC-Opt improves average modeling accuracy by 7.7%, with gains of up to 21.9% on the ComplexLP dataset. These findings highlight the importance of semantic-anchored correction in LLM-based optimization workflows to ensure faithful translation from problem intent to solver-executable code.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zhang2025sacopt,
  title  = {SAC-Opt: Semantic Anchors for Iterative Correction in Optimization Modeling},
  author = {Yansen Zhang and Qingcan Kang and Yujie Chen and Yufei Wang and Xiongwei Han and Tao Zhong and Mingxuan Yuan and Chen Ma},
  year   = {2025},
  eprint = {2510.05115},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.05115v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2510.05115.svg)](https://codeofpaper.com/paper/2510.05115)

Discussion