LLASP: Fine-tuning Large Language Models for Answer Set Programming
Erica Coppolillo, Francesco Calimeri, Giuseppe Manco, Simona Perri and, Francesco Ricca

TL;DR
This paper introduces LLASP, a fine-tuned model designed to improve the generation of Answer Set Programming code by leveraging a specialized dataset and fine-tuning techniques, significantly enhancing semantic correctness.
Contribution
The paper presents a novel fine-tuning approach with a dedicated ASP dataset, resulting in superior ASP code generation compared to general LLMs.
Findings
LLASP outperforms non-fine-tuned models in ASP code quality
Fine-tuning improves semantic accuracy of generated ASP programs
General LLMs show inadequate performance in ASP code generation
Abstract
Recently, Large Language Models (LLMs) have showcased their potential in various natural language processing tasks, including code generation. However, while significant progress has been made in adapting LLMs to generate code for several imperative programming languages and tasks, there remains a notable gap in their application to declarative formalisms, such as Answer Set Programming (ASP). In this paper, we move a step towards exploring the capabilities of LLMs for ASP code generation. First, we perform a systematic evaluation of several state-of-the-art LLMs. Despite their power in terms of number of parameters, training data and computational resources, empirical results demonstrate inadequate performances in generating correct ASP programs. Therefore, we propose LLASP, a fine-tuned lightweight model specifically trained to encode fundamental ASP program patterns. To this aim, we…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsMulti-Agent Systems and Negotiation · Logic, Reasoning, and Knowledge · Topic Modeling
MethodsSparse Evolutionary Training
