Exact Parsing with Looped Transformers: Storage, Depth, and Scheduling
Abstract
Exact context-free parsing with looped transformers requires both organizing intermediate states in memory and scheduling updates that advance the computation. We study these requirements through theoretical constructions and experiments on a separate learned parser. On the construction side, we establish storage and loop bounds for strictly causal averaging-hard-attention transformers. For input length , fixed deterministic and unambiguous context-free languages admit and blank padding, respectively, with loops including initialization. General context-free languages admit padding, with loops under supplied fields or loops including blank initialization. All constructions have fixed parameters, constant width, logarithmic precision, and replayable parsing certificates. On the learning side, learned rankings under a fixed verifier improve completion on some grammars but deteriorate on longer Palindrome inputs. Exploratory scheduling interventions recover most unfinished Palindrome decisions without retraining, while cyclic updates guarantee bounded waiting under the verified-update assumptions. Together, these results identify memory organization and reliable scheduling as complementary means of turning repeated computation into verified progress.
est. 32% chance this paper gets accepted at ICLR 2027.
What do you think this paper will get?
All positions stay anonymous.