← Back to LLMs Mind Map
⚡Flashcard Drill➔
⚡ LLMsID: ssm-hybrid

SSM & Hybrid Architectures

SSM/线性注意力混合
🎯Core Definition
SSM (State Space Model) models sequences with a linear recurrence: ht=Aht−1+Bxth_t = A h_{t-1} + B x_t, yt=Chty_t = C h_t, with fixed state size independent of sequence length; Mamba adds input-dependent selective scanning (using Δt\Delta_t to gate what enters and leaves the state), reaching O(n)O(n); linear attention (RWKV) replaces QKTQ K^T with a kernelized form, equivalently collapsing into constant-size state recurrence; hybrid architectures (e.g. Jamba) stack full attention layers and SSM layers alternately.
💡Use Cases
million-token long context and high-throughput inference; Jamba-1.5 398B (MoE, 52B active) serves 256K context — by 2026 hybrids are the mainstream route for long context, and comparing SSM vs attention complexity and memory is a frequent interview topic.
⚡Key Problems Solved
attention's O(n2)O(n^2) time/memory grows quadratically with sequence length; SSM keeps per-token memory constant (state d×md \times m) and trains via parallel scan; but a fixed-size state cannot precisely recall history, so pure SSMs underperform on memory/retrieval tasks — hybrids add a few attention layers to restore exact retrieval and approach full-attention quality at lower cost.
🎯Core Interview Exam Points
Fundamentals · Production Scenarios · Deep Dive
Core Def
Explain the core definition, underlying mechanism/math, and key principles of SSM & Hybrid Architectures.
Use Cases
In production engineering, what are the primary use cases for SSM & Hybrid Architectures and what core pain points does it solve?
🔥 High-Frequency Deep-Dive Questions
1
SSM recurrence? How is the state updated, and what does fixed state size imply?
2
What is Mamba's selective mechanism, and why must B, C, Δt\Delta_t depend on the input?
3
Why do hybrids like Jamba keep attention layers? What role does each component play?
4
How does RWKV/linear attention's recurrence correspond to standard attention?
5
Why are SSMs fast to train and cheap at inference (parallel scan + constant state)?
Updated 2026-08-12
🎯
Verify Mastery: Practice Exam Questions for "SSM & Hybrid Architectures"
Take pitfall multiple-choice questions with derivation options; mistakes are automatically logged.
🚀 Start Card Practice ➔
⚡
Test muscle memory on this topic via 3-Layer Flashcards
Active Recall: Mentally formulate Prompt ➔ Math Derivation ➔ Benchmark Implementation in 3 minutes.
🎯 Drill This Card Now➔
← Previous CardMulti-head Latent AttentionNext Card →Positional Encoding RoPE/ALiBi

🔗 More LLMs Knowledge Cards

引用出处: TalentMe 450+ 工业级 AI 架构考点知识库 (Tech Vault) · 遵循 CC-BY-4.0 知识共享协议
URL: https://talentme.airsota.com/resources/tech/roadmap/mindmap/LLM/card/ssm-hybrid