SeoulTech researchers develop smarter token handling for long-context AI

Ask an AI assistant to summarise a research paper or pick up a months-long conversation, and it may have to sift through tens of thousands of fragments of text. These fragments, known as tokens, are the units that models such as GPT-4, Llama and Mistral process to produce an answer. Some models can handle more than 128,000 tokens at once, but doing so takes substantial computing power and memory.

Two common shortcuts come with trade-offs. Dropping less important tokens saves memory but can erase useful details. Simplifying the calculations that determine how tokens relate to one another reduces the computing load but can affect accuracy. Researchers at Seoul National University of Science and Technology (SeoulTech) in South Korea have developed a method that keeps the most important tokens intact and preserves an approximate record of the rest.

Professor Hyun Kim led the research with Dahun Choi and first author Huibeom Kang, who carried out the work in SeoulTech’s Department of Electrical and Information Engineering and is now a machine learning researcher at ENERZAi. The paper appeared online on 1 October 2026 and is scheduled for publication in Volume 709 of Neurocomputing on 14 January 2027.

“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,” Kang said.

SLAKE stands for Softmax-Approximated Training-Free Linear Attention with KV-Cache Eviction. It uses Value-Aware Budget Scoring to decide which tokens to keep in memory based on their likely contribution to the answer. Partially Taylor-Approximated Attention simplifies calculations for the remaining tokens while preserving standard attention for the most important ones. The method uses existing model weights and requires no retraining or architectural changes.

In tests with Llama-3.1-8B, SLAKE generated responses up to 10 times as fast as conventional processing and increased overall processing speed by a factor of about 5.8. With 128,000-token inputs, it cut peak memory use by 30.8%. Its average accuracy on the LongBench-16 benchmark was within four percentage points of a model that retained the full input.

The researchers say those savings could make AI services cheaper to run and help bring long-context models to devices with limited memory, such as smartphones and smart-home hubs. Processing requests on the device could also keep personal data local.

“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,” Kang said.

More information: Huibeom Kang et al, SLAKE: Softmax-approximated training-free linear attention with KV-Cache eviction for long-sequence LLMs, Neurocomputing. DOI: 10.1016/j.neucom.2026.135275

Journal information: Neurocomputing Provided by Seoul National University of Science & Technology

Leave a Reply

Your email address will not be published. Required fields are marked *