Manuscript Offprint
arXiv:2611.07165Structural Conditional Independence Test via Neural Quantile Resolution
Khoa Nguyen, Bao Duong, Thin Nguyen
Deakin Applied Artificial Intelligence Initiative, Geelong, Australia
{khoa.nguyen, b.duong, thin.nguyen}@deakin.edu.au
Abstract—Conditional independence testing is difficult when dependence is weak, localized, or expressed through distributional changes rather than a global mean shift. Existing tests usually return a scalar statistic or p-value, which summarizes evidence against independence but does not describe where the conditional law changes. We propose QRCIT, a quantile-resolution conditional independence test that compares and through a quantile deformation learned by a shared model. A lightweight residual quantile-flow model first learns the baseline conditional quantile law and then learns the additional deformation induced by , yielding a global predictive-gain statistic with conditional-randomization calibration and an inspectable deformation field over context and quantile level. We also introduce the Structural Dependency Benchmark (SDB), which evaluates dependence structures motivated by real applications, such as context-local, tail-only, sign-reversing, moving-ridge, and mean-neutral patterns. Across synthetic post-nonlinear (PNL) and SDB benchmarks, QRCIT improves detection of structured alternatives, with empirical Type-I behavior evaluated across settings. Higher quantile resolution improves merged-SDB power at moderate sample sizes, while diagnostics restricted to known affected regions improve detection of localized dependence. On Sachs, METABRIC breast cancer, and CCLE/PLX4720, QRCIT provides competitive real-data performance and interpretable deformation patterns. These results support quantile-resolved conditional-law deformation as a practical framework for testing and diagnosing structured conditional dependence. Code is available at https://github.com/khoangdadk/qrcit.
I. INTRODUCTION
Conditional independence testing (CIT) asks whether
should be rejected, and is a basic primitive in causal discovery [19], feature screening and controlled variable selection [16], biological dependency analysis [1, 32], fairness auditing [17], and robust or invariant prediction [18]. Existing CIT procedures usually compress the sample into a scalar statistic and a p-value. This is necessary for hypothesis testing, but it hides structure: a weak statistic may reflect true conditional independence, low power against a localized alternative, cancellation between opposite effects, tail-only dependence, or a distributional shape change with little conditional-mean shift. Conversely, a rejection rarely explains where or how the conditional law changed.
Figure 1 illustrates this motivation. Panels A–B show the direction and quantile-specific shape of fitted real-data conditional-law contrasts. Panel C gives a controlled mean-neutral structural example: density and quantile views reveal changes in the conditional distribution, while residual-
covariance and local scalar summaries can be weak or unstable. Together, these panels illustrate the central gap addressed by QRCIT: conditional dependence is not only a question of whether is rejected, but also where the conditional-law discrepancy appears over context and quantile level. This motivates a test that keeps a calibrated global p-value while retaining a deformation field for inspection, consistent with local and context-specific independence settings where dependence can be restricted to part of the conditioning space [20, 21].
Such structural discrepancies arise across data-mining applications. In genomics and pharmacogenomics, regulatory or drug-response signals can depend on molecular context, corresponding to context-local dependence [1, 2]. In finance, systemic risk and growth-at-risk are explicitly tail-focused, motivating tests that do not average away lower-tail dependence [12, 13]. In policy and social-science applications, treatment effects may vary across the outcome distribution, so mean-level summaries can miss distributional or sign-varying effects [14, 15]. These examples require a CIT method to expose how differs from , not only whether the difference survives scalar aggregation.
The theoretical difficulty is that CIT compares conditional objects across . With continuous or high-dimensional , exact local replication is unavailable, so tests approximate locality through smoothing, kernels, regression, embeddings, or learned conditional distributions. This creates a stability-resolution tradeoff: broad neighborhoods reduce variance but blur localized dependence, whereas narrow neighborhoods preserve structure but may contain too few observations. Since conditional-object estimation and conditioning-kernel choices affect both Type-I error and power [38], practical CIT should retain a resolution layer that distinguishes true independence from localized, tail-specific, or cancelling dependence.
This paper asks whether CIT can be equipped with such a resolution layer. Our starting point is the law-level characterization
For scalar , let
where is the quantile level. We define the quantile-flow deformation
A. Breast cancer
B. CCLE / PLX4720

C. Synthetic explanatory mechanism

(a.1)
(b)
(c)
(e)
(g)
Fig. 1. Real-data evidence and synthetic explanation for quantile-resolved conditional dependence. In A–B, black curves show mean conditional quantile contrasts, averaged over held-out contexts and across folds; grey bands show standard deviation across folds. A contrasts gene expression at the 75th versus 25th percentile; B contrasts mutation presence versus absence. Each contrast compares the learned quantiles at two values of Y, so the shared baseline cancels. Positive and negative values indicate upward and downward quantile shifts, respectively. (A) Breast-cancer deformation profiles in the cBioPortal-reconstructed METABRIC benchmark. PTPRN2 shows negative upper-tail tumor-size deformation, interpreted as a progression-associated conditional signature [6]; SF3B1 shows positive upper-tail deformation, consistent with breast-cancer relevance of splicing-factor dysregulation [5]. (B) CCLE/PLX4720 mutation-response profiles. PIP5K1A_MUT shows a broadly positive fitted Amax-scale contrast, while HIP1_MUT shows a negative contrast whose magnitude varies across quantile levels. These profiles describe how mutation status shifts the fitted response quantiles conditional on the other selected mutations. (C) A synthetic mean-neutral example in which observing , playing the role of Y, changes the conditional distribution's shape with little change in its mean. Panels (a.1)–(a.2) show baseline and refined density slices; (b) shows the corresponding quantile functions; and (c) shows the signed deformation . Panels (d)–(g) illustrate the difficulty of detecting these changes: mean-like summaries can be weak, broad neighborhoods blur local structure, and narrow neighborhoods increase estimation variance [38].
Under conditional independence, this field is zero almost everywhere; under conditional dependence, its geometry describes how observing Y deforms the conditional law of X beyond Z.
Inspired by residual networks and residual flows [39, 40], we propose Quantile-Resolution Conditional Independence Test (QRCIT), a residual neural quantile-flow framework. QRCIT learns a baseline conditional quantile model and only the additional deformation , giving
The global statistic measures predictive gain under the pinball loss: whether adding Y improves quantile prediction of X beyond Z. Its p-value is calibrated by conditional randomization, while the learned deformation field remains available for structural inspection. Thus QRCIT keeps the standard hypothesis-testing interface but exposes the conditional-law discrepancy before it is aggregated into a scalar statistic.
The central design principle is resolution. Prior Wasserstein CIT uses multiresolution distributional comparisons within conditioning-space bins [23]. QRCIT adopts the broad resolution principle along a different axis: a quantile grid
evaluates conditional-law change. A coarse grid summarizes broad discrepancy, while a finer grid can resolve localized changes. Since is an input to the neural model, increasing refines evaluation resolution without increasing model parameters.
Our contributions are as follows.
• We represent conditional-law discrepancy through an inspectable quantile-deformation field, building on the quantile characterization of conditional independence.
-
We propose QRCIT, a residual neural quantile-flow test that learns and , tests via predictive gain, and calibrates global p-values by conditional randomization.
-
We identify quantile resolution as a practical degree of freedom for CIT: the grid size controls how finely QRCIT inspects localized distributional alternatives without changing the model size.
-
We introduce SDB, a controlled benchmark suite for structured conditional-law changes motivated by practical domain evidence and the stability–resolution difficulty of conditional testing.
- We evaluate QRCIT on synthetic, SDB, sliced multivariate, and biological benchmarks, showing improved detection of structured alternatives and interpretable real-data deformation patterns.
A. Conditional Independence Testing
Conditional independence testing has been developed through kernel, distance, and regression-based formulations. Kernel-based conditional independence (KCI) tests measure conditional dependence with RKHS statistics and are widely used in causal discovery [19]. Nearly minimax Wasserstein CIT uses weighted multiresolution distributional comparisons within conditioning-space bins [23]. Regression-residual methods provide a complementary route: the generalized covariance measure (GCM) regresses X and Y on Z and tests residual covariance, with validity depending mainly on conditional-mean estimation [28]. Representation-learning approaches such as LCIT learn latent representations of X and Y that remove information about Z, and then test whether the remaining latent variables are dependent [29].
Quantile-based CIT has established foundations. Su and White [24] compare local-polynomial conditional quantile estimates, while Petersen and Hansen [25] use quantile regression to construct partial-copula residuals. Quantile graphical models characterize conditional dependence across quantile levels [26]. QRCIT's emphasis is a shared residual quantile-deformation model that supports predictive-gain testing while retaining a signed field for diagnosis and adjustable quantile evaluation resolution.
B. Neural Conditional Randomization and Flow-Based Tests
The conditional randomization test (CRT) calibrates a statistic by resampling one variable from an estimated null conditional distribution. Model-powered CIT and GCIT instantiate this principle with predictive or generative models; GCIT uses a generative adversarial network to approximate the null distribution and evaluate test statistics against generated null samples [31, 32]. More recent neural CIT methods replace GANs with conditional diffusion or flow models. CDCIT uses conditional diffusion models for CRT-style testing with a classifier-based conditional mutual information statistic [34]. Transport-map CIT estimates conditional continuous normalizing flows to transform conditional independence into unconditional independence, while FMCIT uses flow matching to accelerate repeated CI queries in causal discovery [36, 37]. These methods improve testing by learning conditional distributions or transports. QRCIT differs in its learned object: it does not aim to learn a full conditional density or global transport map, but a scalar-valued quantile deformation of X that remains inspectable after computing the global p-value.
C. Hardness and Structural Resolution
Hardness results motivate explicit assumptions and target alternatives in CIT. Shah and Peters show that, without restrictions, no universally valid finite-sample conditional independence test can have nontrivial power, and propose GCM as a residual test under weaker conditional-mean estimation requirements [28]. Recent practical analysis further shows that KCI Type-I behavior is strongly affected by conditional mean embedding estimation error, while power depends critically on the conditioning kernel; choices that improve power can also inflate Type-I error [38]. These results expose a stability-resolution tension: conditioning must be local enough to reveal dependence, but stable enough to avoid spurious rejection. This view is consistent with local permutation tests, which compare observations with nearby conditioning values, and recent continuous-variable local-independence work, which seeks context regions where independence relations change [20, 21]. QRCIT differs by keeping a global CRT-calibrated p-value while exposing a quantile-context deformation field for regional inspection.
The structural alternatives in SDB instantiate concrete versions of this hardness mechanism. A context-local alternative can be expressed as a quantile deformation
so that dependence is confined to a small context region A. Broad conditioning neighborhoods mix A with its complement and dilute the discrepancy, whereas narrow neighborhoods reduce the effective sample size to the order of , exposing the bias-variance tradeoff of localized CIT. Tail-only alternatives create an analogous resolution problem along the response distribution: if
then a statistic aggregating across quantile levels observes only a fraction of the deformation, while a local quantile-context estimator effectively operates with sample size . These examples illustrate why SDB varies not only signal strength but also the location of conditional-law discrepancies over Z and u. QRCIT addresses this structured regime by estimating an amortized deformation , retaining resolution over context and quantile level while pooling information through a shared model.
III. QUANTILE-RESOLUTION CONDITIONAL INDEPENDENCE TEST
Overview. QRCIT tests conditional independence while retaining a resolution layer for the conditional-law discrepancy. The method has four components. First, it represents conditional dependence as a quantile-flow deformation between and . Second, it learns this deformation with a residual quantile-flow model. Third, it aggregates quantile-level predictive gain into a global statistic calibrated by conditional randomization. Fourth, it uses the quantile grid and local regions to inspect where the conditional-law change is concentrated. Algorithm 1 summarizes the training, calibration, and output steps. We present the scalar-X case first and describe a sliced multivariate extension at the end.
Problem setup. Let be i.i.d. samples, where is initially scalar, is the candidate variable, and is the conditioning context. The null hypothesis is
QRCIT keeps the usual CIT goal of testing this null, but it also estimates how the conditional law of X changes when Y is revealed beyond Z.
Quantile-flow deformation. For , let
where quantiles are understood as generalized inverse CDFs. Define
The next result restates the conditional-quantile characterization of independence [26] in deformation coordinates.
Proposition 1 (Deformation characterization). Assume regular conditional laws and exist. Then
for -almost every , where is Lebesgue measure on . Equivalently, a.e.
Sketch. Conditional independence is equivalent to a.s. Equality of one-dimensional distributions is equivalent to equality of generalized quantile functions for almost every u. Subtracting the two quantile functions gives the result.
Residual quantile-flow model. Proposition 1 motivates a residual design in which the conditional law after adding Y is expressed as a deformation of the baseline law. We parameterize
where is the learnable counterpart of . The additive residual form is inspired by residual parameterizations in invertible and flow-based generative models, where a learned residual component provides a flexible but stable deformation of a baseline transformation [39, 40]. In QRCIT, this design serves the same purpose at the level of conditional quantiles: represents the baseline conditional quantile law, while efficiently learns the additional deformation associated with adding Y. Under , no residual correction should be needed; under the alternative, learns where and how Y changes the conditional law of X beyond Z.
Let
be the pinball loss. QRCIT trains and by minimizing
The two regularizers have different roles. Let . The monotonicity penalty is the continuous crossing penalty
(15)
It penalizes negative quantile slopes, encouraging nondecreasing baseline and refined quantile functions. Penalizing crossing is necessary because nonmonotone quantile curves can create artificial deformation patterns in . The deformation penalty is
which shrinks residual deformation toward the null preference . This reduces spurious conditional-law change when Y does not add information beyond Z, while still allowing nonzero deformation when the pinball loss supports it. In the residual-deformation implementation used in our experiments, this objective is optimized in two stages: we first fit using the baseline pinball loss; then we freeze and train the deformation head through . This staged optimization matches the statistical decomposition above: the baseline law is estimated first, and the residual module learns only the additional conditional-law change attributable to Y beyond Z. The full QRCIT workflow is summarized in Algorithm 1.
Predictive-gain statistic. The predictive-gain statistic is meaningful because conditional quantiles minimize pinball risk. Given a grid , QRCIT measures the gain from adding Y:
(17)
Large indicates that the refined model using Y reduces quantile risk relative to the baseline model using only Z.
Lemma 1 (Population predictive-gain target). Assume . For fixed , let and be conditional -quantiles of and . Define
Then . If the conditional -quantile is unique, then iff a.s. If this equality holds for almost every , Proposition 1 implies conditional independence.
Sketch. The pinball loss is minimized by the conditional u-quantile. Since is at least as informative as Z, its optimal pinball risk is no larger. Equality under uniqueness implies equality of the two conditional quantiles at that u.
Lemma 1 explains why QRCIT can detect dependence whose signed deformations cancel in a mean summary. At the population level, an upward shift at one quantile and a downward shift at another can each yield a positive reduction in pinball risk. QRCIT aggregates these predictive gains across quantiles, so both shifts contribute evidence even when their average signed deformation is close to zero. The deformation field retains their directions and locations for interpretation.
Conditional randomization calibration. Calibration is handled by conditional randomization; the oracle case gives the relevant Type-I benchmark. For , draw
Algorithm 1 QRCIT for conditional independence testing
Input: data , quantile grid , folds , null draws , conditional sampler .
Output: global p-value , deformation summaries, and optional local-rescue p-values.
-
Split into folds.
-
for each fold do
-
Fit the baseline quantile model on the training folds using pinball loss.
-
Freeze and fit through .
-
Compute the held-out statistic using the predictive gain over .
-
for do
-
Draw for held-out samples.
-
Compute the null statistic with .
-
end for
-
end for
-
Aggregate observed and null statistics across folds and return the CRT p-value.
-
If regions are specified, compute region p-values and deformation summaries for local-rescue inspection.
compute , and report
Proposition 2 (Oracle Type-I control). Consider an evaluation sample independent of the data used to fit , , and any nuisance components in the statistic. Suppose null samples are generated from the oracle conditional law . Under , conditional on the fitted models and evaluation , and are exchangeable. Hence
Sketch. Under , has the same law as each oracle draw and is independent of given . With fitted models fixed, the statistic is a deterministic function of , so the observed and null-resampled statistics are exchangeable. In practice, is estimated; calibration then depends on the quality of , and empirical size is reported in experiments. Proposition 2 concerns an independent evaluation sample; calibration of the pooled cross-fitting implementation is assessed empirically.
Quantile resolution, region inspection, and local-rescue test. Quantile resolution affects how well localized gain is approximated. The grid size K controls the resolution at which QRCIT evaluates conditional-law change. At the population level, the global statistic approximates an integral of the gain density over the quantile axis.
Proposition 3 (Quantile-grid approximation). Let , , be a bounded-variation population gain density. For an equally spaced grid ,
where is the total variation of g and C is a universal constant.
Sketch. This is the standard Riemann-sum approximation bound for bounded-variation functions. If the gain is concentrated on a quantile interval of width w, a grid spacing much larger than w can under-resolve the active region, while resolves it. The result justifies resolution as an approximation principle, while finite-sample power can still depend on estimation and calibration error. The role of K is analogous in spirit to multiresolution Wasserstein CIT, where aggregating localized discrepancies across resolutions improves sensitivity to structured alternatives [23]. In QRCIT, K controls resolution along the quantile axis: a coarse grid captures broad distributional change, while a finer grid can resolve tail-local or moving-u deformation.
For a region , QRCIT computes
(23)
We also use a deformation-energy regional statistic
Here may be context-local (a slab), quantile-local (tail ), or both. Regional aggregation focuses the statistic on observations and quantile levels where the conditional law may change. For example, a tail effect confined to one context subgroup contributes to only a small fraction of the terms in the global average. Restricting the statistic to that subgroup and tail can make the signal more prominent, although a smaller region also leaves fewer observations for estimation. Predictive gain measures whether the added variable improves quantile prediction within the region; deformation energy measures the magnitude of the fitted change without cancellation between positive and negative deformations. Both and are calibrated by applying the same conditional-randomization null draws to their corresponding regional statistics. In structural benchmarks, we optionally use a gated local-rescue test
where is a relaxed gate. The global conditional-randomization p-value remains the primary calibrated decision, while the local-rescue test targets weak structured alternatives near the global decision boundary. In the SDB experiments, is the oracle affected region induced by the known structural template, and is calibrated by the same conditional-randomization procedure on the regional statistic. Thus QRCIT+PG and QRCIT+DE evaluate regional testing with known affected regions. Proposition 2 does not establish calibration of the combined rescue rule. Learning and calibrating the resulting selection remain future work.
Proposition 4 (Power under separated alternatives). Let
be the population predictive gain on , and let be the oracle null critical value. Suppose and the conditional-randomization critical value consistently estimates . If
(27) for some , then
Sketch. By consistency, the observed statistic converges to , while the randomization critical value converges to . Under the separation condition, the observed statistic eventually exceeds the null critical value with probability tending to one. The role of K is through : finer grids better approximate localized gain, although finite-sample power need not increase monotonically with K.
Resolution efficiency and complexity. Resolution matters computationally only through evaluated quantile inputs. Since is an input to and , increasing does not increase the number of neural parameters. With a fixed architecture and sampled- training, let be the number of folds, the number of epochs, the number of null draws, the sample size, and , the costs of one backward and forward pass. Training scales as , while evaluation and calibration scale as . Thus increasing quantile resolution incurs a linear forward-evaluation cost during calibration, but does not require a larger model or separate quantile heads.
Sliced multivariate extension. For multivariate X, QRCIT applies the scalar test to one-dimensional projections
and aggregates the resulting p-values across slices. This preserves the scalar quantile-flow machinery while extending QRCIT to multivariate responses.
IV. EXPERIMENTS
Experimental goals. Our experiments evaluate four questions. First, we test whether QRCIT behaves as a calibrated conditional-independence test, with competitive empirical Type-I error and power on conventional synthetic post-nonlinear (PNL) benchmarks. Second, we evaluate whether QRCIT is sensitive to structured conditional-law changes through the proposed Structural Dependency Benchmark (SDB), where dependence may be localized in context, quantile region, sign, or distributional shape rather than appearing as a simple global mean shift. Third, we study whether quantile resolution and the local-rescue rule improve sensitivity to structured alternatives without introducing prohibitive computational cost. Fourth, we examine whether the learned quantile deformation provides useful real-world interpretation and downstream utility on Sachs, METABRIC breast cancer, and CCLE/PLX4720.
Setup. We compare QRCIT with representative kernel, regression, and neural CIT baselines, including GCM [28], SGMCIT [35], CDCIT [34], NNLSCIT [30], KCI [19], and PowerMax-KCI [22]. Synthetic results report empirical Type-I error under and power under . Synthetic PNL and SDB comparisons use K = 9 quantile levels and B = 20 conditional-randomization null draws, so the rejection threshold is . The SDB local-rescue variants QRCIT+PG/DE use the gate . Each PNL and merged-SDB point averages over 100 independent trials, while each separated SDB structural-pattern point averages over 20 trials per pattern. Sachs uses B = 200 and , aligned with the finest attainable randomization p-value. METABRIC uses B = 200, giving p-value resolution 1/201, while CCLE uses B = 1000, with resolution 1/1001; in METABRIC, p < 0.10, p < 0.05, and p < 0.01 are feature-selection thresholds for downstream tumor-size regression rather than separate test-size settings. Real-world experiments use K = 19.
QRCIT uses 5-fold cross-fitting, predictive-gain statistics, and conditional-randomization calibration. For scalar continuous , the standardized residual-bootstrap sampler fits a nuisance regression of on , resamples standardized residuals, and reconstructs null draws ; multivariate continuous uses a learned Gaussian conditional sampler, and binary mutation variables use a logistic/Bernoulli sampler for . The neural quantile model uses two hidden layers of width 32, batch size 64, learning rate , weight decay , dropout 0.05, 80 training epochs, patience 20, , and . These settings were selected by a validation grid over hidden width, dropout, learning rate, and regularization weights. All experiments were run on compute nodes with 64GB CPU memory.
Synthetic PNL benchmarks and Structural Dependency Benchmark. We use the standard synthetic PNL benchmark as a conventional nonlinear CIT test bed before evaluating the proposed structural benchmark. Each trial is sampled from a pooled set of two nonlinear mechanism families. Both draw , directions , and independent noises . One family uses the latent construction
(30)
with . Because these transformations are monotone, this family has an analytic conditional-quantile structure and serves as a controlled benchmark for quantile-based testing; QRCIT learns the conditional quantile functions from the sampled data. The second family uses
(31)
where is the standardized X-signal and . This second family includes nonmonotone transformations and harder detection cases, so dependence is not reducible to a simple monotone quantile shift. The null uses , and the main alternative uses .
We first visualize SDB in Figure 2. SDB is designed to isolate structural difficulty in CIT: signal strength may be comparable, but dependence can be localized in context, localized in quantile level, sign-changing, mean-neutral, or moving across the response distribution. SDB uses a common quantile-deformation generator,

Fig. 2. Structural dependence patterns in SDB. Each row shows one controlled structural alternative under the shared form : context-local, mean-neutral shape, moving-u-ridge, sign-reversing, and tail-only dependence. The first two columns show density slices under different contexts, while the third column shows the corresponding quantile-function change. The benchmark stresses whether a CIT method can detect conditional-law changes that are localized over context Z, localized over quantile level u, sign-changing, or weak at the conditional mean.
Here indexes the structural pattern and gives the null. All alternatives share the same baseline conditional quantile law ; the pattern enters only through the structural deformation . Context-local dependence gates to a slab in , so global aggregation mixes active and inactive contexts. Sign-reversing dependence multiplies by a sign-changing factor such as , so opposite regions can cancel. Tail-only dependence activates only in high quantiles, so central quantiles appear nearly independent. Mean-neutral shape dependence uses positive and negative quantile deformation with approximately zero integral over , leaving the conditional mean weakly changed while changing the distributional shape. Moving-u-ridge dependence uses a context-dependent active quantile center , so the affected quantile band moves with . These patterns serve as controlled probes of structural dependence: they test whether a method can retain power when dependence is concentrated in context, quantile level, sign, or distributional shape before being aggregated into a global statistic. SDB isolates these structural difficulties in quantile-deformation coordinates; PNL and real-data experiments assess performance beyond this controlled construction.
This design separates conventional Type-I control from power under structurally localized or cancelling dependence. Figure 3 compares QRCIT with baselines on synthetic PNL and merged SDB. QRCIT remains competitive on PNL and strong on merged SDB. QRCIT+PG/DE quantify the benefit of using known affected regions in SDB. KCI and PowerMax-KCI are omitted in some larger settings because their runtime was prohibitive; their runtime trend is reported in Figure 5.
TABLE I
LOCAL-RESCUE P-VALUE SUMMARY ON MERGED SDB WITH FIXED AND K=9. THE NULL COLUMN REPORTS MEAN GLOBAL P-VALUES UNDER ; THE ALTERNATIVE COLUMNS REPORT MEAN P-VALUES UNDER . NULL CALIBRATION IS ASSESSED BY REJECTION FREQUENCIES IN FIGURE 3. REGION P-VALUES USE ORACLE STRUCTURAL REGIONS.
| N | Null | Alternative | ||
|---|---|---|---|---|
| p_{global} | p_{global} | p_{ }^{PG} | p_{ }^{DE} | |
| 250 | 0.650 | 0.250 | 0.179 | 0.160 |
| 500 | 0.629 | 0.198 | 0.150 | 0.096 |
| 1000 | 0.655 | 0.082 | 0.067 | 0.052 |
TABLE II
QUANTILE-RESOLUTION ABLATION ON MERGED SDB WITH FIXED . ENTRIES REPORT GLOBAL QRCIT POWER.
| N | K=5 | K=9 | K=19 |
|---|---|---|---|
| 250 | 0.60 | 0.61 | 0.60 |
| 500 | 0.70 | 0.73 | 0.75 |
| 1000 | 0.87 | 0.89 | 0.91 |
| 1500 | 0.98 | 0.98 | 0.98 |
Figure 4 separates SDB performance by structural pattern. This view shows that the merged-SDB gains are not driven by a single easy case. QRCIT remains strong on context-local, moving-u-ridge, sign-reversing, and tail-only alternatives, while the mean-neutral case is more difficult and benefits from higher resolution and local rescue. Some baselines perform well on selected patterns but are less stable across the full structural benchmark.
Resolution, local rescue, and efficiency. Table I shows that testing within known affected regions yields smaller mean p-values under structured alternatives.
Finer quantile resolution improves power most clearly at moderate sample sizes (Table II). Its benefit is small with few observations, while at larger sample sizes even the coarsest grid approaches maximal power. Thus the value of additional quantile detail depends on how much information the sample provides. Figure 5 shows the computational tradeoff: QRCIT is more expensive than lightweight residual tests but remains practical compared with the heavier kernel methods.
Additional ablations. We assess performance with multivariate responses and sensitivity to exchanging X and Y. The sliced multivariate experiment uses , , , 8 random plus coordinate projections, scalar QRCIT per slice with and , a learned Gaussian sampler, and Cauchy aggregation of slice-level p-values, without local-region tests.
Table III shows that one-dimensional projections allow QRCIT to detect dependence in multivariate responses. Exchanging X and Y leaves power nearly unchanged in the PNL experiment, but changes empirical Type-I error (Table IV). The choice of which variable to model and which to resample can therefore affect calibration even when detection power is similar.
Real-world benchmarks. We evaluate QRCIT on three real-world benchmarks with dataset-specific preprocessing.
(a) Synthetic PNL
(b) Merged SDB

Fig. 3. Type-I error and power on synthetic PNL and merged SDB benchmarks using , averaged over 100 independent trials. The first row varies sample size with fixed ; the second row varies with fixed . Panels (a) report synthetic PNL results and panels (b) report merged SDB results. QRCT is highlighted; QRCT+PG/DE use oracle regions to evaluate the benefit of regional testing.

Fig. 4. Separated SDB power, averaged over 20 trials per structural pattern. Each column corresponds to one structural pattern. The first row varies with fixed , and the second row varies with fixed . The figure reports power only; Type-I behavior is summarized in Figure 3.

Fig. 5. Average runtime on synthetic PNL as increases with fixed , shown on a log scale.
- Sachs. We use the Sachs protein-signaling benchmark from single-cell signaling measurements [3] and follow NNLSCIT preprocessing [30], yielding 90 CI/CD cases (50 CI, 40 CD). We report precision, recall, and F1 with conditional independence as the positive class; KCI is
TABLE III
SLICED MULTIVARIATE BENCHMARK. QRCT APPLIES THE SCALAR QUANTILE-FLOW TEST TO ONE-DIMENSIONAL PROJECTIONS OF MULTIVARIATE . ROWS REPORT EMPIRICAL TYPE-I ERROR AND POWER.
| Metric | QRCT | GCM | SGMCIT | CDCIT | KCI | PM-KCI | NNLSCIT |
|---|---|---|---|---|---|---|---|
| Type-I | 0.00 | 0.05 | 0.91 | 0.04 | 0.05 | 0.05 | N/A |
| Power | 1.00 | 1.00 | 1.00 | 0.24 | 1.00 | 1.00 | N/A |
TABLE IV
ROLE-SWAP ABLATION ON PNL WITH , , AND . ENTRIES REPORT EMPIRICAL TYPE-I ERROR AND POWER BEFORE AND AFTER EXCHANGING AND .
| Orientation | Type-I | Power |
|---|---|---|
| Original | 0.10 | 0.99 |
| Swapped | 0.04 | 0.98 |
omitted due to the cost of repeated kernel tests.
- METABRIC breast cancer. We reconstruct a CDCIT-
TABLE V
SACHS REAL-DATA BENCHMARK. CONDITIONAL INDEPENDENCE IS THE POSITIVE CLASS FOR PRECISION, RECALL, AND F1 OVER 90 CI/CD QUERY CASES. BLUE INDICATES THE BEST VALUE IN EACH ROW, AND GREEN INDICATES THE SECOND-BEST VALUE.
| Metric | QRCIT | NNLSCIT | GCM | SGMCIT | CDCIT |
|---|---|---|---|---|---|
| Precision | 0.733 | 0.746 | 0.676 | 0.776 | 0.700 |
| Recall | 0.880 | 0.940 | 0.920 | 0.760 | 0.840 |
| F1 | 0.800 | 0.832 | 0.780 | 0.768 | 0.764 |
TABLE VI
DOWNSTREAM TUMOR-SIZE PREDICTION ON THE RECONSTRUCTED METABRIC BREAST-CANCER BENCHMARK. EACH CELL REPORTS MEAN MSE WITH STANDARD DEVIATION ON THE SECOND LINE; LOWER IS BETTER. Q.10/Q.05/Q.01 DENOTE QRCIT-SELECTED GENES AT p < 0.10, p < 0.05, and p < 0.01. BLUE INDICATES THE BEST VALUE, AND GREEN INDICATES THE SECOND-BEST VALUE.
| Q.10 | Q.05 | Q.01 | SGMCIT | CDCIT | NNLSCIT | GCM | |
|---|---|---|---|---|---|---|---|
| MSE | 0.965 0.317 | 0.972 0.319 | 0.974 0.317 | 0.977 0.295 | 0.981 0.324 | 0.985 0.297 | 0.990 0.300 |
style METABRIC benchmark from public cBioPortal brca_metabric clinical files and mRNA z-scores [4, 34]. Our reconstruction includes 1491 patients, 169 genes, and five clinical covariates; its cohort differs from the 1077 ER+ patients reported in CDCIT. QRCIT uses X = tumor size, Y = candidate gene, and Z = remaining genes plus covariates. The MSE scale is therefore not directly comparable to CDCIT; within this reconstruction, each method is evaluated with XGBoost grid-search CV. KCI is omitted because repeated kernel CI testing over the sample/feature loop is computationally prohibitive.
- CCLE/PLX4720. We use the GCIT mutation-response benchmark [2, 32], with PLX4720 Amax as the response. Aligning mutation and response tables gives 474 cell lines. An absolute Pearson correlation screen at 0.1 retains 54 mutation features; adding the reported GCIT candidates and BRAF/MAPK indicators gives 75 features. QRCIT uses X = Amax, Y = candidate mutation status, Z = the other 74 mutations, and a logistic/Bernoulli Y | Z sampler. We report all ten candidates at seed 0 with five-fold cross-fitting, K = 19, and B = 1000. Because screening uses the response, these comparisons are exploratory; p-values are unadjusted for multiple testing.
On Sachs, QRCIT achieves the second-highest F1 among the compared methods (0.800), with recall of 0.880 (Table V).
Table VI reports downstream tumor-size prediction on the reconstructed METABRIC benchmark. QRCIT-selected genes achieve the lowest mean MSE (0.965 ± 0.317), with small differences among methods. Figure 1A illustrates the added interpretation layer: SF3B1 shows an upward conditional tumor-size deformation, mildly stronger in the upper quantiles and consistent with splicing-factor dysregulation in breast cancer [5]; PTPRN2 shows a downward upper-tail deformation and is interpreted as a progression-associated conditional signature [6].
On CCLE/PLX4720, QRCIT yields small p-values for BRAF.V600E, BRAF.MC, CDC42BPA, and PRKD1, supporting their conditional association with drug response (Table VII).
TABLE VII
CCLE/PLX4720 COMPARISON ON MUTATION INDICATORS REPORTED IN GCIT. ENTRIES ARE UNADJUSTED P-VALUES FOR CONDITIONAL MUTATION–RESPONSE ASSOCIATIONS. GCIT VALUES ARE QUOTED FROM [32] AND USE A DIFFERENT CONDITIONING SET.
| BRAF.V600E | BRAF.MC | HIP1 | CDC42BPA | THBS3 | |
|---|---|---|---|---|---|
| QRCIT p | 0.014 | 0.008 | 0.075 | 0.028 | 0.901 |
| GCIT p | < 0.001 | < 0.001 | 0.008 | 0.050 | 0.013 |
| DNMT1 | PRKD1 | FLT3 | PIP5K1A | MAP3K5 | |
| QRCIT p | 0.956 | 0.013 | 0.912 | 0.118 | 1.000 |
| GCIT p | 0.020 | 0.002 | 0.521 | 0.001 | < 0.001 |
Both QRCIT and GCIT yield large p-values for FLT3. QRCIT gives a more conservative assessment than GCIT in this application: for DNMT1, THBS3, and MAP3K5, it finds little evidence of additional response information after accounting for the other selected mutations.
The weak evidence for a MAP3K5 association is consistent with DGCIT [33]. Biologically, MAP3K5/ASK1 is associated with stress-activated JNK/SAPK signaling, whereas PLX4720 targets the RAF-MEK-ERK pathway [10, 11]. Their involvement in different signaling branches offers context for the disagreement with GCIT. As noted in earlier analyses [32, 33], the true conditional relationships in this benchmark are unknown. Together with the limited cell-line sample, this makes the comparison exploratory.
Figure 1B complements these results by describing the estimated response changes across quantiles. PIP5K1A_MUT shows a positive fitted Amax-scale contrast across the quantile grid, whereas HIP1_MUT shows a negative contrast that attenuates toward the upper quantiles. These genes have been linked to RAS-associated signaling and receptor trafficking, respectively [7–9]. The profiles reveal the direction and distributional shape of the fitted response changes, providing an interpretation beyond the scalar p-values.
V. CONCLUSION AND FUTURE WORK
We introduced QRCIT, a conditional independence test that describes how the distribution of X changes when Y is observed in addition to Z. Its learned quantile deformation complements a global test by showing how these changes vary across contexts and quantile levels. We also introduced SDB, a controlled benchmark for evaluating sensitivity to different patterns of conditional dependence. Experiments show competitive performance on conventional benchmarks and improved detection of structured alternatives. The real-data studies illustrate the value of combining testing with distributional interpretation.
Relevance to Data Mining and Broad Impact. From a data-mining perspective, QRCIT targets a common setting in high-dimensional observational data: dependence is often not global, but concentrated in subpopulations, tails, or context-specific regimes. Such structure is important in biomedical discovery, treatment-response analysis, feature screening, and causal discovery, where a scalar rejection decision may be insufficient for understanding why a variable matters. By combining calibrated testing with quantile- and context-resolved deformation, QRCIT provides both statistical evidence and an inspectable description of where the conditional law changes. This makes the method useful not only as a hypothesis test, but also as a diagnostic tool for discovering weak, heterogeneous, or localized dependence patterns in complex data.
Future work. A key direction is to learn affected context-quantile regions from the estimated deformation field, motivated by the gains of oracle-region QRCIT over global QRCIT on SDB. Attention mechanisms or soft gating networks could use deformation features to assign weights across contexts and quantile levels, approximating the localization currently supplied by the oracle. Calibrating the resulting adaptive tests while accounting for region selection remains an important challenge [27]. Selecting and testing regions on the same data can favor patterns caused by random noise, so calibration must preserve the intended Type-I error rate despite this data-dependent selection. Further directions include adaptive quantile resolution and multivariate deformation models that capture changes in joint response structure.
REFERENCES
[1] F. M. Giorgi, G. Lopez, J. H. Woo, B. Bisikirsa, A. Califano, and M. Bansal, “Inferring protein modulation from gene expression data using conditional mutual information,” PLOS ONE, vol. 9, no. 10, e109569, 2014.
[2] J. Barretina et al., “The Cancer Cell Line Encyclopedia enables predictive modelling of anticancer drug sensitivity,” Nature, vol. 483, no. 7391, pp. 603–607, 2012.
[3] K. Sachs, O. Perez, D. Pe'er, D. A. Lauffenburger, and G. P. Nolan, “Causal protein-signaling networks derived from multiparameter single-cell data,” Science, vol. 308, no. 5721, pp. 523–529, 2005.
[4] C. Curtis et al., “The genomic and transcriptomic architecture of 2,000 breast tumours reveals novel subgroups,” Nature, vol. 486, pp. 346–352, 2012.
[5] The Cancer Genome Atlas Network, “Comprehensive molecular portraits of human breast tumours,” Nature, vol. 490, pp. 61–70, 2012.
[6] S. F. Tavazoie, C. Alarcón, T. Oskarsson, D. Padua, Q. Wang, P. D. Bos, W. L. Gerald, and J. Massagué, “Endogenous human microRNAs that suppress breast cancer metastasis,” Nature, vol. 451, pp. 147–152, 2008.
[7] H. Adhikari and C. M. Counter, “Interrogating the protein interactomes of RAS isoforms identifies PIP5K1A as a KRAS-specific vulnerability,” Nature Communications, vol. 9, article 3646, 2018.
[8] D. S. Rao et al., “Altered receptor trafficking in Huntingtin Interacting Protein 1-transformed cells,” Cancer Cell, vol. 3, no. 5, pp. 471–482, 2003.
[9] S. V. Bradley et al., “Huntingtin interacting protein 1 is a novel brain tumor marker that associates with epidermal growth factor receptor,” Cancer Research, vol. 67, no. 8, pp. 3609–3615, 2007.
[10] NCBI Gene, “MAP3K5 mitogen-activated protein kinase kinase kinase 5 [Homo sapiens],” Gene ID: 4217, National Center for Biotechnology Information, accessed 2026-06-07.
[11] M. E. Bahar, H.-J. Kim, and D.-R. Kim, “Targeting the RAS/RAF/MAPK pathway for cancer therapy: from mechanism to clinical studies,” Signal Transduction and Targeted Therapy, vol. 8, article 455, 2023, doi: 10.1038/s41392-023-01705-z.
[12] T. Adrian and M. K. Brunnermeier, “CoVaR,” American Economic Review, vol. 106, no. 7, pp. 1705–1741, 2016.
[13] T. Adrian, N. Boyarchenko, and D. Giannone, “Vulnerable growth,” American Economic Review, vol. 109, no. 4, pp. 1263–1289, 2019.
[14] V. Chernozhukov and C. Hansen, “An IV model of quantile treatment effects,” Econometrica, vol. 73, no. 1, pp. 245–261, 2005.
[15] M. P. Bitler, H. W. Hoynes, and T. Domina, “Experimental evidence on distributional effects of Head Start,” NBER Working Paper 20434, 2014, doi: 10.3386/w20434.
[16] E. Candès, Y. Fan, L. Janson, and J. Lv, “Panning for gold: Model-X knockoffs for high-dimensional controlled variable selection,” JRSS-B, vol. 80, no. 3, pp. 551–577, 2018.
[17] M. Hardt, E. Price, and N. Srebro, “Equality of opportunity in supervised learning,” in Proc. NeurIPS, 2016.
[18] J. Peters, P. Bühlmann, and N. Meinshausen, “Causal inference by using invariant prediction: identification and confidence intervals,” Journal of the Royal Statistical Society: Series B, vol. 78, no. 5, pp. 947–1012, 2016.
[19] K. Zhang, J. Peters, D. Janzing, and B. Schölkopf, “Kernel-based conditional independence test and application in causal discovery,” in Proc. UAI, 2011, pp. 804–813.
[20] I. Kim, M. Neykov, S. Balakrishnan, and L. Wasserman, “Local permutation tests for conditional independence,” The Annals of Statistics, vol. 50, no. 6, pp. 3388–3414, 2022.
[21] I. Hwang, Y. Kwak, Y.-J. Song, B.-T. Zhang, and S. Lee, “On discovery of local independence over continuous variables via neural contextual decomposition,” in Proc. Conference on Causal Learning and Reasoning, PMLR, pp. 448–472, 2023.
[22] R. Pogodin, A. Schrab, Y. Li, D. J. Sutherland, and A. Gretton, “Practical kernel tests of conditional independence,” arXiv:2402.13196, 2024.
[23] M. Neykov, L. Wasserman, I. Kim, and S. Balakrishnan, “Nearly minimax optimal Wasserstein conditional independence testing,” Information and Inference: A Journal of the IMA, vol. 13, no. 4, iaae0333, 2024.
[24] L. Su and H. L. White, “Conditional independence specification testing for dependent processes with local polynomial quantile regression,” in Essays in Honor of Jerry Hausman, Advances in Econometrics, vol. 29, pp. 355–434, 2012.
[25] L. Petersen and N. R. Hansen, “Testing conditional independence via quantile regression based partial copulas,” Journal of Machine Learning Research, vol. 22, no. 70, pp. 1–47, 2021.
[26] A. Belloni, M. Chen, and V. Chernozhukov, “Quantile graphical models: Prediction and conditional independence with applications to systemic risk,” Journal of Econometrics, vol. 252, article 106100, 2025.
[27] P. Gablenz, M. Sesia, T. Sun, and C. Sabatti, “Searching for local associations while controlling the false discovery rate,” arXiv:2412.02182v3, 2026.
[28] R. D. Shah and J. Peters, “The hardness of conditional independence testing and the generalised covariance measure,” Annals of Statistics, vol. 48, no. 3, pp. 1514–1538, 2020.
[29] B. Duong and T. Nguyen, “Conditional independence testing via latent representation learning,” in Proc. IEEE International Conference on Data Mining (ICDM), 2022, pp. 121–130, doi: 10.1109/ICDM54844.2022.00022.
[30] S. Li, Y. Zhang, H. Zhu, C. Wang, H. Shu, Z. Chen, Z. Sun, and Y. Yang, “K-nearest-neighbor local sampling based conditional independence testing,” in Advances in Neural Information Processing Systems, vol. 36, pp. 23321–23344, 2023.
[31] R. Sen, A. T. Suresh, K. Shanmugam, A. G. Dimakis, and S. Shakkottai, “Model-powered conditional independence test,” in Proc. NeurIPS, 2017.
[32] A. Bellot and M. van der Schaar, “Conditional independence testing using generative adversarial networks,” in Proc. NeurIPS, 2019.
[33] C. Shi, T. Xu, W. Bergsma, and L. Li, “Double generative adversarial networks for conditional independence testing,” Journal of Machine Learning Research, vol. 22, no. 285, pp. 1–32, 2021.
[34] Y. Yang, S. Li, Y. Zhang, Z. Sun, H. Shu, Z. Chen, and R. Zhang, “Conditional diffusion models based conditional independence testing,” in Proceedings of the AAAI Conference on Artificial Intelligence, vol. 39, no. 21, pp. 22020–22028, 2025, doi: 10.1609/aaai.v39i21.34354.
[35] Y. Ren, C. Jin, Y. Xia, L. Ke, L. Huang, H. Xue, H. Zhang, J. Guan, and S. Zhou, “Score-based generative modeling for conditional independence testing,” in Proc. ACM SIGKDD Conference on Knowledge Discovery and Data Mining (KDD), 2025, pp. 2410–2419, doi: 10.1145/3711896.3737118.
[36] C. He, Y. Gao, L. Zhu, and J. Huang, “Conditional independence test based on transport maps,” arXiv:2504.09567, 2025.
[37] S. Zhao, Y. Yang, S. Li, and K. Fukumizu, “Fast flow matching based conditional independence tests for causal discovery,” arXiv preprint arXiv:2602.08315, 2026.
[38] Z. He, R. Pogodin, Y. Li, N. Deka, A. Gretton, and D. J. Sutherland, “On the hardness of conditional independence testing in practice,” Advances in Neural Information Processing Systems, vol. 38, pp. 172300–172339, 2026.
[39] J. Behrmann, W. Grathwohl, R. T. Q. Chen, D. Duvenaud, and J.-H. Jacobsen, “Invertible residual networks,” in Proc. ICML, 2019, pp. 573–582.
[40] R. T. Q. Chen, J. Behrmann, D. Duvenaud, and J.-H. Jacobsen, “Residual flows for invertible generative modeling,” in Proc. NeurIPS, 2019.