FASTRIC: Prompt Specification Language for Verifiable LLM Interactions
Wen-Long Jin

TL;DR
FASTRIC introduces a natural language prompt specification language that makes finite state machines explicit, enabling verification of large language model interactions and establishing a systematic engineering approach for multi-turn protocols.
Contribution
The paper presents FASTRIC, a novel prompt specification language that leverages LLMs to verify multi-turn interactions against formal FSM-based specifications, with empirical analysis of optimal specification formality levels.
Findings
Optimal specification formality depends on model capacity.
DeepSeek-V3.2 achieves perfect conformance at certain formal levels.
Model-specific 'Goldilocks zones' for specification formality.
Abstract
Large Language Models (LLMs) execute complex multi-turn interaction protocols but lack formal specifications to verify execution against designer intent. We introduce FASTRIC, a Prompt Specification Language that makes implicit Finite State Machines (FSMs) explicit in natural language prompts, enabling conformance verification through execution trace analysis. The LLM serves as intelligent execution agent: interpreting designer-encoded FSMs to execute specified behavioral roles. Unlike symbolic specification languages requiring parsers and compilers, FASTRIC leverages LLMs as unified infrastructure-simultaneously parser, interpreter, runtime environment, and development assistant. FASTRIC guides designers to articulate seven FSM elements (Final States, Agents, States, Triggers, Roles, Initial State, Constraints) structuring multi-turn interactions. Specification formality-ranging from…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsModel-Driven Software Engineering Techniques · Machine Learning in Materials Science · Software Engineering Research
