Ying Fan (@yingfan_bot) profile picture
Joined April 2017
Photo by Ying Fan (@yingfan_bot)Photo by Ying Fan (@yingfan_bot)Photo by Ying Fan (@yingfan_bot)Photo by Ying Fan (@yingfan_bot)Photo by Ying Fan (@yingfan_bot)Photo by Ying Fan (@yingfan_bot)Photo by Ying Fan (@yingfan_bot)Photo by Ying Fan (@yingfan_bot)Photo by Ying Fan (@yingfan_bot)Photo by Ying Fan (@yingfan_bot)
๐Ÿš€New paper on Looped Transformers! Latent reasoning is fast, but struggles to match CoT-level accuracy at scale. Can looped Transformers give us both? We find: yes! A looped padded backbone turns out to be a surprisingly simple recipe that works -- It gives latent thoughts a parallel workspace that can be supervised similarly to explicit CoT. ๐Ÿงต
12
142
23
938
212,377
๐Ÿ” ๐–๐ก๐š๐ญ ๐ข๐Ÿ ๐ฅ๐จ๐จ๐ฉ๐ž๐ ๐‹๐Œ๐ฌ ๐œ๐จ๐ฎ๐ฅ๐ ๐ฎ๐ฌ๐ž ๐Ÿ‘ร— ๐Ÿ๐ž๐ฐ๐ž๐ซ ๐ฉ๐š๐ซ๐š๐ฆ๐ž๐ญ๐ž๐ซ๐ฌ ๐š๐ง๐ ๐š ๐Ÿ‘ร— ๐ฌ๐ฆ๐š๐ฅ๐ฅ๐ž๐ซ ๐Š๐• ๐œ๐š๐œ๐ก๐ž ๐š๐ง๐ ๐ฌ๐ญ๐ข๐ฅ๐ฅ ๐›๐ž ๐œ๐จ๐ฆ๐ฉ๐š๐ซ๐š๐›๐ฅ๐ž ๐ญ๐จ ๐š ๐ฌ๐ญ๐š๐ง๐๐š๐ซ๐ ๐“๐ซ๐š๐ง๐ฌ๐Ÿ๐จ๐ซ๐ฆ๐ž๐ซ? Introducing ๐‘๐ž๐ญ๐ก๐ข๐ง๐ค๐ข๐ง๐  ๐š๐ญ ๐…๐ข๐ฑ๐ž๐ ๐๐จ๐ข๐ง๐ญ๐ฌ. We argue that looped LMs don't have to pay for every loop. They can scale by adding FLOPs at constant memory. The key is the fixed point of the loop. We introduce: โ€“ ๐…๐ข๐ฑ๐ž๐-๐๐จ๐ข๐ง๐ญ ๐’๐ก๐จ๐ซ๐ญ๐œ๐ฎ๐ญ๐ฌ: what fixed points buy a looped model in training (pre-training, post-training) and inference (prefill, decoding) โ€“ A ๐ฅ๐ž๐š๐ซ๐ง๐ž๐ ๐๐ž๐ฉ๐ญ๐ก ๐ฉ๐ซ๐ข๐จ๐ซ and ๐จ๐ซ๐ญ๐ก๐จ๐ ๐จ๐ง๐š๐ฅ ๐ข๐ง๐ฃ๐ž๐œ๐ญ๐ข๐จ๐ง: two ways to shape those fixed points ๐Ÿงต Long thread ahead (0/n).
12
123
17
639
90,284
Ying Fan retweeted
We've been obsessed with bending the scaling laws recently and our new paper shows that looping with model growth improves the scaling exponent, leading to gain that compounds with compute! Everyone assumes architectural changes only give constant factor gains and pretraining progress mostly comes from data (e.g. @dwarkesh_sp's recent post). We found that model growth, looping, and boundary operators result in compute multipliers over standard transformers that grow exponentially with each OOM of compute. - 1.55x at 1e20 FLOPs and 2.7x projected at 1e25. - Matches GPT-3 13B on CORE with 20x less compute w/ @charllechen, @akshayvegesna, @andrewgwils ๐Ÿงต
12
49
12
447
77,128
Excited to share Ludiโ‚€.โ‚! Ludiโ‚€.โ‚ is an agentic humanoid system that integrates real-time dialogue, social reasoning, memory, perception, navigation, and manipulation, while allowing a person to interrupt and redirect the robot during ongoing behavior.
3
11
1
92
13,888
Ying Fan retweeted
๐ŸงตScaling Laws for T2I Diffusion We do a scaling laws ladder for t2i diffusion models all the way from 60M to 2B, spanning 3 orders of magnitude in training flops
13
45
9
286
44,112
Ying Fan retweeted
I've been unsettled lately. Reading messages or papers feels like dissociating. Everything seems a bit alien, even if it's completely human. I've had a realization: When our simulations finally exited the Uncanny Valley, they brought the Uncanny with them. nsaphra.net/post/uncanny/
11
66
11
330
36,041
Earlier today we release our report about a vulnerability that allowed us to read out the encrypted thinking traces from many frontier models (thread below!): A few thoughts: First, there is an immediate privacy concern with publicly posted reasoning traces (which is also why we took time to release the report after the initial disclosure). We were able to decode the thinking of many json traces posted online, and found private info in there. Ironically, during this investigation we also had entry into HF during the cybersec incident due to a leaked prod key (but did not exercise the key beyond a whoami ;)). Another big update from this for me was actually seeing thinking traces at scale from Anthropic and OpenAI, and all the weirdness and 'casual' misalignment they contain (examples below). I do think model monitoring has an uphill battle ahead of us in the coming year. --- Finally, there is something to be said for just making thinking traces accessible to all users. I do believe that we would achieve a much broader, much more pluralistic form of oversight through broadly accessible thinking, that would make model deployment safer.
We can finally talk about it: We found a way to extract hidden reasoning of frontier models using a vulnerability in the APIs of every frontier AI company. We verified that our reasoning token count matches billed API thinking tokens 1:1 for most of the prompts we queried.
10
15
2
152
16,439
teapawt.net/kangwook_lee/status/20โ€ฆ 1. No wonder why this is being liked everyday 2. The exact same technique has been around for "encrypted prompts"
We can finally talk about it: We found a way to extract hidden reasoning of frontier models using a vulnerability in the APIs of every frontier AI company. We verified that our reasoning token count matches billed API thinking tokens 1:1 for most of the prompts we queried.
1
1
1
32
10,006
Legitimately spent 7 days non stop on this. I don't think I'll work on another theory thing for a while. Verification is an insane bottleneck.
15
32
7
505
83,360
Ying Fan retweeted
1/ Sharing a new, interesting project I did during my internship at Microsoft AI Frontiers w/ @JohnCLangford TL;DR: At decoding time, we feed **previous hidden state** into the input together with token embedding, and it boosts performance for free. arxiv.org/abs/2608.08888
16
110
31
750
274,447
Ying Fan retweeted
Just saw that the LLMs-from-scratch repository passed 100,000 stars on GitHub! This is super cool and motivating. I am really happy to see that this open-source repo has helped so many people. Thanks also to everyone who shared ideas and opened PRs with improvements! Of course, I plan to keep adding new material, including new attention variants and architectures (while bigger projects like RL and Reasoning From Scratch live in their separate repositories). I am also currently working on a larger applied custom โ€œsmallโ€ LLM project. It has been keeping me super busy this month, but I will share more on that soon. If you are new to it, some of the highlights include 1. Of course, the complete code path from tokenization and attention to pretraining, classification, and instruction fine-tuning, etc. All of it FROM SCRATCH, of course! (RL lives in a companion repo.) 2. From-scratch implementations of Llama, Qwen, Gemma, and Olmo (smaller variants that run locally and can be plugged into the training scripts). 3. From-scratch implementations of attention alternatives and other architecture components, such as GQA, MLA, sliding-window attention, Gated DeltaNet, DeepSeek Sparse Attention, cross-layer KV sharing, and mixture-of-experts 4. Materials on KV caching, training performance, memory-efficient weight loading, DPO, evaluation, and LoRA So, if you donโ€™t have any weekend plans yet, happy tinkering!
82
552
27
3,935
172,855
arxiv.org/pdf/2301.13362 fyi - @yingfan_bot did e2e RL for diffusion many years ago
Replying to @AlexiGlad
[2/N] How do existing generative models solve this problem? They break down generation into many small steps, so each step has essentially one right output and there is nothing to average. Autoregressive LLMs predict one token at a time. Diffusion denoises a little at a time. But this means models are trained on one step, then run for hundreds at inference, so training and inference become different. Each step's errors feed into the next, drifting the model onto inputs it never saw in training (exposure bias), compounding errors. Ever since AlexNet, end-to-end networks have replaced hand-built pipelines across deep learningโ€”classification, detection, segmentation. Generative modeling is the last holdout, and breaking down generation is exactly what's blocking it.
4
58
12,398
when on-policy enter pretraining be like:
We discovered a third pretraining axis beyond parameters and data: exploration. Scaling exploration monotonically improves existing models across images/video/language, and unlocks end-to-end generation. In the simplest case, it's just a for loop. Introducing Explorative Modeling. TLDR: - Gains from exploration grow with scale: 7%โ†’36% as data scales, 13%โ†’23% as parameters scale, and gains double at 3ร— the compute - Adding exploration to ~SOTA baselines improves data efficiency by 6.2ร—, FLOP efficiency by 4.1ร—, parameter efficiency by 47%, and hits a near-SOTA 1.43 unguided FID on ImageNet - Exploration lets you trade training compute for generalization, and scales how end-to-end your generative model is - End-to-end Explorative Models (XMs) match diffusion performance on control tasks with up to 256ร— less inference compute ๐ŸงตThread:
1
2
27
3,359
๐Ÿ”ฅ ๐๐ž๐ฐ ๐›๐ฅ๐จ๐ : ๐“๐จ๐ฐ๐š๐ซ๐๐ฌ ๐‹๐จ๐จ๐ฉ๐ž๐ ๐Œ๐จ๐๐ž๐ฅ๐ฌ ๐ƒ๐จ๐ง๐ž ๐‘๐ข๐ ๐ก๐ญ โ€” ๐๐š๐ซ๐ญ ๐ˆ Looped models reuse the same weights across depth, promising a better computeโ€“parameter trade-off, especially for reasoning. ๐๐ฎ๐ญ ๐Ÿ) ๐๐จ ๐ญ๐ก๐ž ๐ ๐š๐ข๐ง๐ฌ ๐ฌ๐ฎ๐ซ๐ฏ๐ข๐ฏ๐ž ๐ฐ๐ก๐ž๐ง ๐›๐จ๐ญ๐ก ๐ญ๐ซ๐š๐ข๐ง๐ข๐ง๐  ๐š๐ง๐ ๐ข๐ง๐Ÿ๐ž๐ซ๐ž๐ง๐œ๐ž ๐…๐‹๐Ž๐๐ฌ ๐š๐ซ๐ž ๐ฆ๐š๐ญ๐œ๐ก๐ž๐? ๐Ÿ) ๐€๐ง๐ ๐ฐ๐ก๐ข๐œ๐ก ๐š๐ซ๐œ๐ก๐ข๐ญ๐ž๐œ๐ญ๐ฎ๐ซ๐š๐ฅ ๐œ๐ก๐จ๐ข๐œ๐ž๐ฌ ๐š๐œ๐ญ๐ฎ๐š๐ฅ๐ฅ๐ฒ ๐ฆ๐š๐ญ๐ญ๐ž๐ซ? We run ๐š๐ฉ๐ฉ๐ฅ๐ž๐ฌ-๐ญ๐จ-๐š๐ฉ๐ฉ๐ฅ๐ž๐ฌ ablations spanning Ouro to Huginn. Huginn performs better overall, with the largest gains coming from the loop-in-the-middle (sandwich) design and input injection, though they provide different benefits. Trained on ๐Ÿ“๐ŸŽ๐ŸŽ๐ tokens, an ๐Ÿ–๐-๐€๐ŸŽ.๐Ÿ–๐ Huginn MoE approaches or surpasses a ๐Ÿ‘๐Ÿ๐-๐€๐Ÿ‘.๐Ÿ๐ feedforward MoE on several reasoning benchmarks, including GSM8K (83.6% vs. 80.8%), while using ๐Ÿ•๐Ÿ“% ๐Ÿ๐ž๐ฐ๐ž๐ซ resident parameters under ๐ฆ๐š๐ญ๐œ๐ก๐ž๐ ๐ญ๐ซ๐š๐ข๐ง๐ข๐ง๐  ๐š๐ง๐ ๐ข๐ง๐Ÿ๐ž๐ซ๐ž๐ง๐œ๐ž FLOPs. More details and the blog link in the thread โ†“
13
111
20
576
90,496
The answer is deceptively simple imo. Thereโ€™s a notion of a general-purpose harness (like, say, CoT reasoning, proper compaction, or an RLM) thatโ€™s essentially just what *the* model should become. A better โ€œmodelโ€ in the API will eventually wrap it and train accordingly. And a separate notion of a harness thatโ€™s last-mile specification over the underlying bland model. This is irreducible to the extent that your task/context diverges from the mode, regardless of capability. Here, the closer your complexity to the minimum number of bits required, the better.
On harnesses, I vacillate between three beliefs: - the less harness, the better. Models are the magic - post training a model and harness is dramatically better and the model providers win - harnesses have real independent value from the model I have no idea which is right.
13
30
5
355
59,634
Ying Fan retweeted
With the recent surge in research on Looped Transformers, we have compiled a list of popular papers tracing the architectureโ€™s development from its earliest forms to its latest iterations. You can check them out here: alphaxiv.org/shared/folder/0โ€ฆ
6
39
2
185
19,393
Huge congratulations to PKU alumni Wang Hong and Deng Yu, recipients of the 2026 Fields Medal โ€” mathematicsโ€™ highest honor! ๐Ÿงฎ Announced at the 2026 International Congress of Mathematicians (ICM) in Philadelphia, the pair are among four mathematicians worldwide to claim this prestigious prize, awarded every four years to outstanding scholars under 40. The awards are historic on several levels. โ€”First time two mathematicians who completed undergraduate studies in mainland China win the Fields Medal in the same year. โ€”Both joined Peking University as undergraduates in 2007. โ€”Wang Hong becomes only the third female Fields Medalist ever, the first Chinese woman, and the first recipient with a bachelorโ€™s degree from a mainland Chinese university. We are immensely proud of their extraordinary breakthroughs and lasting contributions to global mathematics.
273
1,082
213
9,041
2,327,234
Ying Fan retweeted
"Bridging the Gap Between Latent and Explicit Reasoning with Looped Transformers" Latent reasoning lets models think without writing every reasoning step, but it usually loses accuracy as models get bigger. This paper, LOTUS, fixes this by using a looped Transformer that updates many hidden thoughts in parallel, then trains them to match real CoT steps. So the model gets CoT-like reasoning without generating the full CoT. At 3B, it nearly matches explicit CoT on GSM8K while thinking 2.5x faster, and 6.9x faster for long reasoning. The hidden thoughts can also be read back as reasoning steps, making them compressed but not completely ambiguous.
6
36
3
164
9,143
"Looped / Recursive LMs can solve generalization." Again! Reminds me of our previous work @Kangwook_Lee: teapawt.net/Kangwook_Lee/status/18โ€ฆ which makes the model itself looped, vs this "loops" the harness around it
Transformers struggle to generalize to tasks they were not explicitly trained on. Instead, we propose in 2026 that it is the job of the harness to generalize through composition. We observe a powerful property when training RLMs: for tasks with shared structure that look different, the root model naturally learns the same trajectory, meaning it views the two task trajectories as the same! In other words, the Transformer does not need additional generalization capabilities to transfer capabilities from one task to the other, the harness induces it. We find that well-designed harnesses form a quotient set over task trajectories, meaning their individual LLM calls can see structurally โ€œsimilarโ€ tasks as near-identical, token-for-token! Harnesses can effectively generalize for the Transformer during training, without relying on any intrinsic generalization capability from the model. For example, RLMs can see problems of different lengths as the same: we show that RLMs can train exclusively on short tasks, and fully generalize to similar but unseen tasks 8-32x longer because it produces near identical trajectories for both. Taking this further, we show that tasks across different domains (e.g. math solutions vs. essay writing) that share a decomposition strategy exhibit the same generalization effect. RLMs can train on the problem of finding which essays belong to the same author and improve performance on finding math problems that share similar solutions. The full blogpost, experiments, and discussion are in the thread below.
5
9
62
7,428
ๆœฌๅ‘จไธ‰็ฏ‡๏ผš Value Leakage: An LLM's Answers Are Silently Shaped by Its Own Values Bridging the Gap Between Latent and Explicit Reasoning with Looped Transformers Video = World + Event Stream
5
10
79
9,302