Calc Consulting (@CalcCon) header
Calc Consulting (@CalcCon) profile picture

Calculation Consulting is a boutique consultancy that specializes in machine learning, AI, and data science

San Francisco
Joined January 2013
Photo by Calc Consulting (@CalcCon)Photo by Calc Consulting (@CalcCon)Photo by Calc Consulting (@CalcCon)Photo by Calc Consulting (@CalcCon)Photo by Calc Consulting (@CalcCon)Photo by Calc Consulting (@CalcCon)Photo by Calc Consulting (@CalcCon)Photo by Calc Consulting (@CalcCon)Photo by Calc Consulting (@CalcCon)Photo by Calc Consulting (@CalcCon)
๐—ฑ๐—ผ๐—ฒ๐˜€ ๐—ช๐—ฒ๐—ถ๐—ด๐—ต๐˜๐—ช๐—ฎ๐˜๐—ฐ๐—ต๐—ฒ๐—ฟ ๐˜„๐—ผ๐—ฟ๐—ธ ๐—ณ๐—ผ๐—ฟ ๐—Ÿ๐—Ÿ๐— ๐˜€? Yes! We trained a character-level GPT on Shakespeare using SGD with momentum (SGDM). ChatGPT ran this, using 5 seeds, tracking every 500 updates. Below I plot the test loss vs average alpha โŸจฮฑโŸฉ , and how often it predicted the next character correctly on held-out text The average alpha here is a confidence-weighted, tail-size-adjusted average. Notice that even though the test accuracy keeps increasing, the the test loss is a minimum: โŸจฮฑโŸฉ โ‰ˆ 2
๐—›๐—ผ๐˜„ ๐˜„๐—ฒ๐—น๐—น ๐—ฑ๐—ผ๐—ฒ๐˜€ ๐—ช๐—ฒ๐—ถ๐—ด๐—ต๐˜๐—ช๐—ฎ๐˜๐—ฐ๐—ต๐—ฒ๐—ฟ ๐˜„๐—ผ๐—ฟ๐—ธ ๐—ณ๐—ผ๐—ฟ ๐—Ÿ๐—Ÿ๐— ๐˜€? One question I get when we try to publish our WeightWatcher work is whether you can really tell how well a language model is learning just by looking at its weights. The classic Shakespeare GPT experiment is small enough to try for yourself. We trained a character-level GPT on Shakespeare using SGD with momentum. Every 500 updates, we measured how often it predicted the next character correctly on held-out text. We also ran WeightWatcher on the modelโ€™s weights. Each dot is an average across five training runs. ๐—™๐—ผ๐—น๐—น๐—ผ๐˜„ ๐˜๐—ต๐—ฒ ๐—ฐ๐˜‚๐—ฟ๐˜ƒ๐—ฒ ๐—ณ๐—ฟ๐—ผ๐—บ ๐˜๐—ต๐—ฒ ๐—น๐—ผ๐˜„๐—ฒ๐—ฟ ๐—ฟ๐—ถ๐—ด๐—ต๐˜. โ€ข ๐Ÿฑ๐Ÿฌ๐Ÿฌ ๐˜‚๐—ฝ๐—ฑ๐—ฎ๐˜๐—ฒ๐˜€ โ€” Average ฮฑ ~= 3.0. The model gets the next character right 29% of the time. โ€ข ๐Ÿด,๐Ÿฌ๐Ÿฌ๐Ÿฌ ๐˜‚๐—ฝ๐—ฑ๐—ฎ๐˜๐—ฒ๐˜€ โ€” Average ฮฑ ~= 2 as accuracy climbs to 50%. Thatโ€™s the marginal value our renormalization group theory predicts. โ€ข ๐Ÿฎ๐Ÿฌ,๐Ÿฌ๐Ÿฌ๐Ÿฌ ๐˜‚๐—ฝ๐—ฑ๐—ฎ๐˜๐—ฒ๐˜€ โ€” Accuracy reaches 54.21%, while average ฮฑ drifts back up to about 2.21. ๐—ช๐—ต๐—ฎ๐˜ ๐—ด๐—ผ๐—ฒ๐˜€ ๐—ถ๐—ป๐˜๐—ผ ๐˜๐—ต๐—ฎ๐˜ ๐—ฎ๐˜ƒ๐—ฒ๐—ฟ๐—ฎ๐—ด๐—ฒ? For each layer, WeightWatcher fits a power law to the largest eigenvalues in its weight spectrum. The exponent of that fit is ฮฑ. Layers differ in size, and some have only a few eigenvalues in the fitted tail. We give a layer more weight when more eigenvalues support the fit and when the fitted power law follows the observed tail more closely. ๐—œ๐—ป๐—ฑ๐—ถ๐˜ƒ๐—ถ๐—ฑ๐˜‚๐—ฎ๐—น ๐—น๐—ฎ๐˜†๐—ฒ๐—ฟ๐˜€ ๐˜ƒ๐—ฎ๐—ฟ๐˜† ๐—พ๐˜‚๐—ถ๐˜๐—ฒ ๐—ฎ ๐—ฏ๐—ถ๐˜. Theiweighted average ฮฑ ~= 2 as accuracy improves through the first several thousand updates. After 8-10,000 updates, the model gains another four percentage points while the average ฮฑ >~ 2.2, a slight drift upward. Of course, no one really trains LLMs for crazy long periods of time. Still, one can ask ๐—ช๐—ต๐˜† ๐˜๐—ต๐—ฒ ๐—น๐—ฎ๐˜๐—ฒ-๐˜€๐˜๐—ฎ๐—ด๐—ฒ ๐—ฑ๐—ฟ๐—ถ๐—ณ๐˜ ? โ€ข Is that drift sensitive to how we take the weighted average? โ€ข Or does the most accurate checkpoint genuinely sit a little away from marginality? These are interesting questions to be sorted out. You can run this yourself, or ask ChatGPT to help. Train Shakespeare GPT, run WeightWatcher every 500 updates, and plot accuracy against your own weighted average ฮฑ.
2
5
294
Calc Consulting retweeted
Number of open math problems solved since the launch of the new Left to Solve site Almost all are likely extremely minor, but illustrates a problem coming for all of academia: we have no mechanism for absorbing new knowledge (even minor work, which it won't all be) at this rate
152
69
24
777
74,287
"I'm not trying to create a king. I'm trying to prevent one." Nick Freitas imagines a future President Ocasio-Cortez sending troops to take Americans' guns, then asks who would stand next to him if he refused to hand his over. @NickJFreitas @JoelWBerry @ChristianHeiens
24
48
4
253
15,952
๐—›๐—ผ๐˜„ ๐˜„๐—ฒ๐—น๐—น ๐—ฑ๐—ผ๐—ฒ๐˜€ ๐—ช๐—ฒ๐—ถ๐—ด๐—ต๐˜๐—ช๐—ฎ๐˜๐—ฐ๐—ต๐—ฒ๐—ฟ ๐˜„๐—ผ๐—ฟ๐—ธ ๐—ณ๐—ผ๐—ฟ ๐—Ÿ๐—Ÿ๐— ๐˜€? One question I get when we try to publish our WeightWatcher work is whether you can really tell how well a language model is learning just by looking at its weights. The classic Shakespeare GPT experiment is small enough to try for yourself. We trained a character-level GPT on Shakespeare using SGD with momentum. Every 500 updates, we measured how often it predicted the next character correctly on held-out text. We also ran WeightWatcher on the modelโ€™s weights. Each dot is an average across five training runs. ๐—™๐—ผ๐—น๐—น๐—ผ๐˜„ ๐˜๐—ต๐—ฒ ๐—ฐ๐˜‚๐—ฟ๐˜ƒ๐—ฒ ๐—ณ๐—ฟ๐—ผ๐—บ ๐˜๐—ต๐—ฒ ๐—น๐—ผ๐˜„๐—ฒ๐—ฟ ๐—ฟ๐—ถ๐—ด๐—ต๐˜. โ€ข ๐Ÿฑ๐Ÿฌ๐Ÿฌ ๐˜‚๐—ฝ๐—ฑ๐—ฎ๐˜๐—ฒ๐˜€ โ€” Average ฮฑ ~= 3.0. The model gets the next character right 29% of the time. โ€ข ๐Ÿด,๐Ÿฌ๐Ÿฌ๐Ÿฌ ๐˜‚๐—ฝ๐—ฑ๐—ฎ๐˜๐—ฒ๐˜€ โ€” Average ฮฑ ~= 2 as accuracy climbs to 50%. Thatโ€™s the marginal value our renormalization group theory predicts. โ€ข ๐Ÿฎ๐Ÿฌ,๐Ÿฌ๐Ÿฌ๐Ÿฌ ๐˜‚๐—ฝ๐—ฑ๐—ฎ๐˜๐—ฒ๐˜€ โ€” Accuracy reaches 54.21%, while average ฮฑ drifts back up to about 2.21. ๐—ช๐—ต๐—ฎ๐˜ ๐—ด๐—ผ๐—ฒ๐˜€ ๐—ถ๐—ป๐˜๐—ผ ๐˜๐—ต๐—ฎ๐˜ ๐—ฎ๐˜ƒ๐—ฒ๐—ฟ๐—ฎ๐—ด๐—ฒ? For each layer, WeightWatcher fits a power law to the largest eigenvalues in its weight spectrum. The exponent of that fit is ฮฑ. Layers differ in size, and some have only a few eigenvalues in the fitted tail. We give a layer more weight when more eigenvalues support the fit and when the fitted power law follows the observed tail more closely. ๐—œ๐—ป๐—ฑ๐—ถ๐˜ƒ๐—ถ๐—ฑ๐˜‚๐—ฎ๐—น ๐—น๐—ฎ๐˜†๐—ฒ๐—ฟ๐˜€ ๐˜ƒ๐—ฎ๐—ฟ๐˜† ๐—พ๐˜‚๐—ถ๐˜๐—ฒ ๐—ฎ ๐—ฏ๐—ถ๐˜. Theiweighted average ฮฑ ~= 2 as accuracy improves through the first several thousand updates. After 8-10,000 updates, the model gains another four percentage points while the average ฮฑ >~ 2.2, a slight drift upward. Of course, no one really trains LLMs for crazy long periods of time. Still, one can ask ๐—ช๐—ต๐˜† ๐˜๐—ต๐—ฒ ๐—น๐—ฎ๐˜๐—ฒ-๐˜€๐˜๐—ฎ๐—ด๐—ฒ ๐—ฑ๐—ฟ๐—ถ๐—ณ๐˜ ? โ€ข Is that drift sensitive to how we take the weighted average? โ€ข Or does the most accurate checkpoint genuinely sit a little away from marginality? These are interesting questions to be sorted out. You can run this yourself, or ask ChatGPT to help. Train Shakespeare GPT, run WeightWatcher every 500 updates, and plot accuracy against your own weighted average ฮฑ.
1
1
4
611
notice that you want to use SGD with momentum if you use other optimizers, you may get screwy results
1
91
Calc Consulting retweeted
James Maynard (mรฉdaille Fields 2022) : on trouve des pรฉpites dans cette preuve de l'hypothรจse de Riemann, notamment une preuve plus simple et plus concrรจte des conjectures de Weil que celle de Pierre Deligne ; par lร , cette dรฉmonstration relรจve dรฉjร  de l'extraordinaire.
James Maynard (mรฉdaille Fields 2022) : "La preuve de l'hypothรจse de Riemann montre, je crois, que l'IA possรจde des qualitรฉs que nous appellerions crรฉatives - et un bon goรปt mathรฉmatique - si elles รฉtaient celles d'un humain. Et elle va probablement continuer ร  progresser".
37
643
87
4,833
484,382
ICLR reviews this year. 2 accepts. 1 reject. The reject had 1 complaint, that I cited my own papers (and presumably not theirs).
7
591
Calc Consulting retweeted
Elon Musk just sent a major message to Wall Street: โ€œThe AI bubble will burst next year.โ€ The cash crunch next year will be insane. AI stocks could fall. Here are 3 stocks Elon Musk is bullish on: 1) $GOOGL โ€” Alphabet
215
689
36
4,691
399,621
Calc Consulting retweeted
Replying to @Bencera
Early on, I was told, "Don't worry about people stealing your idea. If it's any good, people will dismiss it."
5
5
63
1,426
Calc Consulting retweeted
yep, i can confirm again Plato's key really works for embedding adapters. huge implication for vectordb/memory migration etc. but i just realized back in april my original implementation was inspired heavily by this UniCon work at ICLR2026, where they show that CLIP alignment is actually a rank-r approximation of RKHS (aka good old kernel method/SVM) and therefore has a closed-form solution! I looked at that poster and thought, hey this could be an embedding adapter!
๐Ÿ—๏ธ Introducing Plato's Key. A single rotation lets independently trained LLMs use each otherโ€™s representations as their own. No gradients required โœจ With @jerrywliu, @MorrisYau, and @HazyResearch. ๐Ÿงต hazyresearch.stanford.edu/blโ€ฆ
7
11
1
178
8,282
๐Ÿ‡บ๐Ÿ‡ธ
Before we eat, I would like to acknowledge that the land upon which we gather was secured by our great grandfathers who conquered the Shawnee, who had migrated back to Ohio after being driven out by the Iroquois, who had also conquered the Erie. Before them were the Fort Ancient people, before them the Hopewell, and before them the Adena. We named the Fort Ancient people after a fort they didnโ€™t build, the Hopewell after a guy who owned a farm outside Chillicothe, and the Adena after the governorโ€™s house down the road. Having exhausted the available property records, let us give thanks and eat. Amen.
203
BREAKING: President Trump says he is willing to pardon Nvidia, $NVDA, CEO Jensen Huang โ€œif necessary,โ€ per NY Post. Trump also tells Jensen Huang not to plead the 5th at his congressional testimony next week. President Trump is fully backing Jensen Huang.
422
932
225
12,885
933,024
Iโ€™m an OpenAI guy, but still, this is a very cool idea. A GitHub clone that integrates in LLM directly to review PRs, fix code, etc.
Introducing Claude Ship (beta): Claude can review your pull requests, work on fixes, and approve the ones your team's policy allows. The goal is to help you ship code as fast as you can write it.
1
8
913
Remember when Elon said there are no scientists, everyone is an engineer. Howโ€™s that working out?
HOLY SHIT. If true, things are going insane at xAI.
1
1
23
1,365
Drama
BREAKING: Nvidia, $NVDA, reinstates Jensen Huang as CEO, President, and Board Member, effective immediately.
154
here we go again
BREAKING: Robert Edward Grant claims Claude may have plagiarised his work to help prove the Riemann Hypothesis. Grant says he has written to Dario Amodei about parallels between Levent Alpรถgeโ€™s proof and the approach he was developing independently. The full 16 page letter has been posted here on X. Similar questions came up earlier this year over the Navierโ€“Stokes problem and the counterexample to Gromovโ€™s soficity conjecture. In both cases, several mathematicians claimed that their own chats may have been used to produce the proof. Itโ€™s virtually impossible to tell whether a particular chat shaped a modelโ€™s answer. So we will probably never know whether these particular claims are true or false. But whatโ€™s becoming clearer and clearer is that AI labs are training their models on our ideas at the frontier of human knowledge. I think this is particularly problematic for at least two reasons: The first is about intellectual property. If an idea I share in my chat turns up in your proof, where do we draw the line between whatโ€™s mine and whatโ€™s yours? The second is even more worrying. Frontier AI labs sell our knowledge back to us via paid subscriptions. They are literally privatising human collective knowledge.
7
398
Calc Consulting retweeted
People who missed Anthropicโ€™s ipo
264
1,821
165
25,118
901,924