SAC-Opt:优化建模中用于迭代修正的语义锚点
SAC-Opt: Semantic Anchors for Iterative Correction in Optimization Modeling
AI总结:
提出SAC-Opt框架,通过语义锚点对齐和选择性修正,在无需额外训练的情况下提升大语言模型生成优化建模代码的语义忠实度,平均建模准确率提升7.7%。
摘要:
大语言模型(LLMs)通过从自然语言描述生成可执行的求解器代码,为优化建模开辟了新范式。尽管前景广阔,现有方法通常仍以求解器驱动:它们依赖单次前向生成,并基于求解器错误信息进行有限的事后修正,这留下了未被检测到的语义错误,这些错误会静默地产生语法正确但逻辑有缺陷的模型。为应对这一挑战,我们提出SAC-Opt,一种反向引导的修正框架,将优化建模建立在问题语义而非求解器反馈之上。在每一步中,SAC-Opt将原始语义锚点与从生成代码中重建的锚点对齐,并仅选择性修正不匹配的组件,从而驱动模型收敛到语义忠实的模型。这种锚点驱动的修正能够对约束和目标逻辑进行细粒度改进,在无需额外训练或监督的情况下增强忠实性和鲁棒性。在七个公共数据集上的实验结果表明,SAC-Opt将平均建模准确率提升了7.7%,在ComplexLP数据集上提升高达21.9%。这些发现强调了在基于LLM的优化工作流中,语义锚点修正对于确保从问题意图到求解器可执行代码的忠实翻译的重要性。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。