The University of Texas at Austin
Understanding LLM behavior in alloy specification tasks
Abstract
dc:description.abstractLarge language models (LLMs) have shown strong potential in supporting software specification tasks, yet their behavior across different stages of the workflow is still not well understood. This thesis presents a systematic study of LLMs on a set of Alloy-based tasks, including generation from natural language, Alloy-to-Alloy transformations, rewriting, automated repair, and translation to executable Java predicates. Our results show that LLM performance depends strongly on the form of the input. When only natural language descriptions are provided, the model must reconstruct both structure and semantics, which leads to higher variability and lower reliability. Test suites help in this setting by constraining candidate solutions. When a complete Alloy model is available, the task becomes different. Instead of reconstructing structure, the model operates on an existing representation and transforms it. Rewriting preserves the correctness or incorrectness of the input, and repair outcomes are largely determined by the original model structure. Translation tasks are even more stable, as they primarily require mapping an existing structure into another form. Additional guidance such as test suites or fault localization feedback has limited impact in these cases. The input model already provides strong structural information, leaving little room for weaker signals to change the outcome. These results suggest that LLMs are most effective when operating on well-formed structured inputs. Tasks that require reconstructing structure from incomplete or ambiguous inputs remain more challenging. The findings provide insights into how structural information shapes LLM behavior and can inform the design of more effective LLM-assisted specification workflows.
Degree
thesis:*- Name thesis:degree_name
- Master of Science in Engineering
- Level thesis:degree_level
- MASTERS
- Discipline thesis:degree_discipline
- Electrical and Computer Engineering
- Department thesis:degree_department
- Electrical and Computer Engineering
- Grantor
- The University of Texas at Austin
- Year dc:date.issued
- 2026
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Yin, Chenbo
- Advisor dc:contributor.advisor
-
- Khurshid, Sarfraz
- Committee member dc:contributor.committeemember
-
- Garg, Vijay
Subjects
dc:subject × 5Identifiers
dc:identifier.*- Identifier URI
- https://hdl.handle.net/2152/137360