Stefan Bachhofner (@fcbstef) profile picture
Joined December 2011
Photo by Stefan Bachhofner (@fcbstef)Photo by Stefan Bachhofner (@fcbstef)
Stefan Bachhofner retweeted
"Mathematical Theory of Deep Learning" is a free book that introduces the mathematical foundations of deep learning. The book focuses on three central areas of neural network theory: 1. approximation theory, which studies how neural networks represent functions; 2. optimization theory, which examines how their parameters are learned; 3. statistical learning theory, which investigates how models generalize beyond their training data. I think it's a very useful resource for anyone interested in studying deep learning from a mathematical perspective. arxiv.org/pdf/2407.18384
12
95
7
748
26,295
Stefan Bachhofner retweeted
"An Introduction to Transformers" is a short introductory paper that provides a mathematically precise and intuitive introduction to Transformers, the neural network architecture behind many modern AI systems. The paper explains the basic structure of a Transformer and covers tokens and embeddings, self-attention, queries and keys, multi-head self-attention, MLPs, residual connections, layer normalization, positional encoding, and autoregressive language modeling, with brief connections to CNNs, RNNs, graph neural networks, and vision applications. I think it's a good starting point if you want to build intuition for how Transformers work before moving on to more detailed resources. arxiv.org/pdf/2304.10557
7
127
2
977
43,099
One of the worst forms of brainrot AI has cultivated is pessimism about basic research, ie the idea that important work can only happen inside a frontier/neo lab and only with 10k+ GPUs, so the rest should not even bother. What a bleak way to think about science. And it's false.
89
289
39
2,450
235,337
Stefan Bachhofner retweeted
I agree with Terence’s view from the perspective of mathematics. However, relieving humans from mediocre mechanical mathematical deductions will allow most mathematical minds to use mathematics to solve real scientific and technological challenges.
Terence Tao made a very powerful point: “In most cases in pure mathematics, the problems are posed not because we desperately want the solution to these problems in and of themselves, but because we have seen from past experience that human-directed efforts to solve these problems tend to spur further development of the field through the efforts to solve such problems, and then to digest any partial or complete solutions that emerge for further insights. Prematurely solving the problem by purely AI-powered methods—particularly without full transparency into the solution process—can contaminate this process to the point where it actually becomes a net negative for the progress of mathematics as a whole.” I’ve been following Terence Tao for like 20 years, and I have always been impressed by the clarity of his thinking. This clarity stands out even more in this difficult moment, as AI labs turn mathematics into a battleground in their race for supremacy. In this race, they risk damaging one of humanity’s highest intellectual endeavours.
15
11
5
192
38,191
Stefan Bachhofner retweeted
What is the role of academic computer vision research in the age of increasingly powerful large models? Is GPT-6 Astra a step change? How can a researcher have an impact today in academia? These are the questions I ask myself as I head off to ECCV 2026, a conference I’ve attended since 1992. One of my papers this year is VIGA, a method that takes an image as input and outputs a 3D Blender scene that represents that image. This is a classical inverse-graphics task and VIGA was the first method to solve it using an agentic approach. The idea is now several years old and the first version of the paper was rejected. This delayed publication significantly. After it was accepted at ECCV, it was quickly surpassed by people using Claude Code for the same purpose. Today GPT-6 Astra blows away all previous results. But we still head off to ECCV to tell the community about our invention that is now fully out of date. The way academic work often progresses is that one reads recent papers, notices that they have limitations, comes up with a new idea, explores this, publishes it, etc. Any published paper I read today is based on ideas that are at least a year old. And those ideas were based on the literature of the time, which was also a year old. That means that any paper I see at ECCV is likely two years out of date. In AI today, two years means your work is likely irrelevant. At CVPR this summer I noticed that many authors have not gotten the message. They continue to work on “old” problems that have a long history. This history is based on assumptions about how the “vision problem” will be “solved”. The truth is that it is being solved in a very different way and many of these problems are no longer relevant. Another group of papers focuses on very niche problems where large models likely fail because of insufficient data or lack of business interest. The impactful papers were largely from industry and had long author lists and massive data+compute behind them. These papers were also out of data, describing systems that had been released months before, but at least they served to provide the community with more complete documentation and analysis of commercial systems. So what should academics do? First, we need to put aside the tools we’ve used for years and start from scratch. Every project should start by trying really hard to solve the problem with existing tools. I would like to see every paper begin with a detailed experimental analysis of how existing models perform and why they fail (if they do). This gives the kind of insight we need today. Then, assuming current models fail, the solution should provide some fundamental insight that will outlive the next release of such models. Reviewers today still focus on technical novelty. This pushes people to focus on tweaking architectures rather than clearly moving the field forward. Papers need to be judged based on their novel insight and not their novel technical contribution. This is a real shift in thinking but it focuses us on what matters - progress of the field. If we want there to be a “field” of computer vision, then it can’t become a marginal backwater, focusing on esoteric problems. If you haven’t tried using Astra (or whatever comes next) to solve your problem, then you have not done your homework. This omission should be seen as negatively as not having a previous work section. Concretely, I think papers should include a new section analogous to “Related Work” where that related work is current models and how they perform on the task. Reviewers should start asking for this and expecting authors to be able to articulate their insights about the limitations of existing large models. I'm interested in your thoughts.
91
393
69
2,398
692,879
Stefan Bachhofner retweeted
I put together a handbook on how attention works, from the Q/K/V equation up through how it actually runs in modern LLMs. Self vs. cross-attention, causal masking, multi-head attention, RoPE, KV caching, MHA/MQA/GQA/MLA, FlashAttention, worked through by hand, with citations back to the original papers. Made it to be the explanation I wish I'd had.
25
331
11
2,204
115,270
Stefan Bachhofner retweeted
ETH Zurich just open-sourced their entire 2026 robot learning course. Not a MOOC. The actual course. Slides, lecture recordings, coding assignments, GitHub repo. The curriculum goes from imitation learning and RL all the way to Vision-Language-Action models and foundation models for robotics. Guest lectures from the co-founder of Physical Intelligence. The creator of Diffusion Policy. Pieter Abbeel. Dieter Fox. 12 weeks. Free. No signup. Taught by Oier Mees and the team at ETH Zurich. If you want to understand where robot intelligence is actually heading… this is the reading list the field is using right now. 📍[cvg.ethz.ch/lectures/Robot-L…] —— Weekly robotics and AI insights. Subscribe free: 22astronauts.com
18
326
9
2,144
120,633
Stefan Bachhofner retweeted
Most people dont know this, but did you know paper from 2011 identified that denoising autoencoder learns score of the model and let you sample from it (aka origin of diffusion model)? Gotta be one of the most underrated-yet-influential paper of all time.
7
36
3
398
21,708
Stefan Bachhofner retweeted
What do you do when you lose an H-bomb or even a nuclear submarine in the middle of the ocean? You develop a sophisticated theory for how to look for it. This problem inspired a lot of fascinating work in the 50s. This classic, but mostly forgotten, book is one of them. 1/2
11
79
6
1,135
103,761
Getting ready to publish my complete guide to RL for LLMs tomorrow morning. Although the post contains many of my own thoughts / learnings, it is also a synthesis of so many great resources that have been published over the years: - The RLHF Book (rlhfbook.com/) by @natolambert - Reinforcement Learning by Richard S. Sutton and Andrew G. Barto - Spinning Up in Deep RL (spinningup.openai.com/en/lat…) from OpenAI - Build an LLM (sebastianraschka.com/llms-fr…) and Reasoning Model (sebastianraschka.com/reasoni…) from Scratch by @rasbt - Various notes (joschu.net/blog/kl-approx.ht…) and papers (TRPO, PPO, etc.) from John Schulman - Policy Gradient Algorithms (lilianweng.github.io/posts/2…) by Lilian Weng - A Vision Researcher’s Guide to RL (yugeten.github.io/posts/2025…) by @YugeTen - From REINFORCE to Dr. GRPO (lancelqf.github.io/note/llm_…) by @qingfeng_lan - Async GRPO in the Wild (yumoxu.notion.site/async-grp…) by @yumo_xu - Open RL infrastructure like TRL (huggingface.co/docs/trl/en/i…) and OpenInstruct (github.com/allenai/open-inst…) I highly recommend reading all of them. They’ve truly helped me to learn so much.
24
186
9
1,395
79,480
Stefan Bachhofner retweeted
6
191
2
1,586
56,682
Very rarely you stumble on a method that's simple, obvious in hindsight, free, and touches on every problem you care about: CLI agents, continual learning, self-improvement, world models. ECHO is one of those
10
47
6
579
80,428
Stefan Bachhofner retweeted
And the trend continues with Gemma 4, simplicity wins again!
Many VLM papers propose new connectors claiming improved performance, but then every follow-up paper just replaces it with a super simple MLP (1 or 2 layers) Simplicity wins again
10
63
3
976
90,431
Stefan Bachhofner retweeted
Interesting.
"Chart of the Century" updated through December 2025.
55
102
7
854
114,914
Stefan Bachhofner retweeted
This applies to many other fields too, computing and data science in particular...
Terence Tao says AI is forcing mathematics to rethink graduate education Many problems used to train young mathematicians now overlap with what AI can plausibly solve, which creates a cultural challenge "it's hard to define the shift clearly, but we need to address it soon"
2
20
1
160
26,526
The co-inventor of Looped Transformers defended her PhD thesis yesterday and is heading to an incredible new role soon :) congratulations @AngelikiGiannou 🥳 🎉🎈
14
28
5
701
87,006
Stefan Bachhofner retweeted
Counterpoint: Capitalism does a far better job than socialism of feeding people.
A reminder that we produce enough food for 1.5x the Earth’s population. Capitalism prevents hungry people from eating it
85
187
15
1,257
27,853
Stefan Bachhofner retweeted
Counterpoint:
🇨🇺 Fidel Castro: «Porque ¿qué ha resuelto el capitalismo? No ha resuelto ningún problema. Ha saqueado el mundo. Ha dejado toda esta pobreza.»
10
37
1
391
8,840
Stefan Bachhofner retweeted
Bono was right and the anti-capitalists are wrong.
Thinking about this Bono quote again
54
447
12
3,697
159,405
Stefan Bachhofner retweeted
Why I got back into research a decade ago: I read the 2015 “neural nets = spin glasses” paper by @ylecun, "The Loss Surfaces of Multilayer Networks". 𝐓𝐡𝐢𝐬 𝐢𝐬 𝐭𝐡𝐞 𝐰𝐨𝐫𝐬𝐭 𝐀𝐈 𝐭𝐡𝐞𝐨𝐫𝐲 𝐩𝐚𝐩𝐞𝐫 𝐢𝐧 𝐡𝐢𝐬𝐭𝐨𝐫𝐲. It’s bad enough to not properly cite @SchmidhuberAI ; JEPA might actually be useful. This work has misled the field for a decade. Back in 2015, I was having coffee with my late PhD advisor Karl Freed (postdoc with Sam Edwards, who invented spin glasses!) while he was visiting SF. Karl was advising John Jumper at the time, who, less than 10 years later, won the Nobel Prize for AlphaFold in 2024. We were discussing John's thesis work, and some of the early, overly simplistic generalized spin glass models of protein folding. Karl remarked to me how Edwards was actually disappointed that no one followed his other work, and that so many people used spin-glasses in totally inappropriate ways. And that’s putting it kindly. So what’s so bad about this 2015 spin-glass paper by LeCun ? The paper naively modeled a toy feedforward net as a Gaussian spin glass. Specifically, a Gaussian p-spin spherical spin glass Hamiltonian (via the CLT on randomized , etc.). They just assumed independence + uniformity + redundancy, then forced the loss to look like what felt like a good story. But it never checked the core assumptions. And anyone who actually knows start mech also knows that there are a wide range of spin glass models. Small changes in the disorder distribution (Gaussian vs heavy-tailed Lévy couplings) completely alter the landscape, critical points, and minima structure. Importantly, strongly correlated systems can live in a completely different universality class from random Gaussian objects! This is elementary disordered systems physics (Bouchaud, Galluccio et al., late 90s). The paper skipped that homework entirely. It told a good story. But it was more politics than science. It’s one thing to be a misinformed idiot (his words, not mine)....It’s far worse to slap your name on a paper outside your depth, promote it as serious theory, and make the whole field dumber. I guess I should thank @ylecun. Back then, I was a scientific advisor to Larry Page’s family and had some free cycles. I realized I could do better work than this in my spare time, and with no funding. Science self-corrects slowly. Stay tuned while I explain the difference between @ylecun politicking and the actual theory behind why AI works.
2
8
2
66
31,651