ISoLA & AISoLA 2026

International Symposium on Leveraging Applications of Formal Methods, Verification, and Validation • Kos, Greece

Talk

Towards Automata-Based Steering of Large Language Models for Diverse Structured Generation

Time: Wednesday, 28.10

Room: Room 2

Authors: Meng Sun

Abstract: Large language models (LLMs) are increasingly tasked with generating structured outputs. However, structured generation methods often lack output diversity, which is a critical limitation that has been confirmed in our preliminary study. In this work, we propose an approach to enhance diversity in automaton-based structured generation. It utilizes automata traversal history to steer LLMs towards novel structural patterns. Evaluations show our method significantly improves structural and content diversity while maintaining comparable generation efficiency. Furthermore, case studies show the effectiveness of the method in generating diverse test cases for testing open-source libraries.