Consistent-target divergence of the -aware OSDN--APF update: geometric memory-error growth from zero initialization with strictly interior gates
OpenOSDN.APF.exists_consistent_divergent_streamSetting: the published -aware OSDN--APF recurrence
Work in memory dimension with scalar values, so the associative memory is a row vector acting on a key by , and the adaptive diagonal preconditioner is . Write and for the coordinatewise product.
A token at step supplies a unit key , an observed value , a write gate and a preconditioner retention gate . The published rule (OSDN Eq. (2), Eq. (7), Algorithm 1; Adaptive Preconditioner Forgetting in its beta-aware form) writes the memory with the current preconditioner and only then updates the preconditioner:
with applied coordinatewise, i.e. . These are the reported learning rate and the reported box; APF decays only the preconditioner and never the memory state.
Theorem
There exist a fixed true memory , an input stream of unit keys , gate sequences , with
and an index , such that the trajectory generated by the two displayed rules from the standard initialization
with every observation consistent with the one fixed memory, for all , satisfies both of the following.
-
(The clamp never acts.) for every and every coordinate ; the box constraint is inactive along the whole trajectory.
-
(Geometric divergence.) For every ,
Since , the memory error is unbounded and grows geometrically in the number of completed periods.
The witness (as constructed in the source)
The existence claim is realized explicitly, not abstractly. The stream uses only two keys,
the true memory , hence the two consistent values and (so all inputs and values are bounded). After a preparation block of tokens the schedule repeats a period of tokens containing exactly two main writes, carried out at the preconditioners
with write gate and retention ; the remaining tokens are calibration tokens that re-present the key whose residual was just zeroed, so they leave the memory unchanged while steering the preconditioner through the published adaptive rule itself (their gates are given by closed-form rational formulas , ). The two main error maps are
and , giving the exact period-boundary identity
from which conclusion 2 follows (the squared error is exactly ). Divergence is visible in a fixed, strongly convex, exactly realizable objective built from the observed tokens,
whose Hessian has eigenvalues and ; the two keys span , so this is not drift in an unobserved nullspace. Every token's own residual is exactly zero after its update.
What is not claimed
- This is an adversarial input/gate stream, not an observed failure of a trained model: no claim is made about a particular checkpoint, tokenizer, corpus, or practical failure rate. The period is tokens; nothing here bounds how often such streams occur.
- The scope is the beta-aware APF update (OSDN Eq. (7)). It does not cover the non-beta-aware controller (a separate construction), the unforgotten variant , or any additional decay of the recurrent memory state.
- No error in OSDN's own scoped token-local loss theorem is asserted; the paper already separates token-local contraction from convergence of a global memory objective.
- The theorem is about the real-arithmetic recurrence. A float64 replay over tokens (five full periods plus preparation) agrees with the real-arithmetic formula to within , and an explicitly rounded scalar float32 replay to within ; these are supporting reference calculations, not part of the statement and not a production-kernel test.
- No novelty of the general two-oblique-projection instability mechanism is claimed; that is prior art (Bargetz et al.; Kantorovich).
import Mathlib
theorem OSDN.APF.exists_consistent_divergent_stream :
∃ (Sstar : Fin 2 → ℝ) (k : ℕ → Fin 2 → ℝ) (β ρ : ℕ → ℝ)
(d S : ℕ → Fin 2 → ℝ) (t₀ : ℕ),
-- (H1) the token keys are unit vectors (so the input stream is bounded)
(∀ t : ℕ, (k t 0) ^ 2 + (k t 1) ^ 2 = 1) ∧
-- (H2) every write gate is strictly interior to (0, 1)
(∀ t : ℕ, 0 < β t ∧ β t < 1) ∧
-- (H3) every preconditioner retention gate is strictly interior to (0, 1)
(∀ t : ℕ, 0 < ρ t ∧ ρ t < 1) ∧
-- (H4) the standard initialization: zero memory and unit preconditioner
(∀ i : Fin 2, S 0 i = 0) ∧ (∀ i : Fin 2, d 0 i = 1) ∧
-- (H5) the OSDN memory write, with every observed value v t = ⟪Sstar, k t⟫
-- produced by the single fixed true memory Sstar, and using the
-- current (pre-update) preconditioner d t
(∀ (t : ℕ) (i : Fin 2),
S (t + 1) i = S t i +
β t * ((Sstar 0 * k t 0 + Sstar 1 * k t 1) - (S t 0 * k t 0 + S t 1 * k t 1))
* (d t i * k t i)) ∧
-- (H6) the published beta-aware APF preconditioner update, learning rate
-- η = 3/1000, clipped coordinatewise to the box [1/2, 2]
(∀ (t : ℕ) (i : Fin 2),
d (t + 1) i =
max (1 / 2 : ℝ)
(min (2 : ℝ)
(ρ t * d t i +
(3 / 1000 : ℝ) * β t *
(1 - β t * (d t 0 * (k t 0) ^ 2 + d t 1 * (k t 1) ^ 2)) * (k t i) ^ 2))) ∧
-- (C1) the clipping box is never active: every preconditioner iterate is
-- strictly interior to (1/2, 2) in each coordinate
(∀ (t : ℕ) (i : Fin 2), 1 / 2 < d t i ∧ d t i < 2) ∧
-- (C2) nevertheless the memory error grows geometrically along the
-- periodic subsequence of period 200002 tokens
(∀ j : ℕ,
((324 : ℝ) / 289) ^ (2 * j) ≤
(S (t₀ + 200002 * j) 0 - Sstar 0) ^ 2 +
(S (t₀ + 200002 * j) 1 - Sstar 1) ^ 2) := by
sorry