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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Zhang, Yansen, Kang, Qingcan, Chen, Yujie, Wang, Yufei, Han, Xiongwei, Zhong, Tao, Yuan, Mingxuan, Ma, Chen
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913171247202304
author Zhang, Yansen
Kang, Qingcan
Chen, Yujie
Wang, Yufei
Han, Xiongwei
Zhong, Tao
Yuan, Mingxuan
Ma, Chen
author_facet Zhang, Yansen
Kang, Qingcan
Chen, Yujie
Wang, Yufei
Han, Xiongwei
Zhong, Tao
Yuan, Mingxuan
Ma, Chen
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2510_05115
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle SAC-Opt: Semantic Anchors for Iterative Correction in Optimization Modeling
Zhang, Yansen
Kang, Qingcan
Chen, Yujie
Wang, Yufei
Han, Xiongwei
Zhong, Tao
Yuan, Mingxuan
Ma, Chen
Artificial Intelligence
Computation and Language
Programming Languages
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.
title SAC-Opt: Semantic Anchors for Iterative Correction in Optimization Modeling
topic Artificial Intelligence
Computation and Language
Programming Languages
url https://arxiv.org/abs/2510.05115