Papers › On the Versatile Uses of Partial Distance Correlation in Deep Learning

On the Versatile Uses of Partial Distance Correlation in Deep Learning

20 Jul 2022arXiv:2207.09684archive 2025-07-28

Xingjian Zhen, Zihang Meng, Rudrasis Chakraborty, Vikas Singh

Comparing the functional behavior of neural network models, whether it is a single network over time or two (or more networks) during or post-training, is an essential step in understanding what they are learning (and what they are not), and for identifying strategies for regularization or efficiency improvements. Despite recent progress, e.g., comparing vision transformers to CNNs, systematic comparison of function, especially across different networks, remains difficult and is often carried out layer by layer. Approaches such as canonical correlation analysis (CCA) are applicable in principle, but have been sparingly used so far. In this paper, we revisit a (less widely known) from statistics, called distance correlation (and its partial variant), designed to evaluate correlation between feature spaces of different dimensions. We describe the steps necessary to carry out its deployment for large scale models -- this opens the door to a surprising array of applications ranging from conditioning one deep model w.r.t. another, learning disentangled representations as well as optimizing diverse models that would directly be more robust to adversarial attacks. Our experiments suggest a versatile regularizer (or constraint) with many advantages, which avoids some of the common difficulties one faces in such analyses. Code is at https://github.com/zhenxingjian/Partial_Distance_Correlation.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2207.09684")

Code

Syntology Ran 0 of 8 code samples harvested from 1 repository linked to this paper; 8 have no recorded run.

By repository: official repository: 8 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

zhenxingjian/partial_distance_correlation officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

8 samples harvested; 0 ran; 0 honoured the contract we drafted; 8 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

8unverified

Licence: 0 of the 8 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from zhenxingjian/partial_distance_correlation. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

Distance_Correlation zhenxingjian/partial_distance_correlation/Partial_Distance_Correlation/Partial_DC.py official repository unverified MIT (permissive) · d6a7ca2043932b32 · report
P_Distance_Matrix zhenxingjian/partial_distance_correlation/Partial_Distance_Correlation/Partial_DC.py official repository unverified MIT (permissive) · 91a148521688e6dd · report
P_Distance_Matrix zhenxingjian/partial_distance_correlation/Partial_Distance_Correlation/Partial_DC_grad.py official repository unverified MIT (permissive) · 1dd8cdb411590540 · report
bracket_op zhenxingjian/partial_distance_correlation/Partial_Distance_Correlation/Partial_DC.py official repository unverified MIT (permissive) · 19c9bc4a8add35e1 · report
get_dataset zhenxingjian/partial_distance_correlation/Partial_Distance_Correlation/main_pDC_models.py official repository unverified MIT (permissive) · 9e7b15eb05cf47df · report
get_normalize_layer zhenxingjian/partial_distance_correlation/Partial_Distance_Correlation/main_pDC_models.py official repository unverified MIT (permissive) · ad49e7ad3bdf5f43 · report
make_pairwise_metrics zhenxingjian/partial_distance_correlation/Partial_Distance_Correlation/main_similarity.py official repository unverified MIT (permissive) · 2870376b8032253c · report
reshape_transform zhenxingjian/partial_distance_correlation/Partial_Distance_Correlation/main_CAM.py official repository unverified MIT (permissive) · 2af53fce5490aa77 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections