← Back to Blog
Architecture

From Batch Risk to Real-Time Live Risk with Automated IFT

Overnight batch risk processing is the status quo. The Automatic Implicit Function Theorem turns any calibrated model into a live risk engine — 20ms pricing + Greeks for 1000 IR swaps via QuantLib.

Dmitri Goloubentsev
Dmitri Goloubentsev
· 3 min read
live risk IFT AAD QuantLib calibration real-time
From Batch to Real-Time Risk with Automated IFT

Most banks run risk overnight. A batch job calibrates the model to today’s market, prices the book, bumps each risk factor, reprices, and writes the results to a database. Traders see yesterday’s Greeks when they arrive in the morning.

Live Risk — real-time Greeks that update as the market moves — has been the holy grail for a decade. The problem isn’t speed (modern hardware is fast enough). The problem is calibration. When a market input changes, the calibrated model parameters change too. Propagating that change through the calibration requires solving an inverse problem, which traditionally means re-running the calibration solver.

The Implicit Function Theorem approach

The Automatic Implicit Function Theorem (AIFT) eliminates the re-calibration bottleneck. The insight: if your model is calibrated (i.e., model prices match market quotes), the IFT gives you an analytical expression for how calibrated parameters change when market inputs change. No iterative solver needed.

The AIFT implementation automates this:

  1. Start of day: Record the calibration + pricing on the tape. Run the solver once. Cache the Jacobian.
  2. Intraday: When market data moves, use the cached Jacobian to compute the parameter update analytically. Reprice with the updated parameters. One forward pass.

The result: calibration that took seconds now takes microseconds. The pricing pass is already fast (it’s a compiled kernel). Together, you get live risk.

Measured: QuantLib integration

We applied this to QuantLib’s IR swap pricing with Hull-White calibration. 1000 IR swaps, full delta and gamma risk.

MetricValue
Start-of-day recording~350 ms
Intraday pricing + Greeks (1000 swaps)20 ms
Calibration updateSub-ms

This is without modifying QuantLib’s C++ code. The “black box” approach records QuantLib’s existing calibration and pricing through operator overloading.

Why this matters

The #1 most-read article on Risk.NET for over a quarter was the AIFT paper. The reason: every bank wants live risk, and every bank has millions of lines of calibration code they can’t rewrite.

AIFT doesn’t require understanding or modifying the calibration code. It records it, differentiates through it, and uses the derivative to update parameters analytically. The transition from batch to live is a deployment change, not a rewrite.


Implemented using AADC, a commercial adjoint AD compiler (matlogica.com).

Want to see these results on your own portfolio?

Get in Touch

Interested in these opportunities?

Let's arrange a free demo for you and your team.

Book a Demo