---
title: Paired-sampling PermutationSHAP
url: https://www.emergentmind.com/topics/paired-sampling-permutationshap
type: topic
---

# Paired-sampling PermutationSHAP

Searching arXiv for recent papers on paired-sampling PermutationSHAP and closely related SHAP sampling work.
Search query: paired-sampling PermutationSHAP Shapley Values Paired-Sampling Approximations
Paired-sampling PermutationSHAP is a permutation-based Monte Carlo estimator of Shapley values in which each sampled permutation \(\pi\) is coupled with its reversed permutation \(\rho(\pi)=(\pi_q,\ldots,\pi_1)\), and the two induced marginal-contribution vectors are averaged. In the standard cooperative-game formulation, this leaves the estimator within the permutation-SHAP family, but changes its sampling geometry through a symmetry over complementary predecessor coalitions. The resulting method is unbiased, strictly consistent, and asymptotically normal, and it has two structural guarantees that are unusually strong for a sampling-based SHAP estimator: exactness for value functions with interactions of maximal order two, and additive recovery for additively decomposed games [2508.12947]. It is distinct both from paired complement sampling in KernelSHAP-style coalition regression and from “pairwise permutation” methods that jointly perturb pairs of correlated features in global feature-importance settings rather than pairing Monte Carlo permutations [2601.18608, 2111.09145].

## 1. Cooperative-game setting and permutation SHAP

The underlying setting is the standard SHAP game with \(q \ge 2\) players or features, indexed by
\[
{\cal Q}=\{1,\ldots,q\},
\]
and a value function
\[
\nu: {\cal C} \mapsto \nu({\cal C})
\]
defined on coalitions \({\cal C}\subseteq {\cal Q}\). The paper assumes without loss of generality that \(\nu(\emptyset)=0\). In this formulation, the Shapley value of feature \(j\) is represented as an average over all feature orderings:
\[
\phi_j = \frac{1}{q!} \sum_{\pi}\nu\left({\cal C}_{\pi, j}\cup \{j\}\right) -\nu\left({\cal C}_{\pi, j}\right).
\]
Here \(\pi=(\pi_1,\ldots,\pi_q)\) is a permutation of \((1,\ldots,q)\), and \({\cal C}_{\pi,j}\) is the set of predecessors of \(j\) in \(\pi\). Thus \(\phi_j\) is the average marginal contribution of \(j\) across all permutations [2508.12947].

Standard sampling PermutationSHAP approximates this expectation by drawing i.i.d. random permutations \((\pi^{(i)})_{i=1}^n\) uniformly from the \(q!\) possible orderings and averaging the corresponding marginal contributions. A single sampled permutation naturally yields a full \(q\)-vector of contributions, because every feature appears once along the same path. In the broader literature on permutation sampling for Shapley estimation, this estimator is the baseline against which structured permutation designs are compared, since exact evaluation is generally infeasible and naïve Monte Carlo can converge slowly [2104.12199].

## 2. Reverse-permutation pairing and the paired estimator

In paired-sampling PermutationSHAP, the pairing rule is explicit: for each sampled permutation \(\pi\), one also evaluates the reversed permutation
\[
\rho(\pi)=(\pi_q,\ldots,\pi_1).
\]
The paired estimator for feature \(j\) is
\[
\widehat{\phi}_j^{(n)} = \frac{1}{2n} \sum_{i=1}^n \left(\nu\left({\cal C}_{\pi^{(i)}, j}\cup \{j\}\right) -\nu\left({\cal C}_{\pi^{(i)}, j}\right) +\nu\left({\cal C}_{\rho(\pi^{(i)}), j}\cup \{j\}\right) -\nu\left({\cal C}_{\rho(\pi^{(i)}), j}\right) \right).
\]
The central combinatorial identity is that the predecessor coalition of \(j\) in the reverse permutation is the complement of the original predecessor-plus-\(j\) coalition:
\[
{\cal C}_{\rho(\pi), j} = {\cal Q}\setminus\left({\cal C}_{\pi,j}\cup\{j\}\right).
\]
This complementarity is the reason the estimator is described as a symmetrized permutation average rather than merely a duplicated Monte Carlo sample [2508.12947].

The variance rationale is antithetic. Averaging the contributions from \(\pi\) and \(\rho(\pi)\) tends to cancel part of the permutation-induced variability, because if one ordering places a feature early, the reverse places it late. In covariance form,
\[
\operatorname{Var}\!\left(\frac{B_\pi+B_{\rho(\pi)}}{2}\right)
= \frac14\left( \operatorname{Var}(B_\pi)+\operatorname{Var}(B_{\rho(\pi)}) +2\operatorname{Cov}(B_\pi,B_{\rho(\pi)}) \right),
\]
so variance falls whenever the cross-covariance is sufficiently negative. This reverse-pairing construction is closely aligned with the “MC-antithetic” baseline studied in the permutation-sampling literature, where reverse-paired permutations were reported as the best overall among existing Shapley baselines, and where structured designs such as orthogonal spherical codes were interpreted as extending antithetic sampling from \(2\) correlated samples to \(2(d-1)\) correlated samples [2508.12947, 2104.12199].

## 3. Statistical and structural guarantees

The paired estimator is unbiased because both \(\pi\) and \(\rho(\pi)\) are uniformly distributed over permutations, so the expectation of the paired summand remains \(\phi\). The paper further states that paired-sampling PermutationSHAP is strictly consistent, unbiased, and asymptotically normal:
\[
\sqrt{n} \left((\widehat{\phi}^{(n)}_1, \ldots, \widehat{\phi}^{(n)}_q)^\top- \phi \right)~ \Longrightarrow~ {\cal N}\left(0, \Sigma \right),
\]
with
\[
\Sigma=\frac{1}{4}\,  {\rm Var}_\pi\left(B_\pi+B_{\rho(\pi)}\right).
\]
This yields the usual \(O(n^{-1/2})\) Monte Carlo error rate and supports covariance-based uncertainty quantification through the paired summand rather than the unpaired marginal-contribution vector [2508.12947].

Its more distinctive results are structural rather than asymptotic. If the value function has interactions of maximal order two, written as a bilinear or quadratic form on binary coalitions,
\[
\nu(Z)= Z^\top A Z,
\]
then the exact Shapley values are
\[
\phi_j = \frac{1}{2}  \sum_{k=1}^q \left(a_{j,k} + a_{k,j}\right),
\]
and one single paired permutation already recovers them exactly:
\[
\widehat{\phi}^{(1)}_j=\phi_j.
\]
The exactness mechanism is that the original and reversed marginal contributions together activate all pairwise interactions involving \(j\), independently of the permutation. Within this class, the Monte Carlo variance is therefore zero [2508.12947].

The second major guarantee is the additive recovery property. Suppose the feature set is partitioned into nonempty groups \(({\cal A}_k)_{k=1}^K\), and the value function decomposes additively across those groups:
\[
\nu(Z) = \sum_{k=1}^K \nu_k\left(Z_{{\cal A}_k}\right).
\]
Then, for a single permutation,
\[
\sum_{j \in {\cal A}_k} \widehat{\phi}^{(1)}_j = \sum_{j \in {\cal A}_k} \phi_j
\qquad \text{for all }1\le k \le K.
\]
Thus the blockwise attribution totals are already exact before any Monte Carlo averaging. The same paper emphasizes that paired KernelSHAP does not satisfy any similar property. It also proves a partial exactness result: if one subset of features interacts only internally and only up to order two, with no interactions with the remainder, then that subset’s Shapley values are exactly recovered from one paired permutation even if the rest of the value function is arbitrarily nonlinear [2508.12947].

## 4. Distinctions from related “paired” and “permutation” constructions

Several neighboring literatures use similar language but refer to different mathematical objects. The distinctions are operationally important.

| Construction | Pairing or permutation object | Role |
|---|---|---|
| Paired-sampling PermutationSHAP | A permutation \(\pi\) and its reverse \(\rho(\pi)\) | Monte Carlo estimation of Shapley values |
| Paired KernelSHAP / PolySHAP | A coalition \(S\) and its complement \(D\setminus S\) | Weighted regression over coalition evaluations |
| Pairwise Permutation Algorithm | A pair of features \((i,j)\) jointly permuted and relearned | Global feature importance under dependence |

In the coalition-regression literature, paired sampling means complement-paired subsets. One paper proves that if subsets are sampled in pairs \(S\) and \(D\setminus S\), then paired KernelSHAP outputs exactly the same Shapley value approximations as second-order PolySHAP, without ever fitting a degree \(2\) polynomial. That result is specific to weighted least-squares coalition regression and is not a theorem about permutation-based SHAP estimators [2601.18608].

A related regression-theoretic account shows that Shapley values depend only on the odd component of a set function, and that paired complement sampling orthogonalizes a regression objective into odd and even parts, thereby filtering out the irrelevant even component. Again, this is a formal result for paired coalition regression rather than a direct variance theorem for permutation Monte Carlo, although it provides a conceptual explanation for why complement symmetry is beneficial more generally [2602.01399].

The Pairwise Permutation Algorithm is different in a more fundamental sense. Its “pairwise” mechanism means pairs of features, not paired Monte Carlo samples: it perturbs two correlated features at a time in the training data, retrains the model, and uses those pairwise relearned importances to correct single-feature global importance scores. It is not a Shapley estimator, does not average over permutations of feature orderings, and does not compute additive attributions whose sum equals a coalition-value difference [2111.09145].

A further source of ambiguity is data permutation. Another line of work uses independent permutation of each data column to sample from a product-of-marginals distribution for safe aggregation of SHAP or KernelSHAP values. That construction concerns background-data preprocessing for global feature-discarding analysis, not feature-order permutation in PermutationSHAP [2503.23111].

## 5. Empirical behavior and computational tradeoffs

The empirical picture in the paired-sampling PermutationSHAP paper is mixed in a way that reflects the method’s strong structure but nontrivial evaluation cost. In a nonlinear \(q=4\) example with
\[
\nu(Z)=\exp(Z^\top \theta)-1,
\]
the CLT approximation based on \(\Sigma\) matches empirical standard deviations well, and paired PermutationSHAP and paired KernelSHAP have approximation errors of similar order, with the permutation version somewhat better for one component. In a larger \(q=10\) example with
\[
\nu(Z)=\exp\{Z^\top \theta\},
\]
empirical bias is negligible, asymptotic standard errors from \(\Sigma\) are accurate, and paired PermutationSHAP has significantly smaller standard deviations than paired KernelSHAP on the per-sample scale [2508.12947].

The computational caveat is that the same paper counts each paired PermutationSHAP simulation as requiring \(2q\) value-function evaluations, whereas paired KernelSHAP requires \(2\). Consequently, after adjusting for evaluation cost rather than raw per-sample variance, KernelSHAP may be preferable if the only concern is evaluation count. The paper’s practical preference for the permutation-based method instead rests on its structural guarantees, especially additive recovery and the interpretability of the covariance structure [2508.12947].

The broader permutation-sampling literature places this reverse-pairing strategy within a larger design space. Reverse-paired Monte Carlo is already a strong baseline, but structured samplers can go further. Kernel herding and sequential Bayesian quadrature minimize discrepancy on permutation space, while orthogonal spherical codes and Sobol-based constructions generate more space-filling or negatively dependent batches of permutations. In tabular experiments, orthogonal spherical codes were the most consistently strong new method and were explicitly interpreted as a generalization of antithetic pairing beyond simple reverse-permutation pairs [2104.12199].

## 6. Scope, extensions, and neighboring formulations

The method’s clearest domain is any local explanation problem where the primary object is a fixed coalition value function \(\nu\) and the objective is to estimate Shapley attributions by averaging marginal contributions along feature orderings. Within that scope, paired-sampling PermutationSHAP is best understood as a reverse-permutation symmetrization that is exact for quadratic interaction structure and blockwise exact in aggregate for additively decomposed games [2508.12947].

Its transfer to more specialized games depends on how the coalition value function is defined. In preference modeling, for example, Pref-SHAP defines a pairwise comparison game over shared feature indices across both compared items: a coalition \(S\subseteq\{1,\dots,d\}\) means that the features in \(S\) are revealed for both items simultaneously, and the missing coordinates are integrated out through conditional expectations. The paper itself estimates SHAP values by sampled coalitions and weighted least squares rather than by permutation traversal, but its game semantics make clear that a permutation-based estimator for pairwise comparisons would need to add feature index \(i\) by revealing \(x_i\) and \(x'_i\) together, not by treating the two items as separate \(2d\) players [2205.13662].

The present literature therefore supports a precise delimitation. Paired-sampling PermutationSHAP has direct theory for reverse-permutation pairing, asymptotic inference, exactness for second-order interactions, and additive recovery [2508.12947]. Coalition-regression papers provide complementary but not interchangeable theory: complement-paired sampling can implicitly encode second-order information in KernelSHAP-style estimators [2601.18608], and paired complements isolate the odd component relevant to Shapley values in regression formulations [2602.01399]. A plausible implication is that symmetry-based designs are valuable across SHAP estimators, but the strongest permutation-specific statements currently remain those proved for the reverse-paired permutation estimator itself.

Source: https://www.emergentmind.com/topics/paired-sampling-permutationshap