
Interested in natural philosophy and machine learning
11059
Joined August 2022
- Tweets205
- Following7.5K
- Followers370
- Likes35.7K
Marco Matthies retweeted
1/ Short thread of quick visual explainers for the most significant or surprising results from tonight’s OAI math drop
First, the headline is the major breakthrough on Reimann. It’s not a solution to the hypothesis, but it’s a huge tightening on the bounds
🤖 Made with AI
Nice bootstrap! „PretrainZero“
Can an LM, starting from random init (!!), learn to generate all of its pretraining data?
Introducing Self-Play Pretraining with Zero Data. Two models start from random initialization: a generator proposes programs for a universal Turing machine and a learner trains on their outputs. We never train on any real data, but see predictable scaling on natural datasets: zero-shot val loss on images, text, audio, and melodies decreases predictably with self-play compute. And the learner develops in-context learning capabilities.
A fun proof-of-concept, co-led with @AdityaCowsik and @KfirDolev and co-authors @gbruno_dl, @ANourya @noahdgoodman, and @YoavLevine.
1
269
Marco Matthies retweeted
Apparently every theorem can be proved just with linear algebra? Absolute W for representation theorists.
Sounds like a nice speedup
🚨A novel way to do RL in LLM post-training!
Inspired by our previous path-not-taken work (arxiv.org/abs/2511.08567), we dig deep into the learning trajectory of RL and find that optimizing singular vectors (i.e., rotation) of weight matrices suffices for good performance in RL. The resulting “isospectral optimization” reaches matched scores with substantially fewer training steps.
Great work from @zhu_hanqing666 and the co-authors!
1
492
Just knew him for Moravec‘s paradox, looks like he got this one right too.
"The role of raw power in intelligence", Hans Moravec, 1976 (!).
"The first section discusses natural intelligence, and notes two major branches of the animal kingdom in which it evolved independently, and several offshoots. The suggestion is that intelligence need not be so difficult to construct as is sometimes assumed.
The second part compares the information processing ability of present computers with intelligent nervous systems, and finds a factor of one million difference. This abyss is interpreted as a major distorting influence in current work, and a reason for disappointing progress.
Section three examines the development of electronics, and concludes the state of the art can provide more power than is now available, and that the gap could be closed in a decade."
stacks.stanford.edu/file/dru…
1
372
Marco Matthies retweeted
Open-sourcing HarnessGym.
Most coding-agent evals ask: “Did the agent solve the task?”
HarnessGym asks something different:
Can the agent learn what harness was missing, build it, prove it works, and make the next fresh run stronger?
agent attempts task → reflects → builds tooling → qualifies it → next run starts stronger 🧵
github.com/patrick-toulme/ha…
Marco Matthies retweeted
Your RL post-training may be sabotaging your LLM’s test-time scaling!
Conventional RL pretends that you can collapse all reward signals *upfront* into a single *scalar reward*.
We introduce Vector Policy Optimization (VPO), which natively maximizes *vector-valued* rewards, boosting test time search performance, even on the original scalar.
Marco Matthies retweeted
Launching pyptx — a Python DSL for writing NVIDIA PTX kernels.
One PTX instruction = one Python call. Write pure PTX in Python.
Direct Hopper + Blackwell support: wgmma, TMA, tcgen05, mbarriers. JAX + PyTorch integration.
Includes GEMM, grouped GEMM, RMSNorm, SwiGLU, and a PTX→Python transpiler
pip install pyptx[torch]
pip install pyptx[jax]
github.com/patrick-toulme/py…
Marco Matthies retweeted
Introducing 𝑨𝒕𝒕𝒆𝒏𝒕𝒊𝒐𝒏 𝑹𝒆𝒔𝒊𝒅𝒖𝒂𝒍𝒔: Rethinking depth-wise aggregation.
Residual connections have long relied on fixed, uniform accumulation. Inspired by the duality of time and depth, we introduce Attention Residuals, replacing standard depth-wise recurrence with learned, input-dependent attention over preceding layers.
🔹 Enables networks to selectively retrieve past representations, naturally mitigating dilution and hidden-state growth.
🔹 Introduces Block AttnRes, partitioning layers into compressed blocks to make cross-layer attention practical at scale.
🔹 Serves as an efficient drop-in replacement, demonstrating a 1.25x compute advantage with negligible (<2%) inference latency overhead.
🔹 Validated on the Kimi Linear architecture (48B total, 3B activated parameters), delivering consistent downstream performance gains.
🔗Full report:
github.com/MoonshotAI/Attent…
Marco Matthies retweeted
Latent world models learn differentiable dynamics in a learned representation space, which should make planning as simple as gradient descent.
But it almost never works.
What I mean is, at test time, you can treat the action sequence as learnable parameters, roll out the frozen world model, measure how far the predicted final state is from the goal, and backprop through the entire unrolled chain to optimize actions directly. Yet many of the systems that work (Dreamer, TD-MPC2, DINO-WM) abandon this and fall back to sampling-based search instead.
That's why I really like this new paper by @yingwww_, @ylecun, and @mengyer, which gives a clean diagnosis of why, and a principled fix.
The reason everyone abandons gradient descent on actions is that the planning objective is highly non-convex in the learned latent space. So instead most systems use CEM (cross-entropy method) or MPPI (model predictive path integral), both derivative-free.
CEM samples batches of action sequences, evaluates them by rolling out the world model, keeps the top-k, and refits the sampling distribution.
MPPI does something similar but weights trajectories by exponentiated negative cost instead of hard elite selection.
These work when gradients are unreliable but the compute cost is substantial — hundreds of candidate rollouts per planning step vs a single forward-backward pass.
This paper asks what exactly makes the latent planning landscape so hostile to gradients and what you can do about it.
The diagnosis. Their baseline is DINO-WM, a JEPA-style world model with a ViT predictor planning in frozen DINOv2 feature space, minimizing terminal MSE between predicted and goal embeddings. The problem is that DINOv2 latent trajectories are highly curved (when you use MSE as the planning cost you're implicitly assuming euclidean distance approximates geodesic distance along feasible transitions).
For curved trajectories this breaks badly, gradient-based planners get trapped and straight-line distances in embedding space misrepresent actual reachability.
The fix draws from the perceptual straightening hypothesis in neuroscience — the idea that biological visual systems transform complex video into internally straighter representations. So they add a curvature regularizer during world model training.
Given consecutive encoded states
z_t, z_{t+1}, z_{t+2},
define velocity vectors as
v_t = z_{t+1} - z_t
measure curvature as the cosine similarity between consecutive velocities, and minimize
L_curv = 1 - cos(v_t, v_{t+1}).
Total loss is then
L_pred + λ * L_curv
with stop-gradient on the target branch to prevent collapse.
The theory backs this up cleanly — they prove that reducing curvature directly bounds how well-conditioned the planning optimization is — straighter latent trajectories guarantee faster convergence of gradient descent over longer horizons.
Worth noting that even without the curvature loss, training the encoder with a prediction objective alone produces some "implicit straightening" — the JEPA loss naturally favors representations whose temporal evolution is predictable. Explicit regularization simply pushes this much further.
Empirical results across four 2D goal-reaching environments are consistently strong. Open-loop success improves by 20-50%, and the GD with straightening matches or beats CEM at a fraction of the compute.
The most convincing evidence is the distance heatmaps: after straightening, latent Euclidean distance closely matches the shortest distance between states, even though the model was trained only on suboptimal random trajectories.
What I find interesting beyond the specific method is that the planning algorithm didn't change. The dynamics model didn't change. A single regularization term on the embedding geometry turned gradient descent from unreliable to competitive with sampling methods.
The field has largely treated representation learning and planning as separate concerns — learn good features, then figure out how to plan in them.
This paper makes a concrete case that the representation geometry is itself the bottleneck.
This connects to a broader pattern in ML. When optimization fails, the instinct is to fix the optimizer (better search, more samples, adaptive schedules). But often the real lever is the shape of the space you're optimizing in.
Same principle shows up in RL post-training where reward landscape shaping matters as much as the algorithm itself.
Shape the space so simple optimization works, rather than building complex optimization to handle a bad space.
Their paper:
arxiv.org/abs/2603.12231
Marco Matthies retweeted
OpenFold3-preview (OF3p) is out: a sneak peek of our AF3-based structure prediction model. Our aim for OF3 is full AF3-parity for every modality. We now believe we have a clear path towards this goal and are releasing OF3p to enable building in the OF3 ecosystem. More👇
Very interesting set of ideas, breaking out of the Turing tar-pit.
1/4 LLMs solve research grade math problems but struggle with basic calculations. We bridge this gap by turning them to computers.
We built a computer INSIDE a transformer that can run programs for millions of steps in seconds solving even the hardest Sudokus with 100% accuracy
188
It’s symbiosis all the way down
One of the most fascinating perspectives ever.
A symbiotic origin of the ribosome?
academic.oup.com/pnasnexus/a…
1
168
Good inductive biases are still worth a lot of FLOPs, don’t overdo the bitter lesson pills
🚨Transformers don't learn Newton's laws? They learn Kepler's laws!
Like us, transformers don't predict a flying ball via a differential equation, but by fitting a curve.
Moreover, reducing context length steers a transformer from Keplerian to Newtonian. Compression in play.
2
262
Marco Matthies retweeted
Generative Modeling via Drifting
New Kaiming He paper! Instead of a "pushforward" behavior carried out iteratively at inference time, e.g., in diffusion/flow-based models, evolve the pushforward distribution during training naturally enabling 1-step inference. SOTA results on ImageNet 256×256, with FID 1.54 in latent space and 1.61 in pixel space
Marco Matthies retweeted
Imagine you could solve an infinite set of transport problems with one Meta Flow Map model that allows you to sample from arbitrary posterior distributions.
Now imagine you can do that to construct a really effective estimator of how to adapt a diffusion to solve an RL problem.
Now imagine that doing so allows you to even outperform Best-of-N=1000 at a fraction of the compute.
Excited to introduce a new paradigm for flow and diffusion models we call Meta Flow Maps, which make this possible 🙂
👾 Learnable with simple modification of existing flow map losses
👾Off-policy fine-tuning algorithm!
👾Extremely effective reward alignment across a variety of rewards for both inference-time steering and learned fine-tuning!
arxiv: arxiv.org/abs/2601.14430
project page: meta-flow-maps.github.io/
code: forthcoming
Amazing work by @PPotaptchik and @adhisarav to bring these results to life! Really excited about future directions here! Thanks to @yeewhye @AbbasMammadov11 and Alvaro Prat.
Marco Matthies retweeted
New work on Maximum Likelihood Reinforcement Learning:
arxiv.org/abs/2602.02710
This work develops Maximum Likelihood Reinforcement Learning (MaxRL), a family of objectives that smoothly interpolates between REINFORCE and maximum likelihood. Our final algorithm requires only a minimal change, a single line of code (dividing by the mean reward in the advantage computation). Empirically, MaxRL shows substantial gains in sample efficiency with perfect verifiers, Pareto-dominates GRPO on reasoning tasks, and exhibits good scaling with both compute and data.
What makes MaxRL particularly compelling is its distinct learning dynamics. It produces larger gradient norms on harder problems, preserving learning signal where other methods tend to wash it out. As a result, a higher fraction of prompts are successfully solved during training. In data-scarce regimes, MaxRL resists overfitting while converging to stronger final performance.
Paper, code, and demos: zanette-labs.github.io/MaxRL…
See also an excellent thread by @FahimTajwar10.
Are we done with new RL algorithms? Turns out we might have been optimizing the wrong objective.
Introducing MaxRL, a framework to bring maximum likelihood optimization to RL settings.
Paper + code + project website: zanette-labs.github.io/MaxRL…
🧵 1/n
Marco Matthies retweeted
The largest randomized trial of medical A.I.
—Over 100,000 women in Sweden
—radiologist + AI vs 2 radiologists, in follow-up
—AI added led to 29% more cancer detected, 44% reduced workload, and
—Less cancer dx in subsequent 2 years, and, when found, less aggressive
thelancet.com/journals/lance…






























