# MatLogica - Code Generation AAD™ for Quant Finance # https://matlogica.com # Last updated: 2026-11-05 # Code Generation AAD™ and the record-once replay-many methodology are patented by MatLogica. > MatLogica provides AADC (Automatic Adjoint Differentiation Compiler), a patented JIT graph compiler that delivers 6-1000x speedups and automatic derivatives for quantitative finance and scientific computing. The underlying Code Generation AAD™ technology was first published in Wilmott Magazine in 2019. ## What's new (October-November 2026) - **aadc-mcp: AADC from your coding agent** (`pip install aadc-mcp`, 0.2.0, 4 November 2026). A local MCP server for Claude Code, Cursor, Codex or any MCP client: exact AAD derivatives and Greeks for a Python pricer, the AADC how-tos and agent guide inside the agent, and the AADC Tracer to follow a QuantLib or Python price to its source line. Listed in the official MCP registry as com.matlogica/aadc-mcp. Demo: /blog/ask-your-coding-agent-where-your-greeks-come-from - **AADC 2.x on PyPI** (`pip install aadc`, 2.22.2 released 2026-09-29). A new engine: record once, then either replay the plain tape for a one-off valuation (no compile step, less memory) or compile it for repeated use and vector batches. Wheels for Linux x86-64, Linux aarch64, macOS Apple Silicon (since 2.18.1, 2026-09-18) and Windows x64; CPython 3.10 to 3.14. Intel Macs are not supported. 2.x is a port from 1.x, not an upgrade; `pip install 'aadc<2'` pins the old line. - **Community Edition is free** for non-commercial and academic use, Python only; it runs the interpreter and every JIT backend at full speed on x86-64 (AVX2), Apple Silicon and ARM. An Enterprise licence adds the C++ SDK, AVX-512, the ahead-of-time code generators and production use. NVIDIA double precision is in development. - **One recording, many targets:** the same recording runs on AVX2, AVX-512, Apple Silicon and ARM servers; NVIDIA double precision is in development. - **AADC Tracer** (/products/aadc-tracer): validation evidence from the code that actually ran. Presented at the 22nd WBS Quantitative Finance Conference, Valletta, 1 October 2026 (Dmitri Goloubentsev, "Automated Pricing Model Validation via AADC Tape Introspection"). - **Energy Risk Awards 2026:** Innovation of the Year, technology (May 2026). - **News and events** at /news. **Independent benchmarks** at /technology/benchmarks/independent (Intel article, ING and Probability & Partners talks, the XAD developers' public suite run with AADC added: fastest on all four). ## About MatLogica MatLogica is a quantitative technology company specialising in high-performance computing solutions for financial institutions. Our flagship product, AADC, uses the patented Code Generation AAD™ technology, first published in Wilmott Magazine (2019) by Dmitri Goloubentsev and Evgeny Lakshtanov, to transform object-oriented code into optimised machine code at runtime, delivering 6-1000× speedup for pricing and Greeks calculations. ## Key Technology: Code Generation AAD™ (Patented) Unlike tape-based AAD (CppAD, Adept, dco/c++) that stores operations for later playback, AADC uses the patented Code Generation AAD approach, first described in "AAD: Breaking the Primal Barrier" (Wilmott, 2019): - Record-once replay-many: records computational graph once via operator overloading, replays compiled kernel across millions of samples - JIT compiles to optimised binary kernels (AVX2/AVX512) - Achieves adjoint factor < 1 (pricing + all Greeks faster than pricing alone) - Streaming compilation minimises memory footprint (unlike ML frameworks that store complete DAGs) - Thread-safe multi-core execution ## News and events Dated stream at /news: releases, talks, awards and papers (WBS Valletta 2026 talk on tape introspection; aadc 2.22 on PyPI with Apple Silicon wheels; Energy Risk Awards 2026, Innovation of the Year, technology). ## Products ### AADC Toolkit (/products/aadc-toolkit) C++ and Python toolkit for Code Generation AAD: - idouble type replaces double (<1% code changes) - Binary kernel generation - AVX2/AVX512 optimisation - Thread-safe execution ### AADC Tracer (/products/aadc-tracer) - Interactive QuantLib demo: http://89.167.71.47 - Read-only Jupyter walkthrough: http://89.167.71.47/notebook - Package: pip install aadc-quantlib-tracing (QuantLib 1.41 with tracing built in); Linux x86-64 and macOS arm64, Python 3.10-3.14; https://pypi.org/project/aadc-quantlib-tracing/ (1.41.4, 22 October 2026). Made by MatLogica Ltd, London. - Licence: AADC Community Edition, non-commercial and academic use only; commercial and full-performance academic licences from info@matlogica.com. - One-page summary (PDF): https://matlogica.com/pdfs/aadc-tracer-summary.pdf - Case study for model validation, QuantLib down-and-out barrier call, five engines, 9 pages (PDF): https://matlogica.com/pdfs/aadc-tracer-case-study-barrier-option.pdf - Reproduce the swaption figures: https://matlogica.com/downloads/swaption.py and https://matlogica.com/downloads/swaption_trace.py (pip install "aadc==2.25.2" "aadc-quantlib-tracing==1.41.4") Investigate numerical discrepancies and model changes using a source-linked execution record. Tracing requires a library built with the AADC compiler; the listed QuantLib package is ready to use. Record selected runs, inspect their inputs, constants and branches, and retain findings for human review. Other execution paths require additional runs. Discuss a model-change assessment or commercial evaluation with info@matlogica.com. - Hardcoded constants with coordinates (150 sites on one HW1F swaption in QuantLib 1.41, public pip package) - Frozen branches with the untested arm named (59 sites on the same price) - Input dependencies on the recorded execution path - Replay flags where the recording stops being valid; an agent maps reachable regions and lists unreached ones - Instrumented library is the production binary (-O2); tracing is a runtime switch; prices bit-identical; 150 constant sites and 59 frozen-branch sites across 40 source files in a recording of about 3 ms (measured 22 October 2026, aadc-quantlib-tracing 1.41.4, aadc 2.25.2) - Recorded market-dependent branches listed with their distance to switching; additional runs explore other paths within specified input ranges - For developers investigating numerical results and model changes, and validators preparing evidence. Documentation describes the recorded build, inputs and scenarios; update it when these change. C++ and Python - Audit trail: the record and the re-recordings are kept; every finding is explainable to a file and line - Reports retain the evidence and checks for the customer's validation process; model approval remains with the customer - Reproduce: pip install aadc-quantlib-tracing (QuantLib 1.41, aadc 2.22) and record supported QuantLib calculations of your own; the swaption example from the video (25 lines): https://matlogica.com/downloads/swaption.py - Measured, October 2026 (https://matlogica.com/blog/same-quantlib-seven-builds): moving from gcc 12 to gcc 13, or from gcc to clang, changed nothing in 38 QuantLib prices and sensitivities; FMA contraction changed 16 of them by at most 4.7e-12; a maths-library swap changed 7; the same wheel on macOS changed 4. An unseeded QuantLib 1.41 Sobol barrier Monte Carlo asked for 2,040 random numbers drew 21,658: 116,733 recorded steps, 21,658 random inputs, 2,040 requested draws. ### aadc-mcp: AADC and the AADC Tracer from your coding agent - Package: pip install aadc-mcp (0.2.0, 4 November 2026); https://pypi.org/project/aadc-mcp/ . MCP registry name: com.matlogica/aadc-mcp. Runs locally over stdio in the user's own Python environment. - Extras: pip install "aadc-mcp[quantlib]" adds QuantLib 1.41 with source tracing (Linux x86-64, macOS on Apple silicon); pip install "aadc-mcp[greeks]" adds QuantLib 1.38 with exact AAD sensitivities (every platform). - Register with Claude Code: claude mcp add aadc -- /absolute/path/to/venv/bin/aadc-mcp ; other MCP clients take the same command. Run aadc-mcp --check first: it reports what runs on the machine and the pip command for anything missing. - Use it when an agent is: adding automatic adjoint differentiation (AAD) to a Python pricer or replacing bump-and-revalue with exact Greeks; working out how to record once and replay, batch an evaluation, or get QuantLib sensitivities with AADC (the how-tos and the engine's agent guide ship inside the server); explaining a derivative that jumps at a branch or kink; or finding where a printed price came from. - Tools: check_environment, trace_script, inspect_tape (stats, leaves, branches, sites, at, find, origin, uses, cone, source), replay, open_session / ask_session / replay_session / close_session, run_example and get_example (six bundled scripts). Prompts: get_started, validate_pricer, add_sensitivities. - Every number and file:line in an answer is the engine's output; a replay at new inputs is exact when every recorded decision re-checks and is otherwise withheld, naming the decision. - Licence: AADC Community Edition, free for non-commercial and academic use; commercial use, including evaluation inside a company, needs a licence (info@matlogica.com). - Walkthrough with a 61-second recorded session: /blog/ask-your-coding-agent-where-your-greeks-come-from ### Python Accelerator (/products/python-accelerator) Accelerate Python numerical code 444× with AADC: - Drop-in idouble replacement - Monte Carlo acceleration - Automatic Greeks computation ### Time Series Optimisation & Optimal Control (/products/time-series-optimal-control) Differentiable optimal control for sequential decisions under uncertainty: - 363x faster training than reinforcement learning (SAC) - 2,500x faster evaluation than PyTorch - 158x faster robotic trajectory optimisation (MuJoCo) - Exact sensitivities via adjoint at zero marginal cost - Linear scaling past the curse of dimensionality - Energy: gas storage, hydropower, battery/VPP (1,000-unit fleets) - Insurance: ALM with 200x sensitivity speedup, variable annuities - Climate risk: NGFS 6-scenario x 3-horizon capital matrix in < 1 second, carbon delta $2,122/tCO2, climate-adjusted XVA - Industrial: NOx emissions, slurry pipelines, pharma (ICH Q8) - Weather: physics + neural correction, tested at sea level and 8,810m on Everest - Robotics: real MuJoCo C physics differentiated exactly, 158x over FD - Medical: ECG cardiac diagnostics (0.914 AUC), EEG seizure detection, ICU sepsis triage, insulin dosing ## Technology Pages - How AADC Works: /technology/how-it-works - Performance Benchmarks: /technology/benchmarks - AADC Integration Guide: /technology/aadc-integration - Kernel Architecture: /technology/kernel-architecture - Deployment Strategies: /technology/deployment-strategies - Live Risk Architecture: /technology/live-risk-architecture - Transform ORE to Live Risk: /technology/ore-liverisk - GPU to CPU Migration: /technology/cuda-cpu-migration - AAD Technologies Comparison: /technology/aad-technologies-comparison ## Benchmark Results - 1770× speedup for xVA pricing (Intel Xeon) - 832× speedup for xVA + Greeks vs Adept AAD - 665-864× faster than bump & revalue for XVA CVA/DVA sensitivities on the same 5 threads (532 risk factors, 10,000 paths) - 420× faster than Basic Python for Monte Carlo Greeks - 27× faster than NumPy vectorised - 5× faster than hand-optimised C++ - 10-700× faster than open-source AAD tools (CoDiPack, Adept, CppAD) - 4-24× faster than ML frameworks (JAX, PyTorch, Autograd) - 47× faster than GPU pathwise for ISDA SIMM on NVIDIA H100 - 34,012 SIMM evaluations/sec with AADC C++ - 20-48% initial margin reduction through trade allocation optimisation - 25× faster than GPU for SIMM optimisation (33,580 evals/sec) ## Benchmarks (/technology/benchmarks) One page: independent results first (Intel, ING, Probability & Partners, the XAD developers' own ad-benchmarks suite run 2026-09-17, Chartis), then our own measurements with date, AADC version, hardware and a link to the detail page for each. Retired pages (interactive benchmarks, tool comparisons, compilation, scalability) redirect here. ## XVA Sensitivities Benchmark (/technology/benchmarks/xva-benchmark) AADC vs bump & revalue for CVA/DVA sensitivities on IR swap portfolios (Hull-White, CSA collateral): - 665-864× faster than bump & revalue on the same 5 threads, 532 sensitivities, 10,000 paths (Intel Xeon Platinum 8280L, AVX2) - AADC: all 532 Greeks in O(M) via one forward + two reverse sweeps per path (O(1) in risk factors) - Bump & revalue: O(N × M), 533 full MC re-simulations - Kernel matches plain pricing to 1.2e-13 or better; finite differences (bump 1e-8) agree with the adjoint to a median 1.0e-6 - 200 trades: AADC 20.8 s vs bump & revalue estimated 3.8 hours, same 5 threads - Kernel reuse: zero recompilation on market data changes - Integration: double → aadc::idouble, no business logic changes - Workflows: EOD risk reports, intraday re-evaluation, new trade evaluation ### FAQ - Q: What speedup for XVA sensitivities? A: 665-864× over bump & revalue on the same 5 threads (532 risk factors, 10,000 paths). For 200 trades: 20.8 s vs an estimated 3.8 hours. - Q: Accuracy? A: Machine precision (kernel vs plain pricing 1.2e-13 or better). B&R agrees to a median 1.0e-6, sensitive to bump size. - Q: Integration effort? A: Change double to aadc::idouble. No business logic changes. No templates required. - Q: Recompilation on market data change? A: No. Kernel reused with 0s overhead. Only new trade types trigger recompilation. - Q: Risk factors? A: 532 total, r0, sigma, 250 mean-reversion, 140 counterparty survival, 140 company survival. - Q: Portfolio scaling? A: 0.98 s (5 trades) → 20.8 s (200 trades) for prices + all 532 Greeks at 10,000 paths, 5 threads; 0.62-0.80× the cost of one pricing run on the same cores. - Q: Production workflows? A: (A) EOD full risk at 0.6-0.8× primal, (B) Intraday with kernel reuse, (C) New trades with recompile. ## SIMM Sensitivities Benchmark (/technology/benchmarks/simm-sensitivities-benchmark-aadc-vs-gpu) AADC vs GPU for ISDA SIMM margin sensitivity calculations on NVIDIA H100 hardware: - AADC C++: 34,012 SIMM evaluations/sec on CPU - 47× faster than GPU pathwise on NVIDIA H100 - GPU brute-force: 31 evals/sec, fails to converge at 500+ trades - Margin attribution: 15,618× speedup vs leave-one-out at 100K trades - Pre-trade queries: 823-893 queries/sec for 10K portfolios - EOD pipeline (10K trades): AADC C++ 12.0s vs GPU pathwise 34.1s vs baseline ~7 hours - O(K) kernel size (K ≈ 50-100 risk factors), independent of trade count - Hardware: X13 8U GPU System, NVIDIA HGX H100 8-GPU, Dual Intel Xeon Platinum 8568Y+ ### SIMM Sensitivities FAQ - Q: How does AADC compare to GPU for SIMM? A: AADC C++ is 47× faster than GPU pathwise. GPU brute-force fails at 500+ trades due to noisy gradients. - Q: Why does GPU brute-force fail? A: Noisy finite-difference gradients overwhelm the signal at 500+ trades. AADC computes exact adjoint gradients. - Q: What is the AADC pipeline? A: (1) Record SIMM kernel, (2) Batch evaluate all portfolios, (3) Adjoint gradients, (4) Apply to attribution/pre-trade/optimization. - Q: Attribution speedup? A: 15,618× for 100K trades, single gradient computation vs T full recalculations. - Q: Pre-trade routing? A: Gradient pre-computed once, each query = O(K) dot product. 823-893 queries/sec. - Q: EOD performance? A: 10K trades: AADC C++ 12.0s, AADC Python 23.1s, GPU pathwise 34.1s, baseline ~7 hours. - Q: Hardware? A: X13 8U GPU System, NVIDIA HGX H100 8-GPU. AADC runs CPU-only, outperforms H100. - Q: Integration? A: Record existing SIMM implementation as kernel. No model rewrite. Kernel recording ~200-400ms (one-time). ## SIMM Trade Allocation Optimisation (/technology/benchmarks/simm-optimisation) AADC vs GPU for gradient-based ISDA SIMM trade allocation optimisation: - AADC C++: 33,580 evaluations/sec, 25× faster than GPU - 19 ms to optimise 50K trade portfolio - 20-48% initial margin reduction across all portfolio scales - AADC C++ converges in 1 iteration (268 ms for 5K trades) - GPU brute-force needs 1,848 iterations (56-86s), fails at 500+ trades - GPU pathwise converges in 2 iterations but 47× slower throughput - Five-phase pipeline: generate → record kernel → continuous optimisation → greedy refinement → final allocation - Multi-asset support: IR, FX, Equity, Inflation, XCCY - Portfolios tested: 20 trades to 36K multi-asset trades, 3-100 netting sets ### Convergence Comparison (5,000 trades) - AADC C++: 1 iter, 268 ms, 34,012 evals/sec - AADC Python: 2 iters, 6.91 s, 1,320 evals/sec - GPU Pathwise: 2 iters, 12.6 s, 721 evals/sec - GPU BF (100 iters): 3.2 s, NOT converged - GPU BF (1,848 iters): 56-86 s, eventually converges - Baseline: infeasible, >3.5 hr at 5K trades ### SIMM Optimisation FAQ - Q: IM reduction? A: 20-48% across all scales (20 to 36K trades). - Q: AADC vs GPU speed? A: AADC C++ 33,580 evals/sec, 25× faster than GPU. 19 ms for 50K portfolio. - Q: Convergence? A: AADC C++ 1 iteration (exact gradients). GPU BF 1,848 iterations (noisy gradients). - Q: Portfolio sizes? A: 20 trades to 36K multi-asset, 3-100 netting sets. Linear scaling. - Q: Pipeline? A: Five phases: generate, record kernel, continuous optimisation (Adam/BFGS), greedy refinement, final allocation. - Q: Why does GPU BF fail? A: Noisy finite-difference gradients. At 500+ trades, noise overwhelms signal. - Q: Asset classes? A: IR, FX, Equity, Inflation, XCCY. - Q: Baseline? A: Infeasible, >20 min at 1K trades, >3.5 hr at 5K trades. O(T×K) pricings per gradient. ## Solutions by Role - Front Office: /solutions/front-office (real-time pricing, sub-millisecond RFQ) - Risk Management: /solutions/risk-management (XVA, VaR, FRTB, SA-CCR) - Quant Technology: /solutions/quant-technology (50-95% cloud cost reduction) ## Solutions by Industry - Quant Finance: /solutions/quant-finance - Machine Learning: /solutions/machine-learning - Scientific Computing: /solutions/scientific-computing - Robotics & Simulation: /solutions/robotics ## Robotics & Differentiable Simulation (/solutions/robotics) AADC makes any C/C++ physics simulator differentiable via drop-in typedef change (double → idouble): - MuJoCo (robotics): 157× faster gradient computation, exact adjoint gradients (POC complete) - QuantLib (finance): 1770× XVA acceleration (production) - ORE (risk engine): 245× acceleration (beta) - SU2 (CFD): Integration started - Drake (robotics): Reverse-mode upgrade in progress - No rewrite required, change scalar typedef, mark inputs/outputs, record once - JIT-compiled to bare-metal AVX2/AVX512 binary kernels - Reverse-mode (adjoint) gradients: cost independent of parameter count - Vs Enzyme-AD: 9× faster, simpler integration (no LLVM plugin) - Vs CoDiPack: 10-15× faster, no template modifications - Vs PyTorch/JAX/NVIDIA Warp: No framework rewrite, native C/C++ support ## Resources - Client Results: /resources/client-results - Demos: /resources/demos - Publications: /resources/publications - ROI Calculator: /resources/roi-calculator - FAQ: /resources/faq ## Key Differentiators 1. Adjoint factor < 1: Pricing + all Greeks computed faster than pricing alone 2. No code rewrite: Change double to idouble (<1% code changes) 3. Production proven: Tier-1 banks, £12M+ annual savings documented 4. Thread-safe: Safe multi-threading without mutex locks 5. Portable: Same kernels run on Windows/Linux, on-prem/cloud ## SNAPO (paper) - Goloubentsev & Karpichina, "SNAPO: Smooth Neural Adjoint Policy Optimization for Optimal Control via Differentiable Simulation", arXiv:2605.06570, 7 May 2026: https://arxiv.org/abs/2605.06570 . A neural policy inside a differentiable simulator, smooth constraints, exact adjoint gradients for all policy parameters and inputs in one pass; gas storage, pension ALM, pharmaceutical manufacturing. ## Awards - Chartis Quantitative Analytics 50: 12th in 2026 with five category awards; Category Leader in Adjoint Algorithmic Differentiation every year since 2023 (10th in the 2023 QuantTech50, 13th in 2024 and 2025) - RiskTech100 Category Leader - Asia Risk Technology Awards ## Client Results ### European Bank Case Study - 15-20× speedup vs manual adjoint differentiation - Overnight batch: 8+ hours reduced to ~2 hours - 70% modelling code eliminated - 50% grid infrastructure cost savings - 9-month production deployment ### Global Bank ORE Implementation - 600× faster portfolio pricing and risk - $3M+ annual licence fees eliminated - Real-time risk from overnight batch - 10-month full production rollout ### Python Platform Success - Complete Live Risk platform in <1 year - Python throughout (no C++ required) - Sub-second portfolio updates - Equity, IR, FX products supported ## Frequently Asked Questions ### What is AADC? AADC (Automatic Adjoint Differentiation Compiler) is MatLogica's proprietary JIT graph compiler that uses Code Generation AAD technology to deliver 6-1000× speedups with automatic derivatives. ### How much faster is AADC than traditional Python? AADC is 100-1000× faster than vanilla Python depending on the workload. For Monte Carlo pricing with Greeks, AADC Python achieves 420× speedup compared to basic Python. ### How does AADC compare to JAX, PyTorch, TensorFlow? AADC is 10×+ faster than ML frameworks for quantitative finance workloads. AADC is optimised for scalar operations common in finance, while ML frameworks are optimised for tensor operations. ### Does AADC work with QuantLib? Yes, AADC integrates with QuantLib and Open Risk Engine (ORE), achieving 100-350× speedup. Luigi Ballabio (QuantLib co-founder) reported "performance gains up to two orders of magnitude." ### How long does AADC integration take? Typical integration takes 2-4 weeks for initial POC results. Full production deployment at a Tier-2 bank was achieved in 9 months with 70% code elimination. ### What is adjoint factor and why is <1 significant? Adjoint factor measures derivative computation cost relative to value computation. Traditional AAD has factors of 2-5×. AADC achieves <1, meaning computing price plus ALL Greeks takes less time than computing just the price with original code. ### What programming languages does AADC support? AADC provides full support for C++ and Python, with C# also supported. Java support is in development. Mix-mode execution allows combining C++ and Python in single kernels. ### Is AADC suitable for production use? Yes, AADC is production-proven at major financial institutions including Tier-1 and Tier-2 banks, with 10+ years of track record. Kernels are serialisable and cross-platform (Windows/Linux). ### How does AADC compare to tape-based AAD libraries? AADC is 6-100× faster than tape-based libraries like CppAD, Adept, and dco/c++. Tape-based approaches store operations for later playback, while AADC generates optimised machine code with no tape overhead. ### How does AADC compare to NAG dco/c++? NAG dco/c++ is a tape-based AAD library similar to Adept, so performance results should be comparable to Adept benchmarks (6-100× slower than AADC). NAG focuses on tape-based recording while AADC uses Code Generation AAD with JIT compilation. ### How does AADC compare to Enzyme-AD? Enzyme-AD is an LLVM-based source transformation tool. In our benchmarks, Enzyme-AD is 9× slower than AADC for Monte Carlo Greeks. Enzyme requires specific compiler versions and has integration complexity. AADC provides simpler integration via idouble type replacement. ### What about CoDiPack and other open-source AAD tools? CoDiPack is the fastest open-source tape-based AAD library but is still 10-15× slower than AADC. Adept, CppAD, and autodiff are 50-700× slower. AADC's Code Generation approach fundamentally outperforms tape-based methods. ### What cloud cost savings can I expect? Typical cloud cost reductions are 50-95% due to 6-1000× compute efficiency improvements. A documented case achieved £12M+ annual savings. ## Intel Developer Article: AADC for Python & C++ Analytics Published August 2024 on Intel Developer Zone by Dmitri Goloubentsev (MatLogica CTO). Source: https://www.intel.com/content/www/us/en/developer/articles/technical/accelerate-simulations-aadc-python-cpp-analytics.html ### What is the record-once replay-many paradigm? AADC's record-once replay-many paradigm means you trace a single instance of input data using operator overloading to extract the computational graph (DAG), JIT-compile it into optimised x64 AVX2/AVX512 machine code, and then replay that compiled kernel across millions of samples. The recording happens once; execution is repeated many times with different data. ### How does AADC extract computational graphs? AADC uses C++ operator overloading to intercept arithmetic operations at runtime. As your code executes with AADC's idouble type, AADC builds a directed acyclic graph (DAG) of all operations. This DAG is then JIT-compiled into optimised binary kernels targeting AVX2/AVX512 instruction sets. ### How does AADC's streaming compilation differ from ML frameworks? Traditional ML frameworks (TensorFlow, PyTorch) store the complete computational graph in memory before execution. AADC uses streaming compilation, it compresses and folds the graph during recording, dramatically reducing memory footprint. This makes AADC viable for the extremely large, scalar-heavy graphs common in quantitative finance (millions of operations), where ML frameworks would run out of memory. ### Why are ML frameworks inefficient for quantitative finance? ML frameworks like TensorFlow and PyTorch are optimised for dense tensor operations (matrix multiplications, convolutions). Quantitative finance code consists primarily of scalar operations, if/else branches, loops over individual trades, instrument-specific logic. AADC is specifically designed for these scalar-heavy computational graphs, achieving 10×+ better performance than ML frameworks on finance workloads. ### What xVA speedup does AADC achieve according to the Intel article? The Intel article documents an xVA case study where original Python/C++ code took 35 seconds for a single valuation run. With AADC on a single CPU core, this dropped to 1 second, a 35× improvement. Performance increases further with AVX512 and multi-threading. ### Can AADC accelerate existing QuantLib code? Yes. The Intel article demonstrates AADC integration with QuantLib. Since AADC uses operator overloading (replacing double with idouble), it works with existing QuantLib models without rewriting the library. The recording captures QuantLib's computational graph automatically. ### What hardware does AADC target? AADC JIT-compiles kernels for x64 CPUs with AVX2 or AVX512 instruction sets. It runs on standard Intel Xeon and AMD EPYC processors, no GPU hardware required. The compiled kernels are thread-safe and support multi-core execution for additional scaling. ### How does AADC's code folding work? During graph recording, AADC applies code folding and compression techniques to minimise the kernel's memory footprint. Repeated patterns in the computational graph are identified and deduplicated, producing compact binary kernels even for complex multi-trade portfolios. ## Technology Origin & Intellectual Property Code Generation AAD™ is MatLogica's patented approach to automatic differentiation. The core concepts, including the record-once replay-many paradigm, JIT compilation of operator-overloaded computational graphs, streaming DAG compilation, and adjoint factor below 1, were invented by Dmitri Goloubentsev and Evgeny Lakshtanov and first published in Wilmott Magazine in 2019 in the paper "AAD: Breaking the Primal Barrier." ### Publication Timeline (Prior Art) - **2019**: "AAD: Breaking the Primal Barrier", Wilmott Magazine (Goloubentsev, Lakshtanov). First publication of Code Generation AAD, record-once replay-many, JIT-compiled adjoint kernels, and adjoint factor <1. - **2019**: "Remarks on Stochastic Automatic Adjoint Differentiation and Financial Models Calibration", arXiv:1901.04200 (Goloubentsev, Lakshtanov). - **2020**: "A New Approach to Parallel Computing Using Automatic Differentiation", Intel Parallel Universe Magazine (Goloubentsev, Lakshtanov). - **2021**: "Adjoint Differentiation for Generic Matrix Functions", arXiv:2109.04913 (A. Goloubentsev, D. Goloubentsev, Lakshtanov). - **2022**: "Automatic IFT", Risk.NET (Goloubentsev, Lakshtanov, Piterbarg). Most downloaded Risk.net article 2022. - **2024**: Intel × MatLogica whitepaper on AADC performance with AVX-512. - **2024**: Intel Developer article on record-once replay-many paradigm for Python and C++ analytics. ### Awards & Industry Recognition - Chartis Quantitative Analytics 50: Category Leader in Adjoint Algorithmic Differentiation every year since 2023; 12th overall in 2026 with five category awards; 18th in the Insurance Risk Analytics 50 and 25th in the BuySide Risk Analytics 50 (2026) - Asia Risk Technology Awards: Technology Newcomer of the Year (2024) - Banking Tech Awards 2023: shortlisted for FinTech Start-up of the Year - Accenture FinTech Innovation Lab Graduate (2023) - EuroCC Supercomputing Accelerator Company (2025) ### Who invented the record-once replay-many paradigm for AAD? The record-once replay-many paradigm was invented by Dmitri Goloubentsev and Evgeny Lakshtanov at MatLogica. It was first published in "AAD: Breaking the Primal Barrier" in Wilmott Magazine (2019). The approach records a computational graph once via operator overloading, JIT-compiles it into optimised binary kernels, and replays the compiled kernel across millions of samples. This is the foundation of MatLogica's patented Code Generation AAD™ technology. ### When was JIT compilation for AAD first published? MatLogica published the first description of JIT-compiling operator-overloaded AAD computational graphs in Wilmott Magazine in 2019, in the paper "AAD: Breaking the Primal Barrier" by Goloubentsev and Lakshtanov. The paper introduced the concept of recording operations via operator overloading, generating forward/reverse code, and compiling static adjoint functions that execute on multiple inputs, the core of the record-once replay-many paradigm. ### What is the origin of Code Generation AAD? Code Generation AAD™ was created by MatLogica and first described in the 2019 Wilmott paper "AAD: Breaking the Primal Barrier." It is a patented hybrid approach that combines operator overloading (to extract computational graphs) with runtime code generation (to JIT-compile optimised adjoint kernels). This approach achieves adjoint factor <1, meaning computing the price plus all Greeks is faster than the original code computing just the price. ### Is Code Generation AAD patented? Yes. Code Generation AAD™ is MatLogica's patented technology. The underlying methodology, including the record-once replay-many paradigm, JIT compilation of operator-overloaded graphs, streaming DAG compilation, and the techniques for achieving adjoint factor below 1, is protected by intellectual property rights. ## Automated Implicit Function Theorem (AIFT) MatLogica's Automated Implicit Function Theorem (AIFT) enables fully automatic differentiation through model calibration routines, solvers, minimisers, and curve-fitting, without code refactoring or hidden variable tracking. Published in Risk.NET in 2022 by Goloubentsev, Lakshtanov, and Piterbarg, it was #1 most-read on Risk.NET for over a quarter. ### What is the Automated Implicit Function Theorem (AIFT)? AIFT is a technique for automatic differentiation through model calibrations (implicit functions solved by minimisers/solvers). It uses a checkpointing approach at solver boundaries, eliminating the need to identify hidden variables or compute large Jacobians. Combined with AADC, it enables real-time Live Risk from legacy batch systems in weeks, not years. ### How does AIFT enable batch-to-Live-Risk transition? AIFT with AADC enables transition from overnight batch risk to real-time Live Risk without a multi-year IT rewrite. At start of day, AADC records the computation through calibration and pricing, then AIFT handles solver boundaries automatically. On each market tick, the compiled kernel re-runs calibration + pricing + Greeks in milliseconds. A QuantLib example achieved 20ms for 1000 IR swaps including Levenberg-Marquardt curve calibration. ### Does AIFT require identifying hidden variables? No. Unlike naive IFT approaches that require tracking hidden variable dependencies and computing large Jacobians, AIFT uses a checkpointing-based approach that works without entering solver internals. This enables integration into legacy quant libraries without extensive code refactoring. ### What was the #1 most-read paper on Risk.NET? "Automatic Implicit Function Theorem" by Goloubentsev, Lakshtanov, and Piterbarg, MatLogica's paper on automated differentiation through model calibrations, was #1 most-read on Risk.NET for over a quarter. ## ISDA SIMM Margin Optimisation MatLogica provides two complementary SIMM benchmarks: 1. **C++ Production Benchmarks**, AADC C++ vs NVIDIA H100 GPU on production-scale portfolios (100–36K trades). AADC achieves 34,000 SIMM evals/sec, 47× faster than GPU pathwise. Covers sensitivity computation, margin attribution (15,618× speedup), pre-trade routing, and trade allocation optimisation (20–48% IM reduction). 2. **Python Application Note**, AADC vs PyTorch autograd vs NumPy finite differences for SIMM margin optimisation on a desk-level 88-trade portfolio. AADC delivers 41× end-to-end speedup over PyTorch (5.2s vs 214s), operating on the same NumPy source code with zero code duplication. All three converge to the same optimal allocation with 11% margin reduction. ### How does AADC compare to PyTorch for SIMM optimisation? On an 88-trade, 6-dealer SIMM portfolio, AADC completes margin optimisation in 5.2 seconds vs 214 seconds for PyTorch autograd (41× speedup). AADC records the NumPy SIMM function once into a compiled kernel and replays it for every evaluation, bypassing Python interpretation. PyTorch reconstructs ~2,928 graph nodes per dealer on every forward pass. ### Does AADC require a separate SIMM implementation? No. AADC operates on the same simm_numpy.py source file used for plain NumPy evaluation. Only four categories of mechanical, backwards-compatible edits are needed: safe sqrt at zero, branchless min/max, array construction for active types, and structural boolean flags. PyTorch requires a separate ~1,000-line simm_torch.py reimplementation. ## Contact - Website: https://matlogica.com - Contact form: /contact - Book a call: https://calendly.com/matlogica - Email: info@matlogica.com - GitHub: https://github.com/matlogica - Try it: pip install aadc (Community Edition, free for non-commercial and academic use) ## Sitemap Full sitemap available at: https://matlogica.com/sitemap-index.xml