Model-Agnostic Decomposition of the Difference in Mean Response Between Two Groups via Game-Theoretic Attribution with Minimum-Switching-Distortion Coupling

Hyunwook KoharXiv 2026

TL;DR

When two groups have different average outcomes—say, US vs. UK men having different average BMIs—is it because the groups have different underlying characteristics, or because those characteristics affect the outcome differently in each group? This paper upgrades a 50-year-old linear economics tool for the modern machine-learning era, combining cooperative game theory and optimal transport to untangle these effects inside any black-box model. It gives researchers a mathematically fair, computationally fast way to pinpoint exactly which features drive group differences in complex, nonlinear systems.

What Problem Does This Paper Address?

Suppose Group A and Group B show a gap in some average outcome. That gap comes from two sources: composition (the groups have different input distributions, $P_A \neq P_B$) and structure (the groups map inputs to outputs differently, $f_A \neq f_B$).

Since 1973, economists and social scientists have used the Blinder–Oaxaca decomposition to split this gap cleanly—provided you use a simple linear regression model. In a linear world, additivity makes it trivial to see how much each individual feature contributes.

Today, however, we model complex biology and human behavior using gradient boosted trees and deep neural networks, where features twist and interact nonlinearly. If you want to know how much Feature $j$ contributes to the composition gap, you have to swap Group B’s values for Feature $j$ with Group A’s values while holding other features fixed.

This creates a subtle statistical trap: hybrid feature vectors. If you take "age" from a UK man and "gut bacteria" from a US man, what should their joint distribution look like? Group marginals alone don't tell you how to pair individuals across groups, and naive pairings (like random independent matching) break realistic correlations and distort nonlinear model predictions.

Methods

The author introduces MAD (Model-Agnostic Decomposition) paired with MSD (Minimum-Switching-Distortion) Coupling, blending two classic mathematical frameworks:

  1. Two-Stage Game Theory (The Owen Value): Instead of treating the model and all $p$ features as equal players in a standard Shapley value game—which muddies the aggregate picture—MAD organizes them into a priori unions using the Owen value (a hierarchical extension of Shapley values).

  2. Stage 1 (Quotient Game): Plays the "Model Union" against the "Covariate Union" to split the total gap into aggregate structure ($\Lambda$) and composition ($\Gamma$) effects.

  3. Stage 2 (Internal Game): Fairly divides the composition pie ($\Gamma$) among the $p$ individual features ($\Gamma_1, \dots, \Gamma_p$) by averaging marginal contributions across feature-switching orders. For large $p$, MAD approximates this cleanly by sampling random permutations.
  4. Optimal Transport (MSD Coupling): To build hybrid vectors without wrecking cross-feature relationships, MAD pairs Group A and Group B data points using Kantorovich optimal transport. MSD finds a joint distribution (coupling) that minimizes the expected squared standardized Euclidean distance between paired individuals. Because standard optimal transport yields a sparse matching (pairing $n$ points one-to-one when sample sizes are equal, rather than $n^2$ all-to-all pairs), evaluating hybrid vectors becomes drastically faster.

Datasets

  • Synthetic Benchmarks: Simulated datasets testing 5 to 20 features ($n \in \{100, 200\}$) across four ground-truth regimes: Linear Additive, Linear Multiplicative, Nonlinear Additive, and Nonlinear Multiplicative. No new standalone public benchmark dataset is introduced, though these structured regimes serve to test oracle recovery and coupling behavior.
  • American Gut Project (AGP): Real-world 16S rRNA human fecal microbiome data comparing $n_A = 730$ UK males and $n_B = 1,864$ US males (aged 30–70) across $p = 53$ microbial genera to explain differences in mean Body Mass Index (BMI).

Key Insights and Ideas

  • Why Hierarchy Matters: If you toss the model switch and feature switches into a flat Shapley pot, intermediate hybrid features leak into the model's payoff. Grouping features into an Owen union guarantees that Stage 1 depends only on the untouched group distributions, making the macro split completely invariant to how you pair data points.
  • The "Do Nothing" Sanity Check: What if Group A and Group B actually have the exact same feature distribution ($P_A = P_B$)? Intuitively, swapping features shouldn't change anything. Surprisingly, standard independent coupling and entropically regularized (Sinkhorn) transport fail this test—scrambling features across identical distributions alters nonlinear coalition values. MSD coupling uniquely satisfies "identity at coincidence," pairing identical distributions with themselves so zero distortion occurs.
  • Graceful Backward Compatibility: Despite the game-theoretic and optimal-transport machinery, if you feed MAD two ordinary linear regressions, the math collapses exactly into the classic 1983 Reimers midpoint Blinder–Oaxaca decomposition.
  • Sparsity = Speed: Because MSD solves an unregularized assignment problem, its support size scales as $O(n)$ rather than the $O(n^2)$ dense matrices produced by independent or Sinkhorn couplings—turning optimal transport from a bottleneck into a massive downstream speedup.

Key Results

  • Decomposition Accuracy: In nonlinear and interactive simulations, linear regression failed to recover true effects, whereas MAD paired with XGBoost, LightGBM, Keras, and PyTorch closely tracked the oracle benchmark. Permutation sampling closely matched exact Shapley enumeration (Pearson $r > 0.999$ for $p \le 15$) while cutting runtime at $p=15$ by ~4x.
  • Massive Speedups via Sparsity: Constructing the MSD coupling took $< 0.03$ seconds in simulations. Because of its sparse $O(n)$ support, downstream feature allocation was 75–78x faster ($n=100$) and ~160x faster ($n=200$) than independent or Sinkhorn couplings (e.g., 2.9 seconds vs. ~470 seconds at $p=15, n=200$).
  • UK vs. US Microbiome & BMI: UK men had a lower mean BMI than US men by $-0.528\text{ kg/m}^2$ ($24.91$ vs. $25.44$). Using LightGBM, MAD revealed that 81% ($-0.428$) of this gap was structural (differences in how microbiome maps to BMI, or unmeasured lifestyle/host factors) and 19% ($-0.100$) was compositional (differences in gut bacteria abundances). Higher UK levels of Akkermansia pushed UK BMI lower ($\Gamma_j = -0.021$), while lower UK levels of Bifidobacterium pushed it slightly higher ($\Gamma_j = +0.044$).

Limitations and Future Work

  • Descriptive, Not Causal: Like standard Blinder–Oaxaca, MAD explains what fitted models do on observational data. In the gut study, unmeasured confounders (diet, exercise, genetics) get absorbed into the structure effect. Merging MAD with causal identification assumptions is a prime next step.
  • Garbage In, Garbage Out: Decomposition accuracy is strictly tied to how well the black-box models learn the true underlying relationships.
  • Missing Error Bars: The paper provides point estimates; developing formal statistical inference (confidence intervals accounting for both model-fitting and sampling uncertainty) remains open.
  • Beyond Static Averages: Future extensions could adapt MAD to survival analysis (hazard/survival probabilities) and longitudinal time-series trajectories.

Summary updated

BibTeX
@misc{koh2026model,
  author = {Hyunwook Koh},
  title = {{Model-Agnostic Decomposition of the Difference in Mean Response Between Two Groups via Game-Theoretic Attribution with Minimum-Switching-Distortion Coupling}},
  year = {2026},
  eprint = {2611.38556},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.38556},
}
Figure