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?