{"id":{"repo_id":"texas","oai_identifier":"oai:repositories.lib.utexas.edu:2152/137360"},"canonical_url":"https://search.ndltd.org/etd/texas/oai:repositories.lib.utexas.edu:2152/137360","repository":{"repo_id":"texas","name":"University of Texas","base_url":"https://repositories.lib.utexas.edu/server/oai/request"},"display":{"title":"Understanding LLM behavior in alloy specification tasks","abstract":"Large 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.","abstract_html":"Large 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.","abstract_has_math":false,"creators":["Yin, Chenbo"],"institution":"The University of Texas at Austin","degree_name":"Master of Science in Engineering","degree_level":"MASTERS","degree_discipline":"Electrical and Computer Engineering","degree_department":"Electrical and Computer Engineering","school":null,"contributors":[],"advisors":["Khurshid, Sarfraz"],"committee_chairs":[],"committee_members":["Garg, Vijay"],"year":2026,"date_issued":"2026-05","date_published":"2026-05","updated_at":"2026-11-20T22:02:00Z","subjects":["Automated repair","Specifications","Declarative programming","Alloy","LLMs"],"languages":[],"rights":[],"rights_urls":[],"identifier_entries":[{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/2152/137360"],"render_values":[{"text":"https://hdl.handle.net/2152/137360","href":"https://hdl.handle.net/2152/137360","code":true}]}],"person_identifier_entries":[]},"links":{"outbound_url":"https://doi.org/10.26153/tsw/64652","outbound_label":"DOI","outbound_source":"dc:identifier.uri","record_url":"https://doi.org/10.26153/tsw/64652","record_label":"Repository record","record_kind":"doi","record_source":"dc:identifier.uri","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Atexas%3Aoai%3Arepositories.lib.utexas.edu%3A2152%2F137360","prefix":"oai_dc"},"source_record":{"url":"https://repositories.lib.utexas.edu/server/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Arepositories.lib.utexas.edu%3A2152%2F137360","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.advisor","label":"Advisor","values":["Khurshid, Sarfraz"]},{"key":"dc:contributor.committeemember","label":"Committee Member","values":["Garg, Vijay"]},{"key":"dc:contributor.department","label":"Department","values":["Electrical and Computer Engineering"]},{"key":"dc:creator","label":"Author","values":["Yin, Chenbo"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2026-08-28T14:18:09Z"]},{"key":"dc:date.created","label":"Dc Date Created","values":["2026-05"]},{"key":"dc:date.issued","label":"Date","values":["2026-05"]},{"key":"dc:date.submitted","label":"Dc Date Submitted","values":["May 2026"]},{"key":"dc:date.updated","label":"Dc Date Updated","values":["2026-08-28T14:18:09Z"]},{"key":"dc:type","label":"Dc Type","values":["Thesis","text"]},{"key":"thesis:degree_college","label":"Thesis Degree College","values":["College of Engineering"]},{"key":"thesis:degree_department","label":"Department","values":["Electrical and Computer Engineering"]},{"key":"thesis:degree_discipline","label":"Discipline","values":["Electrical and Computer Engineering"]},{"key":"thesis:degree_level","label":"Degree Level","values":["MASTERS"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Master of Science in Engineering"]},{"key":"thesis:institution_name","label":"Thesis Institution Name","values":["The University of Texas at Austin"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["Automated repair","Specifications","Declarative programming","Alloy","LLMs"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/2152/137360","https://doi.org/10.26153/tsw/64652"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["Large 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."]},{"key":"dc:format.mimetype","label":"Dc Format Mimetype","values":["application/pdf"]},{"key":"dc:title","label":"Title","values":["Understanding LLM behavior in alloy specification tasks"]},{"key":"others:access_status","label":"Others Access Status","values":["open.access"]}]}],"canonical_facts":{"dc:contributor.advisor":["Khurshid, Sarfraz"],"dc:contributor.committeemember":["Garg, Vijay"],"dc:contributor.department":["Electrical and Computer Engineering"],"dc:creator":["Yin, Chenbo"],"dc:date.accessioned":["2026-08-28T14:18:09Z"],"dc:date.created":["2026-05"],"dc:date.issued":["2026-05"],"dc:date.submitted":["May 2026"],"dc:date.updated":["2026-08-28T14:18:09Z"],"dc:description.abstract":["Large 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."],"dc:format.mimetype":["application/pdf"],"dc:identifier.uri":["https://hdl.handle.net/2152/137360","https://doi.org/10.26153/tsw/64652"],"dc:subject":["Automated repair","Specifications","Declarative programming","Alloy","LLMs"],"dc:title":["Understanding LLM behavior in alloy specification tasks"],"dc:type":["Thesis","text"],"others:access_status":["open.access"],"thesis:degree_college":["College of Engineering"],"thesis:degree_department":["Electrical and Computer Engineering"],"thesis:degree_discipline":["Electrical and Computer Engineering"],"thesis:degree_level":["MASTERS"],"thesis:degree_name":["Master of Science in Engineering"],"thesis:institution_name":["The University of Texas at Austin"]},"updated_at":"2026-11-20T22:02:00Z"}