✨ Excited to share that our paper "RefEdit: A Benchmark and Method for Improving Instruction-based Image Editing on Referring Expressions" has been accepted at ICCV 2025! 🌺📍See you in Hawaii!
🧵 Here's what we did, why it matters, and what we’re releasing ⬇️ (1/8)
I think something wonderful happened in the math community. For many years people were afraid to work on well-established problems like Riemann Hypothesis because they seemed completely out of reach. Now we are finally seeing mathematics being moved forward at an unprecedented scale. Many moonshots and completely bonkers ideas. Only good things can come out of this. Mathematics is not dead.
As someone who really appreciates Grok, Grok Imagine, and the ideology behind them, I do hope @elonmusk keeps releasing better versions even if they don’t always top the leaderboards.
Grok still feels noticeably fresher and more distinct compared to the other big three.
The hardest math problem known to humans has been solved. We are entering an era where important and interesting problem finders are more important than solvers.
The Lean FRO and Mathlib Initiative have released a joint statement on the Lean verification of the Riemann Hypothesis.
On November 20, Levent Alpöge released a proof of the Riemann Hypothesis as a Lean library of 17 million lines of code. Over the past day, the Lean and Mathlib communities worked together to verify it. The statement certifies the proof as correct and describes how it meets all necessary verification criteria.
Congratulations to Levent on this achievement, and thank you to everyone in the community who contributed to the verification.
Full statement: https://t.co/edxEbkodw7
The first independent compile of the Lean code is done without any issues.
What remains is some more formal checks using Comparator and con-leche, but due to these being single-threaded it can take days.
Assuming no kernel bugs, RH is formally verified.
Nearly half a year of silence. We spent it studying one problem: how far RL can scale.
MiMo-V2.6 is in the middle of its RL run right now. Three things we scaled: compute (~2B tokens per step, 1568 prompts × 16 rollouts, fully async), environments and harnesses (multi-task agentic RL, mixed across multiple harnesses in one run), and grader compute (agentic in-group credit assignment, with test-case and rubric-based rewards). We'll open-source the details piece by piece over the coming weeks.
Streaming the run: https://t.co/ZSxahzJRju
Needed to generate ~50 videos. Veo3 rate per day is 10 for Tier 1.🤦♂️
Started using Grok - cheaper than Veo3, even cheaper with batch processing, faster than Veo3, supports 480p, supports varying time lengths and apparently better quality.
We are not without our flaws, yet Sri Lanka has much to be proud of.
Our universal, free healthcare system places us among the world’s best, one of the many achievements of our nation over the past 76 years.
If you’re an "ML Engineer" and you think “Transformer” just means stacking encoder–decoder blocks and calling it a day, you’re missing the actual mechanism that makes modern AI work.
Concept 16: The Transformer Is a Math Engine, Not a “Model Architecture
"Most people can implement a Transformer pipeline. Very few can explain why the Transformer works."
Let’s break it down properly.
1. The core idea, Transformers = Vector Field Manipulation
Every layer of a Transformer applies three mathematical operations:
1. Projection
2. Attention as weighted integration
3. Update via residual fields
The Transformer is basically a learned vector field processor.
Not a sequence model.
Not an architecture choice.
It could be called a mathematical engine that maps token representations through a series of controlled linear and nonlinear transformations.
2. Attention is not magic, it is a quadratic form. (Take a minute while reading this part)
Self-attention computes:
Attention(Q, K, V) = softmax(QKᵀ / √d) V
This means:
• QKᵀ is a similarity matrix
• softmax turns similarities into probability weights
• multiplying by V computes a weighted expectation over token values
Attention = learnable, data-dependent kernel smoothing.
It is a kernel machine inside your neural network.
3. Multi-head attention = multiple kernels in parallel
Each head learns a different geometry of similarity. One head may focus on local patterns, another on long-range dependencies, another on syntax, another on semantics.
When people say “transformers understand context,” this is what they mean:
each head builds a different function approximator.
4. Residual connections are the true backbone
Forget attention. Residuals are the reason Transformers train at all if you look at it properly.
xₜ₊₁ = xₜ + f(xₜ)
This means every layer learns a correction to the current representation. Gradient flow stays stable. Representations evolve smoothly.
Without residuals, Transformers collapse.
5. LayerNorm = curvature control
Norms scale the Jacobian of each layer.
This keeps the singular values of the mapping from blowing up or collapsing.
LayerNorm is not cosmetic. It is what ensures the model doesn’t EXPLODE internally.
6. Feedforward layers = feature expansion and contraction
The FFN block:
FFN(x) = W₂ σ(W₁ x)
expands dimension, applies a nonlinearity, then compresses.
This lets the model create new features that attention alone cannot express.
It acts as a learned universal approximator inside each layer.
7. Why people can code Transformers but not explain them
Because coding a transformer is wiring blocks together. Understanding a transformer requires knowing:
• attention as kernel regression
• softmax as a probability normalizer
• LayerNorm as Jacobian control
• residuals as stable integration
• FFN as feature synthesis
• positional encodings as geometric priors
• multi-head structure as an ensemble of learned kernels
Most people never go beyond surface-level implementation is something I realised when I caught myself trying to work on advanced papers without actually understanding the fundamentals.
TL;DR
The Transformer works because its math is designed to stabilize gradients, amplify structure, and integrate information the way a continuous dynamical system would.
It is not “just an architecture.”
It is the most efficient numerical method we’ve found for learning functions over sequences, graphs, and basically anything with structure.
@ScottEdwar33859 @karpathy Get the answer script from Gemini run that in the challenge interface and paste the terminal output as the next input to Gemini. There was no help or guiding from my side. Both Gemini and GPT-5 Pro received same initial prompt and challenge files.
@karpathy Another main difference is the compute time. Altogether Gemini took like 3 mins and GPT-5 Pro spent close to 2 hours. Even when I provided the correct script from Gemini, GPT-5 Pro said that solution is wrong.
@karpathy Tried a software vulnerability challenge from one of the graduate courses (stack buffer overflow challenge) and Gemini 3 Pro was able to complete in around 3-4 iterations. GPT-5 Pro couldn't solve even after 10 iterations.
Gemini 3 leak - some crazy improvements on math, screen understanding, and simpleqa.. somehow beaten by sonnet on swebench but winning on terminalbench
Lower context length than 2.5 pro too 🫣
https://t.co/qQah8GPDIV
We’re presenting our RefEdit paper at ICCV 2025 — Booth #71!
Come chat with us about challenging cases in image editing and see how RefEdit pushes the limits of image editing. #iccv25