Diff-zoo is a learning-focused handbook designed to demystify algorithmic differentiation (AD), the core technique powering modern machine learning frameworks. The project introduces AD from a foundational calculus perspective and gradually builds towards toy implementations that resemble systems like PyTorch and TensorFlow. It clarifies the differences and connections between forward mode, reverse mode, symbolic, numeric, tracing, and source transformation approaches to differentiation. Unlike production-grade AD systems that are often obscured by complex implementation details, these examples are deliberately simple and coherent to highlight the fundamental ideas. The repository is organized as a set of Julia notebooks, allowing learners to explore concepts interactively and compare different methods side by side. By stripping away unnecessary complexity, diff-zoo serves as both an educational resource and a practical guide for anyone.

Features

  • Step-by-step introduction to algorithmic differentiation concepts
  • Toy implementations resembling PyTorch and TensorFlow AD systems
  • Covers forward mode, reverse mode, symbolic, and numeric differentiation
  • Demonstrates tracing-based and source transformation approaches
  • Organized as Julia notebooks for interactive exploration
  • Provides a clear comparison of fundamental AD methods

Project Activity

See All Activity >

Categories

Machine Learning

License

MIT License

Follow Diff Zoo

Diff Zoo Web Site

Other Useful Business Software
Full-stack observability with actually useful AI | Grafana Cloud Icon
Full-stack observability with actually useful AI | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Diff Zoo!

Additional Project Details

Operating Systems

Linux, Windows

Programming Language

Julia

Related Categories

Julia Machine Learning Software

Registered

2025-10-02