NED-Tree: Bridging the Semantic Gap with Nonlinear Element Decomposition Tree for LLM Nonlinear Optimization Modeling
Organizations: College of System Engineering, National University of Defense Technology · University of Science and Technology of China
Abstract
Automating the translation of Operations Research (OR) problems from natural language to executable models is a critical challenge. While Large Language Models (LLMs) have shown promise in linear tasks, they suffer from severe performance degradation in real-world nonlinear scenarios due to semantic misalignment between mathematical formulations and solver codes, as well as unstable information extraction. In this study, we introduce NED-Tree, a systematic framework designed to bridge the semantic gap. NED-Tree employs (a) a sentence-by-sentence extraction strategy to ensure robust parameter mapping and traceability; and (b) a recursive tree-based structure that adaptively decomposes complex nonlinear terms into solver-compatible sub-elements. Additionally, we present NEXTOR, a novel benchmark specifically designed for complex nonlinear, extensive-constraint OR problems. Experiments across 10 benchmarks demonstrate that NED-Tree establishes a new state-of-the-art with 72.51% average accuracy, NED-Tree is the first framework that drives LLMs to resolve nonlinear modeling difficulties through element decomposition, achieving alignment between modeling semantics and code semantics. The NED-Tree framework and benchmark are accessible in the anonymous repository https://anonymous.4open.science/r/NORA-NEXTOR.
Figures & tables
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
| Dataset | Method | Accuracy | Avg. time (s) | Avg. tokens |
|---|---|---|---|---|
| NL4OPT | CoE | 64.20% 0.003295 | 303.67 | 6965.32 |
| NL4OPT | NED-Tree | 94.35% 0.001705 | 35.21 | 4968.28 |
| NEXTOR-Linear | CoE | 49.38% 0.0007685 | 175.579 | 17795.71 |
| NEXTOR-Linear | NED-Tree | 60.52% 0.0006925 | 105.88 | 19871.77 |
| NEXTOR-Nonlinear | CoE | 39.62% 0.0026039 | 309.73 | 13094.94 |
| NEXTOR-Nonlinear | NED-Tree | 92.11% 0.0019621 | 75.46 | 14571.21 |
Natural Language to Optimization Modeling
Natural language to optimization modeling translates human requirements into formal mathematical models and solver-ready code.
See all 76 papers