Cheap in Memory, Not in Capacity: Depth-Weighted Sample Complexity of Gated Lookup Injection
Abstract
Lookup tables are treated as “free” parameters because they are indexed rather than used as matrix multiplies. We show they are not free statistically. Working in the tight VC framework for hard-attention Transformers, we study gated lookup injection (GLI), a class covering per-layer embeddings, -gram tables, and conditional-memory modules, and give two results that together settle the question. First, an effective-depth accounting survives Transformer-specific attention branching and an input-keyed multiplicative gate, giving . Second and centrally, we construct a lookup-only recursive-retrieval witness that attains in the exact-arithmetic tightness window: every capacity-carrying parameter in the construction sits in the table, so indexed entries realise the same statistical capacity rate as ordinary parameters despite never appearing in a matrix multiply. At -bit precision the depth weighting saturates at retrieval steps, yet each table entry still realises bits of capacity, matching the counting ceiling any parameter obeys: the capacity result survives finite precision intact, even though the placement lever collapses. State-keyed lookup admits only a weaker upper bound. Exact experiments verify the construction and branching claims; a GPU implementation confirms the precision law within and scales the witness to keys, checking labels with zero mismatches. A controlled placement study with a frozen backbone is consistent with governing realised capacity, sublinearly, though SGD is not shown to attain the VC ceiling itself.
est. 32% chance this paper gets accepted at ICLR 2027.
What do you think this paper will get?
All positions stay anonymous.