Mamba After 90 Days: What 30 Papers Reveal About State Space Models, Hybrids, and Mixture of Experts

Nathan Labenz and AI scout Jason Meaux survey the first wave of Mamba-inspired research, from mechanistic studies and synthetic-task tradeoffs to hybrid architectures and MoE variants.

NLNathan Labenz진행자 · Cognitive Revolution
채널
Cognitive Revolution
영상
1:16:52
읽기
8분
원문
영어
YouTube에서 열기
스크롤하면 영상이 오른쪽 아래로 작아져 계속 재생됩니다. 자막은 읽기 언어를 따릅니다.
읽기 언어1개 언어로 읽을 수 있음
이 글은 아직 한국어 번역이 없어 영어 원문으로 표시합니다.
요약

30초 요약

In the first of two parts, Labenz and Meaux review more than 30 papers published in the three months after the original Mamba paper. They conclude that Mamba is easy to use, learns in-context and builds internal world models much as Transformers do, and has complementary strengths and weaknesses that hybrids like MambaFormer try to combine. They also note that mixture-of-experts versions already work, while basic questions about how the hidden state is handled remain open.

  1. 1In just 90 days, well over 30 papers built on Mamba: about 60% address vision, a quarter address language, 80% modify the original architecture, and 73% report state-of-the-art results that nobody has independently verified yet.
  2. 2Mamba is close to a drop-in replacement for a self-attention block, and it works with existing tooling such as Hugging Face training and fully sharded training, which helps explain the speed of follow-up research.
  3. 3Trained only on sequences of Othello moves, a small Mamba model develops an internal board state that a linear probe can read at 67-71% accuracy, versus 55-57% for the Transformer version, which is hard to square with the idea that such models only memorize associations.
  4. 4On synthetic tasks, Transformers and Mamba fail in opposite places: a large Transformer could not beat chance on noisy sparse parity, which Mamba solved with two layers, while Mamba plateaued near 90% on multi-query associative recall that Transformers solved perfectly.
  5. 5Labenz suspects Mamba's weakness comes from having one chance to encode each token into the state: if it did not know a pattern would matter, it cannot go back, whereas attention can look back at what it previously passed over.
  6. 6The state itself is not directly optimized, only the next-token loss is, and Labenz expects explicit training targets for the state, such as an accurate board representation, to arrive soon.
전문

챕터별 전체 원고 읽기

01

Mamba matters because it makes computation input-dependent while scaling linearly

Labenz, host of the Cognitive Revolution, introduces the format as a zoomed-out survey of a research subfield rather than a single-researcher interview. His guest Jason Meaux runs a site that tracks Mamba and other state space model work. Meaux is an engineer who spent a decade in large-scale energy infrastructure and came to state space models because he had use cases that needed sub-quadratic architectures.

Labenz recaps why the original Mamba paper stood out. It beat the Transformer on the core text-modeling loss with a simple, attention-free design, and its selective mechanism lets the input influence how it is processed, a kind of dynamic computation that earlier state space models with fixed weights lacked. Because the state has a fixed size rather than growing like an attention matrix, each token costs constant time, so inference and training scale linearly instead of quadratically.

He frames Mamba not as a successor to the Transformer but as a second powerful core mechanism next to attention, and says even in December there was evidence that hybrids would likely maximize performance. The 90-day look is meant to test how that prediction plays out.

02

A flurry of 30-plus papers, most of them on vision and most with architectural tweaks

Meaux reports that well over 30 papers and significant projects appeared in 90 days. About 60% concern vision or image processing, a surprise since the original paper focused on language, genomics and audio. Roughly 15 are vision papers, nine of them on image segmentation with biomedical applications, and about a quarter concern natural language, with the rest scattered across graph networks, audio and even stock picking.

Eighty percent of the papers modified the architecture instead of applying vanilla Mamba, and 73% reported state-of-the-art results, though neither host has verified them. Labenz stresses the caveats: the work was done fast, the papers feel quickly drafted, and baselines are often unclear, which gives him a new appreciation for peer review. He also notes the Mamba paper itself drew at least one confident reject in review.

03

Mamba is easy to adopt, but scale and speed questions remain

One of the first projects was a blog post that swapped Mamba into nanoGPT, Andrej Karpathy's minimal GPT training code. Its author reported Mamba beating the Transformer on a speech-synthesis experiment, using less memory, and called a Mamba block a drop-in replacement for a self-attention block. Labenz highlights it because Colab notebooks make it easy for anyone to try.

Labenz worries that most papers use small models and small datasets, where hardware-aware optimization matters less, so results may be more forgiving than at scale. Meaux says his own experience was pleasant: Mamba works with the Hugging Face training library and with fully sharded training, and he has trained several small models. He has not touched the CUDA kernels and trusts the original authors' highly optimized code.

04

What exactly the hidden state is, and where it lives, is still unclear

Labenz explains the state as a substitute for the attention matrix: a running encoding of everything seen so far, which in Mamba is learned and selective rather than fixed by design. This promises a long-lived memory that could be saved or forked, in contrast to the episodic way Transformers manage context. He also corrects a mistake from his December episode: the roughly 200 KB of SRAM quoted for an A100 is per compute core, and the aggregate is closer to tens of megabytes.

He then raises a basic question the papers do not clearly answer: in a model with many layers, does each selective state space block have its own state, or is there one shared state? Meaux explains that the Mamba parameters B, C and Delta depend on the input and that the state is updated at each step and kept in SRAM, but admits the specifics are hazy. Both agree that some low-level details are still being worked out collectively.

05

Mamba learns in context and builds a hidden board state, just as Transformers do

On learning theory, the first question is whether Mamba can do in-context learning. A layer-by-layer study from Italian and German institutions says yes, and shows representations refining across layers, as in Transformers, similar to logit-lens analysis. Early layers predict poorly, then predictions improve steadily, with some bends in the curves. Labenz also notes how global the authorship is, with a minority from the United States.

The standout result is Othello-Mamba, modeled on Othello-GPT. The models are tiny, 9 and 17 million parameters for Mamba versus 11 and 21 million for the Transformers, and they only see sequences of moves, never the board. A linear probe trained on each layer's activations reads out the board state at 67% and 71% accuracy for Mamba, compared with 55% and 57% for the Transformer version.

Labenz argues this is hard to explain for a model that merely associates earlier moves with later moves, because tracking captures requires an internal board representation. Accuracy peaks in the middle layers and drops near the output, as in Transformers, and it worsens as games approach 64 moves. Meaux suspects a bigger model or a bigger state would help and suggests freezing parameters while enlarging the state to test it.

06

Chess models, training speed and the missing optimization target for the state

Meaux mentions an 11-million-parameter Mamba chess model, trained on 18.8 million games, that still makes illegal moves but won 37% of games against Stockfish level zero, which a search suggested is around 1,200 Elo. A 50-million-parameter version is expected, which would allow apples-to-apples comparisons with existing Transformer chess work.

On efficiency, the Othello-Mamba authors found it more data-efficient but initially 7.6 times slower to train than an equally sized Transformer on an A100. Changing the batch size from 256 to 64 cut that to about three times slower. Labenz takes this as a sign that matching the original Mamba's speed is subtle and does not carry over automatically.

Labenz finds it philosophically odd that the state is never directly optimized: the probes read activations between layers, not the state itself, and training only targets the next token. He expects explicit objectives for the state, such as asking it to represent the true board, to become a loss function soon, possibly speeding training. Meaux has not seen such work but calls it very interesting.

07

Transformers and Mamba fail on opposite tasks

Meaux walks through a paper from a South Korea and United States team that compares a Transformer, S4, Mamba and a variant without selection, and then proposes the hybrid MambaFormer. On sparse parity learning, where only a few features matter, a 24-layer, 768-dimension Transformer could not beat random guessing, while Mamba solved it with just two layers. On a noisy linear in-context regression task, with 90% of inputs as noise, Transformers managed to a degree but Mamba performed better at every step.

The reverse holds on multi-query associative recall, where the model must retrieve values for keys given earlier in the context. With very small recurrent state sizes, Mamba outperforms Transformers, but once attention can use its full capacity, Transformers solve the task perfectly, while Mamba plateaus near 90%. Meaux cautions that synthetic tasks may not transfer to real settings.

08

Hybrids like MambaFormer cover both weaknesses, even if they look unprincipled

Labenz offers a theory for the split. In noisy settings, attention considers everything at once and may thrash by overfitting to noise, whereas Mamba's sequential processing lets it quickly notice which tokens carry signal. But Mamba gets one chance to encode each token into the state, so if a pattern seems unimportant when it passes, it cannot be recovered later, while attention can look back at tokens it previously passed over. Meaux agrees with this framing.

The authors' answer is MambaFormer: keep multi-head attention, add a Mamba layer after it, and replace the positional embedding with a Mamba layer. It solved every task in the suite, though the paper does not test training or inference efficiency. Labenz is struck that the feed-forward block is removed, and guesses a scaled-up version would bring the MLP back because it likely stores facts.

Both hosts find it striking that swapping a Mamba layer in for positional embeddings simply works, though no obvious principle explains why. Labenz says the field often tries things that work before anyone knows why. He summarizes that Mamba can learn in context, builds world representations, and has strengths that complement attention's.

09

Mixture-of-experts Mamba works, but infrastructure may favor big incumbents

Labenz briefly covers mixture of experts, noting that GPT-4, Mixtral and Gemini 1.5 have been described as using it. In place of one MLP block there are many, and only a subset is activated per token. Two papers, MoE-Mamba and BlackMamba, apply this to Mamba, either adding a switch-style MoE layer to Mamba or swapping the Transformer's attention for Mamba's selective state space, and both report positive results.

BlackMamba stands out because it comes from a very new stealth startup, one of whose co-founders recently left Conjecture, and it reported solid throughput. Labenz notes that MoE improves training and inference efficiency at the cost of many more total parameters, which must sit in high-bandwidth memory across arrays of GPUs. Even with GPT-4's weights, a model of two trillion parameters would need more than ten 80 GB GPUs, so he argues the approach favors incumbents like Google and makes open source harder to run.

He expects more intricate swaps ahead, especially replacing the selective state space portion with experts rather than only the MLP, or processing the sequence through an initial Mamba before swapping layers. Part two, he says, will cover vision applications, super-long context, the risk of rotting internal states, and biology uses of hybrid models.

같은 채널의 다른 글

1:25:56EN
Cognitive Revolution "How AI Changes Everything"· 2026년 10월 17일팟캐스트Claude Changed the Password. The Steering Wheel Was Already Optional진행자 Nathan LabenzNathan Labenz and Prakash Narayanan spend a week on agents that can lock you out, models that dodge a feeling they deny having, and formal proofs that found Linux bugs.에이전트안전과 거버넌스에이전트 엔지니어링+3
2:17:48EN
Cognitive Revolution "How AI Changes Everything"· 2026년 10월 14일팟캐스트Agent IDs Are Empty, Rogue Agents Are Coming, and We Might Have to Bargain진행자 Nathan LabenzGovAI’s Alan Chan scores two years of agent-governance infrastructure with Nathan Labenz, then walks through a recursive-self-improvement paper co-authored with OpenAI’s Jakub Pachocki and Anthropic’s Jack Clark.에이전트안전과 거버넌스AI security+3
2:00:51EN
Cognitive Revolution "How AI Changes Everything"· 2026년 10월 10일팟캐스트Resample Every Token and You Can Watch the Model Decide진행자 Nathan LabenzGoodfire's Eric Bigelow on forking paths, in-context learning, and why chain-of-thought monitoring is getting harder to trust.에이전트Prompting & in-context learningReasoning & test-time compute+3
1:26:46EN
Cognitive Revolution "How AI Changes Everything"· 2026년 10월 8일팟캐스트There Likely Is a Level of Intelligence We Shouldn't Go Past진행자 Nathan LabenzNathan Labenz brings notes from The Curve, a chip startup whose token bill beat payroll, and a software industry that now performance-reviews people for Claude slop.기업과 전략안전과 거버넌스AGI Timelines+3
1:10:12EN
Cognitive Revolution "How AI Changes Everything"· 2026년 10월 7일팟캐스트OutSystems Went From 4 Major Features a Quarter to 26. Token Spend Fell Anyway진행자 Nathan LabenzCEO Woodson Martin on software that never breaks, why most enterprise work does not need a frontier model, and how AI is finally shrinking the IT backlog.기업과 전략엔터프라이즈 AI코딩 에이전트+3
1:30:54EN
Cognitive Revolution "How AI Changes Everything"· 2026년 10월 3일팟캐스트Humanoids Outran Usain Bolt. DeepMind Still Scores Robotics as GPT-2진행자 Nathan LabenzGoogle DeepMind's Gemini Robotics lead on why sprinting is easy, frying an egg is hard, and one brain should drive any body.에이전트RoboticsMultimodal AI+3