트랜스포머의 성능-효율 상충: 근사 이론 관점
Performance-Efficiency Tradeoffs in Transformers: An Approximation Theory Perspective
한국어 초록
트랜스포머는 다양한 응용 분야에서 뛰어난 성과를 거두었지만, 모델 효율성에 대한 이론적 기반은 아직 충분히 탐구되지 않았다. 본 연구에서는 표현력과 효율성의 균형을 맞추기 위해 레이어 전반에 모델 매개변수—주로 어텐션 헤드와 헤드 차원—를 어떻게 배분해야 하는지 조사한다. 먼저 근사 관점에서 정보 추출에 있어 초기 레이어의 역할에 대한 수학적 분석을 제공하고, 고정된 매개변수 예산 하에서 헤드 수와 헤드 차원 사이의 상충 관계에 대한 이론적 특성화를 제시한다. 또한 소프트맥스 활성화의 포화(saturation) 거동을 발견하고 이를 증명한다. 헤드 차원을 계속 늘리면 학습 오류 측면에서 수확 체감이 나타날 수 있으며, 특히 긴 시퀀스에서 그렇다. 이론과 실험 모두가 뒷받침하는 이 포화 패턴은 후기 레이어가 더 적은 매개변수로도 더 효율적으로 동작할 수 있음을 시사한다. 이러한 통찰을 종합하여 트랜스포머 레이어 전반에 어텐션 헤드와 차원을 배분하는 원칙적 전략을 제안하고, 트랜스포머 기반 아키텍처의 이론적으로 정당화된 모델 효율성에 대한 이해를 제공한다.
원문 초록
Transformers have achieved remarkable successes across a wide range of applications, yet the theoretical foundation of their model efficiency remains underexplored. In this work, we investigate how the model parameters -- mainly attention heads and head dimensions -- should be allocated across layers to balance expressivity and efficiency. We first provide mathematical analysis on the role of early layers in information extraction from an approximation perspective, with a theoretical characterization on the trade-off between the number of heads and head dimension under a fixed parameter budget. In addition, we uncover and prove the \emph{saturation} behavior of softmax activations: Continuously increasing head dimensions can lead to diminishing returns in learning errors, particularly for long sequences. Supported by both theory and experiments, this saturation pattern suggests that later layers can operate more efficiently with reduced parameters. Combining these insights, we propose principled strategies for allocating attention heads and dimensions across Transformers' layers, shedding light on theoretically-grounded model efficiency of Transformer-based architectures.
제출 이력
확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.
- arXiv:2510.03784v2제출 시각 미확인
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
공통 태그로 연결된 공개 논문이 아직 없습니다.
토론
이 논문과 연결된 포럼 글이 아직 없습니다.