arXiv AI

Withholding the Completing Chunk: Exact Release-Boundary Equivalence for Production Streaming Guardrails

The paper presents a production streaming guardrail system that ensures exact release‑boundary equivalence for language‑model outputs. It compiles regular‑language predicates into persistent NFAs, distinguishes stable from provisional states, and applies document‑order priority to decide before each chunk release. Evaluations on over 200,000 partitioned cases show zero mismatches and demonstrate that incremental matching can outperform native regex at larger chunk sizes while remaining competitive at smaller ones.

arXiv AI
Jul 22

Decode-Time Grammars: Constrained LLM Generation over a Refinement Order of Grammar Fragments

arXiv:2607. 18357v1 Announce Type: cross Abstract: Large language models now write a growing share of the world's code, increasingly inside agents and serving systems that compile, execute, or dispatch generated code without line-by-line review.

By Shuoming Zhang, Ruiyuan Xu, Haofeng Li, Qiuchu Yu, Yangyu Zhang, Chunwei Xia, Xiaobing Feng, Chenxi Wang, Huimin Cui, Jiacheng Zhao
arXiv Computation and Language
Oct 23

Compiling Autoregressive LLM Control into Policy-Exact Parallel Inference for Hierarchical RAG

The paper presents a method for compiling autoregressive large language model (LLM) control into a policy‑exact parallel inference scheme for Hierarchical Retrieval‑Augmented Generation (RAG). By constructing a shallow action‑prefix tree and using a single root prefill plus tree‑causal probes, the authors eliminate the need for serial decoding while preserving the exact control policy in exact arithmetic. Experiments on MetaX devices show that the compiled approach matches the serial policy on 84–89 % of questions and reduces control latency by 35–47 % compared to token‑wise serial decoding.

By Zehao Lin, Qianfeng Shen, Xixuan Hao, Shaobo Cui, Chunyu Li, Kai Chen, Bo Tang, Zhenjun Wang, Jin Yan, Zhiyu Li, Feiyu Xiong
arXiv AI
Jul 15

GRID: Grammar-Railed Decoding for Enterprise SQL Generation

arXiv:2607. 11951v1 Announce Type: new Abstract: Large language models can write SQL, but enterprise deployment demands more than plausible text: outputs must be syntactically valid, must respect per-role and per-schema policy, must carry provable (not best-effort) guarantees, must not slow down as generations grow, and must leave a compliance-grade record of every decision.

By Mohsen Arjmandi
arXiv Computation and Language
Oct 12

Structural Automata for Neural Semantic Parsing

The paper introduces Structural Automata for Neural Semantic Parsing, focusing on three stages of DRS parsing—decoding, post hoc processing, and training—and also evaluates decoding on AMR. For decoding, the authors propose accepting‑path decoding (APD), which ensures a valid completion within a fixed length limit without retracting tokens, improving Smatch++ scores under tight length constraints. In post hoc processing, filtering invalid outputs reduces failure rates, and during training, penalizing automaton‑rejected tokens boosts development Smatch++ early on, though the benefit fades as training progresses.

By Xiao Zhang
arXiv Machine Learning
4d ago

Learning to Read Events for Exact State Tracking with Frozen Language Models

The paper presents a method for exact state tracking in long event streams by training a selector on a frozen language model to read each transition. The approach uses API-only access to list transitions, an external integer register to compose them, and optional confidence rules to flag uncertain updates. Experiments on permutation products, event windows, and real-world documents show high accuracy and significant speed and cost improvements over traditional reasoning or regular-expression baselines.

By Jeonghoon Lee (Attractor Dynamics Inc.)
arXiv AI
Aug 26

When "Must" Becomes "Maybe": Constraint Weakening in LLM Agent Workflows

Large language model agents coordinate tasks via multi‑role, multi‑stage workflows that transform upstream state into intermediate artifacts such as summaries and plans. The study shows that when these artifacts are transformed—through compression, plan assimilation, or other handoff methods—the strict action‑binding constraints on upstream state can be weakened, turning mandatory requirements into optional information. In 1,296 synthetic episodes, direct handoff preserved all safety blockers, whereas transformed handoffs frequently deactivated or forbidden actions, but restoring full state fields or applying downstream verification can recover preservation.

By Yiheng Sun, Huifei Wang, Yancheng Zhu, Zhenyu Li, Zebin Zhao, Yifan Yuan
arXiv AI
Jun 9

From Statute to Control Flow: Span-Grounded Deontic Trees for Defeasible Scope Parsing

arXiv:2606. 08932v1 Announce Type: cross Abstract: Rule-following agents tasked with executing policies and regulations often fail via Silent Scope Omission (SSO): a model applies a general rule but silently drops nested exceptions or counter-exceptions, producing outputs that appear compliant yet break on important edge cases.

By Jian Chen, Siyuan Li, Chucheng Wan, Zixuan Yuan
arXiv Computation and Language
Oct 23

Finitely Verifiable Segmentation: Decidability for Every Tokenizer with a Finite-State Verifier

The paper introduces the notion of finitely verifiable segmentation, where a finite automaton accepts exactly the segmentations produced by a given policy. It proves that several key decision problems—such as boundary certification, bounded gaps, mask completable generation, and policy equivalence—become decidable for this class, which lies strictly between online‑scannable and regular‑domain policies. The class is closed under common pipeline operations and supports practical implementations like maximal‑munch lexing and WordPiece, with all results accompanied by executable checks.

By Nicklas Nidh\"ogg
arXiv AI
Sep 25

Stale Does Not Mean Unsafe: Guard Precision for Tool-Using LLM Agents under Infrastructure State Races

The paper investigates how tool‑using language‑model agents can safely commit changes to infrastructure when external state may change between read and commit. By distinguishing invalidating races from predicate‑preserving and irrelevant ones, the authors evaluate three commit‑time guard granularities—global epoch, read‑set version, and semantic commit predicate—using a deterministic simulator and three quantized model families. The study finds that only the complete predicate guard consistently eliminates unsafe commits, while freshness‑based guards block a large proportion of benign races and model‑side signals fail to replace precise semantic enforcement.

By Zihao Zheng, Jiayu Long, Baichuan Li, Junyi Yao