A deep-dive into how switching algebraic types in Haskell can make code automatically differentiable 'for free', without rewriting algorithms. Using the vector space monad (V s a) as a drop-in replacement for lists, a simple dictionary insert operation becomes a differentiable tensor product update. The post connects this

5m read timeFrom blog.sigfpe.com
Post cover image
Table of contents
IntroductionThe Good Old Vector Space MonadDictionariesDeltaNetCan we do this to other algorithms

Sort: