프로필

설정

불러오는 중…

← 홈

도움말·문의

자주 묻는 질문

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

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

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

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

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

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

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

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

비밀번호를 잊었어요.

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

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

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

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

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

논문 해설

Head Dimension Matters in Language Models for Long-Context Retrieval

장문 맥락 검색을 위한 언어 모델에서 헤드 차원이 중요하다

  • 연구 문제 고정된 어텐션 파라미터 예산에서 헤드 수를 줄이고 헤드 차원을 넓히면 장문맥 검색 성능이 향상되는지를 살펴봅니다.
  • 연구 방법 0.6B와 3B 디코더 모델을 처음부터 학습하고 헤드 수와 헤드 차원만 바꾼 아키텍처를 비교합니다. 이후 장문맥 지속 pre-training에서 어텐션 투영 행렬을 고정한 설정과 전체 파라미터를 업데이트하는 설정을 비교합니다.
  • 주요 결과 넓은 헤드 모델은 RULER-100 평균 검색 점수에서 우위를 보이고, 어텐션 투영을 고정한 CPT에서도 헤드 차원에 따른 이득이 남습니다. 이 이득은 어텐션 엔트로피와 순위 재배열만으로 설명되지 않습니다.

고정 파라미터 예산에서 헤드 차원의 의미

Transformer의 멀티헤드 어텐션은 쿼리-키 상호작용으로 문맥 표현을 검색하고 값 집계로 결합합니다. 이때 헤드 차원은 각 헤드가 가지는 표현 공간의 크기를 제한합니다. 이 논문은 모델 차원과 어텐션 파라미터 예산을 고정한 채 헤드 수를 줄이고 헤드를 넓히면 장문맥 검색 성능이 어떻게 달라지는지 묻습니다. pre-training 손실과 짧은 문맥의 비검색 과제 성능은 헤드 차원에 크게 영향을 받지 않는 것으로 보고되며, 장문맥 검색 성능은 넓은 헤드에서 향상됩니다.

Table 8: Training NTP loss at the final logged interval of PT and Full CPT. Entries for the 0.6B
models are means±sample standard deviations across three runs;…

Table 8 : Training NTP loss at the final logged interval of PT and Full CPT. Entries for the 0.6B models are means±sample standard deviations across three runs; entries for the 3B models are single-run values.

원문 · CC BY 4.0 · Seiya Tokui, Shoichiro Yamaguchi, Sosuke Kobayashi · Head Dimension Matters in Language Models for Long-Context Retrieval · 원문 그림 인용 · 원본 PDF 18쪽에서 그림 영역을 추출했습니다.

실험 구성과 RULER-100 평가

저자들은 PT, CPT, SFT의 세 단계로 디코더 전용 Transformer를 처음부터 학습했습니다. 0.6B 모델은 절제 실험에, 3B 모델은 규모 확인에 사용되었습니다. 전체 어텐션 계층의 쿼리·키 차원은 헤드 차원과 같고 값 차원은 별도로 둘 수 있으며, 그룹 질의 어텐션에서 쿼리 대 KV 헤드 비율을 고정했습니다. 평가는 RULER 13개 과제를 과제당 100개 예시로 줄인 RULER-100으로 수행되며, 문맥 길이는 4,096에서 262,144까지입니다.

Table 1: Architecture names and their configurations. Dimensions and head counts refer to full-
attention layers. The query and key dimensions are always ident…

Table 1 : Architecture names and their configurations. Dimensions and head counts refer to full- attention layers. The query and key dimensions are always identical, whereas the value dimension may differ. Full configurations are provided in Appendix A.

원문 · CC BY 4.0 · Seiya Tokui, Shoichiro Yamaguchi, Sosuke Kobayashi · Head Dimension Matters in Language Models for Long-Context Retrieval · 원문 그림 인용 · 원본 PDF 2쪽에서 그림 영역을 추출했습니다.

장문맥 검색 성능의 헤드 차원 의존성

0.6B 모델의 CPT 결과에서 d512는 d128보다 9.96점, d256보다 5.75점 높은 RULER-100 평균 점수를 보였고, 3B 모델에서는 같은 비교에서 각각 15.00점과 14.21점 높았습니다. 이 평균 차이는 여러 문맥 길이에서 관찰되지만 모든 과제에서 일관되지는 않습니다. 같은 헤드 수 관계를 갖는 비대칭 구성에서는 큰 QK 차원이 큰 V 차원보다 검색에 더 도움이 되는 경향이 보고됩니다. 짧은 문맥 과제에서도 헤드 차원이 성능을 뚜렷하게 악화시키지는 않았습니다.

Table 2: RULER-100 overall scores averaged over 13 tasks and seven lengths from 4K to 256K.
Scores are on a 0–100 scale. The 0.6B results are means±sample stan…

Table 2 : RULER-100 overall scores averaged over 13 tasks and seven lengths from 4K to 256K. Scores are on a 0–100 scale. The 0.6B results are means±sample standard deviations across three runs; each 3B allocation has one run.

원문 · CC BY 4.0 · Seiya Tokui, Shoichiro Yamaguchi, Sosuke Kobayashi · Head Dimension Matters in Language Models for Long-Context Retrieval · 원문 그림 인용 · 원본 PDF 3쪽에서 그림 영역을 추출했습니다.
Figure 8: Task-level RULER-100 scores after 8B-token Full CPT for the 0.6B models. The first
panel shows the 13-task mean; the remaining panels show individual…

Figure 8 : Task-level RULER-100 scores after 8B-token Full CPT for the 0.6B models. The first panel shows the 13-task mean; the remaining panels show individual tasks. Thick lines indicate means across three runs, and faint lines show individual runs. The horizontal axis shows context length, and the vertical axis shows task scores as percentages.

원문 · CC BY 4.0 · Seiya Tokui, Shoichiro Yamaguchi, Sosuke Kobayashi · Head Dimension Matters in Language Models for Long-Context Retrieval · 원문 그림 인용 · 원본 PDF 20쪽에서 그림 영역을 추출했습니다.
Figure 9: Task-level RULER-100 scores after 8B-token Full CPT for the 3B models. The first panel
shows the 13-task mean; the remaining panels show individual t…

Figure 9 : Task-level RULER-100 scores after 8B-token Full CPT for the 3B models. The first panel shows the 13-task mean; the remaining panels show individual tasks. The horizontal axis shows context length, and the vertical axis shows task scores as percentages. Each model has one run. 3B-d512leads in aggregate but not on every task.

원문 · CC BY 4.0 · Seiya Tokui, Shoichiro Yamaguchi, Sosuke Kobayashi · Head Dimension Matters in Language Models for Long-Context Retrieval · 원문 그림 인용 · 원본 PDF 20쪽에서 그림 영역을 추출했습니다.
Table 11: Overall RULER-100 scores for individual 0.6B training runs, averaged equally over 13
tasks and seven context lengths from 4K to 256K. PT denotes eval…

Table 11 : Overall RULER-100 scores for individual 0.6B training runs, averaged equally over 13 tasks and seven context lengths from 4K to 256K. PT denotes evaluation without additional attention scaling; PT (attention scaling) denotes scaled PT. Full CPT and Frozen CPT follow the parameter- update policies in Table 5. Only Full CPT results are reported for the asymmetric configurations k512-v128andk128-v512; dashes indicate unreported conditions.

원문 · CC BY 4.0 · Seiya Tokui, Shoichiro Yamaguchi, Sosuke Kobayashi · Head Dimension Matters in Language Models for Long-Context Retrieval · 원문 그림 인용 · 원본 PDF 24쪽에서 그림 영역을 추출했습니다.

검색 헤드 비율과 CPT 이후 변화

저자들은 단일 바늘 RULER 과제에서 검색 점수가 0.1 이상인 전체 어텐션 쿼리 헤드를 검색 헤드로 정의했습니다. 0.6B 모델에서 검색 헤드 비율은 d128에서 7.3%, d256에서 17.4%, d512에서 26.4%로 보고되며, 절대 검색 헤드 수는 구성 사이에 비슷하게 유지됩니다. pre-training 체크포인트에 스케일링을 적용한 평가에서 이미 검출되는 헤드가 많아 넓은 헤드 모델의 검색 용량은 CPT 이전에도 상당 부분 나타납니다.

Table 4: Retrieval-head counts before and after CPT for the 0.6B models. PT denotes the 100B-
token PT checkpoint evaluated with inference-time attention scali…

Table 4 : Retrieval-head counts before and after CPT for the 0.6B models. PT denotes the 100B- token PT checkpoint evaluated with inference-time attention scaling (Appendix A.4); CPT denotes the corresponding checkpoint after 8B tokens of full-parameter CPT, evaluated without additional scaling. The rightmost column reports the number of retrieval heads common to both stages, matched by layer and query-head index within each run. All the counts are computed within each run and then averaged across three runs per configuration.

원문 · CC BY 4.0 · Seiya Tokui, Shoichiro Yamaguchi, Sosuke Kobayashi · Head Dimension Matters in Language Models for Long-Context Retrieval · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.

투영 행렬을 고정한 CPT의 이득

Frozen CPT는 어텐션의 WQ, WK, WV, WO를 고정하고 임베딩, MLP, LM 헤드와 QK RMSNorm 이득 벡터를 업데이트합니다. 이 설정에서 scaled PT 대비 평균 향상폭은 d128에서 -0.01점, d256에서 3.97점, d512에서 7.35점으로 헤드 차원에 따라 커집니다. 반면 Full CPT가 Frozen CPT보다 더 얻는 추가 이득은 d128, d256, d512에서 각각 2.19, 1.85, 2.32점으로 구성 간 차이가 작습니다. 따라서 이 결과는 넓은 헤드의 이득이 어텐션 투영 업데이트에서만 온다고 보기 어렵다는 근거로 제시됩니다.

Table 9: Parameter-update policies during CPT. Fixed parameters retain their values from the paired
100B-token PT checkpoints. Frozen CPT disables updates on w…

Table 9 : Parameter-update policies during CPT. Fixed parameters retain their values from the paired 100B-token PT checkpoints. Frozen CPT disables updates on weight matrices in both FA and SW A layers, while leaving the listed normalization and non-attention parameters trainable.

원문 · CC BY 4.0 · Seiya Tokui, Shoichiro Yamaguchi, Sosuke Kobayashi · Head Dimension Matters in Language Models for Long-Context Retrieval · 원문 그림 인용 · 원본 PDF 22쪽에서 그림 영역을 추출했습니다.
Table 10: Training NTP loss at the final logged interval of Full and Frozen CPT. Entries are means±
sample standard deviations across three runs.∆ loss is the…

Table 10 : Training NTP loss at the final logged interval of Full and Frozen CPT. Entries are means± sample standard deviations across three runs.∆ loss is the Full-minus-Frozen loss difference, com- puted within each paired run before aggregation; positive values indicate lower loss under Frozen CPT. Differences are computed before rounding.

원문 · CC BY 4.0 · Seiya Tokui, Shoichiro Yamaguchi, Sosuke Kobayashi · Head Dimension Matters in Language Models for Long-Context Retrieval · 원문 그림 인용 · 원본 PDF 23쪽에서 그림 영역을 추출했습니다.
Figure 11: Training next-token prediction (NTP) loss during Full and Frozen CPT for the three
0.6B models. The horizontal axis shows CPT tokens in billions, an…

Figure 11 : Training next-token prediction (NTP) loss during Full and Frozen CPT for the three 0.6B models. The horizontal axis shows CPT tokens in billions, and the vertical axis shows training cross-entropy. Lines indicate means across three runs, and shaded bands indicate±sample standard deviation. Frozen CPT attains lower mean final training loss than Full CPT for all three models, despite achieving lower mean overall RULER-100 scores (Figure 4).

원문 · CC BY 4.0 · Seiya Tokui, Shoichiro Yamaguchi, Sosuke Kobayashi · Head Dimension Matters in Language Models for Long-Context Retrieval · 원문 그림 인용 · 원본 PDF 23쪽에서 그림 영역을 추출했습니다.
Figure 14: Task-level RULER-100 scores for unmodified PT, scaled PT, Full CPT, and Frozen CPT
of0.6B-d128. The first panel shows the 13-task mean; the remainin…

Figure 14 : Task-level RULER-100 scores for unmodified PT, scaled PT, Full CPT, and Frozen CPT of0.6B-d128. The first panel shows the 13-task mean; the remaining panels show individual tasks. Thick lines indicate means across three runs, and faint lines show individual runs. The horizontal axis shows context length, and the vertical axis shows task scores as percentages. Scaled PT is labeled “PT (attention scaling)” and follows Equation 1.

원문 · CC BY 4.0 · Seiya Tokui, Shoichiro Yamaguchi, Sosuke Kobayashi · Head Dimension Matters in Language Models for Long-Context Retrieval · 원문 그림 인용 · 원본 PDF 24쪽에서 그림 영역을 추출했습니다.
Figure 15: Task-level RULER-100 scores for unmodified PT, scaled PT, Full CPT, and Frozen CPT
of0.6B-d256. The first panel shows the 13-task mean; the remainin…

Figure 15 : Task-level RULER-100 scores for unmodified PT, scaled PT, Full CPT, and Frozen CPT of0.6B-d256. The first panel shows the 13-task mean; the remaining panels show individual tasks. Thick lines indicate means across three runs, and faint lines show individual runs. Axes and scaling follow Figure 14.

원문 · CC BY 4.0 · Seiya Tokui, Shoichiro Yamaguchi, Sosuke Kobayashi · Head Dimension Matters in Language Models for Long-Context Retrieval · 원문 그림 인용 · 원본 PDF 25쪽에서 그림 영역을 추출했습니다.
Figure 16: Task-level RULER-100 scores for unmodified PT, scaled PT, Full CPT, and Frozen CPT
of0.6B-d512. The first panel shows the 13-task mean; the remainin…

Figure 16 : Task-level RULER-100 scores for unmodified PT, scaled PT, Full CPT, and Frozen CPT of0.6B-d512. The first panel shows the 13-task mean; the remaining panels show individual tasks. Thick lines indicate means across three runs, and faint lines show individual runs. Axes and scaling follow Figure 14. Full achieves a higher overall mean score than Frozen, with gains and losses depending on the task and context length.

원문 · CC BY 4.0 · Seiya Tokui, Shoichiro Yamaguchi, Sosuke Kobayashi · Head Dimension Matters in Language Models for Long-Context Retrieval · 원문 그림 인용 · 원본 PDF 25쪽에서 그림 영역을 추출했습니다.

어텐션 맵 진단과 잔차 스트림 표현

어텐션 엔트로피는 확률 분포가 얼마나 집중되어 있는지를 측정하며, 낮을수록 더 집중됩니다. 저자들은 CPT 이후 모든 헤드 차원에서 엔트로피가 낮아졌다고 보고하지만, d256과 d512의 평균 엔트로피는 비슷하여 엔트로피만으로 헤드 차원 효과가 설명되지 않는다고 해석합니다. 상위 10,000 순위를 K+1로 제한한 순위 상관은 Full CPT에서 더 큰 재배열을 보이나 헤드 차원 간 차이가 일관되지 않습니다. 잔차 스트림의 유효 차원은 넓은 헤드 모델이 중간 블록에서 더 높은 경향을 보이며, 이 차이는 Frozen CPT에서도 유지됩니다.

Figure 6: Residual-stream effective rank at 32K context length for the three symmetric 0.6B con-
figurations under scaled PT, Frozen CPT, and Full CPT. Each po…

Figure 6 : Residual-stream effective rank at 32K context length for the three symmetric 0.6B con- figurations under scaled PT, Frozen CPT, and Full CPT. Each point is computed from the mean singular-value spectrum over 300 shared examples and three training seeds. For a full-attention layer with zero-based indexL, the effective ranks of representations at Pre-FA, Post-FA, and Post- MLP are plotted at the layer indexL,L+ 0.5, andL+ 1, respectively. These offsets distinguish measurement sites within the same block, not additional layers.

원문 · CC BY 4.0 · Seiya Tokui, Shoichiro Yamaguchi, Sosuke Kobayashi · Head Dimension Matters in Language Models for Long-Context Retrieval · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.
Figure 17: Cumulative attention probability over positions ranked by decreasing attention proba-
bility. Rows show0.6B-d128,0.6B-d256, and0.6B-d512; columns sh…

Figure 17 : Cumulative attention probability over positions ranked by decreasing attention proba- bility. Rows show0.6B-d128,0.6B-d256, and0.6B-d512; columns show 32K and 64K context lengths. Each panel compares scaled PT, Full CPT at 2B, 4B, and 8B tokens, and Frozen CPT at 8B tokens. The horizontal axis gives the number of ranked positions on a logarithmic scale.

원문 · CC BY 4.0 · Seiya Tokui, Shoichiro Yamaguchi, Sosuke Kobayashi · Head Dimension Matters in Language Models for Long-Context Retrieval · 원문 그림 인용 · 원본 PDF 28쪽에서 그림 영역을 추출했습니다.

적용 범위와 한계

이 논문의 실험은 헤드 차원이 최대 512인 구성에 한정됩니다. 더 큰 헤드 차원을 시험하려면 효율적인 어텐션 계산 개선이 필요하다고 저자들은 밝힙니다. 또한 짧은 문맥 과제의 결과는 3B 모델의 SFT 이후 측정이며 헤드 차원에 따른 단조 경향은 뚜렷하지 않습니다. 작업별 결과는 실행 간 변동과 과제별 차이를 포함하므로, 평균 우위를 모든 과제의 일관된 우위로 읽어서는 안 됩니다.

Table 3: Short-context task performance for the 3B models after SFT. Abbreviations: ARC-C (ARC-
Challenge), ARC-E (ARC-Easy), HS (HellaSwag), WG (WinoGrande),…

Table 3 : Short-context task performance for the 3B models after SFT. Abbreviations: ARC-C (ARC- Challenge), ARC-E (ARC-Easy), HS (HellaSwag), WG (WinoGrande), OBQA (OpenBookQA), CSQA (CommonsenseQA), Avg (Average).

원문 · CC BY 4.0 · Seiya Tokui, Shoichiro Yamaguchi, Sosuke Kobayashi · Head Dimension Matters in Language Models for Long-Context Retrieval · 원문 그림 인용 · 원본 PDF 4쪽에서 그림 영역을 추출했습니다.
Figure 10: Task-level RULER-100 scores for the 3B models after 1B tokens of SFT following CPT.
The first panel shows the 13-task mean; the remaining panels sho…

Figure 10 : Task-level RULER-100 scores for the 3B models after 1B tokens of SFT following CPT. The first panel shows the 13-task mean; the remaining panels show individual tasks. The horizontal axis shows context length, and the vertical axis shows task scores as percentages. Each model has one run. Relative to the CPT results in Figure 9, overall scores increase, whereas scores at 256K decrease for all three models.

원문 · CC BY 4.0 · Seiya Tokui, Shoichiro Yamaguchi, Sosuke Kobayashi · Head Dimension Matters in Language Models for Long-Context Retrieval · 원문 그림 인용 · 원본 PDF 21쪽에서 그림 영역을 추출했습니다.

논문 정보

저자
Seiya Tokui, Shoichiro Yamaguchi, Sosuke Kobayashi
학회·저널
arXiv · 프리프린트
최초 공개일
2026년 10월 23일
등록일
2026년 10월 28일
수정일
2026년 10월 23일
버전
v1
arXiv
2610.32213
분류
cs.LG · cs.AI · cs.CL
원문 이용 조건
CC BY 4.0
제공 범위
논문 정보, 해설, 허용된 원문 그림

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

초록

Multi-head attention retrieves and combines context representations through query--key interactions and value aggregation, with head dimension constraining the per-head representation space. In long-context processing, it remains unclear whether allocating a fixed parameter budget to fewer, wider heads improves information retrieval. In this paper, we investigate how head dimension affects the performance of long-context retrieval tasks. Our empirical studies reveal that pretraining loss and short-context non-retrieval task performance are not affected much by head dimension, while long-context retrieval performance improves with wider heads at fixed model sizes. We find that models with wider heads have a higher proportion of retrieval heads, associating more parameters with retrieval. Our ablation studies also show that the retrieval performance improves with wider heads even when the projection weights in attention modules are frozen during long-context continual pretraining, suggesting that wider heads not only benefit updates in attention modules but lead to more effective adaptation of components such as embeddings and MLPs.

원문 인용

Seiya Tokui, Shoichiro Yamaguchi, Sosuke Kobayashi (2026). Head Dimension Matters in Language Models for Long-Context Retrieval. arXiv:2610.32213v1. https://arxiv.org/abs/2610.32213v1

BibTeX
@misc{tokui2026head,
  title = {{Head Dimension Matters in Language Models for Long-Context Retrieval}},
  author = {Seiya Tokui and Shoichiro Yamaguchi and Sosuke Kobayashi},
  year = {2026},
  eprint = {2610.32213},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.32213v1}
}

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

논문 미리 보기
계정 보안

Google 계정 연결

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

Refivu

회원탈퇴

Refivu
Refivu

회원가입