Code generation through Large Language Models (LLMs) has made significant progress in recent years. However, when the code generation involves a lesser-known Domain-Specific Language (DSL), a standard tool in software development for cyber-physical systems, LLMs’ performance significantly decreases. We present an exploratory study assessing LLMs’ performance in generating LIrAs (Language for Interactive Agents) code, a DSL for robotic and multi-agent tasks specification. This work is a stepping stone towards improving LLM-generated DSL code through iterative specification repair techniques driven by formal verification results.

Preliminary Study of DSL Code Generation for Robotics with LLMs

A. Tagliaferro;L. Lestingi;Matteo GIovanni Rossi
2025-01-01

Abstract

Code generation through Large Language Models (LLMs) has made significant progress in recent years. However, when the code generation involves a lesser-known Domain-Specific Language (DSL), a standard tool in software development for cyber-physical systems, LLMs’ performance significantly decreases. We present an exploratory study assessing LLMs’ performance in generating LIrAs (Language for Interactive Agents) code, a DSL for robotic and multi-agent tasks specification. This work is a stepping stone towards improving LLM-generated DSL code through iterative specification repair techniques driven by formal verification results.
2025
Towards Autonomous Robotic Systems: 26th Annual Conference, TAROS 2025, York, UK, August 20–22, 2025, Proceedings
Domain-Specific Languages (DSLs), DSL Code Generation, Multi-Agent Systems, Large Language Models
File in questo prodotto:
File Dimensione Formato  
978-3-032-01486-3_22.pdf

accesso aperto

: Publisher’s version
Dimensione 945.18 kB
Formato Adobe PDF
945.18 kB Adobe PDF Visualizza/Apri

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11311/1295857
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus ND
  • ???jsp.display-item.citation.isi??? ND
  • OpenAlex ND
social impact