Following my curiosity into AI
Or, where I disappeared to between full-time jobs
RecreationsJul–AugRebuilding classic papersRun
ExperimentationSep–NovTesting my own ideasFinding the thread
At the end of May, help arrived and I stepped back from full-time parenting duties. I'm grateful for those months with my daughter, even if the hardest problem I solved most days was figuring out which cry meant what.
With some breathing room, I took stock. Meta had laid me off partway through my leave. Before that, I'd survived round after round of cuts, watched skilled colleagues leave, and started to burn out from the constant whiplash of shifting managers, teams, and projects. My designer friends across the industry were feeling the same squeeze, pressured to deliver ever faster and reinvent their workflows overnight.
The default move was to polish my portfolio and start interviewing. But immediately repackaging these recent years felt driven by fear. Instead, I wanted to feel that particular, painful growth of trying something new and relight the spark that got me excited about technology in the first place.
Now, I know taking time away from the job search is a privilege when so many people are fighting to land their next role, and I didn't take it lightly. I decided to spend a few months following my curiosity about how AI works under the hood, to see how deep into machine learning I could actually get.
"Machine learning? Do you want to become an AI researcher?" my design friends asked, looking puzzled. In an abstract sense, maybe? I'm under no illusion that a few months of self-study puts me on par with computer scientists or PhDs. This wasn't a goal-driven bet. It was a process-driven one. I'm fascinated by AI, and I wanted to see what I could actually build and train on my own machine.
Crawl: fundamentals
When I looked around there were two kinds of advice about learning machine learning. One says get the right degree and spend years grinding through the maths. The other, as Andrew Ng puts it, says basic coding and high school math are enough to start, and you learn the rest as you go. The first looked like a wall. I'll go around, thanks.
I also liked the idea that mastering something takes 10,000 hours, but getting dangerous takes only 20.
I started with Andrej Karpathy's Zero to Hero series. I'd listened to bits of it like a podcast before; this time I typed along and ran every cell until I matched his results. When he said what we were about to build, I paused the video and tried writing it myself first. Backpropagation by hand was the most intense part.
What I took away:
- The research loop: load data, start with the simplest model that could work, overfit one tiny batch to prove it learns, train for real, then study losses, activations and gradients and test small improvements.
- PyTorch from the inside: I wrote attention and other layers by hand.
- Tensor kung-fu: view, permute, transpose, unsqueeze…
- Buggy code still trains, just worse, so a falling loss curve proves little.
I also started reading about how networks represent what they learn (1, 2, 3).
My go-to sources for the maths: 3Blue1Brown, DataMListic, Visual Kernel.
One humbling moment: I worked out by hand a faster way to compute IsoScore than its paper's. I was impressed with myself for about two seconds, until ChatGPT confirmed it and offered an even faster one.
Walk: recreations
The classics
What draws me most is world models, like a playable game generated on the fly (1, 2, 3). So I headed into images.
The "hello world" here is a network that reads handwritten digits. I wrote the optimizers myself and animated how its neurons learn. With stochastic gradient descent (SGD), the standard method, some neurons lag behind (see 11 below); with Lion, which always takes the same size step, they all learn together.
Neurons learning to read digits. Left: SGD. Right: Lion.
Then I flipped it around to drawing digits. A VAE, which squeezes each digit through a small bottleneck and rebuilds it, was blurry but steady.

My first rebuilt digits. I took this screenshot like a proud parent.
Next came the GAN. One network draws and another judges, and each pushes the other to get better. GANs are exciting because their images come out with sharp edges instead of blur. It's also where it started to feel like the model was making something new instead of rebuilding what it was shown. Mine didn't learn at all until I found two details I'd missed in the paper. Even then a small change in settings could break it, and I understood firsthand why the field mostly moved on.

The GAN, morphing from one digit to another.
The GAN, training stably.
Working backward
From there I could have walked forward through every GAN and VAE the field moved past. Instead I jumped to the present and dug backward from modern papers. It was a shock. A modern paper is a set of Russian nesting dolls: paper A uses the architecture of paper B, modified as in paper C, trained the way paper D recommends.
After considering several options, I chose MAETok as a root and branched out through its references, building the pieces from scratch as I went. The result was a vision transformer autoencoder that squeezes small color photos into a short code (its hidden space) and rebuilds them. The first results looked like pixel art.
The autoencoder learning to rebuild photos.
In the video you can catch flickers where the picture falls apart: spikes in the training error. I built a tool to replay the steps before each and found two kinds: sudden ones and slow swells. A loss sweep around each spike gave me an answer, if not the whole story: every part of the network was stepping in a good direction, but together they overshot. Halving the learning rate made the spikes go away (how I debugged it).

Training error over 50,000 steps. Each spike is a flicker.
From rebuilding to generating
To make new images I needed a second model. A flow model starts from random noise in the autoencoder's hidden space and nudges it, step by step, toward something like a real photo's code. The autoencoder's decoder turns that code into pixels.
Before training it, I fed pure noise straight into the decoder. What comes out is a kind of fingerprint of the decoder's imagination: the shapes and colors it falls back on when it's given nothing to work with. Mostly, I just thought they looked neat.

Noise, as the decoder sees it.
Then I trained it. My first flow model had about 10M parameters, working on top of a 1M-parameter autoencoder. Once training finished, I asked it for new images and got back what looked like Rorschach blots.

My first generated images: color Rorschach blots.
Scaling the flow model up to 21M parameters and 150 passes over 100,000 photos didn't get me out of what I started calling blurry-blob land. So I circled back to the autoencoder. If its hidden space were better organized, the generator would have an easier map to learn. I tried different kinds of masking, aligning the codes of different views of the same photo, and regularizers to shape the hidden space.
Run: experimentation
A model that teaches itself
I didn't want to distill from a big pretrained model. I'm more interested in models that teach themselves.
So, building on ideas from a self-teaching autoencoder blog post, I made an autoencoder that never compares pixels. It looks at its rebuilt photo and the original through a frozen copy of its own eyes, and asks whether it tickles its brain the same way the original does. The better it sees, the better it judges its own work, and the better it draws.







1/8One small model over 200,000 training steps: the same eight photos on top, its attempts below. It learns in strange leaps.
To make the loop easier to follow, I built an interactive animation of it with ChatGPT.
It was fragile. As I made it bigger, everything started turning green 😕 I eventually got to the bottom of it.


Top: the photos. Bottom: the model's rebuilds, drifting green.
Building my own lab
My use of AI for code had been creeping up anyway, from asking which function to use to pasting blocks. In mid-September I made it deliberate: the strength and independence of Opus 5.5 is what led me to lean into agentic experimentation. I set Claude up to run my experiments overnight and had it build me a training dashboard: every run live, results side by side, and custom viewers for each model. I could check runs from my laptop or phone.
That changed my job: less code, more papers, turning their ideas into experiments and deciding what each result meant.
Ideas from papers
The idea that went furthest came from papers on generating pixels directly, without a separate hidden space. I tried it in October and carried my self-teaching trick along. Over many overnight runs, it and a few other ideas improved the standard image-quality score (FID, lower is better) from about 135 to 98.
Then I trained a bigger version on rented GPUs, telling it which of 1,000 things to draw.

Samples from the bigger model after 820,000 training steps.
Its final FID score was 42. Big labs reach single-digit FIDs with far more computing power. For one person at home, it's the result I'm proudest of.
November
Waves of sickness hit our house, followed by a terrible wisdom tooth infection and removal that laid me out for a while. Then my partner took a week off and we made clay things together.
Wrapping up
Now the sabbatical is ending. I started it out of curiosity, and I'm finishing it with a much deeper understanding. In June I was typing out backpropagation by hand. By October I was turning papers into experiments in a lab I built myself, running overnight while I slept.
But I'll be honest about the part I didn't expect: it was lonely. Self-study is a great workout for the brain, and I loved being in over my head on something new. But I had no one to bounce ideas off, and no one to get excited with when a run finally worked. AI makes a tireless lab partner, but it isn't a team.
That's what I'm looking for next: a full-time role on a team with a mission, solving hard problems together. I'm bringing the spark back with me, along with a ground-up grasp of how these models learn, from the maths of gradients to the geometry of what they represent.
Research moves to the back burner, but it won't go cold. I'll keep reading what's new in the field, and keep the home lab cooking.