四家初创公司挑战Transformer,探索LLM新架构
These startups are chasing the next big thing in LLMs
MIT Technology Review’s What’s Next series looks across industries, trends, and technologies to give you a first look at the future. You can read the rest of them here.
《麻省理工科技评论》的“未来展望”系列横跨行业、趋势和技术,让您先睹为快。您可以在此处阅读其余内容。
Way back in the summer of 2017, AI researchers at Google put out a paper called “Attention Is All You Need,” in which they described a new type of neural network called a transformer. It proved to be very good at processing long sequences of data, especially text.
早在2017年夏天,谷歌的人工智能研究人员发表了一篇题为《注意力就是你所需要的一切》的论文,其中描述了一种新型神经网络,称为Transformer。事实证明,它非常擅长处理长序列数据,尤其是文本。
Nine years on, transformers are the engines inside every major large language model on the market. “The entire AI industry is built on transformers,” says Justin Dangel, cofounder and CEO of the AI startup Subquadratic. “They are one of the most important innovations in the history of computer science, and they’ve changed the world.”
九年后,Transformer已成为市场上每个主要大型语言模型的引擎。AI初创公司Subquadratic的联合创始人兼首席执行官Justin Dangel表示:“整个AI行业都建立在Transformer之上。它们是计算机科学史上最重要的创新之一,并且改变了世界。”
But transformers are starting to show their age. Many of the recent advances in LLMs, such as the development of so-called reasoning models and their ability to handle large amounts of input at once, are not neat extensions of that core technology but workarounds that patch over some of its fundamental flaws.
但Transformer开始显露出疲态。LLM的许多近期进展,例如所谓推理模型的发展及其同时处理大量输入的能力,并不是该核心技术的简洁扩展,而是修补其一些根本缺陷的变通方法。
A growing number of scientists and engineers are now asking what’s coming next. LLMs are not going anywhere, but the way they get built is up for grabs. (MIT Technology Review dubbed this future generation of models LLMs+ in this year’s list of the 10 things that matter in AI.)
越来越多的科学家和工程师现在开始思考下一步是什么。LLM不会消失,但它们的构建方式尚待确定。(《麻省理工科技评论》在今年的AI领域十大突破性技术中将这一代未来模型称为LLM+。)
Enter a wave of startups hoping to push the boundaries of this boomtown technology. Some will no doubt fail—but they have everything to play for and far less to lose than the companies at the front of the pack today.
随之而来的是希望突破这一繁荣技术边界的初创企业浪潮。有些无疑会失败——但它们有无限可能,而且比当今领先的公司损失要小得多。
Strength in numbers
数量优势
But first, the problem. The key strength of transformers lies in a mechanism called dense attention, which encodes the meaning of a block of text in a series of numbers. The process involves comparing every word (or part of a word, known as a token) in that text with every other word via a form of multiplication.
但首先,问题在于。Transformer的关键优势在于一种称为密集注意力的机制,它通过一系列数字对文本块的含义进行编码。该过程涉及通过乘法形式将文本中的每个单词(或单词的一部分,称为标记)与其他每个单词进行比较。
Dense attention can capture the meaning of text with remarkable accuracy. But as the length of that text grows, the number of computations needed to process it adds up fast. A document 10,000 words long might require a transformer to perform 50 million multiplications. That’s the main reason LLMs suck up so much power.
密集注意力能够以惊人的准确性捕捉文本的含义。但随着文本长度的增长,处理所需的计算量迅速增加。一份10,000字的文档可能需要Transformer执行5000万次乘法。这就是LLM消耗大量电力的主要原因。
The costs are huge. OpenAI is set to spend $50 billion on computing this year, according to the company’s president, Greg Brockman. And the International Energy Agency predicts that the total amount of electricity consumed by data centers will double by 2030.
成本是巨大的。据公司总裁Greg Brockman称,OpenAI今年将在计算上花费500亿美元。国际能源署预测,到2030年,数据中心的总用电量将翻一番。
What’s more, transformers struggle with what many of the latest models are designed to do. Because of the way they process text word by word, transformers are not great at keeping track of a lot of information at once (in other words, what’s known as their context window cannot get too large). And yet if LLMs are to carry out harder tasks, they will need to take in larger amounts of data: a whole library of documents, an entire code base, or in the case of agents, output from other LLMs.
更重要的是,Transformer 难以胜任许多最新模型旨在完成的任务。由于它们逐词处理文本的方式,Transformer 不擅长同时跟踪大量信息(换句话说,它们的上下文窗口不能太大)。然而,如果 LLM 要执行更困难的任务,它们将需要处理更大量的数据:整个文档库、整个代码库,或者对于智能体而言,来自其他 LLM 的输出。
As for reasoning models, they work by writing notes to themselves (in a kind of scratch pad known as a chain of thought) and then reading them back, which again adds to the amount of data to stay on top of.
至于推理模型,它们通过给自己写笔记(在一种称为思维链的草稿区中)然后读回这些笔记来工作,这同样增加了需要处理的数据量。
As LLMs get bigger and better, transformers have become a bottleneck. The technology’s key strength is now a limitation.
随着 LLM 变得更大更好,Transformer 已成为瓶颈。该技术的关键优势现在成了限制。
Here are four new ideas for how to solve the transformer problem—innovations that could change LLMs for good, making them faster, far more efficient, and (maybe) even smarter.
这里有四种解决 Transformer 问题的新思路——这些创新可能会彻底改变 LLM,使其更快、更高效,甚至可能更智能。
01: Rethinking attention
01:重新思考注意力机制
An obvious way to make LLMs faster and cheaper is to tackle the problem head on and change the way attention works. Swapping out dense attention for a mechanism called sparse attention, which runs calculations on only some pairings of words in a block of text instead of all of them, can radically reduce the amount of computation LLMs need to do.
让 LLM 更快更便宜的一个明显方法是正面解决问题,改变注意力机制的工作方式。将密集注意力替换为一种称为稀疏注意力的机制,该机制仅对文本块中部分词对进行计算,而不是全部,可以大幅减少 LLM 所需的计算量。
Researchers have come up with plenty of sparse attention mechanisms over the years. The problem is that none of them were as good as dense attention at capturing meaning.
多年来,研究人员提出了许多稀疏注意力机制。问题在于,它们在捕捉含义方面都不如密集注意力。
That might have changed. Subquadratic, a startup based in Miami, claims it has invented the first sparse attention mechanism that rivals top mainstream LLMs on a handful of tasks, including search and coding. It’s a huge claim (and some people in the industry remain skeptical).
这种情况可能已经改变。总部位于迈阿密的初创公司 Subquadratic 声称,它发明了第一种稀疏注意力机制,在包括搜索和编码在内的多项任务上可与主流 LLM 相媲美。这是一个巨大的声明(业内一些人仍持怀疑态度)。
Subquadratic says its model, SubQ, works by figuring out on the fly—for each piece of text it is given—which words matter and which don’t. The company also claims that thousands have signed up to its waitlist and plans to make the model widely available soon.
Subquadratic 表示,其模型 SubQ 的工作原理是即时判断——对于给定的每段文本——哪些词重要,哪些不重要。该公司还声称已有数千人加入其等待名单,并计划很快广泛提供该模型。
Meanwhile, Manifest AI, a startup based in San Francisco, is coming at the problem from a different angle. Instead of changing how attention works, it is replacing it with something else.
与此同时,总部位于旧金山的初创公司 Manifest AI 正从不同角度解决这个问题。它没有改变注意力机制的工作方式,而是用其他东西取代了它。
It has developed a mechanism it calls power retention, which stores only the most relevant information for a given task and ensures that the amount of data an LLM has to keep track of doesn’t blow up.
它开发了一种称为“幂保持”的机制,该机制仅存储给定任务最相关的信息,并确保 LLM 需要跟踪的数据量不会爆炸式增长。
Attention mechanisms force LLMs to keep track of everything in their context window. A sparse attention model (such as SubQ) throws out a lot of the individual words, but it still retains a rough picture of everything it has seen. In contrast, power retention works by providing the model with a rolling summary of its context window. As new information is added, less relevant information is dropped.
注意力机制迫使大型语言模型(LLM)跟踪其上下文窗口中的所有内容。稀疏注意力模型(如SubQ)会丢弃大量单个单词,但仍保留其所见内容的粗略图景。相比之下,权力保留通过为模型提供其上下文窗口的滚动摘要来工作。随着新信息的加入,不太相关的信息会被丢弃。
The basic principle of retention has been around for a decade. Manifest AI claims it has updated those techniques to build models that can stand up to transformer-based LLMs for the first time.
保留的基本原理已经存在了十年。Manifest AI声称,它已经更新了这些技术,首次构建出能够与基于Transformer的LLM相抗衡的模型。
The company says it is possible to adapt a transformer model into a power retention model with minimal retraining. To demonstrate this, it has turned an existing open-source coding LLM called StarCoder into a version that uses power retention, called PowerCoder. It has also released a model called Brumby, which it claims rivals some versions of Alibaba’s popular open-source model Qwen.
该公司表示,可以将Transformer模型改编为权力保留模型,且只需极少的重新训练。为了证明这一点,它已将现有的开源编码LLM StarCoder转变为使用权力保留的版本,称为PowerCoder。它还发布了一个名为Brumby的模型,声称可以与阿里巴巴流行的开源模型Qwen的某些版本相媲美。
Manifest AI wants its power retention tech to become the go-to solution when LLMs need to carry out tasks that involve processing huge amounts of data. There are many useful applications, Manifest AI’s cofounder and CTO, Carles Gelada, claimed in a video announcing his company’s technology last year—from analyzing videos that are hours long to building agents that can stay on task for weeks at a time.
Manifest AI希望其权力保留技术成为LLM在处理海量数据任务时的首选解决方案。Manifest AI的联合创始人兼首席技术官Carles Gelada在去年的一段宣布其公司技术的视频中声称,有许多有用的应用——从分析长达数小时的视频到构建能够连续数周保持任务的智能体。
02: Making models smaller and more flexible
02:让模型更小、更灵活
Liquid AI, an MIT spinout based in Cambridge, Massachusetts, hasn’t changed or ditched transformers fully but pairs them with its own tech, liquid neural networks, to build what cofounder and CEO Ramin Hasani calls LFMs (liquid foundation models).
Liquid AI,一家位于马萨诸塞州剑桥市的MIT衍生公司,并未完全改变或抛弃Transformer,而是将其与自己的技术——液态神经网络——相结合,构建出联合创始人兼首席执行官Ramin Hasani所称的LFM(液态基础模型)。
Liquid AI’s models are far smaller and use less energy than most LLMs. The firm builds models for car makers, including Mercedes, which run on the small chips inside vehicles. Its latest models can run on a Raspberry Pi, a low-powered hobbyist computer that costs $50.
Liquid AI的模型比大多数LLM小得多,能耗也更低。该公司为包括梅赛德斯在内的汽车制造商构建模型,这些模型在车辆内部的小型芯片上运行。其最新模型可以在树莓派(一款售价50美元的低功耗爱好者计算机)上运行。
Its models are available for free to any organization with an annual revenue less than $10 million. And they have proved popular: The company has racked up almost 34 million downloads, says Hasani.
其模型对年收入低于1000万美元的任何组织免费提供。而且它们已被证明很受欢迎:Hasani表示,该公司已积累了近3400万次下载。
Liquid neural networks were inspired by worm brains. They are an extension of another type of neural network that predates transformers, called convolutional networks. The key innovation is a mechanism that lets a model adapt its behavior to new information, so it can learn as it goes. That’s not possible with transformers: Once a model is trained, its behavior is fixed.
液态神经网络受到蠕虫大脑的启发。它们是另一种先于Transformer的神经网络(称为卷积网络)的扩展。关键创新是一种机制,允许模型适应新信息,从而可以边学边用。这在Transformer中是不可能的:一旦模型训练完成,其行为就固定了。
Liquid AI’s first models were pretty basic but could fly drones or drive vehicles. With LFMs, the company is trying to scale up its technology to compete with mainstream LLMs. Its new models match the performance of rivals four times bigger, including versions of Alibaba’s Qwen and Google’s open-source LLM Gemma.
Liquid AI的首批模型相当基础,但能驾驶无人机或车辆。通过LFM,该公司正试图扩展其技术,以与主流LLM竞争。其新模型的性能与四倍大的竞争对手相当,包括阿里巴巴的Qwen和谷歌的开源LLM Gemma的版本。
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力