Denoiser block

Pinned implementation and paper LDLM @ e18c42a, not yet public · arXiv:2605.07933v1 · OpenWebText · 1024 · checkpoint, tokenizer and saved statistics not verified · How to read

Denoiser › 12 denoiser blocks

Time projection

×

learned

This block’s affine layer turns the time condition into six vectors of 768 features: a shift, a scale and a gate for each of the two branches.

mn=[ ba  sa  ga  bm  sm  gm ]=atWn+cn{\htmlData{light=coefficients modulation}{m_n}}=[\,b_a\;s_a\;g_a\;b_m\;s_m\;g_m\,]={\htmlData{light=block-condition}{a_t}}W_{n}+c_{n}
in
ata_t [B batch, 768 features]
out
mnm_n [B batch, 1 every position, 4608 six vectors of 768]
parameters
3,543,552 · × 12 blocks = 42,522,624
Parameters

3,543,552 parameters owned by this component

Exact per-instance accounting
ComponentCalculationParameters
weights + bias768×4,608+4,608768 \times 4{,}608 + 4{,}6083,543,552
Per-instance total3,543,552

Across 12 independent blocks: 3,543,552×12=42,522,6243{,}543{,}552 \times 12 = 42{,}522{,}624 parameters.

Derived from the pinned implementation’s constructors and configuration. The checkpoint’s tensors have not been counted. 306,011,162 of these parameters are trained; frozen GPT-2 and the decoder’s mask vector, 124,442,112, are not.

A 768 × 4,608 matrix and a bias of 4,608, both zero at initialization.

Explanation

Each block owns its projection, so each block reads the time in its own way.

Sources2

Direct evidence

A block owns two gain-only LayerNorms, a fused query–key–value projection and an output projection without bias, an MLP of the configured kind, and, with modulation, an affine layer from the time condition to six vectors, initialized at zero.

The implementation, pinned at revision e18c42acdfb7, not yet public

Direct evidence

A block normalizes, modulates by the time condition’s shift and scale, projects to queries, keys and values, rotates queries and keys, attends over all positions with softcap, and adds the projected output scaled by a gate; the MLP branch does the same with its own shift, scale and gate.

The implementation, pinned at revision e18c42acdfb7, not yet public