Leann Chen (@leannchn) profile picture

not a chinese spy

Joined January 2024
Photo by Leann Chen (@leannchn)Photo by Leann Chen (@leannchn)Photo by Leann Chen (@leannchn)Photo by Leann Chen (@leannchn)Photo by Leann Chen (@leannchn)Photo by Leann Chen (@leannchn)Photo by Leann Chen (@leannchn)Photo by Leann Chen (@leannchn)Photo by Leann Chen (@leannchn)Photo by Leann Chen (@leannchn)
Boba tapioca balls/pearls are polymers. Their chewiness comes from long starch molecules tangled with water, and that structure changes when they are cooked, chilled, or reheated. I made a tiny interactive demo of the microstructure: leannchen86.github.io/matsci…
1
2
24
5,177
Leann Chen retweeted
I was shocked that 3/4s of designers work in coding agents rather than design tools. This is crazy?? Designers deserve a tool built for them, not just for developers. That's why I'm building @proto_ide, the designer’s IDE. The shape of Claude Code and Cursor, but with every design feature you wish they’d ship. Early access signups are open. If you want a tool that finally unlocks your full creative potential, sign up at prototypes.fun :)
284
115
45
1,496
166,029
neural networks are just layers of data transformation
171
sigmoid vs. relu
3
226
For GPT pretraining, if we corrupt the data by placing an EOS (end-of-sequence) token in the middle of a document, it’s no surprise that the model’s structural learning suffers. But what if we replace that misplaced EOS with an ordinary token like “uh” or “constitution”? Turns out they’re almost equally harmful.
1
160
2/ We continued pretraining GPT-2 124M under controlled conditions on PMC articles and government reports. In each document, we moved one EOS from the true ending to an internal join while keeping the EOS count, text, packing, token budget, and compute fixed. This increased continuation NLL after the join in every paired seed - equivalent to roughly 7.5–8% higher perplexity on those targeted continuations.
1
115
3/ To test whether the harm was specific to EOS, we ran a follow-up on the PMC setup. Every document kept its final EOS; only the token at the internal join changed: Normal: chunk 1 → newline → chunk 2 → final EOS EOS: chunk 1 → EOS → chunk 2 → final EOS “uh”: chunk 1 → “uh” → chunk 2 → final EOS “constitution”: chunk 1 → “constitution” → chunk 2 → final EOS Across nine fresh paired seeds, all three substitutions produced nearly the same degradation (EOS was only slightly worse).
15
I've had fun visualizing ml concepts with manim. Here’s a small two-layer MLP, where each layer computes h = ReLU(Wx+b). This viz lets you see that every connection is a single weight value.
1
1
6
1,730
h = ReLU(Wx+b): a bias vector is added and ReLU is applied elementwise. The output h is called the layer’s activation, hidden vector, or hidden representation
1
69
h = ReLU(Wx+b): the hidden vector becomes the next layer’s input. The process repeats with a new weight matrix and bias
41
Pretraining data is often curated by quality scores or semantic similarity, but neither necessarily tells us whether selected docs give a model distinct learning signals. In a small GPT-2 test, we took 10 FineWeb documents spanning different FineWeb-Edu quality scores and asked: if we can keep only 5, which set gives the most distinct gradient signals? Turns out the FineWeb-Edu top 5 ranked in the bottom 4% of all sets by gradient diversity.
1
1
1
259
Turns out hidden-state similarity had near zero correlation with exact gradient similarity (Spearman ρ = −.031; set overlap 2/5). CountSketch, despite reducing 14.2M gradient values to just 1,024, closely preserved the map (ρ = .989; 5/5 overlap).
1
30
As a final stress test, we recomputed the same document gradients after 40,000 continued-pretraining updates, but the new map correlated only ρ = .281 with the original. CountSketch preserved gradient geometry very well at a checkpoint, but how long that geometry remains useful during training is a separate question.
17
Made a little web simulation of our Fremont datacenter! You can drag & drop SSDs and see various rack stats. Ping me if you’d like other SSD types added. leannchen86.github.io/ssd-ra…
3
339
Leann Chen retweeted
Ever wondered what your white name should have been? Introducing: whatismywhitename.com Upload a picture of you, and let the puppy guess your name! Let's test out nominative determinism 🫡 (Immigrants who named themselves will correlate more highly. Give us feedback plz) Our thanks to: - @modal for their generous credits toward training this meme model - @diffbot for the clean, diverse dataset! - @leannch86920 for the training research! - Everyone NOT named David (biggest & noisiest dataset ever)
7
8
62
7,904
Based on Foundations of Computer Vision
2
317