A Possible Blind Spot in difFOCI’s Differentiable Relaxation
difFOCI is a method that makes the rank-based dependence measure underlying FOCI differentiable, so that it can be used as an objective for representation learning [1, 2]. This measure is closely related to Chatterjee’s rank correlation [3].
I have been thinking about one possible limitation of the way difFOCI performs this differentiable relaxation.
Averaging Ranks Before Measuring Dependence
In difFOCI, the ranks of neighboring samples are aggregated using a weighted average. Roughly speaking, it constructs
and then uses this averaged rank inside the objective.
This is useful because replacing a hard nearest-neighbor selection with a smooth weighted average gives us smoother gradients and makes gradient-based optimization possible.
However, there is a small issue that seems worth thinking about.
In general,
is not the same as
In other words, averaging the neighboring ranks first and then evaluating their relationship with is not equivalent to evaluating the relationship with each neighbor first and then averaging.
This raises the possibility that averaging the ranks may discard some information about the conditional distribution.
A Case Where the Conditional Mean Does Not Change
A particularly interesting case is when
while at the same time
Here, the conditional mean rank does not change with , even though the conditional distribution itself does.
A simple example of this kind of behavior is heteroscedasticity. Consider
where and are independent and .
Then
but
So the conditional mean remains unchanged, while the spread of the distribution clearly depends on .
Thus, and are dependent even though their relationship is invisible at the level of the conditional mean.
Could the Relaxation Lose This Information?
Something similar may happen when difFOCI averages neighboring ranks.
If the neighborhood weights are sufficiently spread out, dependencies satisfying
may become difficult for the relaxed objective to distinguish, even though
still changes with .
This does not mean that difFOCI itself is incorrect.
The original difFOCI construction is designed so that, as the soft neighborhood becomes increasingly sharp, it approaches the hard nearest-neighbor behavior used by FOCI [1].
The concern is instead about what happens away from that limiting regime, when multiple neighbors contribute substantially to the weighted average.
So perhaps there is a trade-off of the following form:
This makes me wonder whether averaging the ranks themselves is always the best way to obtain a differentiable relaxation.
Perhaps a differentiable dependence objective should preserve more than just a conditional average rank. For example, it might be useful to retain multiple features of the conditional distribution rather than compressing the neighborhood into a single quantity such as
At this point, I am not claiming that this is a general failure mode of difFOCI. It is more of a possible structural limitation that seems worth investigating.
The broader question is:
When we make a dependence measure differentiable, how much of the dependence information in the original measure survives the relaxation?
I think this question may be just as important as whether the resulting objective has useful gradients.
Thank you for reading.
References
-
K. L. Pavasovic, G. Biroli, and L. Sagun.
“A Differentiable Rank-Based Objective for Better Feature Learning.”
International Conference on Learning Representations (ICLR), 2025. -
M. Azadkia and S. Chatterjee.
“A Simple Measure of Conditional Dependence.”
The Annals of Statistics, 49(6):3070–3102, 2021.
DOI:10.1214/21-AOS2073 -
S. Chatterjee.
“A New Coefficient of Correlation.”
Journal of the American Statistical Association, 116(536):2009–2022, 2021.
DOI:10.1080/01621459.2020.1758115
Related Work
A separate but related line of work has pointed out that Chatterjee’s original rank correlation can have low power against certain alternatives and that incorporating multiple nearest neighbors can improve its statistical efficiency [4].
This is not the same issue discussed above. The concern here is specifically about possible information loss caused by the differentiable averaging operation.
- Z. Lin and F. Han.
“On Boosting the Power of Chatterjee’s Rank Correlation.”
Biometrika, 110(2):283–299, 2023.
DOI:10.1093/biomet/asac048
