
ML, history, space & sciencey stuff. Research Eng @ Google DeepMind. Opinions are my own etc. Find me @adabstract.bsky.social & @ncasagrande@mastodon.social
@ Google DeepMind
Joined January 2010
- Tweets2.4K
- Following247
- Followers816
- Likes3.1K
Norman Casagrande retweeted
How should we set the rank for LoRA?
Our new post derives a theory for *exactly* computing the minimum LoRA rank necessary for any SFT dataset.
And it works. In practice, we can predict rank across settings with error rates below 5%:
I asked Gemini 4 Carbon to crack an unread 1466 Sforza Renaissance cipher. Unaided, it used its vision and research capabilities to decipher the text.
Gemini:
- transcribed 15th-century cipher characters from manuscript scans
- ran blind statistical decoding attempts
- pivoted to searching digitized European archives for clues
- found a handwritten flyleaf chart in Paris showing how Milan’s cipher office built syllable tables
- widened its search to all Sforza keys and spotted an unindexed gap in Vienna Codex 2398
- read Tranchedino’s 15th-century Latin index in Vienna and found Giovanni Bianco’s 1465 key on folio 47r
- mapped the key signs to decode all 18 encrypted lines in Italian
- uncovered warnings of Savoyard reprisals after an ambush on the new Duke of Milan, plus Louis XI’s secret three-marriage plan
Full details:
fofr.ai/bianco-1466-cipher
Norman Casagrande retweeted
Hi all, I have a new result I'm excited to share. It turns out that *all existing implementations* of softmax and cross-entropy (that's JAX, PyTorch, textbooks, etc) have a subtle bug --- two bugs, actually. A simple rewrite fixes both, and eliminates "slingshots" when grokking:
2.58 TV/m acceleration gradients using Laser Plasma Wakefields confined in carbon nanotubes:
researchgate.net/publication…
If staged properly, it would allow LHC's 13.6 TeV 27 km ring to be replaced by an accelerator that could fit in a typical bedroom.
Norman Casagrande retweeted
If you missed the rollout in @googleflowmusic last month, now you can check out Lyria 3.5 in Gemini too! It’s a great model with tons of improvements over Lyria 3 (especially vocals).
Our new Lyria3.5 model is seriously amazing (credit to my colleague @_andrea_agos) : flowmusic.app/song/d73f4b9e-…
1
2
201
Norman Casagrande retweeted
Meet Lyria 3.5, the newest music model from @GoogleDeepMind, now powering Flow Music:
🎤 Vocals: More expressive, dynamic singing
🎸 Musicality: Richer arrangements with tracks that flow naturally.
🎛️ Controls: Better at following creative directions - now featuring BPM control and exportable stems for full-length songs!
Try it now at flowmusic.google! 🧵
Norman Casagrande retweeted
🏛️ Unveiling a new way to converse with antiquity with the "Predicting the Past" skill for Google @antigravity.
This agentic AI partner expands historical research by bridging Gemini’s reasoning with our specialized models, Aeneas and Ithaca.
🏛️ We’re unveiling a new way to converse with the ancient world.
By grounding Gemini directly in our expert models Aeneas and Ithaca, our Predicting the Past Skill in Google @antigravity lets historians study Greek and Latin texts using plain English. 🧵
Norman Casagrande retweeted
Bingo. "Strategy must precede action".We said this when the attack on Iran began and all the "shut up, we are crushing them!" Twitter responses followed.
Those who have lived long enough to watch this movie a few times already knew the score. It ain't ever that easy in West Asia.
At a broad level, it’s important to acknowledge a hard truth: this war is a textbook case of the old saying - "Strategy must precede action"
The underlying assumption in the US and Israel was that weakening Iran kineticly would eventually lead to the collapse of the regime and that a sustained U.S.-Israeli campaign, targeting Supreme Leader Ali Khamenei, could trigger systemic change thay will change the Middle East.
But this war overlooked a critical variable: the Islamic Republic of Iran is a different kind of actor. Traditional cost-benefit calculations don’t apply in the conventional sense.
Moreover, the war has generated second-order effects that have made the strategic landscape more complex — not less. From Iran’s growing assertiveness around the Strait of Hormuz, to the hardening of its internal decision-making processes, to the rising influence of Mojtaba Khamenei and the expanding dominance of the IRGC, the Iranian system has, in many ways, become more rigid and more ideological.
These dynamics are pushing the administration into a narrowing set of options, none of them good. The choice increasingly looks like this: accept a deal that is, in essence, a strengthened version of the previous nuclear agreement, or return to military escalation that carries significant regional risks without guaranteeing meaningful change in Iran’s behavior.
In effect, this war has helped shape what could be called “Islamic Republic 3.0” — a system forged not only through pressure, but also through strategic miscalculation. While the regime may have been weakened militarily and economically, it has, paradoxically, been strengthened internally, particularly among its core base.
This may well be the campaign’s most significant strategic miscalculation.
The protests inside Iran had left the regime increasingly exposed, struggling to respond to public demands, led by an aging and ailing supreme leader. There was a moment of internal vulnerability.
Yet the campaign, despite its tactical achievements, has given the regime a renewed sense of purpose at a time when it was fighting for its political future. Instead of weakening it from within, it has helped consolidate its base and rally its supporters.
It remains unclear how this will end. But at this stage, one conclusion is difficult to avoid: alongside tactical gains, the war has produced a more challenging strategic environment for Iran’s neighbors, for Israel, and for the United States.
And most importantly, Iran’s leadership has no intention of capitulating. Neither pressure nor escalation is likely to force a deeply ideological regime to abandon its foundational principles.
There is no decisive blow. No silver bullet.
Only two realistic paths remain:
a deal that looks remarkably similar to what Iran was willing to consider before the war — or an expanded conflict with no clear endgame.
This is the reality.
#IranWar
Norman Casagrande retweeted
We’ve watched you create the impossible with @FlowbyGoogle… today, the Flow family is growing. 🚀
Meet @googleflowmusic (formerly ProducerAI) - a standalone site that helps you create, share, and remix original music. Using natural language prompts, you can turn your imagination into fully produced tracks.
🌊 Flow = Images & Videos
🎵 Flow Music = Songs & Playlists
Norman Casagrande retweeted
Rolling out today, you can create longer tracks in Gemini for FREE!
Select “Create music” in the tools menu and “Thinking” or “Pro” from the model picker. Give it a try, and share your creations in the replies. 👇
Norman Casagrande retweeted
Longer tracks are here with Lyria 3 Pro in Gemini!
From experimenting with different styles to generating tracks with complex transitions, Lyria 3 Pro makes it easier to bring your full vision to life.
Rolling out today to Google AI Plus, Pro, and Ultra users.
Learn more 🧵
Norman Casagrande retweeted
Three days ago I left autoresearch tuning nanochat for ~2 days on depth=12 model. It found ~20 changes that improved the validation loss. I tested these changes yesterday and all of them were additive and transferred to larger (depth=24) models. Stacking up all of these changes, today I measured that the leaderboard's "Time to GPT-2" drops from 2.02 hours to 1.80 hours (~11% improvement), this will be the new leaderboard entry. So yes, these are real improvements and they make an actual difference. I am mildly surprised that my very first naive attempt already worked this well on top of what I thought was already a fairly manually well-tuned project.
This is a first for me because I am very used to doing the iterative optimization of neural network training manually. You come up with ideas, you implement them, you check if they work (better validation loss), you come up with new ideas based on that, you read some papers for inspiration, etc etc. This is the bread and butter of what I do daily for 2 decades. Seeing the agent do this entire workflow end-to-end and all by itself as it worked through approx. 700 changes autonomously is wild. It really looked at the sequence of results of experiments and used that to plan the next ones. It's not novel, ground-breaking "research" (yet), but all the adjustments are "real", I didn't find them manually previously, and they stack up and actually improved nanochat. Among the bigger things e.g.:
- It noticed an oversight that my parameterless QKnorm didn't have a scaler multiplier attached, so my attention was too diffuse. The agent found multipliers to sharpen it, pointing to future work.
- It found that the Value Embeddings really like regularization and I wasn't applying any (oops).
- It found that my banded attention was too conservative (i forgot to tune it).
- It found that AdamW betas were all messed up.
- It tuned the weight decay schedule.
- It tuned the network initialization.
This is on top of all the tuning I've already done over a good amount of time. The exact commit is here, from this "round 1" of autoresearch. I am going to kick off "round 2", and in parallel I am looking at how multiple agents can collaborate to unlock parallelism.
github.com/karpathy/nanochat…
All LLM frontier labs will do this. It's the final boss battle. It's a lot more complex at scale of course - you don't just have a single train. py file to tune. But doing it is "just engineering" and it's going to work. You spin up a swarm of agents, you have them collaborate to tune smaller models, you promote the most promising ideas to increasingly larger scales, and humans (optionally) contribute on the edges.
And more generally, *any* metric you care about that is reasonably efficient to evaluate (or that has more efficient proxy metrics such as training a smaller network) can be autoresearched by an agent swarm. It's worth thinking about whether your problem falls into this bucket too.
Norman Casagrande retweeted
It started with the silly idea of generating images and turning them into music. We didn’t know if it would work, and we didn’t care if anyone used it. We were building it for ourselves.
As musicians, we marveled at how this instrument could inspire and challenge us. A lot has changed since then, but that sense of wonder has remained.
Couldn’t be more excited to continue the journey as part of @GoogleLabs
Producer is now part of Google!
We’re proud to be joining @GoogleLabs and @GoogleDeepMind to build the future of music creation. Producer is here to stay, with more on the way.
Come make music with us!
Norman Casagrande retweeted
A little jam for all the absent minded professors out there.
(And demonstrating some of Lyria's flexibility and weirdness. I love the waka-waka Doppler-effect sound from 24-26 seconds in.)
Norman Casagrande retweeted
Alright, time for my own vibe-coding story. Over the last several months, we've been rewriting the plasma simulator used as an RL environment in our 2022 Nature paper from Matlab to JAX. An experimental version is now available on EPFL's Gitlab: gitlab.epfl.ch/spc/public/me…
Norman Casagrande retweeted
Some recent examples include:
- Sphere encoders: arxiv.org/abs/2602.15030 teapawt.org/tomgoldsteincs/status/…
- The wristband Gaussian loss: teapawt.org/MParakhin/status/20228…
- Distribution matching variational autoencoders: arxiv.org/abs/2512.07778
(3/10)
Norman Casagrande retweeted
Introducing Lyria 3, our new music generation model in Gemini that lets you turn any idea, photo, or video into a high-fidelity track with custom lyrics.
From funny jingles to lo-fi beats, you can create custom 30-second soundtracks for any moment.
See how it works. 🧵
I can finally share something I've been working on since last summer. And it's one of my oldest love: music & machine learning! :)
deepmind.google/models/lyria…
3
20
1,446





























