State Space Models for Language › Limitations and Impact
Language AI HandbookAll chapters The state carries the information the model needs later. A state that records a running total can preserve that statistic even when many tokens have passed. A model answering arbitrary queries about exact spans has a harder job. At fixed precision a fixed-size recurrent decoder has finitely many carried configurations. Count every buffer that can distinguish histories, including the convolution history. If more equal-length prefixes are possible than complete carried configurations, two prefixes must reach the same state. After processing the same nonempty continuation from that state with identical auxiliary inputs, the decoder computes the same next-token distribution for both histories. The two histories can still call for different answers. The practical question is whether collisions affect the kinds of recall your task needs.
Gu and Dao reported empirical comparisons in specific training and evaluation settings. In their Table 1, Mamba-2.8B averaged 63.3 across six zero-shot accuracy benchmarks, versus 59.1 for Pythia-2.8B and 63.0 for GPT-J-6B. The larger GPT-J comparison used a different tokenizer, and the mean hides which benchmarks favored which model. Treat this as evidence about those evaluations at those scales. To test recall separately, score exact value retrieval on held-out sequences of key-value pairs. Vary the distance from the target pair to the query, and vary the number, positions, and similarity of distractors. Mamba, section 4.2 and Table 1.
Math also leaves an implementation question. The exponentials, products and sums in a long recurrence can round differently across precisions and arithmetic order. Very small retained contributions can underflow, and a stored state in float32 uses twice as many bytes as the same state in float16. Separately, memory traffic and hardware support affect whether a scan is fast. Measure latency and peak memory for the exact workload, including how serving requests are batched and how long the prompts and completions are.
Comments
Add to the conversation
A question, a correction, or an example from your own work.
No comments yet. Be the first to share your thoughts!