Extracting Rare Dependence Patterns via Adaptive Sample Reweighting

Yiqing Li, Yewei Xia, Xiaofei Wang, Zhengming Chen, Liuhua Peng, Mingming Gong, Kun ZhangICML 2025

TL;DR

Standard statistical tests often fail to detect "rare dependencies"—patterns that only exist within small, specific regions of a dataset. This paper introduces RHSIC (Reweighted Hilbert-Schmidt Independence Criterion), a method that adaptively learns to "zoom in" on these regions by reweighting samples, significantly improving the accuracy of independence testing and causal discovery.

The Problem: Rare Dependence

In data science, determining whether two variables, $X$ and $Y$, are independent is a foundational step for tasks ranging from feature selection to building causal models. However, most existing statistical tests assume that if a relationship exists, it is spread somewhat evenly across the entire data distribution.

This assumption creates a major blind spot for what the authors term rare dependence. This phenomenon occurs when $X$ and $Y$ appear completely independent across the vast majority of the data (e.g., 95%) but exhibit a strong, tightly coupled relationship in the remaining fraction. For instance, income and consumption might be weakly related for the general population but become highly correlated at extreme income brackets.

An example of rare dependence, where a strong relationship exists only within a small region (red box) of the overall data distribution.

Standard tests like the Hilbert-Schmidt Independence Criterion (HSIC) often "average out" these subtle, localized signals, leading to false negatives. In causal discovery, missing these critical connections can cause a cascade of errors, resulting in incorrect or incomplete causal graphs.

Methodology: RHSIC

The core innovation of this paper is RHSIC, a novel approach that combines kernel-based independence testing with adaptive sample importance reweighting.

  1. Reweighting Function ($\beta$): Instead of treating all data points equally, the method learns a function that assigns a specific weight to each sample. The objective is to assign higher weights to data points that reside in regions exhibiting significant dependence.
  2. Optimization: To find the optimal weights, the authors formulate an optimization problem that maximizes the reweighted dependence measure. To prevent the model from overfitting to a single noisy outlier, they incorporate regularization terms. These terms encourage smoothness and ensure the learned weights do not deviate too drastically from a uniform distribution.
  3. Data Splitting: To avoid "inventing" a relationship just to satisfy the optimization objective, the method employs data splitting. The weights are learned on a training subset, and the actual independence test is performed on a separate testing subset.
  4. RD-PC Algorithm: The authors take their reweighted test a step further by integrating it into the classic PC algorithm for causal discovery. They introduce specific rules to help the algorithm distinguish between true rare dependence and "collider" structures (where two independent variables both influence a third), which can appear deceptively similar under reweighting.

Datasets Evaluated

The authors rigorously evaluated their method using a mix of synthetic and real-world data:

  • Synthetic Data (DG I, II, III): Custom-designed distributions where dependence is engineered to exist only in specific intervals (e.g., $Y$ depends on $X$ only when $X$ is near zero).
  • Sachs Dataset: A classic "gold standard" dataset in causal discovery containing protein signaling measurements (11 proteins, 853 samples).
  • Financial Dataset: Monthly JPY/USD exchange rates and U.S. federal funds rates spanning from 1990 to 2010.

Key Insights

  • "Attention" for Statistics: RHSIC acts much like an attention mechanism in deep learning, but for statistical testing. It doesn't just ask if there is a relationship globally; it actively searches for where a relationship might be hiding locally.
  • Maintaining the Null Hypothesis: A critical theoretical guarantee of RHSIC is that if $X$ and $Y$ are truly independent, reweighting them based on $X$ alone (or $Y$ alone) will not create a spurious relationship. This ensures the test remains statistically valid and controls false positives.
  • Interpretable Weights: The learned weights provide valuable insights. In the financial dataset, the model automatically assigned the highest weights to the years 2001 and 2008—the periods of the Dot-com recession and the global financial crisis—highlighting exactly when the economic variables became most coupled.

Key Results

Empirical evaluations demonstrate that RHSIC significantly outperforms standard approaches in detecting hidden structures.

Performance comparison showing the proposed method ('Ours') achieving superior test power while maintaining controlled Type I error rates across different data generation scenarios.
  • Superior Power: In synthetic benchmarks, RHSIC consistently maintained a controlled Type I error rate (around the standard 5% threshold) while achieving significantly higher "power" (the ability to correctly detect a true relationship) than baselines like RDC, FHSIC, and standard HSIC.
  • Sachs Discovery: Standard HSIC failed to find the known biological dependence between the proteins PKA and PJINK (yielding a non-significant p-value of 0.601). RHSIC successfully detected this rare dependence with a highly significant p-value of 0.004.
  • Causal Accuracy: When integrated into causal mapping, the RD-PC algorithm outperformed the standard PC algorithm in structural accuracy (measured by Structural Hamming Distance and F1 score). This proves that detecting rare dependencies is not just a statistical curiosity, but a vital step for building correct causal models.

Limitations and Future Work

While powerful, the method has a few limitations. It requires choosing a "reference variable" $C$ to guide the reweighting. While using $X$ or $Y$ works well in practice, choosing an optimal third variable in complex causal systems could further boost performance. Additionally, because it involves an optimization step and permutation tests to calculate p-values, RHSIC is more computationally intensive than simple, non-adaptive tests. Future work may focus on extending the theoretical uniform bound analysis to the more complex case of conditional independence testing.

Summary updated

BibTeX
@inproceedings{li2025extracting,
  author = {Yiqing Li and Yewei Xia and Xiaofei Wang and Zhengming Chen and Liuhua Peng and Mingming Gong and Kun Zhang},
  title = {{Extracting Rare Dependence Patterns via Adaptive Sample Reweighting}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=iIPAdNq9cq},
}
Figure