研究人员开发长上下文 AI 的 Token 处理新方法

继续使用 Google、Facebook 或 Apple,即表示您同意使用条款。
研究人员开发出在长上下文 AI 中处理 Token 的更智能方法
由 Sadie Harley 编辑,Andrew Zinin 审阅
本文已根据 Science X 的编辑流程和政策进行审阅。编辑在确保内容可信度的同时,强调了以下属性:
添加到首选来源
SLAKE 简化了对不太重要 Token 的注意力计算,并将内存分配给对模型输出贡献最大的 Token。它可与现有的预训练模型配合使用,无需额外训练。图片来源:韩国首尔科学技术大学 Hyun Kim 教授
当我们让大型语言模型(LLM),如 GPT-4、Llama 或 Mistral,执行一项任务,例如总结一篇冗长的研究论文或一段对话时,它首先会将文本拆分成称为 Token 的更小单元。模型随后处理这些 Token,以理解文本并生成回复。如今的 LLM 可以处理超过 128,000 个 Token 的输入。然而,处理如此长的输入对计算能力和内存提出了相当大的要求。
有两种常见方法有助于降低这些需求。一种方法是丢弃不太重要的 Token 以节省内存,另一种方法则是简化 Token 之间关系的计算,以降低计算需求。然而,丢弃 Token 可能导致信息丢失,而简化计算可能影响模型准确性。
为了克服这些局限,由 Hyun Kim 教授领导,Dahun Choi 和 Huibeom Kang 参与的研究团队开发了 Softmax-Approximated Training-Free Linear Attention with KV-Cache Eviction(SLAKE)。Kang 在韩国首尔科学技术大学(SeoulTech)电气与信息工程系开展了这项工作,现为 ENERZAi 的机器学习研究员。
SLAKE 并不完全丢弃重要性较低的 Token,而是在保留最重要 Token 完整信息的同时,保留其信息的近似表示。
该论文发表在期刊 Neurocomputing 上。
“借助 SLAKE,模型能够保留对整个上下文粗略但有用的把握,而不是直接丢失其中一部分,因此相比传统淘汰方式,信息损失要少得多,同时内存占用始终保持很小且固定。”论文第一作者 Kang 解释道。
SLAKE 通过两项技术实现这一点。第一项称为 Partially Taylor-Approximated Attention(PTAA),它利用基于泰勒展开的数学近似,简化重要性较低 Token 的注意力计算,同时对重要 Token 保留常规注意力计算。第二项称为 Value-Aware Budget Scoring(VABS),它通过衡量每个 Token 对最终回复的贡献程度,帮助模型决定在有限内存中保留哪些 Token。
通过对部分注意力计算进行近似,同时为重要 Token 保留原有机制,SLAKE 可以使用现有预训练模型的权重。这使其无需额外训练或改动模型架构,就能直接与这些模型配合使用。
研究人员使用 Llama-3.1-8B 模型对 SLAKE 进行了测试。与传统处理方式相比,SLAKE 生成响应的速度最高提升 10 倍,整体处理速度提升约 5.8 倍。在处理 128,000 Token 的输入时,其峰值内存占用还减少了 30.8%。
在用于评估 LLM 处理和理解长输入能力的 LongBench-16 基准测试中,SLAKE 的平均准确率与全内存模型的差距保持在四个百分点以内——后者保留输入中的全部信息,不对任何 Token 进行压缩或丢弃。
通过在保持高准确率的同时降低计算与内存需求,SLAKE 有望让 AI 服务速度更快、运营成本更低,并能够在智能手机、智能家居中枢等内存受限的设备上本地运行——使个人数据可以在设备端私密处理。
Kang 表示:“我们的工作有望让长上下文 AI 变得足够便宜、足够快,从而成为日常生活的一部分。AI 助手可以在几秒内读完整本书、合同或病历,并记住数月的对话。由于 SLAKE 这类方法无需重新训练即可生效,这些收益可以立即应用于现有模型,让小型企业、学校和个人也能用得起先进的 AI,而不只是大型科技公司。”
Huibeom Kang 等,SLAKE: Softmax-approximated training-free linear attention with KV-Cache eviction for long-sequence LLMs,Neurocomputing (2027)。DOI: 10.1016/j.neucom.2026.135275
这篇报道背后的作者是谁?
生命科学与生态学学士。拥有微生物实验室背景,并具备石油、天然气和可再生能源行业的医药新闻从业经验。完整简介 →
物理学硕士,具备科研经验。长期的科学新闻爱好者。在 Science X 的编辑工作成功中发挥关键作用。完整简介 →
引用:研究人员开发出更智能的方式来处理长上下文 AI 中的 Token(2026年11月23日),2026年11月23日检索自 https://techxplore.com/news/2026-11-smarter-tokens-context-ai.html
本文受版权保护。除为私人学习或研究目的进行的任何合理使用外,未经书面许可,不得复制任何部分。内容仅供参考。
研究发现,一些 AI 机器人会更努力地打破刻板印象
研究发现,缩小 AI 内存可提升准确性
新的通信与内存工具减少 AI 数据传输量和响应延迟
一种让 AI 聊天机器人全天候对话而不崩溃的新方法
Meta 推出 Chameleon,一个早期融合的多模态模型
新方法让混沌系统的 AI 模型具备物理一致性
纳米磁体将热涨落转化为免校准的幂律计算
为 AI 控制的机器人加装 LEASH:新系统可减少有害行为
“自反思”机器人能识别自身局限
局部晶格畸变在设计自修复合金方面展现出前景
“SLIC”训练可帮助工程师更快、更低成本地设计模拟芯片
获取即时摘要文本(Gist)
SLAKE 将重要 Token 的精确注意力与其他 Token 的近似方法相结合,且无需重新训练。在 Llama-3.1-8B 上,它实现了最高 10 倍的生成提速,并在 128,000 Token 时将峰值内存降低 30.8%。LongBench-16 的准确率与全内存模型相差不超过四个百分点。
本摘要由 LLM 自动生成。完整免责声明
译文由英文原文机器翻译,术语按行业惯例统一,可在文末展开原文核对。
查看英文原文(Researchers develop smarter way to handle tokens in long-context AI)
By continuing with Google, Facebook or Apple, you agree to the Terms of Use.
Researchers develop smarter way to handle tokens in long-context AI
edited by Sadie Harley, reviewed by Andrew Zinin
This article has been reviewed according to Science X's editorial process and policies. Editors have highlighted the following attributes while ensuring the content's credibility:
Add to Preferred Sources
SLAKE simplifies attention calculations for less important tokens and allocates memory to those that contribute most to the model's output. It works with existing pretrained models without requiring additional training. Credit: Professor Hyun Kim, Seoul National University of Science and Technology, Korea
When we give a large language model (LLM), such as GPT-4, Llama or Mistral, a task such as summarizing a lengthy research paper or a conversation, it first breaks the text into smaller units called tokens. The model then processes these tokens to understand the text and generate a response. Today's LLMs can process inputs exceeding 128,000 tokens. However, processing such long inputs places considerable demands on computing power and memory.
Two common approaches help reduce these demands. One discards less important tokens to save memory, while the other simplifies calculations of relationships between tokens to reduce computing requirements. However, discarding tokens can cause information loss, while simplifying calculations can affect model accuracy.
To overcome these limitations, a research team led by Professor Hyun Kim, alongside Dahun Choi and Huibeom Kang, has developed Softmax-Approximated Training-Free Linear Attention with KV-Cache Eviction (SLAKE). Kang conducted the work at the Department of Electrical and Information Engineering at Seoul National University of Science and Technology (SeoulTech), Republic of Korea, and is now a machine learning researcher at ENERZAi.
Instead of discarding less important tokens entirely, SLAKE retains an approximate representation of their information while keeping the most important tokens intact.
This paper was published in the journal Neurocomputing.
"With SLAKE, the model keeps a rough but useful picture of the entire context instead of losing parts of it outright, so far less information is lost than with conventional eviction, while memory use stays small and fixed," explains Kang, the first author of the paper.
SLAKE uses two techniques to achieve this. The first, called Partially Taylor-Approximated Attention (PTAA), uses a Taylor-based mathematical approximation to simplify attention calculations for less important tokens while retaining conventional attention calculations for important ones. The second, called Value-Aware Budget Scoring (VABS), helps the model decide which tokens to keep in its limited memory by considering how much each token contributes to the final response.
By approximating some attention calculations while retaining the original mechanism for important tokens, SLAKE can use the weights of existing pretrained models. This allows it to work directly with these models without additional training or changes to their architecture.
The researchers tested SLAKE using a Llama-3.1-8B model. Compared with conventional processing, SLAKE generated responses up to 10 times faster and improved overall processing speed by about 5.8 times. It also used 30.8% less peak memory when handling inputs of 128,000 tokens.
When tested on the LongBench-16 benchmark, which evaluates how well LLMs process and understand long inputs, SLAKE's average accuracy remained within four percentage points of a full-memory model that retained all information from the input without compressing or discarding any tokens.
By reducing computing and memory requirements while maintaining high accuracy, SLAKE could make AI services faster, less expensive to operate and capable of running locally on memory-constrained devices such as smartphones and smart-home hubs—allowing personal data to be processed privately on-device.
"Our work could make long-context AI cheap and fast enough to be part of everyday life. AI assistants could read entire books, contracts or medical histories in seconds and remember months of conversation. Because methods like SLAKE work without retraining, these gains can be applied to existing models right away, making advanced AI affordable for small businesses, schools and individuals rather than only large tech companies," says Kang.
Huibeom Kang et al., SLAKE: Softmax-approximated training-free linear attention with KV-Cache eviction for long-sequence LLMs, Neurocomputing (2027). DOI: 10.1016/j.neucom.2026.135275
Who's behind this story?
BSc Life Sciences & Ecology. Microbiology lab background with pharmaceutical news experience in oil, gas, and renewable industries. Full profile →
Master's in physics with research experience. Long-time science news enthusiast. Plays key role in Science X's editorial success. Full profile →
Citation: Researchers develop smarter way to handle tokens in long-context AI (2026, November 23) retrieved 23 November 2026 from https://techxplore.com/news/2026-11-smarter-tokens-context-ai.html
This document is subject to copyright. Apart from any fair dealing for the purpose of private study or research, no part may be reproduced without the written permission. The content is provided for information purposes only.
Some AI bots work harder to defy stereotypes, study finds
Shrinking AI memory boosts accuracy, study finds
New communication and memory tools reduce AI data traffic and response delays
A new way to let AI chatbots converse all day without crashing
Meta introduces Chameleon, an early-fusion multimodal model
New approach enables physically consistent AI models of chaotic systems
Nanomagnets turn thermal fluctuations into calibration-free power-law computing
A LEASH for AI-controlled robots: New system could reduce harmful actions
'Self-reflective' robot recognizes its limitations
Local lattice distortion shows promise for designing self-healing alloys
'SLIC' training could help engineers design analog chips faster and with less expense
Get Instant Summarized Text (Gist)
SLAKE combines exact attention for important tokens with approximations for others, requiring no retraining. On Llama-3.1-8B, it achieved up to 10-fold faster generation and reduced peak memory by 30.8% at 128,000 tokens. LongBench-16 accuracy remained within four percentage points of the full-memory model.
This summary was automatically generated using LLM. Full disclaimer
This site uses cookies to assist with navigation, analyse your use of our services, collect data for ads personalisation and provide content from third parties. By using our site, you acknowledge that you have read and understand our Privacy Policy and Terms of Use.
原文为英文,正文由自动抓取并保留原文。
原文发布于 TechXplore(Researchers develop smarter way to handle tokens in long-context AI),标题、摘要与正文由机器翻译,术语按行业惯例统一,未经人工逐句校订。
