mlsanityData to 14 Oct 2026

XML Prompting as Grammar-Constrained Interaction: Fixed-Point Semantics, Convergence Guarantees, and Human-AI Protocols

arXiv 2509.08182 ↗First posted 9 Sep 2025cs.PL cs.AI cs.CLcited by 4

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

  1. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
  2. 2025Why Language Models Hallucinatecited by 220
  3. 2023Grammar-Constrained Decoding for Structured NLP Tasks without Finetuningcited by 197
  4. 2024Grammar-Aligned Decodingcited by 54
  5. 2025Flexible and Efficient Grammar-Constrained Decodingcited by 43
  6. 2023Don't Fine-Tune, Decode: Syntax Error-Free Tool Use via Constrained Decodingcited by 13
  7. 2021Structure Inducing Pre-Trainingcited by 10
  8. 2024Constrained Decoding with Speculative Lookaheadscited by 6
  9. 2025Fixed-Point Theorems and the Ethics of Radical Transparency: A Logic-First Treatmentcited by 1

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 4.

4 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2022Iteratively Prompt Pre-trained Language Models for Chain of Thought
  2. 2025The Meta-Prompting Protocol: Orchestrating LLMs via Adversarial Feedback Loops
  3. 2025AutoPDL: Automatic Prompt Optimization for LLM Agents
  4. 2025The Ann Arbor Architecture for Agent-Oriented Programming
  5. 2026Learning Context-Free Grammars for Grammar-Constrained Decoding via Declarative Agentic Programming with Guarantees
  6. 2024Minstrel: Structural Prompt Generation with Multi-Agents Coordination for Non-AI Experts
  7. 2025Layered Chain-of-Thought Prompting for Multi-Agent LLM Systems: A Comprehensive Approach to Explainable Large Language Models
  8. 2026Evaluating 5W3H Structured Prompting for Intent Alignment in Human-AI Interaction