Reproduce “AGDecode: Semantic Attribute Grammar Derivatives for Safety-Constrained Decoding of Large Language Models” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Rajan Maghera, Asher Tempest Arya, Aren A. Babikian, Marsha Chechik, Maryam Mehri Dehnavi

AGDecode checks whether a program prefix can still be completed to satisfy a semantic safety specification. It represents unfinished syntax as holes, translates attribute grammar rules into relational constraints, and asks an SMT/CHC oracle whether a safe completion exists. Its formal guarantees assume an ideal oracle; in evaluation, 25.4% of queries timed out, so tokens were accepted without immediate verification.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.