Attention over both streams

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

Latent encoder › 6 encoder blocks › Perceiver attention › Attention over both streams

Scale and softcap

×

no parameters

Divide the scores by √64 and bound them smoothly between −50 and 50.

F=50tanh⁡ ⁣(S5064){\htmlData{light=softcap}{F}}=50\tanh\!\Big(\frac{{\htmlData{light=similarity}{S}}}{50\sqrt{64}}\Big)
in
SS [B batch, 12 heads, T queries, 2T keys]
out
FF [B batch, 12 heads, T queries, 2T keys]

The scale 1/√64 is taken as the default of flash-attn 2.7.4.post1, whose kernel applies the scale and the cap together (flash_api.cpp 108–121). The review record holds that default for the function the denoiser calls; for the key–value-packed function called here it was not recorded.

Sources2

Direct evidence

Both streams are normalized; queries come from one stream, keys and values from both, concatenated along positions; queries and keys are normalized per head; attention runs over all positions with softcap; the heads are merged and projected.

The implementation, pinned at revision e18c42acdfb7, not yet public

Direct evidence

The latent encoder: 12 heads of 64 features, query and key normalization, softcap 50, 6 layers, MLP multiplier 4, dropout 0.1, ε = 10⁻⁵.

The implementation, pinned at revision e18c42acdfb7, not yet public