mlsanityData to 14 Oct 2026

Probing In-Context Learning: Impact of Task Complexity and Model Architecture on Generalization and Efficiency

arXiv 2505.06475 ↗First posted 10 May 2025cs.LGcited by 1

On the map: State-space sequence models (S4, Mamba) → Core SSM architectures for language

Abstract (arXiv)

We investigate in-context learning (ICL) through a meticulous experimental framework that systematically varies task complexity and model architecture. Extending beyond the linear regression baseline, we introduce Gaussian kernel regression and nonlinear dynamical system tasks, which emphasize temporal and recursive reasoning. We evaluate four distinct models: a GPT2-style Transformer, a Transformer with FlashAttention mechanism, a convolutional Hyena-based model, and the Mamba state-space model. Each model is trained from scratch on synthetic datasets and assessed for generalization during testing. Our findings highlight that model architecture significantly shapes ICL performance. The standard Transformer demonstrates robust performance across diverse tasks, while Mamba excels in temporally structured dynamics. Hyena effectively captures long-range dependencies but shows higher variance early in training, and FlashAttention offers computational efficiency but is more sensitive in low-data regimes. Further analysis uncovers locality-induced shortcuts in Gaussian kernel tasks, enhanced nonlinear separability through input range scaling, and the critical role of curriculum learning in mastering high-dimensional tasks.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in Core SSM architectures for language, one of 10 directions in State-space sequence models (S4, Mamba). First posted on arXiv 10 May 2025.

Builds on

0 of 0 references.

No references here yet.

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2024Can Custom Models Learn In-Context? An Exploration of Hybrid Architecture Performance on In-Context Learning Tasks
  2. 2024Context-Scaling versus Task-Scaling in In-Context Learning
  3. 2025Illusion or Algorithm? Investigating Memorization, Emergence, and Symbolic Processing in In-Context Learning
  4. 2023Is attention required for ICL? Exploring the Relationship Between Model Architecture and In-Context Learning Ability
  5. 2025Understanding In-Context Learning Beyond Transformers: An Investigation of State Space and Hybrid Architectures
  6. 2024Benchmarking General-Purpose In-Context Learning
  7. 2024Investigating the Pre-Training Dynamics of In-Context Learning: Task Recognition vs. Task Learning
  8. 2025From Compression to Expression: A Layerwise Analysis of In-Context Learning