HyperAIHyperAI

Command Palette

Search for a command to run...

Attention à poids rapides pour l'apprentissage continu

Résumé

Les mémoires récurrentes à poids rapides et les modèles d'espace d'état sélectifs compressent un contexte en expansion en un état récurrent de taille fixe, faisant de la transition d'état une règle d'apprentissage en ligne. Nous étudions cette règle sous une sémantique autorégressive de lecture-après-écriture. Pour l'objectif de prédiction de préfixe considéré ici, l'exemple de mémoire rapide locale révélé à l'étape t est la paire alignée sur le préfixe (xt,yt) = (ϕ(kt1),vt)( \mathbf { x } _ { t } , \mathbf { y } _ { t } ) \ = \ ( \phi ( \mathbf { k } _ { t - 1 } ) , \mathbf { v } _ { t } )(xt,yt) = (ϕ(kt1),vt) . L'association courante à la même étape (ϕ(kt), vt) reste causale, mais optimise un objectif interne différent. Nous dérivons des mises à jour normalisées de premier ordre pour les objectifs de régression par erreur quadratique et de produit scalaire négatif. La famille de régression comprend Falcon-1 (une mise à jour NLMS scalaire), Falcon-2 (son extension par colonne) et Falcon-3 (une mise à jour par mini-lots à fenêtre glissante) ; Falcon-1A/Falcon-2A/Falcon-3A sont les variantes correspondantes de produit scalaire. Nous fournissons des formes récurrentes, parallèles masquées et parallèles par blocs, ainsi qu'une renormalisation à décroissance positive numériquement stable. Les variantes représentatives restent compétitives en modélisation du langage et améliorent l'extrapolation de longueur sur l'addition de chiffres variables. Ce cadre sépare l'alignement temporel, la plasticité, l'oubli et la répétition bornée dans les modèles séquentiels récurrents.

One-sentence Summary

Researchers from Bytedance Seed, Princeton, Tsinghua, UCLA, and Hyperbolic Labs propose a fast-weight attention framework for continual learning that derives normalized first-order updates for squared-error regression and negative inner-product objectives, introducing Falcon-1/2/3\text{Falcon-1/2/3}Falcon-1/2/3 variants (with inner-product counterparts Falcon-1A/2A/3A\text{Falcon-1A/2A/3A}Falcon-1A/2A/3A) that remain competitive in language modeling and improve length extrapolation on variable-digit addition.

Key Contributions

  • Introduces a unified family of normalized fast-weight updates, Falcon-1/2/3 for squared-error regression and Falcon-1A/2A/3A for negative inner-product objectives, derived under read-after-write autoregressive semantics with prefix-aligned causal pairs (φ(kₜ₋₁), vₜ).
  • Provides recurrent, masked-parallel, and chunk-parallel implementations with numerically stable positive-decay renormalization, separating temporal alignment, plasticity, forgetting, and bounded rehearsal while remaining compatible with SSD-style chunk-parallel training.
  • Shows that representative scalar regression and scalar/sliding inner-product variants remain competitive in language modeling, and the best inner-product variants improve length extrapolation on variable-digit addition.

Introduction

Transformers dominate modern language modeling because self-attention captures global dependencies, but their quadratic scaling in sequence length creates major bottlenecks in both compute and memory, especially for long contexts. Recurrent alternatives like SSMs and fast-weight models compress memory into a fixed state, yet their state-update rules are often presented at the architectural level, leaving the underlying learning objective implicit. This ambiguity causes a temporal alignment mismatch: many recurrences bind the same-step pair (key, value), whereas autoregressive prediction requires pairing the newly revealed target with the prefix feature available at prediction time, a distinction that affects how fast memory is trained.

The authors address this by recasting state-based sequence modeling as autoregressive next-latent prediction, making the fast-memory training objective explicit. They derive a unified family of normalized first-order updates, Falcon-1, Falcon-2, and Falcon-3, along with inner-product counterparts, Falcon-1A, Falcon-2A, and Falcon-3A, which separate temporal alignment, plasticity, forgetting, and bounded rehearsal. These updates remain compatible with chunk-parallel training, and the authors provide implementations and empirical evaluations showing competitive language modeling performance and improved arithmetic length extrapolation.

Method

2 Background

2.2 Linear Attention

Linear attention circumvents the O(N2)O(N^2)O(N2) complexity of standard attention by replacing the softmax with a kernel feature map ϕ():RdRm\phi(\cdot): \mathbb{R}^d \to \mathbb{R}^mϕ():RdRm such that κ(qt,kj)=ϕ(qt)ϕ(kj)\kappa(\mathbf{q}_t, \mathbf{k}_j) = \phi(\mathbf{q}_t)^\top \phi(\mathbf{k}_j)κ(qt,kj)=ϕ(qt)ϕ(kj). Exploiting the associativity of matrix multiplication, the output otRdv\mathbf{o}_t \in \mathbb{R}^{d_v}otRdv for the t-th token is:

ot=j=1tϕ(qt)ϕ(kj)vjj=1tϕ(qt)ϕ(kj)=(j=1tϕ(kj)vj)ϕ(qt)ϕ(qt)j=1tϕ(kj),\mathbf{o}_t = \frac{\sum_{j=1}^t \phi(\mathbf{q}_t)^\top \phi(\mathbf{k}_j) \mathbf{v}_j}{\sum_{j=1}^t \phi(\mathbf{q}_t)^\top \phi(\mathbf{k}_j)} = \frac{\left(\sum_{j=1}^t \phi(\mathbf{k}_j) \mathbf{v}_j^\top\right)^\top \phi(\mathbf{q}_t)}{\phi(\mathbf{q}_t)^\top \sum_{j=1}^t \phi(\mathbf{k}_j)},ot=j=1tϕ(qt)ϕ(kj)j=1tϕ(qt)ϕ(kj)vj=ϕ(qt)j=1tϕ(kj)(j=1tϕ(kj)vj)ϕ(qt),

This formulation allows the context to be compressed into a recurrent matrix state StRm×dv\mathbf{S}_t \in \mathbb{R}^{m \times d_v}StRm×dv and a normalizer ztRm\mathbf{z}_t \in \mathbb{R}^mztRm:

ot=Stϕ(qt)ztϕ(qt)+εattn,St=St1+ϕ(kt)vt,zt=zt1+ϕ(kt).\mathbf{o}_t = \frac{\mathbf{S}_t^\top \phi(\mathbf{q}_t)}{\mathbf{z}_t^\top \phi(\mathbf{q}_t) + \varepsilon_{\mathrm{attn}}}, \quad \mathbf{S}_t = \mathbf{S}_{t-1} + \phi(\mathbf{k}_t) \mathbf{v}_t^\top, \quad \mathbf{z}_t = \mathbf{z}_{t-1} + \phi(\mathbf{k}_t).ot=ztϕ(qt)+εattnStϕ(qt),St=St1+ϕ(kt)vt,zt=zt1+ϕ(kt).

For a fresh sequence, Eq. (2.2) is exactly equivalent to Eq. (2.1) when S0=0\mathbf{S}_0 = \mathbf{0}S0=0, z0=0\mathbf{z}_0 = \mathbf{0}z0=0, εattn=0\varepsilon_{\mathrm{attn}} = 0εattn=0, and the denominator is nonzero. With εattn>0\varepsilon_{\mathrm{attn}} > 0εattn>0, it is the usual stabilized positive-feature variant. The normalized form is attention-like only when the read normalizer is nonnegative; signed-feature caveats are deferred to Appendix C.2.

Causality and indexing. Eq. (2.2) follows the standard Transformer convention: at position ttt the paper read from the updated state (St,zt)(\mathbf{S}_t, \mathbf{z}_t)(St,zt), and the resulting representation is used to predict token t+1t+1t+1. The authors' next-latent alignment shifts the write stream by one: after observing vt\mathbf{v}_tvt, it is written under the previous write feature ϕ(kt1)\phi(\mathbf{k}_{t-1})ϕ(kt1), or equivalently, (ϕ(ki),vi+1)(\phi(\mathbf{k}_i), \mathbf{v}_{i+1})(ϕ(ki),vi+1) under standard indexing with i=t1i = t-1i=t1. This yields the read-after-write recurrence:

ot=Stϕ(qt)ztϕ(qt)+εattn,St=St1+ϕ(kt1)vt,zt=zt1+ϕ(kt1),\mathbf{o}_t = \frac{\mathbf{S}_t^\top \phi(\mathbf{q}_t)}{\mathbf{z}_t^\top \phi(\mathbf{q}_t) + \varepsilon_{\mathrm{attn}}}, \quad \mathbf{S}_t = \mathbf{S}_{t-1} + \phi(\mathbf{k}_{t-1}) \mathbf{v}_t^\top, \quad \mathbf{z}_t = \mathbf{z}_{t-1} + \phi(\mathbf{k}_{t-1}),ot=ztϕ(qt)+εattnStϕ(qt),St=St1+ϕ(kt1)vt,zt=zt1+ϕ(kt1),

where εattn0\varepsilon_{\mathrm{attn}} \geq 0εattn0 is a small stabilizer. Defining the shifted write-feature stream:

x~1:=0,x~t:=ϕ(kt1)for t2,\widetilde{\mathbf{x}}_1 := \mathbf{0}, \qquad \widetilde{\mathbf{x}}_t := \phi(\mathbf{k}_{t-1}) \quad \text{for } t \geq 2,x1:=0,xt:=ϕ(kt1)for t2,

Eq. (2.3) is exactly Eq. (2.2) with the standard write-feature stream {ϕ(kt)}t=1T\{\phi(\mathbf{k}_t)\}_{t=1}^T{ϕ(kt)}t=1T replaced by {x~t}t=1T\{\widetilde{\mathbf{x}}_t\}_{t=1}^T{xt}t=1T when εattn=0\varepsilon_{\mathrm{attn}} = 0εattn=0; for εattn>0\varepsilon_{\mathrm{attn}} > 0εattn>0, it is the corresponding stabilized shifted variant. The boundary condition is therefore imposed in feature space rather than raw-key space.

Normalized vs. unnormalized linear attention. The denominator in Eq. (2.1) uses the normalizer state zt\mathbf{z}_tzt to rescale the readout. Many SSM/SSD-style architectures instead drop the denominator (and zt\mathbf{z}_tzt) and use an unnormalized inner-product read:

ot=Stϕ(qt),St=(1ηtλt)St1+ηtϕ(kt1)vt,\mathbf{o}_t = \mathbf{S}_t^\top \phi(\mathbf{q}_t), \quad \mathbf{S}_t = (1 - \eta_t \lambda_t) \mathbf{S}_{t-1} + \eta_t \phi(\mathbf{k}_{t-1}) \mathbf{v}_t^\top,ot=Stϕ(qt),St=(1ηtλt)St1+ηtϕ(kt1)vt,

with the unshifted convention recovered by replacing kt1\mathbf{k}_{t-1}kt1 with kt\mathbf{k}_tkt. In this denominator-free form, state magnitude and the effective memory timescale are controlled by explicit decay (e.g., λt>0\lambda_t > 0λt>0) and/or gain control. Section 4.3 shows that the numerator-state update in Eq. (2.4) is exactly gradient descent on an inner-product objective. The auxiliary normalizer zt\mathbf{z}_tzt in the normalized variants is a separate bookkeeping state for the read denominator; it is not itself obtained from that objective.

Accordingly, Eq. (2.4) is the gradient-descent update for the inner-product objective in Section 4.3. When λt=0\lambda_t = 0λt=0, the write is purely additive rank-one Hebbian learning; when λt>0\lambda_t > 0λt>0, it is additive plus scalar shrinkage. As noted in Section 2.1, Mamba-2 proves that the no-normalizer recurrence is functionally equivalent to a specific class of SSMs under the SSD framework.

2.3 Delta Networks

Fast Weight Programmers and Delta Networks formulate sequence modeling as the online learning of a value-retrieval function. Let St1Rd×dv\mathbf{S}_{t-1} \in \mathbb{R}^{d \times d_v}St1Rd×dv denote the fast-weight state matrix. Instead of purely additive accumulation, standard Delta Networks employ an error-driven update derived from the gradient of the instantaneous squared error between the state's reconstruction of the current key and value:

t(S):=12Sktvt22.\ell_t(\mathbf{S}) := \frac{1}{2} \left\| \mathbf{S}^\top \mathbf{k}_t - \mathbf{v}_t \right\|_2^2.t(S):=21Sktvt22.

Here, Sk\mathbf{S}^\top \mathbf{k}Sk represents the model's prediction of value vt\mathbf{v}_tvt given key k\mathbf{k}k. The gradient with respect to the state is St(S)=kt(Sktvt)\nabla_{\mathbf{S}} \ell_t(\mathbf{S}) = \mathbf{k}_t \left( \mathbf{S}^\top \mathbf{k}_t - \mathbf{v}_t \right)^\topSt(S)=kt(Sktvt).

Delta rule. the paper denote the gradient step size by ηt\eta_tηt; later, βt\beta_tβt denotes a dimensionless normalized gain and ηt\eta_tηt the induced step size. A single online gradient step gives:

St=St1ηtkt(St1ktvt)=(Iηtktkt)St1+ηtktvt.\mathbf{S}_t = \mathbf{S}_{t-1} - \eta_t \mathbf{k}_t (\mathbf{S}_{t-1}^\top \mathbf{k}_t - \mathbf{v}_t)^\top = (\mathbf{I} - \eta_t \mathbf{k}_t \mathbf{k}_t^\top) \mathbf{S}_{t-1} + \eta_t \mathbf{k}_t \mathbf{v}_t^\top.St=St1ηtkt(St1ktvt)=(Iηtktkt)St1+ηtktvt.

The rank-one factor performs a targeted shrinkage/edit along the current key direction; it becomes an orthogonal projection only when ηt=1/kt22\eta_t = 1 / \|\mathbf{k}_t\|_2^2ηt=1/∥kt22. Gated Delta Networks add an explicit global decay gate; notation and comparison details are in Appendix C.3.

3 Autoregressive Next-Latent Prediction

In this section, the authors cast the recurrent write as an explicit online optimization problem. Under the read-after-write convention, the causal example revealed at step ttt pairs the newly observed target with the prefix write feature available when that target was predicted, namely xt=ϕ(kt1)\mathbf{x}_t = \phi(\mathbf{k}_{t-1})xt=ϕ(kt1) and yt=vt\mathbf{y}_t = \mathbf{v}_tyt=vt. Standard DeltaNet instead uses the same-step pair (ϕ(kt),vt)(\phi(\mathbf{k}_t), \mathbf{v}_t)(ϕ(kt),vt); that pairing remains causal, but it corresponds to a different local fast-memory objective. The authors therefore model S\mathbf{S}S as an online linear predictor from xt\mathbf{x}_txt to yt\mathbf{y}_tyt and optimize an instantaneous ridge-regression loss:

t(S)12Sxtyt22+λt2SF2,\ell_t(\mathbf{S}) \triangleq \frac{1}{2} \left\| \mathbf{S}^\top \mathbf{x}_t - \mathbf{y}_t \right\|_2^2 + \frac{\lambda_t}{2} \|\mathbf{S}\|_F^2,t(S)21Sxtyt22+2λtSF2,

where λt0\lambda_t \geq 0λt0 is a regularization coefficient. While full-batch minimization of the cumulative loss corresponds to the offline solution found in methods like MesaNet, efficient autoregressive modeling requires an online approximation. The authors therefore employ Online Gradient Descent (OGD).

Notation. In kernelized linear attention, the key that writes to memory is typically a feature vector ϕ(k)Rm\phi(\mathbf{k}) \in \mathbb{R}^mϕ(k)Rm rather than the raw key kRd\mathbf{k} \in \mathbb{R}^dkRd. All derivations in this section are interpreted with:

xtϕ(kt1)Rm,StRm×dv,\mathbf{x}_t \equiv \phi(\mathbf{k}_{t-1}) \in \mathbb{R}^m, \qquad \mathbf{S}_t \in \mathbb{R}^{m \times d_v},xtϕ(kt1)Rm,StRm×dv,

so xt\mathbf{x}_txt is treated as the generic write feature. Queries used for retrieval, e.g. ϕ(qt)\phi(\mathbf{q}_t)ϕ(qt) in linear attention, live in the same feature space but need not equal xt\mathbf{x}_txt. Whenever a summary sentence informally refers to a pairing in raw-key space, the mathematically exact kernelized object is the corresponding write feature.

Implicit fast-memory objective. Eq. (3.1) is the instantaneous objective whose gradient step defines the fast-memory write rule; it is not an additional supervised loss beyond the outer autoregressive likelihood. During training, the authors differentiate through the update so that the slow weights (which produce (q,k,v)(\mathbf{q}, \mathbf{k}, \mathbf{v})(q,k,v) as well as βt,λt\beta_t, \lambda_tβt,λt) learn representations and gates that make these local updates useful.

Indexing and causality conventions. The read-after-write (RAW) convention is used throughout: after token ttt is observed and written, the updated state St\mathbf{S}_tSt is read to predict token t+1t+1t+1. Under next-latent alignment, the causal write pair is therefore (ϕ(kt1),vt)(\phi(\mathbf{k}_{t-1}), \mathbf{v}_t)(ϕ(kt1),vt), or equivalently (ϕ(ki),vi+1)(\phi(\mathbf{k}_i), \mathbf{v}_{i+1})(ϕ(ki),vi+1) under standard indexing. The authors set S0=0\mathbf{S}_0 = \mathbf{0}S0=0 and impose the feature-space boundary x1:=0\mathbf{x}_1 := \mathbf{0}x1:=0. For update rules with explicit shrinkage, the boundary sentinel is also assigned η1:=0\eta_1 := 0η1:=0 (equivalently, α1=0,γ1=1\alpha_1 = 0, \gamma_1 = 1α1=0,γ1=1 in the log-space notation); otherwise λ1>0\lambda_1 > 0λ1>0 would decay a carried state even though no data pair is written. Detailed RAW/RBW and boundary conventions are deferred to Appendix C.5.

With this convention, the internal fast-memory prediction is y^t:=St1xt\widehat{\mathbf{y}}_t := \mathbf{S}_{t-1}^\top \mathbf{x}_tyt:=St1xt, with residual rt=yty^t\mathbf{r}_t = \mathbf{y}_t - \widehat{\mathbf{y}}_trt=ytyt. This is distinct from the model readout at position ttt, which under RAW uses the updated state St\mathbf{S}_tSt.

Fast memory as continual learning. The recurrent state is the fast memory updated within the forward pass; each token provides a local training pair (xt,yt)(\mathbf{x}_t, \mathbf{y}_t)(xt,yt). Across the family, βt\beta_tβt controls plasticity and λt\lambda_tλt controls shrinkage/forgetting; the realized ηt\eta_tηt depends on the local normalization statistic, which is smoothness-matched for regression and energy-based for the inner-product implementations.

3.1 Online Gradient Descent Update

The gradient of the instantaneous loss in Eq. (3.1) with respect to the state S\mathbf{S}S is:

St(S)=xt(Sxtyt)+λtS.\nabla_{\mathbf{S}} \ell_t(\mathbf{S}) = \mathbf{x}_t (\mathbf{S}^\top \mathbf{x}_t - \mathbf{y}_t)^\top + \lambda_t \mathbf{S}.St(S)=xt(Sxtyt)+λtS.

Applying a single gradient descent step with learning rate ηt\eta_tηt yields the update rule:

StSt1ηtSt(St1)=St1ηt[xt(St1xtyt)+λtSt1]=(1ηtλt)St1+ηtxtrt,\begin{aligned} \mathbf{S}_t &\leftarrow \mathbf{S}_{t-1} - \eta_t \nabla_{\mathbf{S}} \ell_t(\mathbf{S}_{t-1}) \\ &= \mathbf{S}_{t-1} - \eta_t \left[ \mathbf{x}_t (\mathbf{S}_{t-1}^\top \mathbf{x}_t - \mathbf{y}_t)^\top + \lambda_t \mathbf{S}_{t-1} \right] \\ &= (1 - \eta_t \lambda_t) \mathbf{S}_{t-1} + \eta_t \mathbf{x}_t \mathbf{r}_t^\top, \end{aligned}StSt1ηtSt(St1)=St1ηt[xt(St1xtyt)+λtSt1]=(1ηtλt)St1+ηtxtrt,

where rtytSt1xt\mathbf{r}_t \triangleq \mathbf{y}_t - \mathbf{S}_{t-1}^\top \mathbf{x}_trtytSt1xt is the residual (prediction error). Note that, unlike standard Delta Networks, rt\mathbf{r}_trt measures the discrepancy between the prediction from the previous write feature xt=ϕ(kt1)\mathbf{x}_t = \phi(\mathbf{k}_{t-1})xt=ϕ(kt1) and the current value vt\mathbf{v}_tvt.

This is gradient descent on the instantaneous ridge objective. With the normalized step size below, it becomes a normalized update. In the special case λt=0\lambda_t = 0λt=0 and ε=0\varepsilon = 0ε=0, it reduces exactly to the classical NLMS recursion; for ε>0\varepsilon > 0ε>0, it is the usual stabilized NLMS variant. Specifically, the loss t\ell_tt is LtL_tLt-smooth with respect to the Frobenius norm, with smoothness constant Lt=xt22+λtL_t = \|\mathbf{x}_t\|_2^2 + \lambda_tLt=xt22+λt. To ensure numerical stability and scale robustness, the authors adopt the normalized step size:

ηt=βtxt22+λt+ε,βt(0,2),ε0.\eta_t = \frac{\beta_t}{\|\mathbf{x}_t\|_2^2 + \lambda_t + \varepsilon}, \quad \beta_t \in (0, 2), \varepsilon \geq 0.ηt=xt22+λt+εβt,βt(0,2),ε0.

The authors adopt the convention ηt:=0\eta_t := 0ηt:=0 when xt22+λt+ε=0\|\mathbf{x}_t\|_2^2 + \lambda_t + \varepsilon = 0xt22+λt+ε=0, and also at the boundary sentinel t=1t = 1t=1 when x1=0\mathbf{x}_1 = \mathbf{0}x1=0 is used to denote "no causal pair." In analysis, ε=0\varepsilon = 0ε=0 may be taken and Lt>0L_t > 0Lt>0 assumed. In implementations, ε>0\varepsilon > 0ε>0 is used for numerical robustness; any ε>0\varepsilon > 0ε>0 only decreases ηt\eta_tηt and therefore preserves the descent guarantees below.

Appendix C.6 records secondary implementation details, including the βt>1\beta_t > 1βt>1 sign-flip regime and the positive-decay interpretation of ridge shrinkage under log-space unrolling.

3.2 Analysis

The authors show that the normalized step size yields per-step descent in the instantaneous regularized objective t\ell_tt, a basic local stability property. This statement is pointwise in ttt: it does not imply monotone decrease of the cumulative online loss ss\sum_s \ell_sss or of the outer autoregressive training objective.

Lemma 3.1 (Per-step Descent for Smooth Losses). Let f:Rdx×dvRf: \mathbb{R}^{d_x \times d_v} \to \mathbb{R}f:Rdx×dvR be LLL-smooth with respect to the Frobenius norm. For any step size η(0,2/L)\eta \in (0, 2/L)η(0,2/L), the gradient step S+=Sηf(S)\mathbf{S}^+ = \mathbf{S} - \eta \nabla f(\mathbf{S})S+=Sηf(S) satisfies:

f(S+)f(S)η(2ηL)2f(S)F2.f(\mathbf{S}^+) \leq f(\mathbf{S}) - \frac{\eta (2 - \eta L)}{2} \|\nabla f(\mathbf{S})\|_F^2.f(S+)f(S)2η(2ηL)∥∇f(S)F2.

Proof. By LLL-smoothness, for any S\mathbf{S}S and S\mathbf{S}'S:

f(S)f(S)+f(S),SS+L2SSF2.f(\mathbf{S}') \leq f(\mathbf{S}) + \langle \nabla f(\mathbf{S}), \mathbf{S}' - \mathbf{S} \rangle + \frac{L}{2} \|\mathbf{S}' - \mathbf{S}\|_F^2.f(S)f(S)+f(S),SS+2LSSF2.

Set S=S+=Sηf(S)\mathbf{S}' = \mathbf{S}^+ = \mathbf{S} - \eta \nabla f(\mathbf{S})S=S+=Sηf(S) and simplify.

Step-size parametrization. Choosing η=β/L\eta = \beta / Lη=β/L with β(0,2)\beta \in (0, 2)β(0,2) (hence requiring L>0L > 0L>0) yields a decrease coefficient β(2β)/(2L)\beta (2 - \beta) / (2L)β(2β)/(2L). For L>0L > 0L>0, the stabilized choice η=β/(L+ε)\eta = \beta / (L + \varepsilon)η=β/(L+ε) with ε0\varepsilon \geq 0ε0 also lies in (0,2/L)(0, 2/L)(0,2/L). When L=0L = 0L=0, this interval is undefined; in the degenerate cases arising here (xt=0\mathbf{x}_t = \mathbf{0}xt=0 and λt=0\lambda_t = 0λt=0, or the corresponding windowed analogue), the gradient is zero, so the update is defined to be a no-op by setting η:=0\eta := 0η:=0.

3.3 Delta Networks as Regression

In this section, the authors interpret many previous fast weight models under this optimization framework. They observe that Delta Networks and Linear Attention can be viewed as gradient updates induced by specific online objective functions.

By substituting the regression assignments xtϕ(kt1)\mathbf{x}_t \gets \phi(\mathbf{k}_{t-1})xtϕ(kt1) and ytvt\mathbf{y}_t \gets \mathbf{v}_tytvt, Eq. (3.3) recovers the functional form of the Delta Network update rule, but with the critical index shift:

St=((1ηtλt)Idxηtxtxt)Decay & Targeted ForgetSt1+ηtxtytWrite,xt=ϕ(kt1),yt=vt.\mathbf{S}_t = \underbrace{\left((1 - \eta_t \lambda_t) \mathbf{I}_{d_x} - \eta_t \mathbf{x}_t \mathbf{x}_t^\top\right)}_{\text{Decay \& Targeted Forget}} \mathbf{S}_{t-1} + \underbrace{\eta_t \mathbf{x}_t \mathbf{y}_t^\top}_{\text{Write}}, \quad \mathbf{x}_t = \phi(\mathbf{k}_{t-1}), \mathbf{y}_t = \mathbf{v}_t.St=Decay & Targeted Forget((1ηtλt)Idxηtxtxt)St1+Writeηtxtyt,xt=ϕ(kt1),yt=vt.

Here, the rank-one term xtxtSt1\mathbf{x}_t \mathbf{x}_t^\top \mathbf{S}_{t-1}xtxtSt1 is the left Hessian action of the squared-error loss along the current write-feature direction. Intuitively, it reduces the component of the current predictor that acts on xt=ϕ(kt1)\mathbf{x}_t = \phi(\mathbf{k}_{t-1})xt=ϕ(kt1) before adding the new target yt=vt\mathbf{y}_t = \mathbf{v}_tyt=vt.

In contrast, replacing the regression (MSE) loss with the inner-product objective of Section 4.3 removes the residual term and yields an additive write. With the standard unshifted assignment (xt,yt)=(ϕ(kt),vt)(\mathbf{x}_t, \mathbf{y}_t) = (\phi(\mathbf{k}_t), \mathbf{v}_t)(xt,yt)=(ϕ(kt),vt) (or (kt,vt)(\mathbf{k}_t, \mathbf{v}_t)(kt,vt) in the unkernelized case), this is the familiar Linear Attention / Mamba-2 accumulation. With the next-latent assignment (xt,yt)=(ϕ(kt1),vt)(\mathbf{x}_t, \mathbf{y}_t) = (\phi(\mathbf{k}_{t-1}), \mathbf{v}_t)(xt,yt)=(ϕ(kt1),vt), it becomes the one-step-shifted variant used by the authors' methods (e.g., Falcon-3A in Section 4.5).

This regression perspective motivates a key algorithmic improvement that the authors analyze in Section 4: with objective-matched normalization, the rank-one regression step uses Lt=xt22+λtL_t = \|\mathbf{x}_t\|_2^2 + \lambda_tLt=xt22+λt, while the sliding rule uses Lt(B)=λmax(Cˉt(B))+λtL_t^{(B)} = \lambda_{\max}(\bar{\mathbf{C}}_t^{(B)}) + \lambda_tLt(B)=λmax(Cˉt(B))+λt. This suggests that fixed learning rates are scale-mismatched for regression-style fast-weight updates; for inner-product writes, the same normalization is better viewed as a magnitude stabilizer than as a curvature requirement.

Appendix A.2 gives reference pseudocode for the sequential first-order online-ridge update.

4 Falcon: Fast Weight Attention

Fast-weight memories and linear-attention architectures can be interpreted as online models that update a recurrent memory during the forward pass, tracing back to classical fast-weight mechanisms and their modern instantiations in linear Transformers and Delta-style rules. In this section, the authors derive Falcon from two local objectives under the shifted ϕ(kt1)vt\phi(\mathbf{k}_{t-1}) \mathbf{v}_tϕ(kt1)vt alignment: squared-error regression and a negative inner-product objective. This yields normalized step sizes, explicit forgetting controls, and sliding-window variants.

Naming and formula summary. All variants use the same causal pair:

xt:=ϕ(kt1),yt:=vt,x1:=0,η1:=0,\mathbf{x}_t := \phi(\mathbf{k}_{t-1}), \qquad \mathbf{y}_t := \mathbf{v}_t, \qquad \mathbf{x}_1 := \mathbf{0}, \qquad \eta_1 := 0,xt:=ϕ(kt1),yt:=vt,x1:=0,η1:=0,

and read after writing, ot=Stϕ(qt)\mathbf{o}_t = \mathbf{S}_t^\top \phi(\mathbf{q}_t)ot=Stϕ(qt). Let rt:=ytSt1xt\mathbf{r}_t := \mathbf{y}_t - \mathbf{S}_{t-1}^\top \mathbf{x}_trt:=ytSt1xt and Diag(ηt)\mathrm{Diag}(\boldsymbol{\eta}_t)Diag(ηt) denote the diagonal matrix of per-column step sizes. The regression family is:

Falcon-1:St=(1ηtλt)St1+ηtxtrt,ηt=βtxt22+λt+ε,\text{Falcon-1:} \quad \mathbf{S}_t = (1 - \eta_t \lambda_t) \mathbf{S}_{t-1} + \eta_t \mathbf{x}_t \mathbf{r}_t^\top, \quad \eta_t = \frac{\beta_t}{\|\mathbf{x}_t\|_2^2 + \lambda_t + \varepsilon},Falcon-1:St=(1ηtλt)St1+ηtxtrt,ηt=xt22+λt+εβt, Falcon-2:St=St1(IdvλtDiag(ηt))+xt(ηtrt),ηj,t=βj,txt22+λt+ε,\text{Falcon-2:} \quad \mathbf{S}_t = \mathbf{S}_{t-1} (\mathbf{I}_{d_v} - \lambda_t \mathrm{Diag}(\boldsymbol{\eta}_t)) + \mathbf{x}_t (\boldsymbol{\eta}_t \odot \mathbf{r}_t)^\top, \quad \eta_{j,t} = \frac{\beta_{j,t}}{\|\mathbf{x}_t\|_2^2 + \lambda_t + \varepsilon},Falcon-2:St=St1(IdvλtDiag(ηt))+xt(ηtrt),ηj,t=xt22+λt+εβj,t, Falcon-3:St=(1ηtλt)St1+ηtBtjItxj(yjSt1xj),ηt=βtμt(B)+λt+ε.\text{Falcon-3:} \quad \mathbf{S}_t = (1 - \eta_t \lambda_t) \mathbf{S}_{t-1} + \frac{\eta_t}{B_t} \sum_{j \in \mathcal{I}_t} \mathbf{x}_j \left(\mathbf{y}_j - \mathbf{S}_{t-1}^\top \mathbf{x}_j\right)^\top, \quad \eta_t = \frac{\beta_t}{\mu_t^{(B)} + \lambda_t + \varepsilon}.Falcon-3:St=(1ηtλt)St1+BtηtjItxj(yjSt1xj),ηt=μt(B)+λt+εβt.

Here μt(B)=λmax(Bt1jItxjxj)\mu_t^{(B)} = \lambda_{\max}\left( B_t^{-1} \sum_{j \in \mathcal{I}_t} \mathbf{x}_j \mathbf{x}_j^\top \right)μt(B)=λmax(Bt1jItxjxj). The inner-product family replaces the residual regression write by direct target writes:

Falcon-1A:St=(1ηtλt)St1+ηtxtyt,ηt=βtEt+λt+ε,\text{Falcon-1A:} \quad \mathbf{S}_t = (1 - \eta_t \lambda_t) \mathbf{S}_{t-1} + \eta_t \mathbf{x}_t \mathbf{y}_t^\top, \quad \eta_t = \frac{\beta_t}{E_t + \lambda_t + \varepsilon},Falcon-1A:St=(1ηtλt)St1+ηtxtyt,ηt=Et+λt+εβt, Falcon-2A:St=St1(IdvλtDiag(ηt))+xt(ηtyt),ηj,t=βj,tEt+λt+ε,\text{Falcon-2A:} \quad \mathbf{S}_t = \mathbf{S}_{t-1} (\mathbf{I}_{d_v} - \lambda_t \mathrm{Diag}(\boldsymbol{\eta}_t)) + \mathbf{x}_t (\boldsymbol{\eta}_t \odot \mathbf{y}_t)^\top, \qquad \eta_{j,t} = \frac{\beta_{j,t}}{E_t + \lambda_t + \varepsilon},Falcon-2A:St=St1(IdvλtDiag(ηt))+xt(ηtyt),ηj,t=Et+λt+εβj,t, Falcon-3A:St=(1ηtλt)St1+ηtNˉt(B),ηt=βtEˉt(B)+λt+ε,\text{Falcon-3A:} \quad \mathbf{S}_t = (1 - \eta_t \lambda_t) \mathbf{S}_{t-1} + \eta_t \bar{\mathbf{N}}_t^{(B)}, \quad \eta_t = \frac{\beta_t}{\bar{E}_t^{(B)} + \lambda_t + \varepsilon},Falcon-3A:St=(1ηtλt)St1+ηtNˉt(B),ηt=Eˉt(B)+λt+εβt,

where Et=xt22\mathcal{E}_t = \|\mathbf{x}_t\|_2^2Et=xt22, Nˉt(B)=Bt1jItxjyj\bar{\mathbf{N}}_t^{(B)} = B_t^{-1} \sum_{j \in \mathcal{I}_t} \mathbf{x}_j \mathbf{y}_j^\topNˉt(B)=Bt1jItxjyj, and Eˉt(B)=Bt1jItxj22\bar{E}_t^{(B)} = B_t^{-1} \sum_{j \in \mathcal{I}_t} \|\mathbf{x}_j\|_2^2Eˉt(B)=Bt1jItxj22. Thus, the index 1/2/31/2/31/2/3 denotes scalar, per-column, and sliding-window dynamics, respectively. The suffix "A" denotes the inner-product objective.

4.1 Scaled Linear Attention and Scaled DeltaNet

Unlike softmax attention, which uses the scaled dot product q,k/d\langle \mathbf{q}, \mathbf{k} \rangle / \sqrt{d}q,k/d, fast-weight recurrences are directly sensitive to the norms of queries and keys: (i) dot-product reads grow with qt2k2\|\mathbf{q}_t\|_2 \|\mathbf{k}\|_2qt2k2, and (ii) additive (inner-product) writes grow with the write-feature norm. To stabilize both the read and the write streams, especially under long decoding horizons and mixed precision, the authors use explicit feature scaling/normalization.

Scaled features. The authors define a generic RMS normalization operator for a vector uRdu\mathbf{u} \in \mathbb{R}^{d_u}uRdu:

RMSNorm(u):=uu22/du+εrms,\mathrm{RMSNorm}(\mathbf{u}) := \frac{\mathbf{u}}{\sqrt{\|\mathbf{u}\|_2^2 / d_u + \varepsilon_{\mathrm{rms}}}},RMSNorm(u):=u22/du+εrmsu,

where εrms>0\varepsilon_{\mathrm{rms}} > 0εrms>0 is a small stabilizer. Unless stated otherwise, RMSNorm is applied to the (qt,kt)(\mathbf{q}_t, \mathbf{k}_t)(qt,kt) projections used by fast-weight reads/writes, before forming dot products or outer products. This default differs from common 2\ell_22-normalized DeltaNet variants (e.g., in Gated DeltaNet implementations) and is substantially more stable in mixed precision because standard RMSNorm keeps coordinate magnitudes Θ(1)\Theta(1)Θ(1). Moreover:

RMSNorm(u)22=duu22u22+duεrmsdu,\left\| \mathrm{RMSNorm}(\mathbf{u}) \right\|_2^2 = \frac{d_u \|\mathbf{u}\|_2^2}{\|\mathbf{u}\|_2^2 + d_u \varepsilon_{\mathrm{rms}}} \leq d_u,RMSNorm(u)22=u22+duεrmsduu22du,

so in the usual regime u22duεrms\|\mathbf{u}\|_2^2 \gg d_u \varepsilon_{\mathrm{rms}}u22duεrms the paper indeed have RMSNorm(u)22du\|\mathrm{RMSNorm}(\mathbf{u})\|_2^2 \approx d_uRMSNorm(u)22du. By default, values vt\mathbf{v}_tvt are not normalized; value normalization (VNorm) is optional and disabled unless explicitly enabled.

Scaled Linear Attention. Under next-latent alignment, the RMS-normalized projections are used in the feature space. The scalar denominator-free inner-product recurrence, denoted Falcon-1A below, is:

ot=Stϕ(qt),St=(1ηtλt)St1+ηtxtvt,xt:=ϕ(kt1).\mathbf{o}_t = \mathbf{S}_t^\top \phi(\mathbf{q}_t), \quad \mathbf{S}_t = (1 - \eta_t \lambda_t) \mathbf{S}_{t-1} + \eta_t \mathbf{x}_t \mathbf{v}_t^\top, \quad \mathbf{x}_t := \phi(\mathbf{k}_{t-1}).ot=Stϕ(qt),St=(1ηtλt)St1+ηtxtvt,xt:=ϕ(kt1).

Its per-column counterpart, Falcon-2A, replaces the scalar write gain by a vector ηtRdv\boldsymbol{\eta}_t \in \mathbb{R}^{d_v}ηtRdv:

St=St1(IdvλtDiag(ηt))+xt(ηtvt).\mathbf{S}_t = \mathbf{S}_{t-1} (\mathbf{I}_{d_v} - \lambda_t \mathrm{Diag}(\boldsymbol{\eta}_t)) + \mathbf{x}_t (\boldsymbol{\eta}_t \odot \mathbf{v}_t)^\top.St=St1(IdvλtDiag(ηt))+xt(ηtvt).

The corresponding normalized numerator/denominator recurrence is recorded in Appendix C.1; in signed-feature settings, the denominator caveat in Appendix C.2 applies.

Scaled DeltaNet and the common ridge parameterization. For regression-style fast weights, the same scaled write-feature xt\mathbf{x}_txt is used inside the NLMS update:

St=(1ηtλt)St1+ηtxt(vtSt1xt),ηt=βtxt22+λt+ε.\mathbf{S}_t = (1 - \eta_t \lambda_t) \mathbf{S}_{t-1} + \eta_t \mathbf{x}_t \left(\mathbf{v}_t - \mathbf{S}_{t-1}^\top \mathbf{x}_t\right)^\top, \quad \eta_t = \frac{\beta_t}{\|\mathbf{x}_t\|_2^2 + \lambda_t + \varepsilon}.St=(1ηtλt)St1+ηtxt(vtSt1xt),ηt=xt22+λt+εβt.

In scaled implementations, the network may emit a dimensionless base ridge λˉt\bar{\lambda}_tλˉt that is converted to the actual coefficient used by the recurrence, λt=λˉtEt\lambda_t = \bar{\lambda}_t E_tλt=λˉtEt, where EtE_tEt is the appropriate normalization statistic: xt22\|\mathbf{x}_t\|_2^2xt22 for Falcon-2 and μt(B):=λmax(Cˉt(B))\mu_t^{(B)} := \lambda_{\max}(\bar{\mathbf{C}}_t^{(B)})μt(B):=λmax(Cˉt(B)) for Falcon-3. The authors then set:

ηt=βtEt+λt+ε,αt:=ηtλt,γt:=1αt.\eta_t = \frac{\beta_t}{E_t + \lambda_t + \varepsilon}, \quad \alpha_t := \eta_t \lambda_t, \quad \gamma_t := 1 - \alpha_t.ηt=Et+λt+εβt,αt:=ηtλt,γt:=1αt.

Here Et=xt22E_t = \|\mathbf{x}_t\|_2^2Et=xt22 for the non-sliding scalar/per-column rules (Falcon-1/Falcon-2 and Falcon-1A/Falcon-2A), while Et=μt(B)E_t = \mu_t^{(B)}Et=μt(B) for Falcon-3 and Et=E^t(B)E_t = \hat{E}_t^{(B)}Et=E^t(B) for Falcon-3A. For regression, EtE_tEt is the local smoothness scale of the data term; for inner-product writes, the corresponding energy statistics in Sections 4.3 and 4.5 are practical write-magnitude controls. Exact scale-robustness identities, detached-statistics details, the normalized linear-attention recurrence, and log-space positive-decay handling are deferred to Appendix C.1 and Appendix C.6.

4.2 Regression Loss (Delta Network)

The authors formulate the state update as an autoregressive linear regression problem. At time step ttt, let the state be St1Rdx×dv\mathbf{S}_{t-1} \in \mathbb{R}^{d_x \times d_v}St1Rdx×dv, the write feature be xtϕ(kt1)Rdx\mathbf{x}_t \triangleq \phi(\mathbf{k}_{t-1}) \in \mathbb{R}^{d_x}xtϕ(kt1)Rdx, and the target be ytvtRdv\mathbf{y}_t \triangleq \mathbf{v}_t \in \mathbb{R}^{d_v}ytvtRdv. (In the unkernelized case, ϕ\phiϕ is the identity and dx=dd_x = ddx=d.) The state St1\mathbf{S}_{t-1}St1 acts as a linear predictor mapping the prefix feature xt\mathbf{x}_txt to the newly observed target yt\mathbf{y}_tyt.

The instantaneous squared-error loss is:

ft(S):=12Sxtyt22.f_t(\mathbf{S}) := \frac{1}{2} \left\| \mathbf{S}^\top \mathbf{x}_t - \mathbf{y}_t \right\|_2^2.ft(S):=21Sxtyt22.

Evaluated at the pre-update state, the residual is rtytSt1xt\mathbf{r}_t \triangleq \mathbf{y}_t - \mathbf{S}_{t-1}^\top \mathbf{x}_trtytSt1xt. The gradient with respect to the state is:

Sft(St1)=xt(St1xtyt)=xtrt.\nabla_{\mathbf{S}} f_t(\mathbf{S}_{t-1}) = \mathbf{x}_t (\mathbf{S}_{t-1}^\top \mathbf{x}_t - \mathbf{y}_t)^\top = -\mathbf{x}_t \mathbf{r}_t^\top.Sft(St1)=xt(St1xtyt)=xtrt.

Delta update (standard vs. next-latent). A single step of Online Gradient Descent (OGD) with learning rate ηt\eta_tηt yields the Delta update:

St=St1ηtSft(St1)=St1+ηtxtrt=(Idxηtxtxt)St1+ηtxtyt.\begin{aligned} \mathbf{S}_t &= \mathbf{S}_{t-1} - \eta_t \nabla_{\mathbf{S}} f_t(\mathbf{S}_{t-1}) \\ &= \mathbf{S}_{t-1} + \eta_t \mathbf{x}_t \mathbf{r}_t^\top \\ &= (\mathbf{I}_{d_x} - \eta_t \mathbf{x}_t \mathbf{x}_t^\top) \mathbf{S}_{t-1} + \eta_t \mathbf{x}_t \mathbf{y}_t^\top. \end{aligned}St=St1ηtSft(St1)=St1+ηtxtrt=(Idxηtxtxt)St1+ηtxtyt.

Under next-latent alignment the paper have xt=ϕ(kt1)\mathbf{x}_t = \phi(\mathbf{k}_{t-1})xt=ϕ(kt1) and yt=vt\mathbf{y}_t = \mathbf{v}_tyt=vt. Replacing kt1\mathbf{k}_{t-1}kt1 with kt\mathbf{k}_tkt (equivalently, xtϕ(kt)\mathbf{x}_t \gets \phi(\mathbf{k}_t)xtϕ(kt)) recovers the unshifted DeltaNet update of Schlag et al.

L2L_2L2 Regularization. Adding an L2L_2L2 penalty λt2SF2\frac{\lambda_t}{2} \|\mathbf{S}\|_F^22λtSF2 to the instantaneous loss yields the shrinkage term ηtλtSt1-\eta_t \lambda_t \mathbf{S}_{t-1}ηtλtSt1 in the online update (cf. Eq. (3.3)). Under normalized step sizes, this results in the multiplicative factor (1ηtλt)(1 - \eta_t \lambda_t)(1ηtλt), which the authors treat as a simple and controllable forgetting mechanism.

Falcon-2: Adaptive Learning Rates. The authors propose Falcon-2, which combines NLMS-style normalization with per-channel adaptive learning rates. In Appendix F, they derive a vectorized dual form that makes column-wise adaptivity computationally tractable on GPUs. This allows the step size to be a vector ηtRdv\boldsymbol{\eta}_t \in \mathbb{R}^{d_v}ηtRdv, tailoring the update magnitude for each value channel (column of S\mathbf{S}S) independently. In the models studied here, the standard multi-head factorization is used: each head carries its own fast state, and the same per-column rule is applied independently within that head.

Per-column NLMS step sizes. Concretely, an NLMS-style normalizer shared across columns is used with learned per-column gains (equivalently, per output-feature / column gains):

ηj,t=βj,txt22+λt+ε,βj,t(0,2),ε>0.\eta_{j,t} = \frac{\beta_{j,t}}{\|\mathbf{x}_t\|_2^2 + \lambda_t + \varepsilon}, \quad \beta_{j,t} \in (0, 2), \varepsilon > 0.ηj,t=xt22+λt+εβj,t,βj,t(0,2),ε>0.

When λt=0\lambda_t = 0λt=0, ε=0\varepsilon = 0ε=0, and the gains are tied across channels (βj,tβt\beta_{j,t} \equiv \beta_tβj,tβt), this reduces to the classical scalar NLMS step size; otherwise, it is a column-wise NLMS generalization with a shared normalizer. Since the squared-error (ridge) loss decomposes across value coordinates (columns of S\mathbf{S}S), the per-step descent argument from Lemma 3.1 applies column-wise provided 0<βj,t<20 < \beta_{j,t} < 20<βj,t<2 for all jjj. Equivalently, Falcon-2 is a collection of dvd_vdv independent scalar-step updates on a separable objective, rather than a single Frobenius-gradient step with a full matrix-valued learning rate.

Update rule. Let ηt=(η1,t,,ηdv,t)\boldsymbol{\eta}_t = (\eta_{1,t}, \dots, \eta_{d_v,t})^\topηt=(η1,t,,ηdv,t). The update can be written compactly as:

St=St1(IdvλtDiag(ηt))+xt(ηtrt),\mathbf{S}_t = \mathbf{S}_{t-1} \left( \mathbf{I}_{d_v} - \lambda_t \mathrm{Diag}(\boldsymbol{\eta}_t) \right) + \mathbf{x}_t \left( \boldsymbol{\eta}_t \odot \mathbf{r}_t \right)^\top,St=St1(IdvλtDiag(ηt))+xt(ηtrt),

An expanded edit decomposition, separating the per-column shrinkage path from the feature-direction edit, is deferred to Appendix F.

Relation to RWKV-7 and Kimi Linear Attention. A brief comparison to RWKV-7 and Kimi Linear Attention is moved to Appendix C.6.

The equivalent column-wise recursion and the log-space positive-decay renormalization used by the chunk-parallel kernels are deferred to Appendix F.

Chunk-parallel implementation. Falcon-2 can be trained sequence-parallel by chunking the length axis and using a Gram/WY representation within each chunk. In the multi-head setting used here, this computation is applied independently within each head. Within a chunk, the WY/Gram form builds a shared key Gram matrix and a channel-dependent unit-lower-triangular system. The injected-value and projected-history paths share this triangular factor, so the implementation solves one merged residual system rather than two. This removes one batched TriSolve per chunk in the forward pass without changing the recurrence or asymptotic complexity, and mirrors the single-inversion form emphasized in Comba. Algorithm 1 gives the single-head Falcon-2 chunk-wise forward pass with the same positive-decay convention used by the implementation. The no-ridge rank-one case is recovered by setting λt=0\lambda_t = 0λt=0, in which case γt,j=1\gamma_{t,j} = 1γt,j=1 and the chunk-local rescaling becomes the identity. Appendix F gives the exact WY/Gram algebra and complexity analysis.

4.3 Inner Product Loss (Linear Attention and Mamba-2)

The authors now consider an Inner Product objective that encourages alignment between the state prediction and the target. It is written in minimization form with an optional L2L_2L2 penalty:

tip(S)Sxt,yt+λt2SF2,λt0.\ell_t^{\mathrm{ip}}(\mathbf{S}) \triangleq -\langle \mathbf{S}^\top \mathbf{x}_t, \mathbf{y}_t \rangle + \frac{\lambda_t}{2} \|\mathbf{S}\|_F^2, \quad \lambda_t \geq 0.tip(S)Sxt,yt+2λtSF2,λt0.

When λt=0\lambda_t = 0λt=0, the objective is linear in S\mathbf{S}S (no finite minimizer) and gradient descent reduces to purely additive Hebbian writes.

Standard vs. next-latent alignment. If the unshifted features (xt,yt)=(ϕ(kt),vt)(\mathbf{x}_t, \mathbf{y}_t) = (\phi(\mathbf{k}_t), \mathbf{v}_t)(xt,yt)=(ϕ(kt),vt) are chosen (or (kt,vt)(\mathbf{k}_t, \mathbf{v}_t)(kt,vt) in the unkernelized case), the additive update below matches the usual Linear Attention write ϕ(kt)vt\phi(\mathbf{k}_t) \mathbf{v}_t^\topϕ(kt)vt (Eq. (2.2)). The next-latent framework instead uses (xt,yt)=(ϕ(kt1),vt)(\mathbf{x}_t, \mathbf{y}_t) = (\phi(\mathbf{k}_{t-1}), \mathbf{v}_t)(xt,yt)=(ϕ(kt1),vt), yielding a one-step shifted write stream.

Falcon-A variants and notation. The suffix "A" is used for the inner-product objective and the numerical index is kept aligned with the regression family. Thus Falcon-1A is the scalar non-sliding inner-product rule, Falcon-2A is the per-column non-sliding inner-product rule, and Falcon-3A is the sliding-window inner-product rule in Section 4.5. As in Falcon-1/Falcon-2/Falcon-3, βt\beta_tβt denotes the dimensionless gain, λt\lambda_tλt the actual shrinkage coefficient used by the recurrence (obtained directly or via the same scale-coupled construction described above), and ηt\eta_tηt the resulting step size. For the inner-product family, this step size should be read as an energy-normalized write gain rather than as a curvature-matched denominator. Any decay fraction αt:=ηtλt\alpha_t := \eta_t \lambda_tαt:=ηtλt is derived rather than independently parameterized.

Gradient and update. The gradient of Eq. (4.5) is:

Stip(S)=xtyt+λtS.\nabla_{\mathbf{S}} \ell_t^{\mathrm{ip}}(\mathbf{S}) = -\mathbf{x}_t \mathbf{y}_t^\top + \lambda_t \mathbf{S}.Stip(S)=xtyt+λtS.

A scalar gradient step gives the Linear-Attention/Mamba-2 style update, which the authors denote Falcon-1A:

St=(1ηtλt)St1+ηtxtyt,\mathbf{S}_t = (1 - \eta_t \lambda_t) \mathbf{S}_{t-1} + \eta_t \mathbf{x}_t \mathbf{y}_t^\top,St=(1ηtλt)St1+ηtxtyt,

where xt=ϕ(kt1)\mathbf{x}_t = \phi(\mathbf{k}_{t-1})xt=ϕ(kt1) and yt=vt\mathbf{y}_t = \mathbf{v}_tyt=vt under next-latent alignment. Setting λt=0\lambda_t = 0λt=0 recovers the usual additive write St=St1+ηtxtyt\mathbf{S}_t = \mathbf{S}_{t-1} + \eta_t \mathbf{x}_t \mathbf{y}_t^\topSt=St1+ηtxtyt.

Falcon-2A: per-column inner-product write. Because Eq. (4.5) decomposes over value coordinates, each column can use its own energy-normalized learning rate. Define:

ηt:=(η1,t,,ηdv,t).\boldsymbol{\eta}_t := \left( \eta_{1,t}, \dots, \eta_{d_v,t} \right)^\top.ηt:=(η1,t,,ηdv,t).

The per-column inner-product update is:

St=St1(IdvλtDiag(ηt))+xt(ηtyt).\mathbf{S}_t = \mathbf{S}_{t-1} (\mathbf{I}_{d_v} - \lambda_t \mathrm{Diag}(\boldsymbol{\eta}_t)) + \mathbf{x}_t (\boldsymbol{\eta}_t \odot \mathbf{y}_t)^\top.St=St1(IdvλtDiag(ηt))+xt(ηtyt).

Equivalently, the jjj-th column evolves as:

st,j=(1ηj,tλt)st1,j+ηj,tyt,jxt.\mathbf{s}_{t,j} = (1 - \eta_{j,t} \lambda_t) \mathbf{s}_{t-1,j} + \eta_{j,t} y_{t,j} \mathbf{x}_t.st,j=(1ηj,tλt)st1,j+ηj,tyt,jxt.

Thus Falcon-2A is not the scalar inner-product rule; it is the per-column inner-product analogue of Falcon-2.

Falcon-1A/Falcon-2A step sizes. Unlike regression, the inner-product objective is λt\lambda_tλt-smooth independently of the write-feature energy. Accordingly, the objective-matched denominator would depend only on λt\lambda_tλt; in the inner-product implementations studied here, an energy-normalized write gain is instead retained to control the magnitude of the additive write. Let Et:=xt22E_t := \|\mathbf{x}_t\|_2^2Et:=xt22, and if the scale-coupled parameterization is active set λt:=λˉtEt\lambda_t := \bar{\lambda}_t E_tλt:=λˉtEt before applying the update. The scalar Falcon-1A step size is:

ηt=βtEt+λt+ε,βt(0,2),ε0.\eta_t = \frac{\beta_t}{E_t + \lambda_t + \varepsilon}, \quad \beta_t \in (0, 2), \varepsilon \geq 0.ηt=Et+λt+εβt,βt(0,2),ε0.

The per-column Falcon-2A step sizes are:

ηj,t=βj,tEt+λt+ε,βj,t(0,2),ε0.\eta_{j,t} = \frac{\beta_{j,t}}{E_t + \lambda_t + \varepsilon}, \quad \beta_{j,t} \in (0, 2), \varepsilon \geq 0.ηj,t=Et+λt+εβj,t,βj,t(0,2),ε0.

As in Eq. (3.4), ηt:=0\eta_t := 0ηt:=0 (or ηj,t:=0\eta_{j,t} := 0ηj,t:=0 for all jjj) is set when the denominator vanishes, and also at the boundary sentinel t=1t = 1t=1 when x1=0\mathbf{x}_1 = \mathbf{0}x1=0 is imposed. When λt>0\lambda_t > 0λt>0, these choices satisfy ηt<2/λt\eta_t < 2/\lambda_tηt<2/λt and ηj,t<2/λt\eta_{j,t} < 2/\lambda_tηj,t<2/λt for any admissible βt,βj,t\beta_t, \beta_{j,t}βt,βj,t. Since tip\ell_t^{\mathrm{ip}}tip is λt\lambda_tλt-smooth (its Hessian is λtI\lambda_t \mathbf{I}λtI), Lemma 3.1 yields per-step descent for the unclamped scalar update, and the same argument applies column-wise to Eq. (4.7). If the later positive-decay clamp is activated for log-space unrolling, the implemented shrinkage should be interpreted as using the effective ridge coefficient λt:=αt/ηt\lambda_t := \alpha_t / \eta_tλt:=αt/ηt in the scalar case, or λˉj,t:=αj,t/ηj,t\bar{\lambda}_{j,t} := \alpha_{j,t} / \eta_{j,t}λˉj,t:=αj,t/ηj,t in the per-column case, whenever the corresponding step size is positive. The EtE_tEt term is not required by curvature, but stabilizes the write magnitude and yields a sensible λt0\lambda_t \to 0λt0 limit.

Decay positivity. Some parallel/unrolled forms (Section 4.6) use γt:=1ηtλt\gamma_t := 1 - \eta_t \lambda_tγt:=1ηtλt in log space and therefore require γt>0\gamma_t > 0γt>0. In implementations, compute αt:=ηtλt\alpha_t := \eta_t \lambda_tαt:=ηtλt and, if necessary, clamp αtmin(αt,1εγ)\alpha_t \leftarrow \min(\alpha_t, 1 - \varepsilon_\gamma)αtmin(αt,1εγ) before computing logγt=log1p(αt)\log \gamma_t = \log 1\mathrm{p}(-\alpha_t)logγt=log1p(αt) (fp32). The clamp is inactive whenever ηtλt<1εγ\eta_t \lambda_t < 1 - \varepsilon_\gammaηtλt<1εγ; in that regime, the dynamics match γt=1ηtλt\gamma_t = 1 - \eta_t \lambda_tγt=1ηtλt exactly. As above, the descent statement pertains to the unclamped recurrence. When the clamp activates, the implemented recurrence should be viewed as a numerically safe surrogate whose shrinkage path uses the effective ridge coefficient:

λ~t:=αt/ηt\widetilde{\lambda}_t := \alpha_t / \eta_tλt:=αt/ηt

whenever ηt>0\eta_t > 0ηt>0 (and λ~t:=0\widetilde{\lambda}_t := 0λt:=0 when ηt=0\eta_t = 0ηt=0), while the additive write gain remains ηt\eta_tηt.

4.4 Mini-batch Update Rule for Regression (Falcon-3)

To better capture local dependencies and reduce noise accumulation, the authors introduce a sliding-state mechanism: instead of updating the state from only the instantaneous residual, a single mini-batch gradient step is taken on a finite history window of nominal size BBB.

Falcon-3 can be viewed as a sliding-window specialization of the internal-objective view exemplified by ATLAS, but here instantiated with a linear matrix memory, a squared-error objective, and strict next-latent alignment. Exact continuation across segment boundaries additionally requires a fixed-width tail of the last B1B-1B1 causal pairs; Appendix C.7 records the details.

Sequence-parallel training. After zero-padding each active window to width BBB, Falcon-3 becomes a fixed-rank-BBB low-rank recurrence. Algorithm 2 gives the reference sequential update, and Algorithm 3 gives the chunk-parallel ParallelFlow implementation based on the positive-decay reduction in Eq. (4.16). Appendix H records the driver construction and mask conventions. The inner-product counterpart (Falcon-3A) admits an explicit masked linear-attention form (Section 4.6), enabling fully vectorized training over the sequence dimension.

For t2t \geq 2t2, let the active window indices be It={jmax(2,tB+1)jt}\mathcal{I}_t = \{ j \mid \max(2, t - B + 1) \leq j \leq t \}It={jmax(2,tB+1)jt} and denote the realized window size by Bt:=ItBB_t := |\mathcal{I}_t| \leq BBt:=ItB (so Bt1B_t \geq 1Bt1). Define the write feature xj:=ϕ(kj1)\mathbf{x}_j := \phi(\mathbf{k}_{j-1})xj:=ϕ(kj1) for j2j \geq 2j2 (so xj=kj1\mathbf{x}_j = \mathbf{k}_{j-1}xj=kj1 when ϕ\phiϕ is the identity), and impose the boundary convention x1:=0\mathbf{x}_1 := \mathbf{0}x1:=0. The authors set η1:=0\eta_1 := 0η1:=0, so the t=1t = 1t=1 write is a no-op; all windowed objectives/updates below are defined for t2t \geq 2t2. To make the update magnitude (and hence the effective decay) invariant to the nominal window size BBB, the window-average squared loss is optimized:

treg,(B)(S):=12BtjItSxjvj22+λt2SF2,(t2).\ell_t^{\mathrm{reg},(B)}(\mathbf{S}) := \frac{1}{2 B_t} \sum_{j \in \mathcal{I}_t} \| \mathbf{S}^\top \mathbf{x}_j - \mathbf{v}_j \|_2^2 + \frac{\lambda_t}{2} \|\mathbf{S}\|_F^2, \qquad (t \geq 2).treg,(B)(S):=2Bt1jItSxjvj22+2λtSF2,(t2).

Sufficient Statistics. The authors define the sliding covariance Ct(B)\mathbf{C}_t^{(B)}Ct(B) and cross-covariance Nt(B)\mathbf{N}_t^{(B)}Nt(B) matrices:

Ct(B)jItxjxj,Nt(B)jItxjvj.\mathbf{C}_t^{(B)} \triangleq \sum_{j \in \mathcal{I}_t} \mathbf{x}_j \mathbf{x}_j^\top, \quad \mathbf{N}_t^{(B)} \triangleq \sum_{j \in \mathcal{I}_t} \mathbf{x}_j \mathbf{v}_j^\top.Ct(B)jItxjxj,Nt(B)jItxjvj.

Define the window-averaged statistics:

Cˉt(B):=1BtCt(B),Nˉt(B):=1BtNt(B).\bar{\mathbf{C}}_t^{(B)} := \frac{1}{B_t} \mathbf{C}_t^{(B)}, \quad \bar{\mathbf{N}}_t^{(B)} := \frac{1}{B_t} \mathbf{N}_t^{(B)}.Cˉt(B):=Bt1Ct(B),Nˉt(B):=Bt1Nt(B).

Then the gradient evaluated at the pre-update state is:

Streg,(B)(St1)=Cˉt(B)St1Nˉt(B)+λtSt1.\nabla_{\mathbf{S}} \ell_t^{\mathrm{reg},(B)}(\mathbf{S}_{t-1}) = \bar{\mathbf{C}}_t^{(B)} \mathbf{S}_{t-1} - \bar{\mathbf{N}}_t^{(B)} + \lambda_t \mathbf{S}_{t-1}.Streg,(B)(St1)=Cˉt(B)St1Nˉt(B)+λtSt1.

Update Rule. A block-normalized gradient step is applied:

St=St1ηtStreg,(B)(St1).\mathbf{S}_t = \mathbf{S}_{t-1} - \eta_t \nabla_{\mathbf{S}} \ell_t^{\mathrm{reg},(B)}(\mathbf{S}_{t-1}).St=St1ηtStreg,(B)(St1).

Substituting the gradient yields the affine update:

St=(Idxηt(Cˉt(B)+λtIdx))St1+ηtNˉt(B).\mathbf{S}_t = \left( \mathbf{I}_{d_x} - \eta_t (\bar{\mathbf{C}}_t^{(B)} + \lambda_t \mathbf{I}_{d_x}) \right) \mathbf{S}_{t-1} + \eta_t \bar{\mathbf{N}}_t^{(B)}.St=(Idxηt(Cˉt(B)+λtIdx))St1+ηtNˉt(B).

Equivalently, collecting residuals at the pre-update state yields:

St=(1ηtλt)St1+ηtBtjItxj(vjSt1xj).\mathbf{S}_t = (1 - \eta_t \lambda_t) \mathbf{S}_{t-1} + \frac{\eta_t}{B_t} \sum_{j \in \mathcal{I}_t} \mathbf{x}_j \left( \mathbf{v}_j - \mathbf{S}_{t-1}^\top \mathbf{x}_j \right)^\top.St=(1ηtλt)St1+BtηtjItxj(vjSt1xj).

This is the direct mini-batch analogue of Eq. (3.3): all window residuals are evaluated at the pre-update state St1\mathbf{S}_{t-1}St1, and the update averages their rank-one gradients.

For t2t \geq 2t2, let XtRdx×Bt\mathbf{X}_t \in \mathbb{R}^{d_x \times B_t}XtRdx×Bt stack the active-window write-features, so that Cˉt(B)=XtXt/Bt\bar{\mathbf{C}}_t^{(B)} = \mathbf{X}_t \mathbf{X}_t^\top / B_tCˉt(B)=XtXt/Bt. The authors normalize by the exact local smoothness scale of the windowed ridge objective rather than by its trace upper bound:

μt(B):=λmax(Cˉt(B))=Xt22Bt=λmax(XtXt)Bt,ηt=βtμt(B)+λt+ε,βt(0,2),ε>0.\mu_t^{(B)} := \lambda_{\max}(\bar{\mathbf{C}}_t^{(B)}) = \frac{\|\mathbf{X}_t\|_2^2}{B_t} = \frac{\lambda_{\max}(\mathbf{X}_t^\top \mathbf{X}_t)}{B_t}, \quad \eta_t = \frac{\beta_t}{\mu_t^{(B)} + \lambda_t + \varepsilon}, \quad \beta_t \in (0, 2), \varepsilon > 0.μt(B):=λmax(Cˉt(B))=BtXt22=Btλmax(XtXt),ηt=μt(B)+λt+εβt,βt(0,2),ε>0.

Then Lt(B)=μt(B)+λtL_t^{(B)} = \mu_t^{(B)} + \lambda_tLt(B)=μt(B)+λt, so whenever Lt(B)>0L_t^{(B)} > 0Lt(B)>0 this normalization ensures ηt(0,2/Lt(B))\eta_t \in (0, 2/L_t^{(B)})ηt(0,2/Lt(B)) for any βt(0,2)\beta_t \in (0, 2)βt(0,2) and Lemma 3.1 yields per-step descent for Eq. (4.14) before any positive-decay clamp. If Lt(B)=0L_t^{(B)} = 0Lt(B)=0 (equivalently, Cˉt(B)=0\bar{\mathbf{C}}_t^{(B)} = \mathbf{0}Cˉt(B)=0 and λt=0\lambda_t = 0λt=0), then Nˉt(B)=0\bar{\mathbf{N}}_t^{(B)} = \mathbf{0}Nˉt(B)=0 as well and the update is a no-op. Crucially, because the window average is optimized, Nˉt(B)\bar{\mathbf{N}}_t^{(B)}Nˉt(B) is an average and μt(B)\mu_t^{(B)}μt(B) is the spectral norm of an average covariance, so neither quantity grows linearly with the nominal window size BBB. If the write feature itself is RMS-normalized, then:

μt(B)Eˉt(B):=tr(Cˉt(B))dx,\mu_t^{(B)} \leq \bar{E}_t^{(B)} := \mathrm{tr}(\bar{\mathbf{C}}_t^{(B)}) \approx d_x,μt(B)Eˉt(B):=tr(Cˉt(B))dx,

so the denominator remains O(dx)O(d_x)O(dx) rather than O(Bdx)O(B d_x)O(Bdx); for a generic kernel map ϕ\phiϕ, the correct statement is simply that μt(B)\mu_t^{(B)}μt(B) tracks the realized windowed smoothness scale. Consequently, neither the injection ηtNˉt(B)\eta_t \bar{\mathbf{N}}_t^{(B)}ηtNˉt(B) nor the decay fraction αt:=ηtλt\alpha_t := \eta_t \lambda_tαt:=ηtλt is systematically amplified by increasing BBB. If the scale-coupled ridge parameterization of Section 4.1 is enabled, replace λt\lambda_tλt throughout this subsection by λteff:=λˉtμt(B)\lambda_t^{\mathrm{eff}} := \bar{\lambda}_t \mu_t^{(B)}λteff:=λˉtμt(B). In the current implementation, this smoothness statistic can be treated as a statistics-only multiplier when constructing λteff\lambda_t^{\mathrm{eff}}λteff (detached / stop-gradient through the multiplier), while the step-size denominator still uses the live μt(B)\mu_t^{(B)}μt(B). Importantly, one need not materialize the dx×dxd_x \times d_xdx×dx matrix Ct(B)\mathbf{C}_t^{(B)}Ct(B) to evaluate either the gradient or the step size: if the window write-features are stacked into XtRdx×Bt\mathbf{X}_t \in \mathbb{R}^{d_x \times B_t}XtRdx×Bt, then:

Cˉt(B)St1=1BtXt(XtSt1),μt(B)=λmax(XtXt)Bt.\bar{\mathbf{C}}_t^{(B)} \mathbf{S}_{t-1} = \frac{1}{B_t} \mathbf{X}_t \left( \mathbf{X}_t^\top \mathbf{S}_{t-1} \right), \quad \mu_t^{(B)} = \frac{\lambda_{\max}(\mathbf{X}_t^\top \mathbf{X}_t)}{B_t}.Cˉt(B)St1=Bt1Xt(XtSt1),μt(B)=Btλmax(XtXt).

Since BtBB_t \leq BBtB is small, μt(B)\mu_t^{(B)}μt(B) can be computed exactly from the Bt×BtB_t \times B_tBt×Bt Gram matrix or approximated with a few power iterations. For the implemented positive-decay recurrence, define:

αtraw:=ηtλt,αt:=min(αtraw,1εγ),γt:=1αt,\alpha_t^{\mathrm{raw}} := \eta_t \lambda_t, \quad \alpha_t := \min(\alpha_t^{\mathrm{raw}}, 1 - \varepsilon_\gamma), \quad \gamma_t := 1 - \alpha_t,αtraw:=ηtλt,αt:=min(αtraw,1εγ),γt:=1αt, c0:=1,ct:=r=1tγr,S~t:=St/ct.c_0 := 1, \qquad c_t := \prod_{r=1}^t \gamma_r, \quad \widetilde{\mathbf{S}}_t := \mathbf{S}_t / c_t.c0:=1,ct:=r=1tγr,St:=St/ct.

When αt=αtraw\alpha_t = \alpha_t^{\mathrm{raw}}αt=αtraw, this is exactly the ridge-gradient recurrence in Eq. (4.14). If the clamp activates, the implemented shrinkage path should instead be interpreted as using the effective coefficient:

λ~t:={αt/ηt,ηt>0,0,ηt=0,\widetilde{\lambda}_t := \begin{cases} \alpha_t / \eta_t, & \eta_t > 0, \\ 0, & \eta_t = 0, \end{cases}λt:={αt/ηt,0,ηt>0,ηt=0,

while keeping the same residual injection gain ηt\eta_tηt. Thus the descent claim above applies to the unclamped update; the clamped update is a positive-decay surrogate. With this convention, the implemented recurrence is equivalent to:

S~t=S~t1+η^tBtjItxj(vjct1S~t1xj),η^t:=ηt/γt.\widetilde{\mathbf{S}}_t = \widetilde{\mathbf{S}}_{t-1} + \frac{\widehat{\eta}_t}{B_t} \sum_{j \in \mathcal{I}_t} \mathbf{x}_j \left( \frac{\mathbf{v}_j}{c_{t-1}} - \widetilde{\mathbf{S}}_{t-1}^\top \mathbf{x}_j \right)^\top, \quad \widehat{\eta}_t := \eta_t / \gamma_t.St=St1+BtηtjItxj(ct1vjSt1xj),ηt:=ηt/γt.

Algorithm 3 realizes Eq. (4.16) chunk-locally via log-prefix decays; Appendix C.7 records the corresponding continuation and chunk-boundary details.

Boundary/scan details. The offline overlap interpretation, exact continuation requirement, and explicit associative chunk map are given in Appendix C.7 and Appendix H.1.

4.5 Mini-batch Update Rule for Inner Product Loss (Falcon-3A)

The authors apply the same sliding-window principle to the inner-product objective, while keeping the same parameter semantics as in the rest of the family: βt\beta_tβt is the dimensionless gain, λt\lambda_tλt is the actual shrinkage coefficient used by the recurrence (after any optional scale coupling), and ηt\eta_tηt is the resulting normalized step size.

For t2t \geq 2t2, let Bt:=ItBB_t := |\mathcal{I}_t| \leq BBt:=ItB (and skip the boundary update at t=1t = 1t=1). The windowed loss is:

tip,(B)(S):=1BtjItSxj,vj+λt2SF2.\ell_t^{\mathrm{ip},(B)}(\mathbf{S}) := -\frac{1}{B_t} \sum_{j \in \mathcal{I}_t} \left\langle \mathbf{S}^\top \mathbf{x}_j, \mathbf{v}_j \right\rangle + \frac{\lambda_t}{2} \|\mathbf{S}\|_F^2.tip,(B)(S):=Bt1jItSxj,vj+2λtSF2.

Define the window-averaged cross-covariance and write energy:

Nˉt(B):=1BtjItxjvj,Eˉt(B):=1BtjItxj22.\bar{\mathbf{N}}_t^{(B)} := \frac{1}{B_t} \sum_{j \in \mathcal{I}_t} \mathbf{x}_j \mathbf{v}_j^\top, \quad \bar{E}_t^{(B)} := \frac{1}{B_t} \sum_{j \in \mathcal{I}_t} \|\mathbf{x}_j\|_2^2.Nˉt(B):=Bt1jItxjvj,Eˉt(B):=Bt1jItxj22.

Then the gradient evaluated at the pre-update state is:

Stip,(B)(St1)=Nˉt(B)+λtSt1.\nabla_{\mathbf{S}} \ell_t^{\mathrm{ip},(B)}(\mathbf{S}_{t-1}) = -\bar{\mathbf{N}}_t^{(B)} + \lambda_t \mathbf{S}_{t-1}.Stip,(B)(St1)=Nˉt(B)+λtSt1.

Unlike Falcon-3, whose regression step size uses the local smoothness μt(B)\mu_t^{(B)}μt(B), the inner-product windowed rule uses the window-energy statistic as a practical write-gain normalizer. Let Et(B):=Eˉt(B)E_t^{(B)} := \bar{E}_t^{(B)}Et(B):=Eˉt(B), and if the scale-coupled parameterization is active set λt:=λˉtEt(B)\lambda_t := \bar{\lambda}_t E_t^{(B)}λt:=λˉtEt(B) before computing the step size:

ηt=βtEt(B)+λt+ε,βt(0,2),ε>0,\eta_t = \frac{\beta_t}{E_t^{(B)} + \lambda_t + \varepsilon}, \qquad \beta_t \in (0, 2), \varepsilon > 0,ηt=Et(B)+λt+εβt,βt(0,2),ε>0,

with the boundary convention η1:=0\eta_1 := 0η1:=0. Applying one gradient step gives:

St=(1ηtλt)St1+ηtNˉt(B).\mathbf{S}_t = (1 - \eta_t \lambda_t) \mathbf{S}_{t-1} + \eta_t \bar{\mathbf{N}}_t^{(B)}.St=(1ηtλt)St1+ηtNˉt(B).

When λt>0\lambda_t > 0λt>0, the objective is λt\lambda_tλt-smooth, so Eq. (4.18) implies ηt<2/λt\eta_t < 2/\lambda_tηt<2/λt for any βt(0,2)\beta_t \in (0, 2)βt(0,2), and Lemma 3.1 yields per-step descent in tip,(B)\ell_t^{\mathrm{ip},(B)}tip,(B) for the unclamped update. If the positive-decay clamp below activates, the implemented shrinkage should again be interpreted as using the effective ridge coefficient λ~t:=αt/ηt\widetilde{\lambda}_t := \alpha_t / \eta_tλt:=αt/ηt when ηt>0\eta_t > 0ηt>0 (and 0 when ηt=0\eta_t = 0ηt=0), rather than as an exact gradient step for the original λt\lambda_tλt. When λt=0\lambda_t = 0λt=0, the objective is linear and unbounded below, so the same normalization should be interpreted as a magnitude stabilizer for the additive write rather than as a bounded-objective guarantee.

For log-space unrolling, the authors introduce only the derived quantities:

αtraw:=ηtλt,αt:=min(αtraw,1εγ),γt:=1αt[εγ,1],\alpha_t^{\mathrm{raw}} := \eta_t \lambda_t, \quad \alpha_t := \min(\alpha_t^{\mathrm{raw}}, 1 - \varepsilon_\gamma), \quad \gamma_t := 1 - \alpha_t \in [\varepsilon_\gamma, 1],αtraw:=ηtλt,αt:=min(αtraw,1εγ),γt:=1αt[εγ,1],

with α1:=0\alpha_1 := 0α1:=0 and γ1:=1\gamma_1 := 1γ1:=1. Thus, αt\alpha_tαt and γt\gamma_tγt are implementation variables derived from the same (βt,λt,ηt)(\beta_t, \lambda_t, \eta_t)(βt,λt,ηt) parameterization used elsewhere; they are not separate learned controls.

Because the window average is optimized, neither the typical scale of Nˉt(B)\bar{\mathbf{N}}_t^{(B)}Nˉt(B) nor the decay fraction αt=ηtλt\alpha_t = \eta_t \lambda_tαt=ηtλt grows systematically with the nominal window size BBB. The authors again set ηt:=0\eta_t := 0ηt:=0 when the denominator in Eq. (4.18) vanishes (in practice, ε>0\varepsilon > 0ε>0 is taken). Appendix C.7 records the stationary calculation and the exact boundary-state requirements. For B=1B = 1B=1 and t2t \geq 2t2, Eq. (4.19) reduces to the scalar non-sliding inner-product update, i.e. Falcon-1A; in the additive ablation λt0\lambda_t \equiv 0λt0, the write is purely additive. The per-column non-sliding analogue is Falcon-2A in Eq. (4.7).

4.6 Parallel (Attention) Form of Mini-batch Inner Product Update

The authors show that the recurrent sliding-window update in Section 4.5 can be written as the sum of (i) a decayed-history term from the incoming boundary state and (ii) an (unnormalized) dot-product attention matrix with a structured causal mask. This view enables GPU-parallel training and matches the usual unrolling of gated linear recurrences into masked attention.

For the unclamped exposition, let λs\lambda_sλs denote the actual shrinkage coefficient after any optional scale coupling, and define:

ηs:=βsEˉs(B)+λs+ε,γs:=1ηsλs,δt:=r=1tγr.\eta_s := \frac{\beta_s}{\bar{E}_s^{(B)} + \lambda_s + \varepsilon}, \quad \gamma_s := 1 - \eta_s \lambda_s, \quad \delta_t := \prod_{r=1}^t \gamma_r.ηs:=Eˉs(B)+λs+εβs,γs:=1ηsλs,δt:=r=1tγr.

Then the recurrence Ss=γsSs1+ηsNˉs(B)\mathbf{S}_s = \gamma_s \mathbf{S}_{s-1} + \eta_s \bar{\mathbf{N}}_s^{(B)}Ss=γsSs1+ηsNˉs(B) unrolls to:

St=δtS0+j=2tMt,jxjvj,\mathbf{S}_t = \delta_t \mathbf{S}_0 + \sum_{j=2}^t M_{t,j} \mathbf{x}_j \mathbf{v}_j^\top,St=δtS0+j=2tMt,jxjvj,

where, under the boundary convention x1:=0\mathbf{x}_1 := \mathbf{0}x1:=0 and η1=0\eta_1 = 0η1=0:

Mt,j:=s=jmin(t,j+B1)ηsBsr=s+1tγr,2jt,M_{t,j} := \sum_{s=j}^{\min(t, j+B-1)} \frac{\eta_s}{B_s} \prod_{r=s+1}^t \gamma_r, \qquad 2 \leq j \leq t,Mt,j:=s=jmin(t,j+B1)Bsηsr=s+1tγr,2jt,

and Mt,j:=0M_{t,j} := 0Mt,j:=0 otherwise. Hence, the read-after-write output is:

ot=δtS0ϕ(qt)+j=2tMt,jϕ(qt),xjvj.\mathbf{o}_t = \delta_t \mathbf{S}_0^\top \phi(\mathbf{q}_t) + \sum_{j=2}^t M_{t,j} \langle \phi(\mathbf{q}_t), \mathbf{x}_j \rangle \mathbf{v}_j.ot=δtS0ϕ(qt)+j=2tMt,jϕ(qt),xjvj.

Equivalently, stacking query features QRL×dx\mathbf{Q} \in \mathbb{R}^{L \times d_x}QRL×dx, write features XRL×dx\mathbf{X} \in \mathbb{R}^{L \times d_x}XRL×dx, values VRL×dv\mathbf{V} \in \mathbb{R}^{L \times d_v}VRL×dv, and mask MRL×L\mathbf{M} \in \mathbb{R}^{L \times L}MRL×L with entries Mt,j=Mt,j\mathbf{M}_{t,j} = M_{t,j}Mt,j=Mt,j, the authors obtain:

O=Diag(δ)QS0+(QXM)V,δ:=(δ1,,δL).\mathbf{O} = \mathrm{Diag}(\boldsymbol{\delta}) \mathbf{Q} \mathbf{S}_0 + (\mathbf{Q} \mathbf{X}^\top \odot \mathbf{M}) \mathbf{V}, \quad \boldsymbol{\delta} := (\delta_1, \dots, \delta_L)^\top.O=Diag(δ)QS0+(QXM)V,δ:=(δ1,,δL).

For the fresh-sequence default S0=0\mathbf{S}_0 = \mathbf{0}S0=0, only the masked-attention term remains. Appendix D.1 gives the full derivation, the stationary special case, and the chunk-local log-space evaluation used by Algorithm 4.

Backward pass. The numerically stable backward pass is given in Appendix D.2; it differentiates through the structured mask, chunk-local log-decay renormalization, and normalized step-size computation.

Relation to prior internal-objective views. A brief comparison to test-time training and Titans- and ATLAS-style internal memory objectives is moved to Appendix C.4.

Experiment

The evaluation trains 124M-130M parameter language models on a 50B-token budget, comparing Falcon variants against Transformer and recurrent baselines via perplexity, downstream accuracy, and a variable-length addition diagnostic. Falcon-1.3 leads in perplexity and one-shot accuracy, while Falcon-1A.2 tops zero-shot averages, with normalized updates and context-conditioned parameters yielding targeted gains. On addition, Falcon-3A.3 and Falcon-1A.3 achieve the best extrapolation, outperforming baselines, supporting the claim that shifted, normalized fast-weight updates improve causal storage and length extrapolation without sacrificing language-model quality.

At 124M-130M parameters and a 50B-token budget, the proposed Falcon-1.3 model achieves the best FineWeb-Edu perplexity among all listed models, outperforming both the Transformer and recurrent baselines. Among recurrent baselines, Gated DeltaNet is the strongest, while Falcon-1A.3 leads the inner-product variants. The results show that the proposed aligned, normalized updates maintain competitive language modeling quality. Falcon-1.3 achieves the lowest FineWeb-Edu perplexity, surpassing all baselines including the Transformer and Gated DeltaNet. Gated DeltaNet is the best recurrent baseline on FineWeb-Edu, but still trails Falcon-1.3. Falcon-1A.3 is the best inner-product variant, with perplexity close to the top recurrent baseline. QK-RMSNorm improves FineWeb-Edu perplexity over QK-l2 normalization in the small scalar ablation.

On the 124M-130M downstream evaluation, the proposed Falcon variants achieve competitive zero-shot and one-shot averages, with Falcon-1A.2 leading zero-shot and Falcon-1.3 leading one-shot among recurrent models. The results show no uniform win over baselines, but the aligned, normalized updates preserve language-model quality while enabling controlled arithmetic gains. Falcon-1A.2 achieves the best zero-shot average among listed models, while Falcon-1.3 has the best recurrent one-shot average. Among recurrent baselines, DeltaNet and Mamba-2 outperform RetNet/LightningAttn on the zero-shot average. The proposed variants do not uniformly beat baselines, but maintain competitive downstream accuracy across tasks.

On variable-length multi-digit addition, the proposed Falcon variants generally match or exceed baseline models in validation accuracy, while showing stronger extrapolation to longer digit lengths. Among the listed models, Falcon-1A.3 achieves the highest mean accuracy and the best accuracy on the longest tested lengths, surpassing both the Transformer and recurrent baselines. Falcon-1A.3 attains the highest mean accuracy among all listed models, outperforming the Transformer and RetNet/LightningAttn. All Falcon variants reach near-perfect validation accuracy, with Falcon-1A.3 slightly lower at 99.8%. On the longest digit lengths, Falcon-1A.3 achieves the best accuracy, while the Transformer and Mamba-2 lag notably.

The evaluation covers language modeling, downstream tasks, and arithmetic reasoning. At 124M-130M parameters, Falcon-1.3 achieves the best FineWeb-Edu perplexity among all baselines, with Gated DeltaNet as the strongest recurrent competitor and Falcon-1A.3 leading inner-product variants. On downstream zero-shot and one-shot averages, Falcon variants remain competitive but do not uniformly outperform baselines, with Falcon-1A.2 leading zero-shot and Falcon-1.3 leading one-shot among recurrent models. In variable-length multi-digit addition, Falcon variants match or exceed baselines in validation accuracy and show stronger extrapolation to longer digit lengths, with Falcon-1A.3 achieving the highest mean accuracy and best performance on the longest tested lengths. Overall, the aligned, normalized updates preserve language-model quality while enabling controlled arithmetic gains.


Créer de l'IA avec l'IA

De l'idée au lancement — accélérez votre développement IA avec le co-codage IA gratuit, un environnement prêt à l'emploi et le meilleur prix pour les GPU.

Codage assisté par IA
GPU prêts à l’emploi
Tarifs les plus avantageux

HyperAI Newsletters

Abonnez-vous à nos dernières mises à jour
Nous vous enverrons les dernières mises à jour de la semaine dans votre boîte de réception à neuf heures chaque lundi matin
Propulsé par MailChimp