NN Timeline
Neural network architectures through time
Neural network architectures through time
A notes-first walk through the architectures that shaped modern deep learning — from the perceptron to the transformer. Each chapter pairs a science note (motivation, math, intuition) with a reference implementation in the nn_timeline package.
The timeline
NoteStatic MVP: interactivity coming
This sketch is a static placeholder. The roadmap is to make it interactive and dynamic:
- Hover / click each node to expand into mechanism + math + minimal sketch without leaving the page (better recall, less navigation friction).
- Sub-branches for parallel innovations (e.g., attention’s split into additive vs. multiplicative; positional encoding variants; LLaMA-style stack).
- Evolving updates — new architectures appended automatically as the registry grows; deprecated branches greyed out rather than removed so the why we moved on is preserved.
- Cross-links between related nodes (e.g., LSTM gates ↔︎ GRU gates ↔︎ Transformer gating in SwiGLU) to make conceptual lineage visible.
How to read this book
- New to the math? Start with Mathematical Prerequisites — a one-page reference for the linear algebra, calculus, and probability used throughout.
- Start with Foundations for the math and intuition.
- Each later chapter assumes the previous one; cross-references point back when a derivation depends on earlier material.
- Code references in each note point to the corresponding
nn_timeline.layers.*ornn_timeline.archs.*module.
Project
- Source: github.com/surafelml/nn-timeline
- Install:
pip install nn-timeline - Contributors: welcome — please reach out to the author.