프로필

설정

불러오는 중…

← 홈

도움말·문의

자주 묻는 질문

어떤 기능에 로그인이 필요한가요?

공개 논문의 해설과 논문 정보, 모델 구조, 관련 논문, 용어는 로그인 없이 볼 수 있습니다. 논문 올리기, 내 보관함, 읽기 기록, 논문 평가, 관심 분야 추천, 메일과 알림은 로그인해야 쓸 수 있습니다.

PDF 파일로도 올릴 수 있나요?

논문은 arXiv나 DOI 링크로 올리고, 해설은 모두에게 공개됩니다. 출처와 이용 조건이 확인되지 않아 해설을 공개할 수 없는 논문은 올릴 수 없습니다. PDF 파일 올리기와 나만 보기는 구독 회원만 쓸 수 있고, 파일로 올린 논문은 나만 보기로만 저장합니다. 제목으로 공식 정보를 찾는 검색은 버튼을 누를 때만 합니다.

그림과 AI 해설은 정확한가요?

그림은 논문 원본만 쓰고 이용 허락이 확인된 것만 보여 줍니다. 해설은 AI가 쓴 글이라 틀릴 수 있습니다. 중요한 주장과 수치, 그림의 맥락은 원문 근거로 확인해 주세요.

저작권 문제를 알리고 싶어요.

이용 조건과 원문 출처는 논문 정보 탭에 있습니다. 문제가 있으면 ‘문의하기’에서 ‘논문 내용·그림·저작권’을 골라 논문 링크와 문제가 되는 부분, 권리를 확인할 수 있는 근거를 보내 주세요. 접수만으로 권리가 확정되거나 바로 삭제되지는 않습니다. 검토 결과는 ‘내 문의’에서 볼 수 있습니다.

비밀번호를 잊었어요.

이메일로 가입했다면 로그인 창의 비밀번호 찾기에서 인증한 이메일로 다시 설정할 수 있습니다. Google, 네이버, 카카오로 가입했다면 그 서비스에서 비밀번호를 바꿔 주세요.

문의할 때 무엇을 적어야 하나요?

어느 화면에서 무엇을 하다 생긴 문제인지 논문 링크와 함께 적어 주세요. 비밀번호, API 키, 인증 코드, 전화번호 같은 개인정보는 적지 마세요. 문의와 답변은 Refivu에 저장되고 ‘내 문의’에서 볼 수 있습니다.

회원탈퇴는 어떻게 하나요?

설정의 내 계정에서 회원탈퇴를 누르세요. 지워지는 내용을 확인하고 본인 확인을 마치면 탈퇴됩니다. 다른 요청은 ‘문의하기’에서 ‘계정’을 골라 남겨 주세요.

논문 해설

ESPFormer: Doubly-Stochastic Attention with Expected Sliced Transport Plans

ESPFormer: 기대 슬라이스 수송 계획을 이용한 이중 확률적 어텐션

  • 연구 문제 Transformer 어텐션을 doubly-stochastic으로 만들 때 기존 Sinkhorn 반복이 느리다는 문제를 다룹니다.
  • 연구 방법 Expected Sliced Transport Plan을 바탕으로 슬라이스별 soft sorting 수송 계획을 계산하고 inverse temperature로 가중 집계하는 ESPFormer 어텐션을 제안합니다.
  • 주요 결과 Cats and Dogs, ModelNet40, IMDB, TweetEval, IWSLT14 실험에서 ESPFormer는 여러 설정의 Transformer 및 Sinkformer 대비 높은 정확도 또는 BLEU를 보고합니다.

Transformer 어텐션의 쏠림 문제와 Sinkhorn 비용

Transformer의 자기 어텐션은 행마다 softmax로 정규화되어 학습 중 소수의 토큰에 주의가 과도하게 몰릴 수 있습니다. 이를 줄이려고 어텐션 행렬의 행과 열 합을 모두 1로 맞추는 doubly-stochastic attention이 제안되었고, Sinkformer는 softmax를 Sinkhorn 알고리즘으로 대체해 이 성질을 구현합니다. 그러나 Sinkhorn은 행과 열 정규화를 여러 번 반복해야 수렴하므로, 반복 횟수 S가 커질수록 계산이 느려집니다.

ESPFormer는 이 지점에서 출발합니다. 저자들은 Sinkhorn 반복 없이 doubly-stochastic 어텐션을 얻는 방법으로 Expected Sliced Transport Plan을 가져옵니다. 1차원 슬라이스에서의 최적수송은 정렬로 계산되므로, 여러 슬라이스의 수송 계획을 모아 하나의 어텐션 행렬을 만드는 접근이 가능해집니다.

ESP 어텐션의 슬라이스별 수송 계획과 집계

ESPFormer는 쿼리 Q와 키 K를 각 슬라이스 방향으로 투영하고, 투영된 값을 soft sorting으로 정렬합니다. 정렬된 두 집합 사이의 수송 계획 U_l을 슬라이스마다 계산하며, 각 U_l은 정렬 행렬로 만든 doubly-stochastic 형태의 계획입니다. 슬라이스별 비용 D_l에 inverse temperature τ를 적용한 softmax로 가중치 σ_l을 정하고, G = Σ σ_l U_l로 집계합니다. 최종 출력은 값 행렬 V에 G를 곱한 V G입니다.

여기서 τ는 슬라이스 가중치를 얼마나 날카롭게 만들지를 정하는 값이며, 저자들은 이것이 각 토큰이 주의를 기울이는 토큰 수를 조절한다고 설명합니다. τ가 0이면 가중치가 모두 같아지고 G는 모든 슬라이스 계획의 평균이 됩니다. 학습 가능한 슬라이스 대신 Θ를 항등행렬로 둔 축 정렬 슬라이스를 사용하면 추가 파라미터가 생기지 않습니다.

Figure 2: The attention weights between an example pair of keys (red) and queries (green) obtained by Sinkhorn’s algorithm (top row)
with different numbers of…

Figure 2 . The attention weights between an example pair of keys (red) and queries (green) obtained by Sinkhorn’s algorithm (top row) with different numbers of iterations and by Expected Sliced Transport Plans (bottom row) with different inverse temperature values. Note that for Sinkrhorn and at zero iterations, i.e., S0, the computed attention reduces to classic self-attention. The weights are represented by the width of the lines connecting each pair of points.

원문 · CC BY 4.0 · Shahbazi, Ashkan, Akbari, Elaheh, Salehi, Darian, Liu, Xinran, Naderializadeh, Navid, Kolouri, Soheil · ESPFormer: Doubly-Stochastic Attention with Expected Sliced Transport Plans · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.

온도 어닐링 후 hard sorting으로 전환

soft sorting은 온도 파라미터에 따라 근사적인 doubly-stochastic 행렬만 만들기 때문에, 저자들은 학습 중 온도를 점차 낮추는 방식을 제안합니다. Cats and Dogs 실험에서는 40 epoch 동안 온도를 e 시점마다 γ 배씩 줄였고, γ는 0.8이며 온도는 약 10^-6까지 내려갑니다. 이 조건에서 soft sorting은 거의 hard permutation과 같아집니다.

fine-tuning이 끝나면 추론에서 soft sorting을 hard sorting으로 대체합니다. 원문은 이렇게 하면 정확한 doubly-stochastic 행렬을 얻고 추론 복잡도를 O(N²)에서 O(LN log N)으로 줄인다고 보고합니다. 이 복잡도 주장은 이론적 설명이며, 측정 결과는 아래 런타임 비교에서 따로 확인됩니다.

데이터 비율별 ViT 분류 결과

Cats and Dogs 실험은 학습 데이터 비율을 1%, 10%, 25%, 100%로 바꾸어 ViT에서 attention 방식을 비교합니다. 세 개의 랜덤 시드로 부분집합을 만들었고 모든 방법에서 같은 부분집합을 사용했습니다. 1% 데이터에서 ESPFormer의 초기 soft sort 모드는 55.66% ± 3.95, Transformer는 49.71% ± 0.31로 보고됩니다. 이 55.66%는 표 1의 초기 soft sort 열 값이며, hard sort 열의 값과 구분해서 읽어야 합니다.

Table 1: Average and standard deviation (over 3 runs) of ESPFormer’s classification accuracy (%) vs. baselines on the Cats and Dogs
dataset under varying data…

Table 1 . Average and standard deviation (over 3 runs) of ESPFormer’s classification accuracy (%) vs. baselines on the Cats and Dogs dataset under varying data availability. ESPFormer’s performance is reported in three modes: initial soft sort, sharp soft sort, and hard sort.

원문 · CC BY 4.0 · Shahbazi, Ashkan, Akbari, Elaheh, Salehi, Darian, Liu, Xinran, Naderializadeh, Navid, Kolouri, Soheil · ESPFormer: Doubly-Stochastic Attention with Expected Sliced Transport Plans · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.
Table 13: Hyperparameters used in training for ViT on Cats and Dogs dataset

Table 13 . Hyperparameters used in training for ViT on Cats and Dogs dataset.

원문 · CC BY 4.0 · Shahbazi, Ashkan, Akbari, Elaheh, Salehi, Darian, Liu, Xinran, Naderializadeh, Navid, Kolouri, Soheil · ESPFormer: Doubly-Stochastic Attention with Expected Sliced Transport Plans · 원문 그림 인용 · 원본 PDF 17쪽에서 그림 영역을 추출했습니다.

데이터가 늘어날수록 ESPFormer의 차이는 줄어들지만 여러 비율에서 높게 나타납니다. 이 결과는 ViT 구조와 Cats and Dogs 설정에서 얻은 것이며, 다른 비전 모델이나 데이터셋으로 넓힌 결론이 아닙니다.

포인트 클라우드, 감성 분석, 번역 실험

ModelNet40 실험에서는 Set Transformer와 Point Cloud Transformer 구조에 어텐션을 교체해 4회 실행의 테스트 정확도를 비교합니다. Best 값 기준으로 Set ESPFormer는 89.6%, Set Sinkformer는 89.1%, Set Transformer는 87.8%입니다. Set Transformer 수치는 원문에서 Sander et al. (2022)에서 인용되었다고 명시됩니다.

Table 8: Hyperparameters used in training for Set Transformers on ModelNet40 dataset

Table 8 . Hyperparameters used in training for Set Transformers on ModelNet40 dataset.

원문 · CC BY 4.0 · Shahbazi, Ashkan, Akbari, Elaheh, Salehi, Darian, Liu, Xinran, Naderializadeh, Navid, Kolouri, Soheil · ESPFormer: Doubly-Stochastic Attention with Expected Sliced Transport Plans · 원문 그림 인용 · 원본 PDF 15쪽에서 그림 영역을 추출했습니다.
Table 9: Hyperparameters used in training for Point Cloud Transformers on ModelNet40 dataset

Table 9 . Hyperparameters used in training for Point Cloud Transformers on ModelNet40 dataset.

원문 · CC BY 4.0 · Shahbazi, Ashkan, Akbari, Elaheh, Salehi, Darian, Liu, Xinran, Naderializadeh, Navid, Kolouri, Soheil · ESPFormer: Doubly-Stochastic Attention with Expected Sliced Transport Plans · 원문 그림 인용 · 원본 PDF 16쪽에서 그림 영역을 추출했습니다.

IMDB와 TweetEval 감성 분석에서는 인코더와 max pooling 구조를 쓰며, ESPFormer의 Best 정확도가 IMDB 85.50%, TweetEval 72.60%로 보고됩니다. IWSLT14 독일어-영어 번역에서는 Plug-and-Play 평가 후 10 epoch fine-tuning을 수행했고, Fine-Tune Boost 후 ESPFormer는 Transformer 설정에서 BLEU 34.64, DiffTransformer 설정에서 BLEU 34.83입니다. 각 실험은 서로 다른 백본과 학습 설정을 쓰므로 수치를 하나의 공통 비교로 합치지 않습니다.

Table 5: Plug-and-Play and Fine-Tune Boost performance of Trans-
former and DiffTransformer Baselines on the IWSLT14 German-
to-English dataset, reported as th…

Table 5 . Plug-and-Play and Fine-Tune Boost performance of Trans- former and DiffTransformer Baselines on the IWSLT14 German- to-English dataset, reported as the median over 4 runs. Results with a ⋆ sign denote the Plug-and-Play performance of a different attention module than the base attention module.

원문 · CC BY 4.0 · Shahbazi, Ashkan, Akbari, Elaheh, Salehi, Darian, Liu, Xinran, Naderializadeh, Navid, Kolouri, Soheil · ESPFormer: Doubly-Stochastic Attention with Expected Sliced Transport Plans · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.
Table 10: Hyperparameters used in training for Transformers on IMDb dataset

Table 10 . Hyperparameters used in training for Transformers on IMDb dataset.

원문 · CC BY 4.0 · Shahbazi, Ashkan, Akbari, Elaheh, Salehi, Darian, Liu, Xinran, Naderializadeh, Navid, Kolouri, Soheil · ESPFormer: Doubly-Stochastic Attention with Expected Sliced Transport Plans · 원문 그림 인용 · 원본 PDF 16쪽에서 그림 영역을 추출했습니다.
Table 11: Hyperparameters used in training for Transformers on TweetEval dataset

Table 11 . Hyperparameters used in training for Transformers on TweetEval dataset.

원문 · CC BY 4.0 · Shahbazi, Ashkan, Akbari, Elaheh, Salehi, Darian, Liu, Xinran, Naderializadeh, Navid, Kolouri, Soheil · ESPFormer: Doubly-Stochastic Attention with Expected Sliced Transport Plans · 원문 그림 인용 · 원본 PDF 16쪽에서 그림 영역을 추출했습니다.
Table 12: Hyperparameters used in training for neural machine translation on IWSLT14 dataset

Table 12 . Hyperparameters used in training for neural machine translation on IWSLT14 dataset.

원문 · CC BY 4.0 · Shahbazi, Ashkan, Akbari, Elaheh, Salehi, Darian, Liu, Xinran, Naderializadeh, Navid, Kolouri, Soheil · ESPFormer: Doubly-Stochastic Attention with Expected Sliced Transport Plans · 원문 그림 인용 · 원본 PDF 16쪽에서 그림 영역을 추출했습니다.

런타임 복잡도와 측정 비교

복잡도 분석에서 ESPFormer의 런타임은 O(mN(N + d))로 제시되고, Sinkhorn 기반 어텐션은 O((S + m)N²)로 제시됩니다. 여기서 m은 슬라이스 수이고 S는 Sinkhorn 반복 횟수입니다. 저자들은 Sinkhorn이 S번의 순차 처리를 요구하는 반면, ESPFormer는 m개의 슬라이스를 병렬로 계산할 수 있다고 설명합니다.

실측 런타임은 시퀀스 길이 N을 50, 100, 500, 1000으로 두고 d=1024에서 10회 실행의 평균으로 보고됩니다. Sinkformer는 S=3, 10, 15, 20 설정으로 비교되며, 원문은 hard sorting에서 ESPFormer가 모든 길이에서 더 효율적이고 soft sorting에서도 S>3인 Sinkformer보다 빠르다고 보고합니다.

Figure 3: Runtime analysis of ESPFormer versus Sinkformer
with varying iteration counts ( S) for sequence lengths N ∈
{50, 100, 500, 1000} with d = 1024 , aver…

Figure 3 . Runtime analysis of ESPFormer versus Sinkformer with varying iteration counts ( S) for sequence lengths N ∈ {50, 100, 500, 1000} with d = 1024 , averaged over 10 runs.ESPFormer achieves superior computational efficiency across all sequence lengths with hard sorting, and outperforms Sinkformer for S >3 under soft sorting, while maintaining model expressivity.

원문 · CC BY 4.0 · Shahbazi, Ashkan, Akbari, Elaheh, Salehi, Darian, Liu, Xinran, Naderializadeh, Navid, Kolouri, Soheil · ESPFormer: Doubly-Stochastic Attention with Expected Sliced Transport Plans · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.
Figure 4: Runtime analysis of Transformer, DiffTransformer, ESPFormer, and Sinkformer with varying iteration counts (S) for sequence
lengths N ∈ {50, 100, 500,…

Figure 4 . Runtime analysis of Transformer, DiffTransformer, ESPFormer, and Sinkformer with varying iteration counts (S) for sequence lengths N ∈ {50, 100, 500, 1000} with d = 1024, averaged over 10 runs. ESPFormer consistently demonstrates superior computational efficiency compared to Sinkformer across all sequence lengths, while Transformer and DiffTransformer remain the most lightweight.

원문 · CC BY 4.0 · Shahbazi, Ashkan, Akbari, Elaheh, Salehi, Darian, Liu, Xinran, Naderializadeh, Navid, Kolouri, Soheil · ESPFormer: Doubly-Stochastic Attention with Expected Sliced Transport Plans · 원문 그림 인용 · 원본 PDF 13쪽에서 그림 영역을 추출했습니다.

슬라이서 선택과 슬라이스 수의 절제 실험

축 정렬 슬라이스는 학습 파라미터를 늘리지 않고 공정한 비교를 하기 위해 선택되었습니다. 추가 절제 실험에서는 Cats and Dogs 데이터셋에서 학습 가능한 슬라이서와 고정 슬라이서를 비교하고, 슬라이스 수 L과 τ를 바꾸었습니다. 저자들은 학습 가능한 슬라이서가 L이 작을 때 성능을 높일 수 있지만 L이 커질수록 이점이 줄어든다고 해석합니다. 고정 슬라이서는 L이 낮으면 성능이 떨어진다고 보고됩니다.

Table 6: Accuracy (%) over three runs (mean ± standard deviation) across slicer types, slice counts L, and inverse temperature τ

Table 6 . Accuracy (%) over three runs (mean ± standard deviation) across slicer types, slice counts L, and inverse temperature τ.

원문 · CC BY 4.0 · Shahbazi, Ashkan, Akbari, Elaheh, Salehi, Darian, Liu, Xinran, Naderializadeh, Navid, Kolouri, Soheil · ESPFormer: Doubly-Stochastic Attention with Expected Sliced Transport Plans · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.

이 결과는 축 정렬 설정 하나의 최적성을 증명하지 않습니다. 저자들은 이 실험을 축 정렬 설정이 추가 파라미터 없이 단순한 기준선이 된다는 근거로 제시합니다.

적용 범위와 한계

저자들은 ESPFormer가 엄격한 인과적 Transformer나 자기회귀 구조와 호환되지 않는다고 밝힙니다. 하삼각성과 doubly-stochastic 성질을 함께 강제하면 매핑이 항등 행렬로 줄어들기 때문입니다. 또한 학습 중 메모리 사용량은 슬라이스 수에 선형으로 늘어나며, 각 슬라이스의 순열 행렬을 유지해야 합니다. fine-tuning 후 hard sorting으로 전환하면 이 행렬을 폐기할 수 있다고 설명됩니다.

따라서 hard sorting으로 얻는 추론 효율은 fine-tuning과 전환이 끝난 뒤의 이야기이고, 학습 메모리 부담과는 구분해서 읽어야 합니다.

논문 정보

저자
Shahbazi, Ashkan, Akbari, Elaheh, Salehi, Darian, Liu, Xinran, Naderializadeh, Navid, Kolouri, Soheil
학회·저널
arXiv · 프리프린트
최초 공개일
2025년 2월 11일
등록일
2026년 10월 29일
수정일
2025년 7월 12일
버전
v2
arXiv
2502.07962
원문 이용 조건
CC BY 4.0
제공 범위
논문 정보, 해설, 허용된 원문 그림

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

초록

While self-attention has been instrumental in the success of Transformers, it can lead to over-concentration on a few tokens during training, resulting in suboptimal information flow. Enforcing doubly-stochastic constraints in attention matrices has been shown to improve structure and balance in attention distributions. However, existing methods rely on iterative Sinkhorn normalization, which is computationally costly. In this paper, we introduce a novel, fully parallelizable doubly-stochastic attention mechanism based on sliced optimal transport, leveraging Expected Sliced Transport Plans (ESP). Unlike prior approaches, our method enforces doubly stochasticity without iterative Sinkhorn normalization, significantly enhancing efficiency. To ensure differentiability, we incorporate a temperature-based soft sorting technique, enabling seamless integration into deep learning models. Experiments across multiple benchmark datasets, including image classification, point cloud classification, sentiment analysis, and neural machine translation, demonstrate that our enhanced attention regularization consistently improves performance across diverse applications. Our implementation code can be found at https://github.com/dariansal/ESPFormer.

원문 인용

Shahbazi, Ashkan, Akbari, Elaheh, Salehi, Darian, Liu, Xinran, Naderializadeh, Navid, Kolouri, Soheil (2025). ESPFormer: Doubly-Stochastic Attention with Expected Sliced Transport Plans. arXiv:2502.07962v2. https://arxiv.org/abs/2502.07962v2

BibTeX
@misc{ashkan2025espformer,
  title = {{ESPFormer: Doubly-Stochastic Attention with Expected Sliced Transport Plans}},
  author = {Shahbazi, Ashkan and Akbari, Elaheh and Salehi, Darian and Liu, Xinran and Naderializadeh, Navid and Kolouri, Soheil},
  year = {2025},
  eprint = {2502.07962},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.07962v2}
}

관련 논문 보기다른 논문 둘러보기

논문 미리 보기
계정 보안

Google 계정 연결

Google 계정을 연결하면 그 계정으로도 로그인할 수 있습니다.

Refivu

회원탈퇴

Refivu
Refivu

회원가입