Automata-Based Steering of Large Language Models for Diverse Structured Generation
By: Xiaokun Luan , Zeming Wei , Yihao Zhang and more
Potential Business Impact:
Creates more varied computer-generated text.
Large language models (LLMs) are increasingly tasked with generating structured outputs. While structured generation methods ensure validity, they often lack output diversity, a critical limitation that we confirm in our preliminary study. We propose a novel method to enhance diversity in automaton-based structured generation. Our approach 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, we conduct a case study showcasing the effectiveness of our method in generating diverse test cases for testing open-source libraries.
Similar Papers
LLM-Based Approach for Enhancing Maintainability of Automotive Architectures
Software Engineering
Makes car software updates easier and faster.
Fully Automated Generation of Combinatorial Optimisation Systems Using Large Language Models
Software Engineering
Computers automatically build smart helpers for businesses.
Large Language Models for Unit Test Generation: Achievements, Challenges, and the Road Ahead
Software Engineering
Helps computers write better code tests automatically.