首页›The Gradient›文章

Mamba Explained

Kola Ayonrinde · 2024年3月28日

AI 摘要 AI 生成,可能有误

本文介绍了Mamba,这是一种状态空间模型(SSM)架构,它通过消除注意力机制的二次瓶颈来挑战Transformer,实现了序列长度的线性扩展、最高5倍的推理加速,以及在百万长度序列上的性能表现——其30亿参数模型可与规模两倍于己的Transformer相媲美。作者以《神庙逃亡》(Temple Run)游戏作类比,将SSM阐述为一个由含A、B、C、D矩阵的微分方程控制的隐藏状态系统——这些矩阵决定要遗忘什么、记住什么以及预测什么——随后通过零阶保持将其离散化为一种高效的、类似RNN的计算形式。Mamba还通过一种选择机制进一步改进了传统RNN,该机制使其矩阵能够根据每个输入动态调整,与RNN和Transformer相比,将有效性/效率权衡的帕累托前沿向外推进。


The State Space Model taking on Transformers

Right now, AI is eating the world.

And by AI, I mean Transformers. Practically all the big breakthroughs in AI over the last few years are due to Transformers.

继续阅读全文

为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。

更多来自 The Gradient

After Orthogonality: Virtue-Ethical Agency and AI Alignment

AI 摘要This essay argues that rational agency—human or artificial—should not be understood in terms of final goals or consequentialist optimization, but through 'eudaimonic rationality,' in which actions are aligned to self-structuring networks of practices. It contends that core AI-safety desiderata like transparency, harmlessness, and corrigibility are natural and stable when treated as virtue-like, always-on practices, but brittle and unnatural when interpreted as goals or rules. The author concludes that many classical alignment paradoxes stem from assuming goal-driven optimizers, and that instilling AIs with eudaimonic rationality offers a more natural, robust, and safer target for alignment.

AGI Is Not Multimodal

AI 摘要The article argues that multimodal approaches built on scaled large language models will not achieve human-level AGI, because LLMs likely learn vast collections of syntactic heuristics for predicting tokens rather than genuine world models, giving them only a superficial understanding of reality. It contends that true AGI requires grounded, embodied intelligence capable of solving physical problems like sensorimotor reasoning and motion planning, which cannot be reduced to symbol manipulation. The author advocates treating embodiment and environmental interaction as primary, viewing modality-specific processing as emergent, rather than patching together massive modular networks.

Shape, Symmetries, and Structure: The Changing Role of Mathematics in Machine Learning Research

AI 摘要The article argues that although compute-driven empirical advances have recently outpaced mathematically principled approaches in machine learning—echoing the 'Bitter Lesson'—mathematics remains highly relevant, with its role shifting from providing theoretical guarantees and guiding granular design toward post-hoc explanation of empirical phenomena and higher-level choices like matching architectures to data symmetries. This shift toward scale has broadened the applicable mathematical toolkit, bringing 'pure' fields such as topology, geometry, and algebra into machine learning to help characterize high-dimensional objects like model weights, hidden activations, and datasets that defy visual intuition. Examples such as intrinsic dimension illustrate how these geometric tools can explain generalization, robustness, and other model behaviors that standard performance statistics cannot capture.

What's Missing From LLM Chatbots: A Sense of Purpose

AI 摘要The article argues that although LLM chatbots keep improving on static benchmarks, they lack purposeful, goal-directed multi-turn dialogue, which is essential for genuine human-AI collaboration. It reviews how dialogue systems are built (pretraining, chat formatting, and RLHF) and presents empirical evidence that LLMs quickly drift away from their system prompts over long conversations, creating usability and safety problems. The author proposes treating human-AI interaction as a collaborative game and calls for training methods and benchmarks that emphasize multi-round, intention-driven dialogue.

We Need Positive Visions for AI Grounded in Wellbeing

AI 摘要The article argues that beneficial AI should be concretely grounded in human wellbeing and the health of society, rather than remaining a vague, high-minded ideal. While acknowledging that no consensus definition of wellbeing exists, the authors note that scientifically supported factors like supportive relationships, meaningful work, and positive emotional experiences offer a workable basis for guiding AI research and products. They call for the development of positive visions for an AI-infused society, highlighting foundation models as a critical leverage point that could support wellbeing through new algorithms, wellbeing-based evaluations, and training data.