Computer scientist
& designer
Based in
Barcelona
A small neural network learns to tell two shapes apart, live in the browser – and you watch what happens inside it. Every neuron folds the plane along a line; together they cut it into flat pieces, the network's activation regions, and the thick line is where its answer changes. My bachelor thesis at the University of Münster asked whether the loss function a network learns with changes these pieces. Neural Folds runs the thesis experiment itself, updated where the original design held one loss back, in one sentence you can change.
Role
Bachelor thesis (University of Münster, 2026) – research, then interaction design, visual design and code
Tools
Interactive bachelor thesis in explainable AI – JavaScript, Canvas, ported from PyTorch
The thesis answered its question in 81 pages and many charts: depth and the data shape a network's activation regions far more than the loss function does. That's readable for researchers. I wanted anyone to see what happens inside a network – and to see the findings for themselves instead of taking my word for it.
The networks are small enough to train in a browser in under a second, so Neural Folds runs the thesis setup itself: the same datasets, architectures, losses and training protocol, ported from PyTorch. With the thesis's own settings its region counts matched the thesis results – then I updated the setup where it was unfair to one loss.
Each region is a flat pastel field, each neuron's fold a thin ink line, the decision boundary one thick line – the visual language of my other work instead of a chart. Point at a piece and a row of dots shows which neurons are on there.
The variables sit in one panel, every option a button in its own colour, and a sentence says what is running. After each run, one line says what it showed – and only what this run really shows, like the folds still moving long after the answer is right.
An interactive version of my thesis that runs on any phone, with the full thesis as a PDF next to it. The three main findings – depth matters most, hard data folds near the boundary, the loss changes little – are things you can try yourself.
I updated the experiment to fit the research question better. A 2-dimensional embedding, as in the thesis, held harmonic loss back: it learns from distances in that embedding, and two dimensions squeeze the last hidden layer's five. Cross-entropy and MSE can't use extra dimensions – with two classes every head decides by one straight boundary – and the activation regions stay the same, so Neural Folds now uses a 5-dimensional embedding for all three losses. I also re-ran every setting with 60 runs instead of the thesis's 10, which separates real differences from chance. The main findings hold: depth turns about 15 pieces into 140–235 with four layers, while the loss changes the count by at most 35. With the new embedding harmonic loss catches up on the spiral with two and three layers (72 % and 76 %, against 67 % and 70 % before) and stays behind only with four (76 % against 84 %). The spiral itself is solved by width, not depth: eight layers of five stay below 85 %, two or three layers of sixteen reach 95 % – so Neural Folds also offers sixteen neurons a layer, with the embedding as wide as the last layer. Beyond the thesis, Neural Folds adds a fourth hidden layer and counts the final pieces on a 1600 × 1600 grid instead of 800 × 800. The piece shows one run at a time, with its own random numbers, and four of the thesis's measures, not the distance measures.
