Using Small LLMs to Translate Natural Language Problem Formulations into Optimization Models: A Graph-Based Approach [14:40 - 15:05]
Author: Hermann Gerzen
Co-author: Michael Römer
Translating natural language into formal optimization models is an iterative process traditionally constrained by the need for expert intervention. Although Large Language Models (LLMs) promise to automate this pipeline, their lack of structured domain knowledge often leads to unsatisfactory and computationally expensive results. To bridge this gap, we introduce a novel framework that integrates LLMs with the Graph-based LLM-Wiki architecture recently introduced by Andrej Karpathy. Unlike traditional prompting, our approach utilizes this graph-based knowledge base to ground linguistic inputs in formal relational structures. This allows the model to resolve ambiguities and maintain constraint integrity without requiring massive scale models. We demonstrate that this method enhances the accuracy of locally deployed LLMs, making automated optimization formulation more accessible and reliable for real-world applications.