[논문 리뷰] Poly-attention: a general scheme for higher-order self-attention
논문은 poly-attention을 정의합니다. 이는 self-attention을 더 높은 차원(텐서) 상호작용으로 일반화하는 광범위한 프레임워크이며, 그 복잡도와 표현력을 분석하고, 임의의 접합 함수 구성을 지원하는 위양한(트리)-attention을 도입하여 두 배의 시간 복잡도 계산을 달성합니다.
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.
연구 동기 및 목표
- 표준 self-attention이 고차관계(higher-order relationships)를 포착하는 데의 한계를 동기화하고 형식화한다.
- self-attention, tensor attention, 및 Strassen attention을 포섭하는 통합 프레임워크로서 poly-attention을 도입한다.
- 다양한 poly-attention 메커니즘의 정확한 및 근사 계산 복잡도를 분석한다.
- 표현력과 계산 효율성 사이의 트레이드오프를 식별한다.
- 실용적이고 표현적이며 효율적인 구현으로서 tree-attention을 제안한다.
제안 방법
- poly-attention을 이끄는 차수 k와 희소도 s를 갖는 attention polynomials를 정의한다.
- poly-attention이 self-attention, tensor attention, 및 Strassen attention을 특수한 경우로 포괄한다.
- poly-attention에 대한 정확한 및 근사 실행 시간을 특징짓고 언제 2차 시간( quadratic-time )이 가능한지 식별한다.
- tree-attention이 임의의 고정된 r에 대해 2차 시간 안에 r-fold 함수 합성을 수행할 수 있음을 증명한다.
- 정밀한 복잡도(fine-grained complexity)를 사용한 하한을 제공하고 적용 가능할 때 부분 세제곱(subcubic) 알고리즘을 시연한다.
- 함수 합성 작업에서 tree-attention과 표준 self-attention을 비교하는 실험적 검증을 제시한다.]
- research_questions:[
- poly-attention이 기존의 고차(attention) 메커니즘을 흡수할 수 있는가 그리고 그것의 전체 표현력은 무엇인가?
- 다른 다항식들에 대해 poly-attention을 계산하는 정확한 및 근사 시간복잡도는 무엇인가?
- 어떤 조건에서 poly-attention이 2차 시간에 계산될 수 있으며 어떤 구현이 이를 달성하는가?
- tree-attention의 함수 합성 및 다른 표현 작업에 대한 능력은 self-attention 및 Strassen/tensor attention과 비교할 때 어떠한가?
- 가중치의 근사 경계가 poly-attention의 빠른 계산 가능성에 어떤 영향을 미치는가?

실험 결과
연구 질문
- RQ1poly-attention이 기존의 고차(attention) 메커니즘을 흡수할 수 있는가 그리고 그것의 전체 표현력은 무엇인가?
- RQ2다른 다항식들에 대해 poly-attention을 계산하는 정확한 및 근사 시간복잡도는 무엇인가?
- RQ3어떤 조건에서 poly-attention이 2차 시간에 계산될 수 있으며 어떤 구현이 이를 달성하는가?
- RQ4tree-attention의 함수 합성 및 다른 표현 작업에 대한 능력은 self-attention 및 Strassen/tensor attention과 비교할 때 어떠한가?
- RQ5가중치의 근사 경계가 poly-attention의 빠른 계산 가능성에 어떤 영향을 미치는가?
주요 결과
- Poly-attention은 attention polynomials를 통해 self-attention, tensor attention, 및 Strassen attention을 일반화한다.
- Tree-attention은 2차 시간에 계산될 수 있으며 임의의 고정된 r에 대해 r-fold 함수 합성을 해결할 수 있다.
- 하나의 h_r 다항식과 트리 구조에 대해, Att^(h_r)은 정확히 O(r^3 n^2) 시간에 계산될 수 있으며 r-fold 합성을 시뮬레이션할 수 있다.
- 비-tree poly-attention은 가중치 경계가 큰 경우 일반적으로 정확한 또는 근사 계산에 대해 superquadratic 시간을 필요로 한다.
- 특정 비-tree 다항식에 대해 가중치 경계가 작을 때는 빠른 n^{1+o(1)}-시간 근사가 가능하지만 그렇지 않으면 초과 2차 시간으로 증가한다.
- 경험적 결과는 tree-attention이 학습 가능하고 추론 시.self-attention과 비교해도 비슷하며 약간의 오버헤드가 있음을 보인다.]

이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.