Formal specifications offer strong guarantees, but remain costly to write manually. Recent LLM-based approaches automate this by inferring specifications from source code, yet their reliance on white-box access poses barriers to industrial adoption due to intellectual property risks and deployment costs. Our approach uses LLMs to infer candidate specifications solely from test code and dynamic execution traces: the LLM observes only the program interface, selected inputs, and corresponding outputs or state changes, while the implementation internals remain hidden. Candidate specifications are validated locally using bounded model checking, with feedback guiding iterative refinement. Initial results on the SpecGenBench benchmark suggest that tests can guide LLMs towards meaningful Java Modeling Language specifications, while also highlighting checker compatibility and diagnostic feedback as key challenges for reliable refinement.
| Zugehörige Institution am KIT | Institut für Technik der Informationsverarbeitung (ITIV) |
|---|---|
| Sprache | englisch |
| KITopen-ID | 1000199048 |
| Schlagwörter | Test-Derived Formal Specifications, LLM, BMC |
| Verlag | Association for Computing Machinery (ACM) |
| ISBN des Proceedingsbands | 979-8-4007-2882-2 |
| Veranstaltung | 41st IEEE/ACM International Conference on Automated Software Engineering (ASE), München, Deutschland, 12. – 16.10.2026 |
| Externe Relationen | Siehe auch |
| Nachgewiesen in | Scopus OpenAlex |
| Projekt | SFB 1608/1, 501798263 (DFG, DFG KOORD, SFB 1608) |