Shrinking Models by Sharing Weights — K-Means-based Quantization

Group a neural network’s weights into a few representative values with K-Means, and you can shrink the model several-fold with almost no accuracy loss. We explore it with an interactive widget where you watch the clusters converge and the storage shrink in real time. (Deep Compression, Han et al. 2016)

June 6, 2026 · rick

Integer-Arithmetic-Only Neural Network Inference — Linear Quantization

Beyond storing weights as integers — running the multiplications and additions entirely in integer arithmetic at inference. We connect reals and integers with the affine map r = S(q − Z), and explore it with a widget where you change the scale and zero point and watch the quantization error. (Jacob et al. 2018, the basis of TFLite integer quantization)

May 9, 2026 · rick

Data Types in the Deep Learning Era

INT8, FP16, BF16, FP8, FP4 — what do the data types you keep seeing in deep learning actually mean, and how do bits turn into numbers? We take them apart one by one, with widgets where clicking a bit updates the formula and value in real time.

April 12, 2026 · rick

Do LLMs Have Thinking Styles? REI-40 Experiment on 5 Frontier Models

We administered the REI-40 dual-processing personality inventory to 5 frontier LLMs. The results reveal distinct ’thinking style’ profiles — from neutral responders to rational enthusiasts.

January 24, 2026 · rick

Steering GPT-2's Emotions with Sparse Autoencoders

Finding emotion-related features in GPT-2 using OpenAI’s pretrained SAE, then training one from scratch. Feature patching turns ‘good person’ into ‘shit’.

February 16, 2025 · rick

K-means, GMM, EM: Three Nested Russian Dolls of Clustering

K-means is actually an extreme case of GMM, and GMM is the canonical application of the EM algorithm. How these three connect within a single framework, and how information geometry explains the relationship.

December 10, 2023 · rick

Information Geometry: How AI Learns Most Efficiently

Just as Newton’s F=ma describes the physical world, information geometry describes how AI learns. An intuitive guide for beginners.

January 9, 2021 · rick