Vinit Vyas
WritingToolsTopicsAbout

Topics

numerical-stability

2 posts

Mar 24, 2026·102 min read·foundation

Floating Point: Designing a Number System from 32 Bits

Start with a blank 32-bit register and one question: how do you encode real numbers in binary? Each piece of IEEE 754 float32, the sign bit, biased exponent, implicit leading 1, subnormals, arrives as the only reasonable fix to a concrete problem. Then connect representation to arithmetic: the alignment step that erases small terms during addition, rounding that breaks associativity, catastrophic cancellation, and why 0.1 + 0.2 returns 0.30000000000000004.

Oct 30, 2025·93 min read·advanced

Backpropagation Part 3: Systems, Stability, Interpretability, Frontiers

Theory assumes infinite precision; hardware delivers float16. Bridge the gap between mathematical backprop and production systems. In this post, we cover a lot of "practical" ground from PyTorch's tape to mixed precision training, from numerical disasters to systematic testing, from gradient monitoring to interpretability. What breaks, why, and how to fix it.

2026
GitHubXLinkedIn