HLA: 청크 단위 동적 혼합으로 표현력을 높인 하이브리드 선형 어텐션
HLA: Expressive Hybrid Linear Attention via Chunk-Wise Dynamic Mixing
선형 어텐션은 긴 문맥을 효율적으로 처리하지만, 과거 정보를 압축하다 보니 멀리 있는 드문 정보를 골라 읽기 어렵다. 이 논문은 질의에 따라 과거 청크를 다르게 조합하는 HLA를 제안하고, Qwen3.5 모델과 1.3B 모델 실험에서 긴 문맥 성능이 향상되었다고 보고한다.
논문 초록을 바탕으로 정리했습니다. 논문 전체의 실험 조건과 한계까지 검토한 심층 리뷰는 아닙니다.
논문 원문 읽기 ↗연구 문제
선형 어텐션은 지나온 내용을 순환 상태 하나로 압축해 긴 문맥에서도 효율적으로 디코딩할 수 있습니다. 하지만 압축 때문에 멀리 떨어진 드문 정보를 필요할 때 골라 꺼내기가 어려워질 수 있습니다.
청크 기반 확장 방식은 기억 용량을 늘려 주지만, 청크를 섞는 학습된 계수가 입력 내용과 무관하게 고정될 수 있습니다. 그러면 질의마다 과거를 다르게 참조하기 어렵다는 점이 문제로 제기됩니다.
제안 방법
저자들은 Gated DeltaNet(GDN)을 위한 질의 의존적 청크 수준 어텐션인 HLA(Hybrid Linear Attention)를 제안합니다. 완료된 각 청크를 정확한 아핀 상태 전이로 표현하고, 셀프 어텐션으로 요약한 작은 대표 표현에서 내용에 따라 달라지는 라우팅 게이트를 계산합니다.
각 게이트는 해당 청크의 전이와 항등 사상 사이를 보간합니다. 이를 통해 청크가 더하는 기억과 이전 상태를 변환하는 정도를 함께 조절합니다. 또한 유효 지지(effective-support) 정규화로 라우팅이 소수 청크에 집중되도록 유도해 희소한 추론을 돕습니다.
실험 결과
사전학습 모델에 적용하는 방식과 처음부터 학습하는 방식을 모두 평가했습니다. 0.8B에서 9B까지의 Qwen3.5 모델에서 HLA는 기본 GDN과 고정 청크 혼합보다 일관되게 좋았으며, LongBench-V2에서 최대 5.57%p, RULER에서 최대 3.97점 향상되었습니다.
4K 문맥으로 1000억 토큰을 학습한 통제된 1.3B 설정에서도 4K~32K 구간의 RULER 성능이 올랐고, 향상폭은 4K의 0.83점에서 32K의 4.22점으로 커졌습니다. 저자들은 이를 질의 의존적 순환 기억 조합이 긴 문맥 모델링에 도움이 되고, 학습 문맥을 넘어서도 유효하다는 근거로 해석합니다.
근거로 읽은 영문 초록
Linear attention enables efficient long-context autoregressive decoding by compressing history into recurrent states, but this compression can make selective access to sparse and distant information difficult. Existing chunk-based extensions increase memory capacity, yet learned chunk-mixing coefficients may remain fixed with respect to input content and therefore cannot adapt historical access to each query. We introduce Hybrid Linear Attention (HLA), a query-dependent chunk-level attention mechanism for Gated DeltaNet (GDN). HLA represents each completed chunk as an exact affine state transition and computes content-dependent routing gates from compact, self-attentively pooled representatives. Each gate interpolates the corresponding historical transition with the identity map, controlling both the chunk's additive memory and its transformation of earlier states. Effective-support regularization further encourages concentrated routing for sparse inference. We evaluate HLA under both pretrained adaptation and from-scratch training. Across Qwen3.5 models from 0.8B to 9B, HLA consistently improves over native GDN and fixed chunk mixing, with gains of up to 5.57 percentage points on LongBench-V2 and 3.97 points on RULER. In a controlled from-scratch 1.3B setting trained for 100B tokens with a 4K context, HLA also improves RULER performance from 4K to 32K, with gains increasing from 0.83 points at 4K to 4.22 points at 32K. These results demonstrate that query-dependent composition of recurrent memory improves long-context modeling and remains effective beyond the training context while using compact per-chunk affine summaries. Project page: https://caesarhhh.github.io/hla/