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.