AI Research NotesFast Weight Attention · Continual Learning · 03 Sep 2026
Fast Weight Attention for Continual Learning · Zhang et al. · 54 pages

Attention을 읽는 연산에서
온라인으로 배우는 메모리

Falcon reframes recurrent sequence modeling as continual learning inside the forward pass: every token becomes a causal training example for a fixed-size fast-memory state.

PREFIX FEATURExₜ = φ(kₜ₋₁)FAST MEMORY Sₜ₋₁fixed-size matrix stateonline predictorLOCAL LEARNING RULEpredict vₜ from prefixresidual / target writeplasticity β · forgetting λnormalized ηUPDATED Sₜwrite after target revealedread-after-writeOUTPUToₜ = Sₜᵀ φ(qₜ)recurrent O(N) scan ↔ masked-parallel view ↔ SSD-style chunk parallelismtemporal alignment · plasticity · forgetting · bounded rehearsal
Executive Reading

이 논문의 핵심은 새로운 attention kernel 하나를 제안하는 데 있지 않다. recurrent state update를 architecture equation이 아니라 forward pass 안에서 수행되는 online continual learning rule로 다시 해석한다는 데 있다.

Transformer는 새 문맥을 확장되는 KV cache에 외부화한다. 반면 linear attention, fast-weight memory, selective SSM은 문맥을 고정 크기 recurrent state에 압축한다. 이때 state transition은 새로운 evidence를 state에 결합하는 local online learning rule이 된다.

O(N)recurrent sequence time
O(1)fixed state at inference
49.2BLM training tokens
87.2best arithmetic extrapolation mean

read-after-write autoregressive semantics에서 step \(t\)에 새로 드러난 target \(v_t\)를 학습할 때 prefix-prediction objective에 맞는 training pair는 흔히 쓰이는 \((\phi(k_t),v_t)\)가 아니라 \((x_t,y_t)=(\phi(k_{t-1}),v_t)\)이다. same-step association도 causal이지만 다른 내부목적을 최적화한다.

이 논문이 던지는 질문은 “어떤 attention이 더 빠른가?”보다 더 근본적이다. 고정 크기 recurrent memory가 계속 배우는 시스템이라면, 그 메모리는 정확히 어떤 causal example로 무엇을 최적화하고 있는가?
Part I · Core Thesis

Long-context modeling을 continual learning 문제로 다시 쓴다

KV cache, SSM, linear attention, fast weights를 문맥 저장과 online adaptation이라는 하나의 축에서 비교한다.

§1 · Transformer vs recurrent fast memory

Transformer

문맥이 늘어날수록 KV cache가 커진다. standard attention은 \(O(N^2)\) attention matrix와 증가하는 memory traffic을 요구한다.

Context Memory

SSM / Fast Weight

확장되는 문맥을 fixed-size recurrent state \(S_t\)로 압축한다. inference state는 일정하지만 어떤 evidence를 어떻게 state에 쓰는지가 학습규칙 자체가 된다.

논문은 classical state-space/control, Kalman filtering, adaptive filtering에서 현대 linear attention, Mamba/Mamba-2, DeltaNet까지 연결한다. Mamba-2의 Structured State Space Duality는 recurrent SSM과 causal linear attention 사이 bridge를 제공하고, Falcon은 그 위에서 state update의 internal objective를 다시 설계한다.

§2 · Four design axes

Temporal alignment

어떤 prefix feature와 새 target을 짝지을 것인가.

Plasticity

새 evidence가 state를 얼마나 크게 수정하는가. \(\beta_t\)와 realized \(\eta_t\)가 담당.

Forgetting

ridge/shrinkage \(\lambda_t\)로 오래된 state를 얼마나 감쇠하는가.

Bounded rehearsal

sliding window로 최근 causal examples를 재사용해 noise와 local dependency를 다루는가.

Part II · Temporal Alignment

같은-step association은 causal하지만 prefix-prediction objective와는 다른 문제를 푼다

§3 · Read-after-write semantics

논문은 read-after-write(RAW) convention을 사용한다. token \(t\)를 관측하고 state에 쓴 뒤 updated state \(S_t\)를 읽어 token \(t+1\)을 예측한다. 새로 드러난 \(v_t\)는 그 target을 예측할 때 사용 가능했던 prefix feature와 짝지어야 한다.

Prefix-aligned causal pair\[(x_t,y_t)=\big(\phi(k_{t-1}),v_t\big)\]

표준 DeltaNet/linear-attention-style update가 흔히 사용하는 \((\phi(k_t),v_t)\)도 미래정보를 쓰지는 않는다. 그러나 그것은 same-step cache association을 학습한다. Falcon은 “예측 당시 사용 가능했던 prefix representation이 새 target을 얼마나 잘 예측했는가?”를 local objective로 삼는다.

§4 · RAW/RBW × shifted/unshifted

RAW + shifted — Falcon

observe \(t\) → write \(S_t\) with \(\phi(k_{t-1})\to v_t\) → read \(S_t\) → predict \(t+1\).

RAW + unshifted

\(\phi(k_t)\leftrightarrow v_t\)를 같은 step에서 결합. causal이지만 다른 fast-memory objective.

RBW

read \(S_{t-1}\)로 token \(t\)를 예측한 뒤 write하므로 update timing과 local objective가 달라진다.

Boundary

\(S_0=0,\;x_1=0,\;\eta_1=0\). carried state의 첫 boundary step이 data 없이 decay하지 않게 한다.

Part III · Falcon Family

Regression과 inner-product 두 objective, scalar·per-column·sliding 세 dynamics를 조합한다

§5 · Online ridge objective
Instantaneous fast-memory objective\[\ell_t(S)=\frac12\|S^\top x_t-y_t\|_2^2+\frac{\lambda_t}{2}\|S\|_F^2\]

pre-update prediction은 \(\hat y_t=S_{t-1}^\top x_t\), residual은 \(r_t=y_t-\hat y_t\)이다. 한 번의 normalized online gradient step은 다음과 같다.

Falcon regression write\[S_t=(1-\eta_t\lambda_t)S_{t-1}+\eta_t x_t r_t^\top,\qquad \eta_t=\frac{\beta_t}{\|x_t\|_2^2+\lambda_t+\varepsilon},\quad \beta_t\in(0,2)\]

\(\lambda_t=0,\varepsilon=0\)이면 classical NLMS recursion과 연결된다. normalization은 local smoothness에 step size를 맞춰 per-step descent를 제공하지만 cumulative online loss나 outer autoregressive training objective의 monotone decrease를 뜻하지 않는다.

§6 · Six variants
Regression · Scalar

Falcon-1

모든 value channel이 scalar \(\eta_t\)를 공유. shared dynamics와 hardware efficiency.

Regression · Per-column

Falcon-2

\(\eta_t\in\mathbb{R}^{d_v}\). 각 value channel이 독립 plasticity trajectory를 가짐.

Regression · Sliding

Falcon-3

최근 \(B\) causal pairs의 window-average loss에 mini-batch gradient step. bounded rehearsal.

Inner Product · Scalar

Falcon-1A

residual 대신 target을 직접 additive write. energy-normalized scalar gain.

Inner Product · Per-column

Falcon-2A

direct target write를 유지하면서 value channel마다 별도 gain 적용.

Inner Product · Sliding

Falcon-3A

window-average cross-covariance를 write하고 window energy로 magnitude 안정화.

§7 · Regression vs inner-product

Regression family

이미 state가 예측한 부분을 residual로 제거한 뒤 error-driven edit를 수행한다. denominator는 local curvature/smoothness와 연결된다.

Objective

Inner-product family · A

\(-\langle S^\top x_t,y_t\rangle+\frac{\lambda_t}{2}\|S\|_F^2\)로 target을 직접 write한다. energy normalization은 write-magnitude stabilizer다.

§8 · Sliding regression
Falcon-3\[S_t=(1-\eta_t\lambda_t)S_{t-1}+\frac{\eta_t}{B_t}\sum_{j\in I_t}x_j\big(v_j-S_{t-1}^\top x_j\big)^\top\]

step size는 \(\mu_t^{(B)}=\lambda_{\max}(\bar C_t^{(B)})\)에 맞춘다. window average를 사용하므로 nominal \(B\)가 커진다고 injection이나 decay fraction이 선형증가하지 않는다. exact segment continuation에는 matrix state뿐 아니라 최근 \(B-1\) causal pair tail도 필요하다.

Part IV · Parallelization

Online learning rule을 GPU에서 학습할 수 있도록 recurrent, masked-parallel, chunk-parallel 형태를 연결한다

Recurrenttoken-by-token causal scan. O(N) time, fixed-size state.
Masked Parallelrecurrence를 masked attention/WY form으로 unroll.
Chunk Parallelchunk 내부 parallel, compact boundary state 전달.
WY / Gramrank-one edits의 product를 triangular system으로 압축.
ParallelFlowFalcon-3 rank-B recurrence를 tensorInv/associative chunk map으로 처리.
Log Decaychunk-local log-prefix로 mixed-precision decay 안정화.

논문의 Figures 2, 4, 5, 7, 8, 9, 10은 recurrent form과 parallel form, SSD-style chunk-wise form의 대응을 반복해서 보여준다. 목표는 continual-learning update를 도입하면서도 현대 GPU 학습의 chunk parallelism을 유지하는 것이다.

§9 · Falcon-2 shared geometry

Falcon-2는 channel마다 \(\eta_{t,j}\)가 다르지만 모든 channel이 같은 write-feature geometry를 공유한다. chunk key matrix \(K\)에서 shared Gram \(G=K^\top K\)를 한 번 만들고, channel별 rate는 작은 \(C\times C\) triangular system에만 반영한다. value path와 projected-history path가 같은 factor를 사용하므로 두 solve를 하나의 residual right-hand side로 합쳐 one TriSolve per chunk로 줄인다.

§10 · Falcon-1 shared dynamics complexity
Component / chunkFalcon-2 fullFalcon-1
Gram MatrixO(dC²)O(dC²)
Rate-dependent system buildO(dᵥC²)O(C²)
Forward residual TriSolveO(dᵥC²)O(dᵥC²)
State update / output projectionO(ddᵥC)O(ddᵥC)

Falcon-1은 scalar \(\eta_t\)를 공유해 channel별 system construction/factorization을 제거하고 single multi-RHS solve로 바꾼다. asymptotic solve cost는 남지만 GPU 활용 관점의 practical savings가 커진다.

§11 · Positive decay and numerical stability

ridge는 \(\gamma_t=1-\eta_t\lambda_t\) carry를 만든다. long context에서 decay product를 직접 누적하면 reduced precision underflow/overflow가 생길 수 있다. 구현은 \(\alpha_t=\eta_t\lambda_t\)를 \(1-\varepsilon_\gamma\) 아래로 clamp하고 \(\log\gamma_t=\log1p(-\alpha_t)\)를 fp32로 계산한다. global cumulative product 대신 각 chunk에서 log-prefix를 0부터 다시 누적하고 state, step size, write target을 일관되게 재정규화한다.

Part V · Experiments

언어모델링에서는 경쟁력을 유지하고 controlled arithmetic에서는 length extrapolation을 개선한다

§12 · Setup

Model

124M–130M params

Data

FineWeb-Edu

Budget

100k steps · seq 1,024 · batch 480 · ≈49.2B tokens

Hardware

single 4-GPU H100/H200 node

Transformer baseline은 LLaMA-style RoPE/SwiGLU, recurrent baselines는 RetNet/LightningAttn, Mamba-2, DeltaNet, Gated DeltaNet이다. 학습은 bfloat16 AdamW, tied embeddings, Pre-Norm RMSNorm, no dropout, µP-style width scaling, base LR 1e−3 cosine decay, 2,000 warmup, weight decay 0.1, gradient clipping 1.0을 사용한다.

§13 · Table 1 — Perplexity
ModelWiki.LMB.FineEdu ↓
Transformer (RoPE)33.2547.4317.38
RetNet / LightningAttn36.8665.1618.79
Mamba-234.5348.7417.70
DeltaNet34.1952.8417.84
Gated DeltaNet30.9946.7017.32
Falcon-1A.134.4147.9317.70
Falcon-1A.234.2051.0117.70
Falcon-1A.334.0249.8417.40
Falcon-1.333.0048.7017.10

FineWeb-Edu에서는 Falcon-1.3이 17.10으로 표 전체의 최저 perplexity다. baseline 최강은 Gated DeltaNet 17.32이며 inner-product Falcon 중에는 Falcon-1A.3 17.40이 가장 좋다. 저자들은 이를 uniform win이 아니라 competitive language-model quality로 해석한다.

§14 · Table 2 — Downstream accuracy
ModelPIQAHella.Wino.ARC-eARC-cOBQASocial IQASciQAvg.
Zero-shot
Transformer65.6737.5451.7052.3627.6531.6038.8479.9048.16
RetNet/LightningAttn64.9135.3649.6457.6226.2832.2037.9780.4048.05
Mamba-266.3236.8950.7558.1626.6232.6038.3880.7048.80
DeltaNet66.3837.1552.3357.3726.7934.0039.0078.0048.88
Gated DeltaNet65.5137.7549.7258.8827.9031.6038.2880.6048.78
Falcon-1A.166.0537.2750.6757.6227.6531.6038.9581.1048.86
Falcon-1A.267.0337.2952.3357.3725.9433.2038.8482.4049.30
Falcon-1A.366.1037.5550.1259.0126.7932.0037.8282.2048.95
Falcon-3A.365.3437.3050.9957.3726.3733.6039.4181.6049.00
Falcon-1.365.8338.3852.2558.9626.6231.4038.6981.3049.18
One-shot
Transformer66.4337.5550.2859.6429.0130.0039.8284.6049.67
RetNet/LightningAttn65.1335.1949.6456.7825.8528.8036.4481.5047.42
Mamba-266.7036.6151.0758.6326.9632.4037.9782.9049.16
DeltaNet66.2736.6750.3657.7027.3932.0037.7279.9048.50
Gated DeltaNet65.4037.8151.3058.2926.8830.0037.2681.6048.57
Falcon-1A.166.8137.4150.7557.5327.9932.4037.9281.8049.08
Falcon-1A.266.3836.9752.9657.3227.8231.4037.5683.2049.20
Falcon-1A.365.7837.2249.7258.8827.7331.4037.9782.4048.89
Falcon-3A.365.7236.4751.7858.2926.5432.0038.2383.2049.03
Falcon-1.365.6738.0952.8059.5529.0130.4037.4683.4049.54

Falcon-1A.2가 zero-shot 평균 49.30으로 listed recurrent model 중 최고이고, Falcon-1.3은 one-shot 평균 49.54로 recurrent model 중 최고다. 다만 Transformer one-shot 평균 49.67보다 높지는 않다.

§15 · Table 3 — Variable-digit addition

1–32 digit addition으로 학습하고 reversed sum을 생성하며 33–48 digit을 OOD length generalization으로 사용한다. storage와 carry propagation을 직접 스트레스하는 controlled diagnostic이다.

ModelBest stepVal. acc.Mean 33–48 ↑Acc@d33 / d48
Transformer2000100.065.897 / 49
RetNet/LightningAttn200099.782.999 / 63
Mamba-22000100.075.2100 / 51
Falcon-1A.11900100.080.6100 / 59
Falcon-1A.22000100.085.2100 / 63
Falcon-1A.3190099.885.9100 / 69
Falcon-3A.3200099.987.2100 / 69
Falcon-1.32000100.068.8100 / 48

Falcon-3A.3이 mean 87.2로 가장 높고 Falcon-1A.3이 85.9다. 저자들은 이 결과를 primary result가 아니라 shifted/normalized update가 storage와 carry propagation이 지배적인 환경에서 extrapolation을 개선한다는 supporting evidence로 위치시킨다.

Part VI · Related Work

SSM, fast weights, adaptive filtering, test-time learning을 하나의 online-learning 계보로 연결한다

Efficient sequence models

Linear Attention, Performer, Hyena, RetNet, RWKV, S4, Mamba, Mamba-2.

Fast weights / Delta

Hinton-Plaut, Schmidhuber, Fast Weight Programmers, DeltaNet, Gated DeltaNet.

Adaptive filtering

LMS/NLMS, RLS. classical scale-robust online regression 원리를 fast memory로 이동한다.

TTT / internal memory

implicit gradient descent, Test-Time Training, test-time regression, MesaNet, Titans, ATLAS.

Falcon의 차별점은 strict next-latent causal alignment, objective-matched normalization, per-column/sliding variants, SSD-compatible chunk-parallel implementation을 함께 묶는다는 점이다. RWKV-7/Kimi Linear처럼 richer gating을 쓰는 delta-style model에도 이 alignment/normalization을 local update replacement로 적용할 수 있다고 설명한다.

Part VII · Figures, Algorithms & Appendices

54쪽의 theory와 implementation detail을 한 눈에 다시 읽는다

§16 · Figure map
Figure 1 · p.2

Falcon-1/2/3 scalar, per-channel, sliding update 비교.

Figure 2 · p.5

denominator-free linear attention의 recurrent / masked / chunk-parallel view.

Figure 3 · p.9

same-step association과 next-latent prediction의 objective alignment.

Figure 4 · p.12

Falcon-1 rank-one recurrent ↔ WY ↔ per-chunk WY/Gram.

Figure 5 · p.13

Falcon-2 shared Gram + per-channel batched TriSolve.

Figure 6 · p.15

Falcon-1A/2A/3A direct inner-product writes.

Figure 7 · p.16

Falcon-1A scalar decay-mask attention.

Figure 8 · p.18

Falcon-2A per-channel decay masks.

Figure 9 · p.20

Falcon-3 rank-B affine recurrence / ParallelFlow.

Figure 10 · p.31

Falcon-3A window-induced decay mask와 chunk overlap.

Figure 11 · p.37

RAW/RBW × shifted/unshifted timing convention 2×2 grid.

§17 · Algorithms 1–9

Algorithms 1–2

Falcon-2 chunk-parallel forward와 Falcon-3 recurrent reference.

Algorithms 3–4

Falcon-3 ParallelFlow와 Falcon-3A masked chunk attention.

Algorithm 5

batch-size-1 first-order online ridge reference.

Algorithms 6–7

DeltaNet WY forward/backward와 merged residual solve.

Algorithms 8–9

Falcon-1 forward/backward, NLMS map과 chunk-local log-decay chain rule.

§18 · Appendix A–H

A · Background

RLS exact online ridge, first-order ridge, SSM discretization. RLS는 exact cumulative solution이지만 parallelization cost가 높다.

B · Experimental setup

optimizer, precision, µP scaling, learning-rate schedule, H100/H200 hardware.

C · Implementation details

scaled recurrence, signed-feature denominator caveat, gain/gating, TTT/Titans relation, timing/boundary, log-space renormalization.

D · Falcon-3A

structured mask identity, chunk-local evaluation, backward pass.

E · DeltaNet WY

affine WY representation과 chunk-parallel forward/backward.

F · Falcon-2

per-channel dynamics, shared Gram geometry, batched one-TriSolve.

G · Shared dynamics

hardware-efficient Falcon-1, scalar/vector rates, stable positive-decay, complexity.

H · Falcon-3 ParallelFlow

affine chunk map, matrix-valued CDE, low-rank drivers, tensorInv와 rank-B mapping.

§19 · Precise caveats

What the paper does not overclaim

Falcon-2/2A와 Falcon-3는 정의·구현되지만 main tables에서 별도 benchmark되지 않는다. Language modeling은 uniform win이 아니라 competitive quality다. per-step descent는 instantaneous local objective에만 해당한다. normalized read는 signed feature에서 denominator sign instability가 있을 수 있다. Falcon-3/3A exact continuation에는 \(B-1\) causal-pair tail이 필요하다.

Part VIII · Synthesis

Attention, memory, continual learning의 경계가 state update 안에서 만난다

Conceptual reframing\[\text{Sequence Modeling}\approx\text{Online Continual Learning over a Fast Memory State}\]

Falcon은 hidden state를 passive summary가 아니라 forward pass 도중 갱신되는 parameter로 본다. 그러면 각 token은 fixed-size state를 위한 self-supervised online training example이 된다. architecture 설계는 kernel 선택에서 끝나지 않고 training-pair alignment, plasticity, forgetting, bounded rehearsal, parallel kernel의 공동설계 문제가 된다.

Objective

Richer internal learning rules

second-order/RLS, nonlinear predictor, task-conditioned local objective로 확장할 수 있다.

Adaptive Memory

Learn when to write and forget

\(\beta,\lambda,B\)를 context와 uncertainty에 따라 동적으로 조절하는 연구공간이 열린다.

Agents / AGI

Learning inside inference

장기 실행 agent가 slow-weight update 없이 fixed-size state로 새로운 evidence를 온라인 학습하는 연결점이 된다.

Fast Weight Attention for Continual Learning은 recurrent attention을 압축된 attention으로만 보지 않는다. 매 순간 새 evidence로 스스로를 갱신하는 작은 온라인 학습기로 다시 정의한다.

좋은 fixed-size memory를 만들려면 state equation 하나만으로는 부족하다. 올바른 causal example, objective-matched plasticity, controlled forgetting, bounded rehearsal, 그리고 실제로 학습 가능한 parallel implementation이 함께 필요하다.
Primary Source

Paper & Project

01
Fast Weight Attention for Continual Learning
Yifan Zhang et al. · ByteDance Seed · Princeton University · Tsinghua University · UCLA · Hyperbolic Labs · arXiv:2608.27763v1
arXiv · Project / Code

Source boundary

본 게시물은 첨부된 54쪽 PDF의 Abstract, Introduction, Background, Autoregressive Next-Latent Prediction, Falcon derivation, Figures, Algorithms, Experiments, Related Work, Conclusion, References 및 Appendix A–H를 전체적으로 검토해 웹 읽기 흐름으로 재구성했다. 논문에 없는 외부 실험수치나 주장으로 결과를 보강하지 않았다.