Mamba Can Learn Low-Dimensional Targets In-Context via Test-Time Feature Learning
Junsoo Oh, Wei Huang, Taiji Suzuki
NeurIPS page · Open on the map
Category: Interpretability & Model Adaptation › Transformer In-Context Reasoning · Type: theory · Keywords: in-context learning, sequence models, theoretical analysis, sample complexity, feature extraction
Areas: Model Architectures & Sequence Modeling › Language Model Architectures › State Space Models
Summary
We theoretically analyze Mamba's in-context learning on low-dimensional target functions, showing that test-time feature learning enables efficient ICL and outperforms linear Transformers.
Explained to a 5-year-old
A computer program looks at a few examples and learns a simple rule to guess new answers. It can find the most important direction in the examples without being told what it is. This helps it learn quickly when given new data. The program does this by adjusting its internal settings during testing. It works better than older methods that needed lots of data.
Explained to a 5-year-old, longer
Imagine a robot that wants to guess the right answer to a puzzle. It sees a few example puzzles and their answers, and from those it figures out the hidden rule that connects the puzzle to the answer. The robot doesn't need to be taught the rule step by step; it can discover the key direction that matters by looking at the examples. During testing, the robot tweaks its own settings to better capture that direction, making it smarter for new puzzles. This way, the robot learns quickly and needs fewer examples than older methods that required a lot of practice. The robot also works faster because it doesn't have to redo all its training each time. This new ability helps robots solve problems more efficiently and adapt to new situations without a lot of extra work.
For a technical reader
The paper provides a theoretical analysis of how linear-time sequence models can learn simple nonlinear functions from a few context examples. It proves that test-time updates allow the model to extract the relevant feature direction, achieving sample complexity that beats linear Transformers and matches nonlinear Transformers. The key insight is that the model’s nonlinear gating mechanism drives this efficient learning.
Problem
How can sequence models learn simple nonlinear target functions from a few context examples without explicit fine-tuning?
Method
The approach provides a theoretical analysis of in-context learning for low-dimensional nonlinear target functions, demonstrating that the model can extract the relevant feature direction from context examples and achieve efficient sample complexity.
Results
The approach achieves a test-time sample complexity that improves upon linear Transformers and matches the performance of nonlinear Transformers, approaching the information-theoretic optimal rate.
Contributions
The paper provides a theoretical analysis of sequence models' in-context learning for low-dimensional nonlinear target functions, proving that they can extract the relevant feature direction from context examples and achieve efficient sample complexity.
Limitations and assumptions
The analysis assumes low-dimensional target functions and gradient-based pretraining, and focuses on a single-index model.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction