用大模型自动检查优化问题公式是否等价,提升可靠性。
EquivaMap: Leveraging LLMs for Automatic Equivalence Checking of Optimization Formulations
- 基于变量映射思想,设计可验证的等价判定准则
- 在自建数据集上准确率显著超越现有方法
- 适合优化辅助系统、算法开发与教学场景
组合优化中的一个基础问题是识别等价的公式表达。随着优化协作者从自然语言生成问题公式,自动化等价检查需求日益增长,但当前方法依赖简单启发式规则,难以可靠判断等价性。受卡普归约启发,本文提出准卡普等价性(Quasi-Karp equivalence),一种基于决策变量间映射存在的形式化等价判定标准。我们构建EquivaMap框架,利用大语言模型自动发现此类映射,实现可扩展、可靠的等价性检查,并通过验证阶段确保映射解保持可行性和最优性,无需额外调用求解器。为评估该方法,我们构建了首个开源等价优化公式数据集EquivaFormulation,通过添加松弛变量或有效不等式等变换生成。实证表明,EquivaMap显著优于现有方法,在正确识别公式等价性方面取得显著提升。
原文摘要 · Abstract (English)
A fundamental problem in combinatorial optimization is identifying equivalent formulations. Despite the growing need for automated equivalence checks -- driven, for example, by optimization copilots, which generate problem formulations from natural language descriptions -- current approaches rely on simple heuristics that fail to reliably check formulation equivalence. Inspired by Karp reductions, in this work we introduce Quasi-Karp equivalence, a formal criterion for determining when two optimization formulations are equivalent based on the existence of a mapping between their decision variables. We propose EquivaMap, a framework that leverages large language models to automatically discover such mappings for scalable, reliable equivalence checking, with a verification stage that ensures mapped solutions preserve feasibility and optimality without additional solver calls. To evaluate our approach, we construct EquivaFormulation, the first open-source dataset of equivalent optimization formulations, generated by applying transformations such as adding slack variables or valid inequalities to existing formulations. Empirically, EquivaMap significantly outperforms existing methods, achieving substantial improvements in correctly identifying formulation equivalence.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。