Skip to content
@auto-differentiation

auto-differentiation

Comprehensive automatic differentiation framework

XAD - Comprehensive Automatic Differentiation

XAD is the fastest automatic differentiation library for C++ and Python, built for production-scale systems. Proven in codebases of hundreds of thousands of lines, with 1,200+ tests and ~99% coverage.

Ecosystem

Repository Description Language
xad Core AD library - forward & adjoint mode, JIT support, Eigen integration C++
xad-py Python bindings for XAD Python
QuantLibAAD Full QuantLib integration - compute all Greeks at once, up to 3 orders of magnitude faster than bump-and-reval C++
QuantLib-Risks-Py QuantLib risks from Python via XAD Python
xad-codegen High-performance native code generation backend for XAD - record-once/replay-many at maximum throughput (commercial) C++
ad-benchmarks Reproducible quant-finance benchmarks comparing XAD against CppAD, Adept 2, autodiff, and finite differences C++

Performance

XAD is the fastest open-source C++ AD library on four quant-finance workloads, benchmarked against CppAD, Adept 2, and autodiff. The optional JIT backend (xad-codegen) delivers a further 2x-5x speedup.

Benchmark chart comparing AD library performance

GCC 13.3, Intel Xeon Platinum 8488C, Ubuntu 24.04, -O3 -mavx2 -mfma, 10K MC paths. Full methodology and source: ad-benchmarks.

Why XAD?

  • Fastest AAD library for C++ - independently benchmarked
  • Production-proven in large-scale quantitative finance systems
  • Full QuantLib integration with 3 orders of magnitude speedup over bump-and-reval
  • Eigen compatible - drops into existing C++ codebases with minimal changes
  • 1,200+ tests, ~99% coverage
  • Python bindings available via pip install xad

Get Started

Documentation


If XAD is useful to you, please star the core repository — it helps others find it.

Pinned Loading

  1. xad xad Public

    Fast, easy automatic differentiation in C++

    C++ 433 48

Repositories

Showing 6 of 6 repositories
  • xad Public

    Fast, easy automatic differentiation in C++

    auto-differentiation/xad's past year of commit activity
    C++ 433 AGPL-3.0 48 3 (1 issue needs help) 1 Updated Sep 8, 2026
  • QuantLibAAD Public

    QuantLib with AAD

    auto-differentiation/QuantLibAAD's past year of commit activity
    C++ 43 16 1 1 Updated Jun 12, 2026
  • .github Public
    auto-differentiation/.github's past year of commit activity
    0 0 0 0 Updated May 13, 2026
  • ad-benchmarks Public

    Benchmark suite comparing C++ AD libraries: XAD, CppAD, Adept 2, autodiff

    auto-differentiation/ad-benchmarks's past year of commit activity
    C++ 6 MIT 2 0 1 Updated Apr 12, 2026
  • QuantLib-Risks-Py Public

    Fast Risks with QuantLib in Python

    auto-differentiation/QuantLib-Risks-Py's past year of commit activity
    Python 22 3 2 3 Updated Apr 2, 2026
  • xad-py Public

    High-Performance Automatic Differentiation for Python

    auto-differentiation/xad-py's past year of commit activity
    Python 21 AGPL-3.0 2 5 7 Updated Apr 2, 2026

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

C++ Python