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

Softmax over keys

×

no parameters

Turn each query’s scores over all 2T keys into weights that sum to one.

At,s=exp⁡Ft,s∑u=12Texp⁡Ft,u{\htmlData{light=weights softmax}{A_{t,s}}}=\frac{\exp {\htmlData{light=softcap}{F_{t,s}}}}{\sum_{u=1}^{2T}\exp F_{t,u}}
in
FF [B batch, 12 heads, T queries, 2T keys]
out
AA [B batch, 12 heads, T queries, 2T keys]

No position is masked: every query sees all 2T keys. The attention dropout is 0 (probs_dropout).

Sources1

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