소프트맥스 셀프 어텐션의 학습 동역학: 전처리를 통한 빠른 전역 수렴
Training Dynamics of Softmax Self-Attention: Fast Global Convergence via Preconditioning
한국어 초록
선형 회귀를 수행하도록 학습된 다층 소프트맥스 셀프 어텐션 네트워크에서 경사 하강법의 학습 동역학을 연구하고, 무한 데이터 극한에서 이 회귀 문제가 행렬 분해 문제와 동등함을 보인다. 이러한 연결은 셀프 어텐션 네트워크 학습을 위한 새로운 1차 최적화 알고리즘인 Hera의 설계로 이어진다. Hera의 주요 특징은 행렬 분해 기하에서 비롯된 모델의 재매개변수화와, 학습 내내 경험적 손실 기울기가 보조 행렬 분해 기울기에 가깝게 유지되도록 하는 매개변수 재조정이다. 재매개변수화된 모델에서의 Hera 업데이트는 원래 매개변수화에서의 특정 전처리 업데이트와 동등하다. 또한 Hera-PSD라는 변형을 제안하며, 주요 이론적 결과는 작은 가우시안 초기화 하에서 Hera-PSD로 학습된 모델의 초과 위험이 경사 하강법 반복 횟수에 대해 지수적으로 빠르게 감소한다는 것이다. 여기에는 학습 집합 크기에 대해 로그 인자를 제외하고 $1/n$로 감소하는 추가 오차항이 포함된다. 이 초과 위험 경계의 특히 매력적인 점은 셀프 어텐션 층의 수가 늘어나도 악화되지 않는다는 것이다. 비선형 동적 시스템에서의 양식화된 시계열 예측 실험에서, 동일한 반복 예산 기준으로 Hera로 학습된 모델은 AdamW로 학습된 모델보다 평균제곱 테스트 오차가 $98.1\%$ 낮고 Muon으로 학습된 모델보다 $97.7\%$ 낮았다.
원문 초록
We study the training dynamics of gradient descent in a multilayer softmax self-attention network trained to perform linear regression and show that in the infinite-data limit this regression problem is equivalent to a matrix factorization problem. This connection motivates the design of Hera, a new first-order optimization algorithm for training self-attention networks. Key features of Hera include a reparameterization of the model arising from the matrix factorization geometry and a rescaling of the parameters which ensures that the empirical loss gradients remain close to the auxiliary matrix factorization gradients throughout training. Hera updates in the reparameterized model are equivalent to a certain preconditioned update in the original parameterization. We also propose a variant of Hera called Hera-PSD; our main theoretical result is that under small Gaussian initialization the excess risk of the model trained by Hera-PSD decreases exponentially fast in the number of gradient descent iterations, up to an additional error term that decreases as $1/n$, up to logarithmic factors, in the size of the training set. A particularly appealing aspect of our excess risk bound is that it does not degrade as the number of self-attention layers increases. In a stylized time-series prediction experiment in a nonlinear dynamical system, we find that a model trained by Hera achieves $98.1\%$ lower mean-squared test error than a model trained by AdamW and $97.7\%$ lower than a model trained by Muon at the same iteration budget.
제출 이력
확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.
- arXiv:2603.01514v2제출 시각 미확인
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
공통 태그로 연결된 공개 논문이 아직 없습니다.
토론
이 논문과 연결된 포럼 글이 아직 없습니다.