XML Prompting as Grammar-Constrained Interaction: Fixed-Point Semantics, Convergence Guarantees, and Human-AI Protocols
Not on the map. Why?
Abstract (arXiv)
Structured prompting with XML tags has emerged as an effective way to steer large language models (LLMs) toward parseable, schema-adherent outputs in real-world systems. We develop a logic-first treatment of XML prompting that unifies (i) grammar-constrained decoding, (ii) fixed-point semantics over lattices of hierarchical prompts, and (iii) convergent human-AI interaction loops. We formalize a complete lattice of XML trees under a refinement order and prove that monotone prompt-to-prompt operators admit least fixed points (Knaster-Tarski) that characterize steady-state protocols; under a task-aware contraction metric on trees, we further prove Banach-style convergence of iterative guidance. We instantiate these results with context-free grammars (CFGs) for XML schemas and show how constrained decoding guarantees well-formedness while preserving task performance. A set of multi-layer human-AI interaction recipes demonstrates practical deployment patterns, including multi-pass "plan → verify → revise" routines and agentic tool use. We provide mathematically complete proofs and tie our framework to recent advances in grammar-aligned decoding, chain-of-verification, and programmatic prompting.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Builds on 9 of its 57 references that are in the map. First posted on arXiv 9 Sep 2025.
Builds on
9 of 57 references.
References · 9
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
- 2025Why Language Models Hallucinatecited by 220
- 2023Grammar-Constrained Decoding for Structured NLP Tasks without Finetuningcited by 197
- 2024Grammar-Aligned Decodingcited by 54
- 2025Flexible and Efficient Grammar-Constrained Decodingcited by 43
- 2023Don't Fine-Tune, Decode: Syntax Error-Free Tool Use via Constrained Decodingcited by 13
- 2021Structure Inducing Pre-Trainingcited by 10
- 2024Constrained Decoding with Speculative Lookaheadscited by 6
- 2025Fixed-Point Theorems and the Ethics of Radical Transparency: A Logic-First Treatmentcited by 1
Built on by
Citing papers per year: 2026: 4.
4 papers.
- 2026ReCUBE: Evaluating Repository-Level Context Utilization in Code Generationcited by 1
- 2026AILS-NTUA at SemEval-2026 Task 10: Agentic LLMs for Psycholinguistic Marker Extraction and Conspiracy Endorsement Detectioncited by 0
- 2026PromptPack: Scaling LLM Annotation Agents for Online Recommendationcited by 0
- 2026Attention is Case-Sensitivecited by 0
- 2026Attention is Case-Sensitive4 Aug 2026
- 2026PromptPack: Scaling LLM Annotation Agents for Online Recommendation10 Jul 2026
- 2026ReCUBE: Evaluating Repository-Level Context Utilization in Code Generation26 Mar 2026
- 2026AILS-NTUA at SemEval-2026 Task 10: Agentic LLMs for Psycholinguistic Marker Extraction and Conspiracy Endorsement Detection5 Mar 2026
Similar, not cited
Close in wording, no citation either way
- 2022Iteratively Prompt Pre-trained Language Models for Chain of Thought
- 2025The Meta-Prompting Protocol: Orchestrating LLMs via Adversarial Feedback Loops
- 2025AutoPDL: Automatic Prompt Optimization for LLM Agents
- 2025The Ann Arbor Architecture for Agent-Oriented Programming
- 2026Learning Context-Free Grammars for Grammar-Constrained Decoding via Declarative Agentic Programming with Guarantees
- 2024Minstrel: Structural Prompt Generation with Multi-Agents Coordination for Non-AI Experts
- 2025Layered Chain-of-Thought Prompting for Multi-Agent LLM Systems: A Comprehensive Approach to Explainable Large Language Models
- 2026Evaluating 5W3H Structured Prompting for Intent Alignment in Human-AI Interaction