Skip to main content
QUICK REVIEW

[論文レビュー] Poly-attention: a general scheme for higher-order self-attention

S. Chakrabarti, Pitassi, Toniann|arXiv (Cornell University)|Feb 2, 2026
Quantum many-body systemsPhysics and Astronomy被引用数 0
ひとこと要約

この論文は poly-attention を定義する。自己注意を高次元(テンソル)相互作用へと一般化する広範なフレームワークを提供し、その計算量と表現力を分析、任意回の関数合成をサポートしつつ二次時間計算を達成する木構造注意法(tree-attention)を導入する。

ABSTRACT

The self-attention mechanism, at the heart of the Transformer model, is able to effectively model pairwise interactions between tokens. However, numerous recent works have shown that it is unable to perform basic tasks involving detecting triples of correlated tokens, or compositional tasks where multiple input tokens need to be referenced to generate a result. Some higher-dimensional alternatives to self-attention have been proposed to address this, including higher-order attention and Strassen attention, which can perform some of these polyadic tasks in exchange for slower, superquadratic running times. In this work, we define a vast class of generalizations of self-attention, which we call poly-attention mechanisms. Our mechanisms can incorporate arbitrary higher-order (tensor) computations as well as arbitrary relationship structures between the input tokens, and they include the aforementioned alternatives as special cases. We then systematically study their computational complexity and representational strength, including giving new algorithms and matching complexity-theoretic lower bounds on the time complexity of computing the attention matrix exactly as well as approximately, and tightly determining which polyadic tasks they can each perform. Our results give interesting trade-offs between different desiderata for these mechanisms, including a tight relationship between how expressive a mechanism is, and how large the coefficients in the model may be so that the mechanism can be approximated in almost-linear time. Notably, we give a new attention mechanism which can be computed exactly in quadratic time, and which can perform function composition for any fixed number of functions. Prior mechanisms, even for just composing two functions, could only be computed in superquadratic time, and our new lower bounds show that faster algorithms for them are not possible.

研究の動機と目的

  • 標準的な自己注意が高次の関係性を捉える際の限界を動機付け formalize する。
  • 自己注意、テンソル注意、ストラステン注意を包含する統一フレームワークとして poly-attention を導入する。
  • さまざまな poly-attention メカニズムの厳密および近似の計算量を分析する。
  • 表現力と計算効率のトレードオフを特定する。
  • 実用的で表現力が高く効率的な実装として tree-attention を提案する。

提案手法

  • poly-attention を駆動する次数 k、疎性 s を用いて attentionpolynomials を定義する。
  • poly-attention が自己注意、テンソル注意、ストラステン注意を特別な場合として包含することを示す。
  • poly-attention の厳密および近似の実行時間を特徴づけ、二次時間が可能な場合(tree-attention)を特定する。
  • 木構造を持つ h_r 多項式に対して Att^(h_r) を厳密には O(r^3 n^2) 時間で計算でき、r 回の合成を模擬できることを証明する。
  • 細粒度の複雑さを用いた下界を提供し、適用可能な場合には subcubic アルゴリズムを示す(例:特定の tree 多項式)。
  • tree-attention を用いた実験的検証を、関数合成タスクにおいて標準の自己注意と比較して提示する。
Figure 2: Accuracy per epoch for learning $f_{1}(f_{2}(x))$ for sequence length $51$ , on a single layer of tree-attention, one layer self-attention and two layer self-attention.
Figure 2: Accuracy per epoch for learning $f_{1}(f_{2}(x))$ for sequence length $51$ , on a single layer of tree-attention, one layer self-attention and two layer self-attention.

実験結果

リサーチクエスチョン

  • RQ1poly-attention は既存の高次注意機構を包含し得るのか、その表現力はどれほどか。
  • RQ2異なる多項式に対して poly-attention の厳密および近似の時間計算量はどうなるのか。
  • RQ3poly-attention を二次時間で計算できる条件は何か、どの実装がそれを達成するのか。
  • RQ4tree-attention は自己注意およびストラステン/テンソル注意と比較して関数合成やその他の表現タスクにどの程度能力を示すのか。
  • RQ5重みの境界が近い場合の近似誤差は poly-attention の高速計算の実現可能性にどのように影響するのか。

主な発見

  • Poly-attention は attention polynomials を介して自己注意、テンソル注意、ストラステン注意を一般化する。
  • Tree-attention は二次時間で計算可能で、任意の固定された r に対して r 回の関数合成を解くことができる。
  • h_r 多項式の木構造に対して Att^(h_r) は厳密に O(r^3 n^2) 時間で計算でき、r 回の合成を模擬できる。
  • 非木構造の poly-attentions は、重みの境界が大きい場合、正確または近似計算に対して通常は超二次時間を要する。
  • 特定の非木多項式については、重み境界が小さい場合に n^{1+o(1)} の高速近似が可能だが、そうでない場合は超二次となる。
  • 経験的結果として、tree-attention は学習可能で、推論時の性能は自己注意と同程度で、わずかなオーバーヘッドを伴う。
Figure 3: Training loss per epoch, averaged over 10 seeds, for learning $f_{1}(f_{2}(x))$ for sequence length $51$ , on a single layer of tree-attention, one layer self-attention and two layer self-attention. Tree-attention learns faster and has less fluctuations.
Figure 3: Training loss per epoch, averaged over 10 seeds, for learning $f_{1}(f_{2}(x))$ for sequence length $51$ , on a single layer of tree-attention, one layer self-attention and two layer self-attention. Tree-attention learns faster and has less fluctuations.

この論文を読む

Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。

Nubintでこの論文を読む

このレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。