ChopChop: a Programmable Framework for Semantically Constraining the Output of Language Models
Not on the map. Why?
Abstract (arXiv)
Language models (LMs) can generate code but cannot guarantee its correctnessunicodex2014often producing outputs that violate type safety, program invariants, or other semantic properties. Constrained decoding offers a solution by restricting generation to only produce programs that satisfy user-defined properties. However, existing methods are either limited to syntactic constraints or rely on brittle, ad hoc encodings of semantic properties over token sequences rather than program structure. We present ChopChop, the first programmable framework for constraining the output of LMs with respect to semantic properties. ChopChop introduces a principled way to construct constrained decoders based on analyzing the space of programs a prefix represents. It formulates this analysis as a realizability problem which is solved via coinduction, connecting token-level generation with structural reasoning over programs. We demonstrate ChopChop's generality by using it to enforce (1) equivalence to a reference program and (2) type safety. Across a range of models and tasks, ChopChop improves success rates while maintaining practical decoding latency.
Key facts. Cited by 15 papers in the map (data through 14 Oct 2026). First posted on arXiv 30 Aug 2025.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2026: 15.
15 papers.
Sort:
By area:
- 2026SEVerA: Verified Synthesis of Self-Evolving Agentscited by 8
- 2026Neuro-Symbolic Synergy for World Modelingcited by 6
- 2026The Alignment Problem in Constrained Code Generationcited by 1
- 2026LLMs + Security = Troublecited by 0
- 2026Hydra: Efficient, Correct Code Generation via Checkpoint-and-Rollback Supportcited by 0
- 2026Learning the Error Patterns of Language Modelscited by 0
- 2026Projectional Decoding: Towards Semantic-Aware LLM Generationcited by 0
- 2026Generative Compilation: On-the-Fly Compiler Feedback as AI Generates Codecited by 0
- 2026Decode-Time Grammars: Constrained LLM Generation over a Refinement Order of Grammar Fragmentscited by 0
- 2026Specification-Guided Synthesis of Deadlock-Free Communication Protocol Refinements with Large Language Modelscited by 0
- 2026SafeQL: Search-based Refinement for Safe and Efficient LLM-based Text-to-SQLcited by 0
- 2026Semantic Prefix Oracles for LLM Decoding: Contracts and Differential Validationcited by 0
3 more
- 2026Constraint-Aware Trainingcited by 0
- 2026Structural Automata for Neural Semantic Parsingcited by 0
- 2026Nudge the Judge: Uncovering Program Decision Hijacking in Real-World Jev Applicationscited by 0
- 2026Nudge the Judge: Uncovering Program Decision Hijacking in Real-World Jev Applications13 Oct 2026
- 2026Structural Automata for Neural Semantic Parsing9 Oct 2026
- 2026Constraint-Aware Training2 Oct 2026
- 2026Semantic Prefix Oracles for LLM Decoding: Contracts and Differential Validation28 Sep 2026
- 2026SafeQL: Search-based Refinement for Safe and Efficient LLM-based Text-to-SQL10 Aug 2026
- 2026Specification-Guided Synthesis of Deadlock-Free Communication Protocol Refinements with Large Language Models30 Jul 2026
- 2026Decode-Time Grammars: Constrained LLM Generation over a Refinement Order of Grammar Fragments20 Jul 2026
- 2026Generative Compilation: On-the-Fly Compiler Feedback as AI Generates Code15 Jul 2026
- 2026The Alignment Problem in Constrained Code Generation19 Jun 2026
- 2026Projectional Decoding: Towards Semantic-Aware LLM Generation28 May 2026
- 2026Learning the Error Patterns of Language Models27 May 2026
- 2026Hydra: Efficient, Correct Code Generation via Checkpoint-and-Rollback Support14 May 2026
3 more
- 2026SEVerA: Verified Synthesis of Self-Evolving Agents26 Mar 2026
- 2026Neuro-Symbolic Synergy for World Modeling11 Feb 2026
- 2026LLMs + Security = Trouble9 Feb 2026
- 2026SEVerA: Verified Synthesis of Self-Evolving Agentscited by 8
- 2026SEVerA: Verified Synthesis of Self-Evolving Agents26 Mar 2026
- 2026Neuro-Symbolic Synergy for World Modelingcited by 6
- 2026Neuro-Symbolic Synergy for World Modeling11 Feb 2026
- 2026The Alignment Problem in Constrained Code Generationcited by 1
- 2026LLMs + Security = Troublecited by 0
- 2026Hydra: Efficient, Correct Code Generation via Checkpoint-and-Rollback Supportcited by 0
- 2026Learning the Error Patterns of Language Modelscited by 0
- 2026Projectional Decoding: Towards Semantic-Aware LLM Generationcited by 0
- 2026Generative Compilation: On-the-Fly Compiler Feedback as AI Generates Codecited by 0
- 2026Decode-Time Grammars: Constrained LLM Generation over a Refinement Order of Grammar Fragmentscited by 0
- 2026Specification-Guided Synthesis of Deadlock-Free Communication Protocol Refinements with Large Language Modelscited by 0
- 2026SafeQL: Search-based Refinement for Safe and Efficient LLM-based Text-to-SQLcited by 0
- 2026Semantic Prefix Oracles for LLM Decoding: Contracts and Differential Validationcited by 0
- 2026Constraint-Aware Trainingcited by 0
- 2026Structural Automata for Neural Semantic Parsingcited by 0
12 most cited of 13 All 13 (JSON)
- 2026Nudge the Judge: Uncovering Program Decision Hijacking in Real-World Jev Applications13 Oct 2026
- 2026Structural Automata for Neural Semantic Parsing9 Oct 2026
- 2026Constraint-Aware Training2 Oct 2026
- 2026Semantic Prefix Oracles for LLM Decoding: Contracts and Differential Validation28 Sep 2026
- 2026SafeQL: Search-based Refinement for Safe and Efficient LLM-based Text-to-SQL10 Aug 2026
- 2026Specification-Guided Synthesis of Deadlock-Free Communication Protocol Refinements with Large Language Models30 Jul 2026
- 2026Decode-Time Grammars: Constrained LLM Generation over a Refinement Order of Grammar Fragments20 Jul 2026
- 2026Generative Compilation: On-the-Fly Compiler Feedback as AI Generates Code15 Jul 2026
- 2026The Alignment Problem in Constrained Code Generation19 Jun 2026
- 2026Projectional Decoding: Towards Semantic-Aware LLM Generation28 May 2026
- 2026Learning the Error Patterns of Language Models27 May 2026
- 2026Hydra: Efficient, Correct Code Generation via Checkpoint-and-Rollback Support14 May 2026
12 newest of 13 All 13 (JSON)