
The CFD enthusiast has become a ML researcher. Senior Researcher at LG CNS AI Lab. Opinions are solely my own and do not express the opinions of my employer.
Seoul
Joined November 2010
- Tweets1.4K
- Following774
- Followers117
- Likes4.3K
Prof. Mark Schmidt’s ICML tutorial today was incredible: cs.ubc.ca/~schmidtm/Document…
He tied scattered concepts into a simple framework, connecting my fragmented knowledge. Great humor, too. Absolute masterpiece.
1
2
182
“they built an image editing model. It could follow simple instructions well. When the ability to follow simple instructions is used and connected as needed for a task (CoT), visual reasoning problems will start to be solved.”
This is my summary of a podcast interviewing Xiangyu Zhang (youtube.com/watch?v=vWrYHvSR…). I found this very insightful. As I have used whisper to transcribe and gemini to translate this, it could contain errors. Though, considering the overall flow of the content, I think it would be close to the original meaning.
Parentheses are my own comments.
## Unsupervised Learning for Images
Why hasn't unsupervised learning for images been as successful as for natural language? Contrastive Learning, for instance, did not yield good results at a large scale. Why?
These methods learn invariance. For example, they learn invariance to image transformations like cropping. However, the specific invariance to be learned is not derived from the data itself. It is handcrafted by humans. The same applies to Masked Image Modeling like MAE. MIM learns invariance to occlusion (parts of the image being masked). Even as the data scale increases, the class of invariance being learned remains fixed, and the model does not learn more kind of invariances.
In natural language, training to generate leads to understanding, generation, and human alignment all at once. Generation is a given since it's a generative model. When you provide context, it influences the subsequent output, which is a form of understanding. And since the training data is generated by humans, alignment with humans occurs naturally.
What about images? Similarly, let's assume we train a generative model that can extract the most information from images. Generation is possible. But does understanding emerge?
A generative model for images learns the distribution of pixels. There are various ways to model this pixel distribution, but only some of them would align with the human's understanding of images.
Images are data created by nature and are, in that sense, external to humans. (Of course, this wouldn't always be true. Photos reflect intent, and artificial objects can be subjects. But this will be limited.) Therefore, information about how humans understand an image is not inherent in the image itself. An image simply exists, separate from how humans understand it. This is why we inject invariance. It is an injection of human understanding of images. An alien might understand the same image in a completely different way than a human.
Therefore, for images, understanding and generation are disconnected. Naturally, there is no guarantee of alignment with humans.
(This is similar to something I recall, a comment from an OpenAI researcher, as far as I know. They expected that combining images and text for training would naturally improve performance, but it didn't. The suspected reason was that images are extremely concrete, while language is extremely abstract. For example, consider the text "children are playing." An image will depict a specific scene of children. But what does "playing" specifically look like? This shows that even a simple expression like "playing" is highly abstract.
This also relates to the limitations of image modeling. It's difficult to discover the human way of understanding an image from its characteristics alone.)
Video could be helpful, but it is difficult to handle and has low information density. Interleaved image-text data can be used, but it has significant limitations. Data like physical motion is almost non-existent. For these kinds of problems, we have no choice but to use video.
Nevertheless, in the short term, they trained models using image-text data, attempting to unify image understanding and generation. Understanding worked well, but generation did not. Furthermore, removing the generation component from training had no impact on understanding performance.
Suspecting it might be a data issue, they tried iterated improvement. Using the understanding model to create data, using that data to build a better generation model, and then integrating that generation model back into the understanding model for further training. They hoped this would eventually merge the two. However, they did not succeed. It worked, and they created more powerful understanding and generation models, but there was no synergy. Removing one did not affect the other.
Understanding and generation operated separately. For example, the model could immediately identify a physically impossible image, yet it would still generate physically impossible images. (Although it's often said there's a gap between generation and verification.)
## o1
o1 became a major turning point for this problem.
They discovered a strange phenomenon as model's size is scaled. The model's mathematical ability would improve, then plateau, and eventually decline. This was because the models developed a tendency to skip steps when solving problems. Data written by humans often omits intermediate steps. If there's data that omits calculations and only shows the final answer, alongside data that details the calculation process, a small model will find the former hard to learn, so the simpler, step-by-step latter pattern becomes dominant. However, a large model can learn to memorize the former pattern.
RL solves this problem, as skipping steps lowers the probability of getting the correct answer. Therefore, the pattern of skipping steps is suppressed.
Why does RL work for LLMs? Because of pretraining. Thanks to pretraining, even though the token sequence is very long, there are only a few critical decision points. The rest can be generated almost automatically. This drastically reduces the search space. The model only needs to find a few crucial branches.
Moreover, o1's reasoning process has a meta-CoT characteristic. At a critical forking point, it can be difficult to decide which branch to follow, especially for problems that cannot be solved in a single forward pass of transformer. So, what if the model tries one branch and then another? If one approach (CoT) fails, it can try another (Reflection).
This became a clue to the problem with image generation models. The problem with image generation is its immense complexity.
With autoregressive generation, once a part of an image is generated, it cannot be modified. Therefore, the model must decide how to generate an entire region in a single step. This exceeds the complexity a model can handle in one pass.
For instance, what if you ask a model to draw a blackboard and write out a complex mathematical problem and its solution? This task goes beyond simple image generation and has an underlying math problem. This clearly exceeds what a model can handle in one step.
Is diffusion different? Diffusion involves multiple steps, but it's ultimately a mathematically designed process of removing noise. The semantics are likely determined early in the generation process, with the rest of the steps just filling in details. Thus, it's not fundamentally different from an autoregressive model.
When training a diffusion model for image generation, it learns by sampling a specific timestep t. For most values of t, the diffusion process has little to do with understanding or semantics. After the semantics are set, rest is just filling the details. The learning signal from this process doesn't help with language understanding.
What happens when an image is generated without sufficient computational capacity? It's similar to training a text model under conditions of insufficient computation. For example, think about injecting into a pretraining model a bunch of problems and answers without the solution steps. The model either memorizes the answers or learns spurious correlations. The same would likely happen with images.
Therefore, current image generation models are stuck at the one-shot stage, where they must generate the answer in a single go. They lack not only meta-CoT but even a basic CoT.
So, they decided to first try implementing a CoT in the image space, starting with understanding. For a task like solving a maze, it's much easier if you can draw lines. They could train the model to solve the specific problems it was trained on, but it failed to generalize. This is in contrast to text CoT, where a model trained on math data can show generalization to a completely different domain.
Why did generalization work for text but not for images? A review of the pretraining text data reveals that while rare, there are examples of thought processes, such as verification or re-checking. However, the kind of data synthesized to train the image CoT does not exist in typical image-text datasets. Therefore, generalization through pre-training was not possible.
In models like o3, the CoT for images involves operations like cropping and zooming, likely because similar data exists on the internet.
So, how can this problem be solved? One way is to use video. Instructional videos, for example, contain many processes that can be considered thought processes. They show step-by-step progress, with actions like pointing with a laser pointer, sketching, and drawing lines. This could be helpful. However, video is difficult to handle. It's often too long, a lot of them are low-valued, and aligning it with text is hard.
Another way is to enable highly flexible image generation. This would allow the model to freely generate necessary images, independent of the original image. But if visual reasoning requires image generation, and image generation requires visual reasoning, isn't that a deadlock?
However, it seems possible to solve the image generation problem if the difficulty is well-controlled. Tasks like connect points A and B have low complexity and can be generated easily. The problem may have been that much image-text data is too difficult and was used for training without curation. Handling data well is, as always, crucial.
So, they built an image editing model. It could follow simple instructions well. When the ability to follow simple instructions is used and connected as needed for a task (CoT), visual reasoning problems will start to be solved. If understanding starts to solved like this, then, the generation problem will also be solved. Understanding means the final output is text, and generation just means the final output is an image.
## Long Context
The reason for needing a long context is that it's the easiest way to input a large amount of data into the model. However, current long context models can handle tasks like retrieval but struggle with complex reasoning. Furthermore, performance can decrease with longer context lengths, especially for smaller models.
In transformers, the storage capacity increases with the context length, so there is no incentive to compress the context. Moreover, training on retrieval tasks reinforces the tendency to preserve information. Is this beneficial for reasoning ability?
Alternatives like linear attention or state space models are being explored, but are they in the right direction? Often, eventually attention is used to solve the retrieval problem. Shouldn't retrieval be solved through approaches like tool use, model calling, or multi-agent systems?
With a multi-agent approach, you could have separate models for planning and execution. Nowadays, multi-agent systems can be trained end-to-end with RL.
## Autonomous and Online Learning
RL has been a powerful breakthrough for reasoning problems in language. However, RL has limitations and differs from human learning. Rule-based methods cannot be used if there are no easily calculable evaluation criteria. Using a model for evaluation can be hacked.
Humans, however, gain much of their feedback not from external sources but from their own judgment and awareness. Therefore, external evaluation alone is insufficient. Intrinsic motivation is needed.
Current methodologies will eventually hit a scaling problem. Not in model or data size, but in the need for environment scaling.
For example, to solve a programming problem, you must create an entire environment, including Docker containers and test data. All of this effort ultimately produces just one sample of data. Big techs are actually doing this.
But humans don't learn this way. Humans don't learn by experiencing countless handcrafted environments. Humans are self-driven. They read on their own, build their own environments, and learn from the feedback.
Achieving autonomous learning requires many things, but one of the most important is interaction with the environment. To interact properly, the problem of getting feedback from natural language must be solved.
Humans don't learn in a binary fashion. They receive feedback through natural language, which contains diverse dimensions and rich information. How would RL handle this feedback? It would create various evaluation criteria, assign weights, and sum them up. Much of the information in the feedback would be lost, reduced to just a single scalar.
There is no clear answer to this problem yet.
The challenges of autonomous learning include the long context problem, the problem of extracting information from natural language or unstructured feedback, and the problem of intrinsic reward, which guides the model to update itself to adapt to the world.
And autonomous learning would lead to online learning. A model capable of autonomous learning that then learns in a real environment would allow online learning. Imagine an autonomous agent operating within a company. It would become a powerful agent that has acquired all the company's internal information.
While multimodal reasoning might take about a year, autonomous and online learning might take about two to three years. Many people are already researching this problem, and it's a major topic in academia right now (like Ilya Sutskever).
## The Future
To create the next generation of technology, one must fully master the previous generation. Only then can its limitations and problems be fully understood.
The agent OpenAI talks about is likely different from the agents of previous generations. Consider OpenAI's 5 levels of AGI (Level 1: Conversational AI, Level 2: Reasoning AI, Level 3: Agentic AI, Level 4: Innovator AI, Level 5: Collective AI).
Moving from one level to the next required a new algorithm. Conversational AI could be achieved with next-token prediction. Reasoning AI required RL. What will be needed for agentic AI? Autonomous online learning. Agents require autonomy. They should not need humans to design countless environments and rules. Even reasoning models, once training is complete, cannot improve further, and their training depends on human-defined goals. However, in autonomous learning, the model must explore and learn on its own, setting its own goals. That will be the era of the agent.
Today's agents are still at the RL stage. The idea is to provide them with various tools and reward them for achieving a designer's desired outcome. Of course, this is better than the previous stage, where agents were pieced together with prompt engineering. Now, we are training the model to call tools on its own when it deems necessary, rather than having humans guide its actions.
135
“In three words: RL finally works. More precisely: RL finally generalizes.”
1
180
Today’s lessons from DGX ops:
1. Don’t upgrade CUDA or NVIDIA drivers by just running apt upgrade — always follow the official DGX OS guide. RTFM rules.
2. Use systemctl --failed to quickly spot failed services.
3
119
This excellent post reminds me of ideas discussed in the following paper arxiv.org/abs/2305.12224
60
Cursor 초창기에 써보고 UI 불편하다고 생각하고, 또 기존에 GitHub Copilot도 쓰고 있어서 굳이 또 결제까지 해가며 써야할까 생각했는데, 내가 잘못 생각했구나... 엄청 좋네
48
We might need a learning-rate-like parameter to control data sampling
🧐Two papers, opposite opinions.
Ours: High-entropy tokens drive all performance gains in LLM RL.
Another: Don’t let low-prob (often high-entropy) tokens over-dominate.
Both are valid. Why?
💡Model size matters. Larger LLMs support our view; smaller LLMs support theirs.
🧵⬇️
95
Same topic, different take, but with same date arxiv.org/abs/2506.01347 [2506.01347] The Surprising Effectiveness of Negative Reinforcement in LLM Reasoning
New paper by Andre He:
Rewarding the Unlikely: Lifting GRPO Beyond Distribution Sharpening
arxiv.org/abs/2506.02355
Tired of sharpening the distribution? Try unlikeliness reward to learn new things from the roads less traveled
1
2
384
Lately, using Claude’s GitHub Action has been such a satisfying experience from a UX perspective. Since it’s managed based on GitHub issues, it really feels like working on a typical open-source project—which I absolutely love. github.com/anthropics/claude…
1
73
THIS IS SO AMAZING! Probably best muP guide I’ve ever seen. plus great insights into recent scaling law issues!
btw, i wrote a post about "how to scale" based on what i've learned over the past few months. it covers muP, HP scaling laws, and some stuffs. would be happy to get any feedback or discussion.
(it's pretty verbose and no TL;DR, sorry lol)
howtoscalenn.github.io
1
2
103
Seriously. It took me way too long to realize that inference and statistical inference are actually different, and I was really confused about it for quite a while.
When did the deep learning crowd first start callling prediction (i.e., forward pass) "inference"? And what should we now call traditional inference (i.e., *inverting* a forwards process)? Should I just call it "posterior inference" (or "statistical inference" if frequentist).
40
vintagedata.org/blog/posts/d… The blog post suggests that “search” will be a key concept in the future of AI agents.
I see this paper as an an important first step toward the vision outlined in that post.
🚀 Introducing 𝗦𝗲𝗮𝗿𝗰𝗵-𝗥𝟭 – the first 𝗿𝗲𝗽𝗿𝗼𝗱𝘂𝗰𝘁𝗶𝗼𝗻 𝗼𝗳 𝗗𝗲𝗲𝗽𝘀𝗲𝗲𝗸-𝗥𝟭 (𝘇𝗲𝗿𝗼) for training reasoning and search-augmented LLM agents with reinforcement learning!
This is a step towards training an 𝗼𝗽𝗲𝗻-𝘀𝗼𝘂𝗿𝗰𝗲 𝗢𝗽𝗲𝗻𝗔𝗜 “𝗗𝗲𝗲𝗽 𝗿𝗲𝘀𝗲𝗮𝗿𝗰𝗵” via RL.
Our 𝟯𝗕 𝗯𝗮𝘀𝗲 𝗟𝗟𝗠𝘀—including not just 𝗤𝘄𝗲𝗻 𝟮.𝟱 but also 𝗟𝗹𝗮𝗺𝗮 𝟯.𝟮—learn to 𝗿𝗲𝗮𝘀𝗼𝗻 and 𝗰𝗮𝗹𝗹 𝘀𝗲𝗮𝗿𝗰𝗵 𝗲𝗻𝗴𝗶𝗻𝗲𝘀 all on their own!
Everything will be 𝗳𝘂𝗹𝗹𝘆 𝗼𝗽𝗲𝗻 𝘀𝗼𝘂𝗿𝗰𝗲. Stay tuned!
Code: github.com/PeterGriffinJin/S…
Experimental logs: wandb.ai/peterjin/Search-R1-…
#R1 #deepresearch #deepseek
1
186
vintagedata.org/blog/posts/d…
I used to think the recent hype around LLM agents was just a revisit of prompt engineering—defining some workflows based on patterns and fine-tuning them with prompts or descriptions seemed good enough.
1
1
113
But after reading this, I realized I was wrong. This is a true definition of an AI agent. Thank you for the great post @Dorialexander and thanks to @sanxiyn for sharing it with me!
1
62
Please...
"which enables hardware-specific and platform-dependent package variants to address modern hardware diversity."
wheelnext.dev/summits/2025_0…
내가 포트란 너무 싫어해서 Julia 팬보이가 되었고 포트란 조만간 망하겠지했는데 이렇게 다시 부활하고 있는거 보면 너무 신기하다.. 그래도 여전히 내 생각은 Julia >>>> FORTRAN이지만, 요즘은 LLM하니까 둘 다 쓸 일이 잘 없다…
GN⁺: LLVM Fortran 컴파일러 Flang 첫번째 공식 릴리즈
- LLVM은 2020년 LLVM 11에서부터 Fortran 컴파일러 Flang을 포함해 옴
- 초기 실행 파일 이름은 `flang`이 아닌 `flang-new`였음
- LLVM 20에서 `flang-new`를 `flang`으로 변경하면서 Flang의 성숙함을 인정…
news.hada.io/topic?id=19726
1
112


















