Projectional Decoding: Towards Semantic-Aware LLM Generation
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) are increasingly used to generate software artifacts across many software engineering (SE) tasks, yet ensuring the semantic validity of these artifacts remains a fundamental challenge. Existing constrained decoding techniques can enforce syntactic correctness and, in some cases, specific semantic rules, but lack a general representation that bridges LLM-generated text with the reasoning required for semantic validation in SE. In this paper, we propose projectional decoding, a novel conceptual framework that integrates domain semantics directly into the generation process by maintaining, alongside text, a partial graph model as the primary artifact representation throughout generation. This abstract representation enables incremental semantic validation by explicitly capturing uncertainty and natively supporting error detection, while guiding generation toward semantically valid outputs with provable guarantees. We present preliminary results on a program generation task which demonstrate the potential of this approach to improve the semantic validity of LLM-generated artifacts. We also discuss how projectional decoding can enable verifiable automation with LLMs across various SE activities.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 12 of its 36 references that are in the map. First posted on arXiv 28 May 2026.
Builds on
12 of 36 references.
References · 12
- 2025Qwen3 Technical Reportcited by 8,820
- 2016CLEVR: A Diagnostic Dataset for Compositional Language and Elementary Visual Reasoningcited by 1,457
- 2024LLM-Based Multi-Agent Systems for Software Engineering: Literature Review, Vision and the Road Aheadcited by 155
- 2025ShieldAgent: Shielding Agents via Verifiable Safety Policy Reasoningcited by 151
- 2022Prompting Is Programming: A Query Language for Large Language Modelscited by 110
- 2024SynCode: LLM Generation with Grammar Augmentationcited by 69
- 2023Clover: Closed-Loop Verifiable Code Generationcited by 67
- 2024Automatic Programming: Large Language Models and Beyondcited by 36
- 2025Type-Constrained Code Generation with Language Modelscited by 35
- 2025VERINA: Benchmarking Verifiable Code Generationcited by 34
- 2025ChopChop: a Programmable Framework for Semantically Constraining the Output of Language Modelscited by 15
- 2024On the use of Large Language Models in Model-Driven Engineeringcited by 13
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Bidirectional Empowerment of Metamorphic Testing and Large Language Models: A Systematic Survey
- 2025Lifecycle-Aware code generation: Leveraging Software Engineering Phases in LLMs
- 2025LLM-as-a-Judge for Software Engineering: Literature Review, Vision, and the Road Ahead ↗
- 2026Inferring Code Correctness from Specification
- 2025LLM Assisted Coding with Metamorphic Specification Mutation Agent
- 2023Enhancing Large Language Models in Coding Through Multi-Perspective Self-Consistency
- 2025Towards Advancing Code Generation with Large Language Models: A Research Roadmap
- 2025Beyond Synthetic Benchmarks: Evaluating LLM Performance on Real-World Class-Level Code Generation