paper-with-me

Papers

Grammar-Aware Literate Generative Mathematical Programming with Compiler-in-the-Loop

2026-01-25 · Roberto Rossi, Steven D. Prestwich arxiv

Mathematical programming is widely employed across various sectors - such as logistics, energy, and workforce planning - to model and solve industrial optimisation problems, but its use requires substantial domain expertise. Large language models offer a promising way to translate natural-language problem descriptions into optimisation models, yet existing approaches are costly and generally produce models written in general-purpose computer code (e.g. Python), which can be difficult to inspect, validate, and reuse. In this work, we introduce SyntAGM, a system that generates optimisation models in a readable algebraic modelling language through an iterative generate-compile-assess-revise loop. SyntAGM leverages PyOPL, an OPL-like modelling language compiler designed to provide actionable feedback for iterative model repair. To obtain a valid PyOPL model that matches the problem description, SyntAGM mobilises compiler feedback and an LLM-based alignment judge. In addition, it combines in-context exposure to the target language grammar, and few-shot retrieval of modelling exemplars. Across multiple benchmarks, SyntAGM achieves a more favourable cost-quality trade-off compared to established prompting baselines.

📄 PDF Abstract BibTeX arXiv:2601.17670

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Renaissance of Literate Programming in the Era of LLMs: Enhancing LLM-Based Code Generation in Large-Scale Projects

2024-12-25 · Wuyang Zhang, Yansong Li, Zeyu Dong, Yu Wu 외

Large Language Models (LLMs) have helped programmers increase efficiency through code generation, comprehension, and repair. However, their application to large-scale projects remains challenging due to complex interdepe…

Code GenerationPrompt Engineering

AI Coders Are Among Us: Rethinking Programming Language Grammar Towards Efficient Code Generation

2024-04-25 · Zhensu Sun, Xiaoning Du, Zhou Yang, Li Li 외

Artificial Intelligence (AI) models have emerged as another important audience for programming languages alongside humans and machines, as we enter the era of large language models (LLMs). LLMs can now perform well in co…

Code GenerationMath

Span-Based LCFRS-2 Parsing

2020-07-01 · WS 2020 7 · Milo{\v{s}} Stanojevi{\'c}, Mark Steedman

The earliest models for discontinuous constituency parsers used mildly context-sensitive grammars, but the fashion has changed in recent years to grammar-less transition-based parsers that use strong neural probabilistic…

Sentence

Natural Language Outlines for Code: Literate Programming in the LLM Era

2024-08-09 · Kensen Shi, Deniz Altınbüken, Saswat Anand, Mihai Christodorescu 외

We propose using natural language outlines as a novel modality and interaction surface for providing AI assistance to developers throughout the software development process. An NL outline for a code function comprises mu…

Code GenerationCode SearchMalware Detection

Doc2Spec: Synthesizing Formal Programming Specifications from Natural Language via Grammar Induction

2026-01-30 · Shihao Xia, Mengting He, Haomin Jia, Linhai Song arxiv

Ensuring that API implementations and usage comply with natural language programming rules is critical for software correctness, security, and reliability. Formal verification can provide strong guarantees but requires p…