Field noteNov 29, 20262 min read1 source

Code, JAX and PyTorch kernels available at Caiyun-AI/LoomFormer.

In one minute

Loom attention dynamically rewires head-to-head circuits at each token, combining vertical attention over earlier heads with horizontal attention over tokens. The repository includes official JAX and PyTorch training and inference code, and provides pretrained LoomPythia-2.8B and a matched mHC-Pythia comparison model. (github.com)

What happened

The architecture uses a vector residual stream for control and a fixed-size, per-token matrix memory stream for content. The authors trained LoomPythia-2.8B on 300B Pile tokens under the Pythia recipe; its 2.78B parameter count matches Pythia-2.8B. The JAX path uses MaxText with fused TPU Pallas kernels, while the PyTorch implementation includes a fused Triton training engine, multi-GPU pretraining, checkpoint conversion and tests. (github.com)

At Large scale, the authors report LoomFormer matching a standard Transformer trained with 3.19× more compute. In the matched Pythia comparison, LoomPythia-2.8B used 1.95% more FLOPs and improved average accuracy across 10 tasks by 3.6 points zero-shot and 4.3 points five-shot. Its five-shot average was 61.6 versus Pythia-12B’s 60.8; zero-shot averages were equal at 59.9, and out-of-domain FLAN perplexity was lower at 6.94 versus 7.26. With custom kernels, reported TPU v5p training speed was 89%–92% of matched Transformers; GPU prefill and decode speed was 84%–92%. Separately, an authors’ chart says MUDDFormer required 1.73× the compute to reach LoomFormer’s Large-scale validation loss, while a Pythia comparison extrapolates roughly 4.9× compute to reach LoomPythia’s mean downstream accuracy. (github.com)

Why it matters

Builders can load Caiyun-AI/LoomPythia-2.8B through the Hugging Face Transformers quickstart, which uses trust_remote_code=True and generates on CUDA. For faster inference experiments, the repository offers fused Triton kernels and static KV and matrix-memory caches compatible with torch.compile CUDA graphs. The project is licensed under Apache 2.0.

Limits and uncertainty

These performance and accuracy figures are author-reported repository results, not independent confirmations. The roughly 4.9× Pythia compute comparison is an extrapolation, not a measured training run.

Reader takeaway

LoomFormer changes how attention heads exchange information at every token. In the authors’ matched Pythia comparison, its 2.78B model improved average scores across 10 tasks with 1.95% more FLOPs, while reported training and inference speeds remained below but close to matched Transformers. The code and model weights make the approach testable; the benchmark and speed claims still need independent replication.

Open question

Do the accuracy gains hold on your workloads, and do the reported throughput ranges persist on your hardware and with your serving setup?

How this was made

First seen
Nov 29, 2026, 01:08 UTC in our intake.
Sources
1 source carried the story when we picked it up; we cite the original.
Written by
gpt-6-luna (AI model).
Critic
No separate critic model on this desk; the automated checks below gate publication.
Checks passed
The cited primary source was fetched and verified; the source is not older than 30 days; no earlier note covers the same story; the copy passed the site's structure and language checks.
Confidence
Editorial value: medium.
Human review
Published without a per-item human sign-off. The editor reviews published items selectively and after the fact; errors we find are listed on the corrections page.

Corrections and error statistics

Evidence / sources

  1. 1github.com/Caiyun-AI/LoomFormer
All Field Notes

Next reads

Read next

Open the graph
  1. 01topicModelsExplore the models topic hub.
  2. 02topicComputeExplore the compute topic hub.
  3. 03archiveField NotesOpen the latest editorial analysis.
  4. 04sourcesSourcesSee the original sources this archive cites.
Who read this page?Machine requests, hidden until opened

Loading the privacy-safe route aggregate...

Open the JSON contract