KIT | KIT-Bibliothek | Impressum | Datenschutz

Taming Large Language Models via Scripted Interactions

Scotti, Vincenzo ORCID iD icon 1; Keim, Jan ORCID iD icon 1; Hey, Tobias ORCID iD icon 1; Koziolek, Anne ORCID iD icon 1; Mirandola, Raffaela 1
1 Institut für Informationssicherheit und Verlässlichkeit (KASTEL), Karlsruher Institut für Technologie (KIT)

Abstract:

We are currently experiencing a bloom of Artificial Intelligence (AI)-powered software thanks to the development and advancements of
Large Language Models (LLMs). Despite the applications of these LLMs being impressive and countless, these tools alone are unreliable. In fact, the possibility of LLMs generating faulty or hallucinated content makes them unsuitable for automating workflows and pipelines. In this context, Software Engineering (SE) comes in handy, offering a wide variety of formal tools to specify, verify and validate software behaviour. These SE tool can be used to describe constraints over an LLM output and, thus, provide better guarantees on the generated content. In this paper, we argue how the development of a Domain Specific Language (DSL) for scripting interactions LLMs, namely LLM Scripting Language (LSL), could be the key to improve AI-based applications. The idea in the long term is to make the interaction with LLMs programmable, abstracting from their implementation and training procedure. Nowadays, LLMs and LLM-based software are still lacking in terms of reliability, robustness, and trustworthiness. With LSL, we aim at tackling these deficiencies by looking into approaches to control the output of LLMs, to impose a structure to the interaction and to combine these ideas with verification, validation, and explainability.


Volltext §
DOI: 10.5445/IR/1000181619
Veröffentlicht am 26.05.2025
Cover der Publikation
Zugehörige Institution(en) am KIT Institut für Informationssicherheit und Verlässlichkeit (KASTEL)
Publikationstyp Forschungsbericht/Preprint
Publikationsjahr 2025
Sprache Englisch
Identifikator KITopen-ID: 1000181619
HGF-Programm 46.23.01 (POF IV, LK 01) Methods for Engineering Secure Systems
Verlag Karlsruher Institut für Technologie (KIT)
Schlagwörter SE4AI, LLM, LSL, DSL, NLP
Nachgewiesen in OpenAlex
KIT – Die Universität in der Helmholtz-Gemeinschaft
KITopen Landing Page