SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2402.03170 · 2024

Is Mamba Capable of In-Context Learning?

arXiv · PDF · Open in the Atlas

Code that ran

7 of 8 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 5 failures of our instrument; 1 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2402.03170.json · badge: /api/ran/2402.03170.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
automl/is_mamba_capable_of_icl canonical (classifier label)
classifier basis: census
7 ran · 1 no recorded run
FunctionStatusWhere it lives
basic_plot Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
automl/is_mamba_capable_of_icl/simple_functions/src/plot_utils.py
pointer only (licence: NONE) · get_code("345af868261af3f4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, automl/is_mamba_capable_of_icl when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_data_sampler Ran
ran; our contract draft was wrong, not the code
automl/is_mamba_capable_of_icl/simple_functions/src/samplers.py
pointer only (licence: NONE) · get_code("2d770228a133059e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, automl/is_mamba_capable_of_icl when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_final_var Ran
ran, honoured the contract we drafted
automl/is_mamba_capable_of_icl/simple_functions/src/curriculum.py
pointer only (licence: NONE) · get_code("3c24ac252fef0868")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, automl/is_mamba_capable_of_icl when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

hierarchical_subsequence Ran
ran on a synthesized input
automl/is_mamba_capable_of_icl/simple_functions/src/nethook.py
pointer only (licence: NONE) · get_code("920b394e7ad80c53")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, automl/is_mamba_capable_of_icl when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

recursive_copy Ran
ran; our contract draft was wrong, not the code
automl/is_mamba_capable_of_icl/simple_functions/src/nethook.py
pointer only (licence: NONE); the stored copy get_code serves, from TrustedLLM/UnKE, is pointer only (licence: NONE) · get_code("70f6ab8bde55420e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, automl/is_mamba_capable_of_icl when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

sample_transformation Ran
ran; our contract draft was wrong, not the code
automl/is_mamba_capable_of_icl/simple_functions/src/samplers.py
pointer only (licence: NONE) · get_code("7f92ad21604fa243")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, automl/is_mamba_capable_of_icl when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

subsequence Ran
ran; our contract draft was wrong, not the code
automl/is_mamba_capable_of_icl/simple_functions/src/nethook.py
pointer only (licence: NONE) · get_code("440ff98c2b1ae1aa")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, automl/is_mamba_capable_of_icl when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

create_block Not yet run
unverified (harvested, no recorded run)
automl/is_mamba_capable_of_icl/mamba_mod/mamba_mod/mixer_seq_simple.py
pointer only (licence: NONE); the stored copy get_code serves, from XsChen524/mode-mamba-ts, is pointer only (licence: NONE) · get_code("a8650bb2184614bc")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, automl/is_mamba_capable_of_icl when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 6 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 5 the same month, 6 later) and 2 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
subsequence 49 other papers
11 dated earlier, 1 the same month, 36 later, 1 same year, order not determinable
2007.15646 (2020-07)
Rewriting a Deep Generative Model
2009.05041 (2020-09)
Understanding the Role of Individual Units in a Deep Neural Network
2110.04292 (2021-10)
Toward a Visual Concept Vocabulary for GAN Latent Space
and 46 more not named here
recursive_copy 48 other papers
9 dated earlier, 1 the same month, 37 later, 1 same year, order not determinable
2207.02774 (2022-07)
Local Relighting of Real Scenes
2210.07229 (2022-10)
Mass-Editing Memory in a Transformer
2302.12461 (2023-02)
Analyzing And Editing Inner Mechanisms Of Backdoored Language Models
and 45 more not named here
hierarchical_subsequence 46 other papers
8 dated earlier, 1 the same month, 36 later, 1 same year, order not determinable
2210.07229 (2022-10)
Mass-Editing Memory in a Transformer
2302.12461 (2023-02)
Analyzing And Editing Inner Mechanisms Of Backdoored Language Models
2311.09053 (2023-11)
Assessing Knowledge Editing in Language Models via Relation Perspective
and 43 more not named here
get_final_var 8 other papers
2 dated earlier, 1 the same month, 5 later
2306.04891 (2023-06)
In-Context Learning through the Bayesian Prism
2310.17086 (2023-10)
Transformers Learn to Achieve Second-Order Convergence Rates for In-Context Linear Regression
2402.04248 (2024-02)
Can Mamba Learn How to Learn? A Comparative Study on In-Context Learning Tasks
and 5 more not named here
sample_transformation 3 other papers
1 the same month, 2 later
2402.04248 (2024-02)
Can Mamba Learn How to Learn? A Comparative Study on In-Context Learning Tasks
2404.18191 (2024-04)
Published at ICLR 2024 Workshop on Reliable and Responsible Foundation Models EXPLORING THE ROBUSTNESS OF IN-CONTEXT LEARNING WITH NOISY LABELS
2509.07963 (2025-09)
Customizing the Inductive Biases of Softmax Attention using Structured Matrices
create_block 2 other papers
2 later
2601.00920 (2026-01)
MODE: Efficient Time Series Prediction with Mamba Enhanced by Low-Rank Neural ODEs
2607.12488 (2026-07)
Sample Efficient Generative Optimization for Molecular Design

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

State of the art foundation models such as GPT-4 perform surprisingly well at in-context learning (ICL), a variant of meta-learning concerning the learned ability to solve tasks during a neural network forward pass, exploiting contextual information provided as input to the model. This useful ability emerges as a side product of the foundation model's massive pretraining. While transformer models are currently the state of the art in ICL, this work provides empirical evidence that Mamba, a newly proposed state space model which scales better than transformers w.r.t. the input sequence length, has similar ICL capabilities. We evaluated Mamba on tasks involving simple function approximation as well as more complex natural language processing problems. Our results demonstrate that, across both categories of tasks, Mamba closely matches the performance of transformer models for ICL. Further analysis reveals that, like transformers, Mamba appears to solve ICL problems by incrementally optimizing its internal representations. Overall, our work suggests that Mamba can be an efficient alternative to transformers for ICL tasks involving long input sequences. This is an exciting finding in meta-learning and may enable generalizations of in-context learned AutoML algorithms (like TabPFN or Optformer) to long input sequences.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2402.03170")
get_code_for_paper("2402.03170")
have("2402.03170")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2402.03170.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2402.03170.svg)](https://syntology.ai/paper/2402.03170)

Connect an agent — have() is free.