Neural Attention Search Linear: Towards Adaptive Token-Level Hybrid Attention Models

34d ago · Global · primary source: export.arxiv.org

Multi-source synthesis by The Embedding Report from 2 sources. Every numeric and quoted claim traces to a cited source body (see methodology).

Researchers have proposed new frameworks to improve the efficiency of sequential models, addressing the computational complexity bottleneck of softmax transformers in long-context scenarios.

The quadratic computational complexity of softmax transformers becomes a bottleneck in long-context scenarios, according to a paper submitted to arXiv[1]. Linear attention model families offer a more efficient direction, but their expressivity remains limited. Previous work interleaved softmax and linear attention layers, but efficiency remained bottlenecked by softmax attention layers. A new framework, Neural Attention Search Linear (NAtS-L), applies both linear and softmax attention operations within the same layer on different tokens, automatically determining whether a token can be handled by a linear attention model or requires softmax attention. NAtS-L provides a strong yet efficient token-level hybrid architecture. Another study on arXiv[2] introduced Exact Linear Attention (ELA), which eliminates approximation error and addresses gradient explosion and token attention dilution. ELA achieves up to 6x faster decoding speed and 75% reduction in KV cache memory usage compared to full attention[2]. Furthermore, YOLO-LAT, an extension of linear attention to vision models, attained up to 4.3x GPU inference speedup and 7.9x parameter reduction.

research-paperinfrastructuretool-release

Background sources we checked (4)
  • arxiv.org ↗ The quadratic computational complexity of softmax transformers has become a bottleneck in long-context scenarios. In contrast, linear attention model families provide a promising direction towards a more efficient sequential model. These linear attention models compress past KV v…
  • en.wikipedia.org ↗ A large language model (LLM) is a neural network trained on a vast amount of text for natural language processing tasks, especially language generation. LLMs can typically generate, summarize, translate, and analyze text in many contexts, and are a foundational technology behind …
  • en.wikipedia.org ↗ In artificial neural networks, recurrent neural networks (RNNs) are designed for processing sequential data, such as text, speech, and time series, where the order of elements is important. Unlike feedforward neural networks, which process inputs independently, RNNs utilize recur…
  • en.wikipedia.org ↗ In machine learning, a neural network (NN) or neural net, is a computational model inspired by the structure and functions of biological neural networks. A neural network consists of connected units or nodes called artificial neurons, which loosely model the neurons in the brain.…

Sources cited (2)

  1. arxiv.org ↗ E
  2. arxiv.org ↗ E
Spot something wrong? Report an issue