Archimedean Copula Inference via Taylor-Mode AD

Cambridge Yang, Dongdong LiNeurIPS 2026

TL;DR

Modeling hierarchical dependencies in messy, real-world data—like tracking dozens of patient lab tests when some patients get discharged before anything goes wrong—used to hit an exponential math wall. Enter ACOPULA, an open-source JAX framework that uses a clever trick with high-order automatic differentiation to compute exact likelihoods and gradients for deeply nested statistical models in polynomial time. It turns intractable, hand-derived calculus nightmares into a twenty-line Python script that runs hundreds of times faster than standard tools.

What Problem Does This Paper Address?

Imagine tracking 53 different lab tests for an ICU patient, or monitoring 98 stocks across 11 market sectors. In both cases, the variables are grouped hierarchically (labs sit inside clinical panels; stocks sit inside industry sectors), and in survival settings, data is frequently right-censored—meaning an observation window ends (a patient is discharged) before an event (an abnormal lab) occurs.

Statisticians love nested Archimedean copulas for this. A copula is a mathematical glue that separates individual variable behaviors (marginals) from their web of interdependencies, using a simple 1D "generator" function arranged in a tree:

A nested Archimedean copula arranged as a tree, grouping strongly dependent variables into subtrees while allowing individual leaves like u3 to be censored.

Here is the catch: fitting this model to data requires taking a mixed partial derivative of the tree's cumulative distribution function—once for every uncensored variable. If 40 variables are observed, you need a 40th-order derivative through composed functions. Naive automatic differentiation (AD) blows up in $O(2^d)$ time. Existing packages like R's copula bypass this using hand-derived lookup tables, which limits you to five classical generator families, two tree layers, no exact parameter gradients, and no per-variable censoring.

Table 1: Capability comparison across tools. Copulas.jl entries reflect commit aeb7611c, before our nesting port (Appendix K); N.I.: framework admits feature but currently not implemented.

Methods

The authors build upon a known mathematical formulation (Hofert and Pham, 2013) which expresses the nested copula density as a bottom-up tree recursion involving partial Bell polynomials—combinatorial sums of higher-order derivatives along each parent-child edge. Previously, evaluating Bell polynomials required family-specific, hand-coded algebra.

ACOPULA replaces hand-derivation with two computational insights:

  1. Taylor-Mode AD (Jet Propagation): Instead of nesting standard first-order AD calls (which causes exponential trace blow-up), ACOPULA uses JAX's Taylor-mode AD. This pushes truncated Taylor polynomials forward through a function, returning all $d$ derivatives of an edge composition in a single $O(d^2)$ pass.
  2. Polynomial Powering: By a neat generating-function identity, the dreaded partial Bell polynomials are simply the coefficients of those Taylor series raised to successive powers! ACOPULA computes these powers via truncated polynomial convolution.

Because every step is just array math in JAX, taking first-order reverse-mode AD over the entire algorithm yields exact parameter gradients for free—working seamlessly for classical formulas and neural-network generators alike.

Datasets

The authors evaluate ACOPULA across simulations and four real-world benchmarks:

  • MIMIC-IV ICU Cohort: Newly constructed high-dimensional survival benchmark of 85,229 ICU admissions tracking time-to-abnormality across $d=53$ lab tests grouped into 7 clinical panels, featuring thousands of unique per-patient censoring patterns.
  • S&P 500 Daily Returns: 1,253 trading days across $d=98$ equities grouped into an 11-sector hierarchy.
  • Diabetic Retinopathy Study: A classic bivariate ($d=2$, $n=197$) paired-eye survival dataset with 60.7% censoring, used to test custom copula families.
  • Framingham Heart Study: Used to verify exact reproduction of a prior competing-risks neural copula pipeline (HACSurv).

Key Insights and Ideas

  • Censoring makes the math faster, not harder: In density-based models (like vine copulas), a censored variable requires an expensive numerical integral. Because ACOPULA differentiates a closed-form CDF, a censored variable simply means skipping a derivative. Setting a censored leaf to [1] (the convolution identity) shrinks polynomial degrees all the way up the tree. Heavy censoring actually speeds up runtime!
  • Tree topology dictates complexity: Worst-case runtime for fixed-depth trees is $O(d^3)$, driven by polynomial powering. However, if subtrees have at most $O(\sqrt{d})$ uncensored leaves, the math hits a clean $O(d^2)$ bottleneck.
  • Dodging floating-point underflow: Composing an inverse generator with a child generator ($\psi_v^{-1} \circ \psi_c$) directly can cause catastrophic cancellation when $\psi_c$ underflows to zero. Solving the implicit equation $\psi_v(h(t)) = \psi_c(t)$ directly in Taylor space neatly sidesteps this numerical trap.

Key Results

  • Massive Speedups & Scaling: At $d=35$, ACOPULA evaluates densities $\sim 650\times$ faster than R's nacLL on a single CPU thread. Where R times out past $d=35$, ACOPULA scales smoothly along its theoretical $O(d^2)$ curve up to $d=8,000$.
Figure 2: Wall-clock scaling. R only runs at 2-level K=5 and hits our 900 s harness cap from d=40. By d=35 R is ∼650× slower. ACOPULA extends across topologies R cannot represent and reaches O(d2) at d ≥6,400.
  • Exact Recovery: Across 500 simulated replications up to $d=50$ and 3 nesting layers, MLE parameter bias stays under 2.7%, and empirical standard errors match Hessian-derived intervals within 2.9%.
  • High-Dimensional Survival (MIMIC-IV): Successfully fits 8-parameter classical trees and >3,600-parameter neural copulas at $d=53$ under arbitrary censoring—a scale no prior nested copula tool could touch.
  • Plug-and-Play Families: On Retinopathy, identical driver code successfully fits 10 copula families, 5 of which had no prior censored implementation.

Limitations and Future Work

  • Within-group exchangeability: Variables sharing the same parent node are treated as interchangeable. When within-group relationships vary wildly, pair-copula constructions (like regular vines, which beat ACOPULA on S&P 500 out-of-sample likelihood using 1,109 parameters vs. 12) are a better fit.
  • Interval censoring: ACOPULA handles right-censoring natively, but interval-censored data (events occurring between two times) still requires an $O(2^m)$ inclusion-exclusion wrapper over $m$ interval-censored variables.
  • Informative censoring: The MIMIC-IV experiments assume patient discharge is independent of lab abnormality times—a strong clinical assumption, since sicker patients have abnormal labs faster and stay longer. Adding censoring time as an explicit copula margin can relax this in future work.

Summary updated

BibTeX
@inproceedings{yang2026archimedean,
  author = {Cambridge Yang and Dongdong Li},
  title = {{Archimedean Copula Inference via Taylor-Mode AD}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=JHPRlItZ0c},
}
Figure