Transformers use the same hidden state for two competing roles: maintaining state and predicting the next token. 🔀
Splitting these roles into two separate streams outperforms standard Transformers.
Introducing the State-Prediction Separation (SPS) Transformer.
🧵
Beautiful idea !! State prediction separation hypothesis suggests splited residual streams for KV cache and NTP prediction; Now we can **a third residual highway** transporting the continuous recurrent state across layers and positions
@CorbenicAI@bjoern_pl We didn’t test untrained models in our work, we pretrained with sharing from scratch.
But some looped transformer papers (including Huginn and Ouro) trained without memory sharing, tried it at test time and observed that it did not hurt much
@CorbenicAI@bjoern_pl In our experiments this setup actually worked better than individual KVs. But we tested full model looping, unlike their model. In many other cases where models were not trained for this it hurt performance only a little
https://t.co/6SXHyjy7P3
@huskydogewoof@ahatamiz1 Not yet, but we will release :)
Regarding more data points, I mean also different configurations in the model or method (eg more sizes, more base architectures, sliding window of the individual KVs)
@huskydogewoof@ahatamiz1 I think you need more data points to validate it even on FW edu though? Cute (although fairly wild) variation, likely with a single model exp setup? It’s hard to make any conclusions on this, and I wouldn’t just conclude based on this that FW edu is not a good for arch research
Cornell (and me) is hiring postdocs, with focus on technical AI/ML research. Deadline for full consideration is Dec 15.
I am recruiting through this call as well. I encourage applying as early as possible, because I am starting to review folders now!
Application link ⬇️
Cornell CS is hiring tenured/tenure-track faculty. Come join us!
Emphasis in the areas:
- Systems,
- Artificial Intelligence (Natural Language Processing, Large Language Models, and AI for Science),
- Computer Vision, and
- Security
Link below:
"The Surprising Effectiveness of Shared Memory in Looped Transformers"
Looped Transformers usually maintain separate KV-caches for each pass, but this paper shows that sharing memory across loops can actually improve model quality while reducing memory usage.
So Looped Prediction Transformer (LPT) trains the first loop to build a shared KV-cache, while later loops reuse it and keep only a small window of their own cache to refine predictions.
Across 150M-1B models, LPT improves both perplexity and accuracy while using up to 79% less context memory in its hybrid variant.
At 1B, the hybrid achieves 10% lower perplexity than a standard Transformer with five loops, though it uses a lot more inference compute.
https://t.co/Cb7JjuE70O
@deeponailabs@Selen7005717917 As we report in the appendix, it does. But stability also depends on the underlying model architecture. The hybrid looped model is more stable and in general keeps improving up to 9 recursions (the highest we tried), while non-hybrid suffers a bit (even more so without sharing)
1/ Removing 98.4% of the KV cache in recursions 2 through 5 of a 1B Looped Transformer doesn't hurt accuracy—it improves FineWeb-Edu perplexity from 11.39 to 10.32 and raises 5-task accuracy from 63.4% to 68.2%, using 4.7x less KV memory. 🧵
@huskydogewoof@yoavartzi In particular, you are reusing KVs generated by distinct attention weights, which is quite different from sharing KVs generated by the same weights (because across recursions)... I'm surprised it even somewhat works
@huskydogewoof@yoavartzi Hey Benhao, interesting! But the disclaimer is quite a big one :). Our claims are only about looped models! These results on standard transformers are interesting though. I would not have expected standard transformers to be that good with so much memory sharing across layers.
[1/5] 🍋 New paper: LEMON, a misbehavior monitor that transfers zero-shot to LLMs it has never seen.
It flags hallucinations & jailbreaks online, token by token, from attention maps, with <10% overhead.
w/ @megamor2@ffabffrasca@HaggaiMaron
🌐 https://t.co/Bw8LIp28GK
🧵👇
@hayden_prairie Cool work Hayden! We found similar conclusions about sharing is caring when focusing on Ouro/LT2 like pretraining: https://t.co/6SXHyjyFEB :)
I wonder: why at a later stage and not directly from scratch? For us, sharing the first recursion KV seemed to help during pretraining
Yet another banger paper from Nathan :)
It's been a lot of fun hearing day after day about how powerful his new Copy-Paste Language Models are despite their simplicity, and how effective they are at handling long contexts
⌘C ⌘V: Introducing Copy-Paste Language Models!
CPLMs learn to copy tokens better, improving downstream accuracy, CoT, long-context performance, and memory-efficiency for RAG at <3% overhead
PS: they (partially) mitigate the LM head bottleneck
Paper: https://t.co/lUY14CKmua
@jackcai1206@vkontonis@DimitrisPapail Nice work Jack! Great to see more on latent compression :)
Just a small correction about our Breadcrumbs Reasoning: we evaluate on up to 32k generated tokens, not 1k. The 1k limit only applies to training :)