- Rating
- 4
- Clarity
- 3
- Confidence
- 4
- Originality
- 2
- Quality
- 3
- Significance
- 3
Read review
Summary
This paper introduces MahaVar, a post-hoc method for out-of-distribution (OOD) detection. Its main novelty is augmenting the standard Mahalanobis score with a term based on the intra-class variance of the Mahalanobis distance. The authors show empirically through an extensive study that this augmented score yields better OOD detection across standard benchmarks and several vision backbones, and they provide a theoretical justification for the augmentation grounded in the Neural Collapse framework.
Strengths and weaknesses
Quality
The paper propose and extensive reproducible benchmark of mahavar against standard baselines on several OOD detection tasks following the OpenOOD framework. This empirical study is the main evidence upon which the relevance of mahavar score is enforced. I have some reserve on that front, despite the strong results presented on Table 1 that aggregates performances across several models on the Imagenet domain. The per-model results seem less uniform than what is presented in Table 1, especially for the ResNet case (same concerns for cifarX results).
Clarity
Overall the paper is well written, well articulated and easy to follow. Claims and contribution are clearly highlighted. There is nonetheless a slight tendency to sometimes overly lean on the appendix to support some paper experimental results (e.g. paragraph ablation study).
Significance
The work is well motivated and is deeply rooted in a vast literature. The span of this literature has not really be exhaustively documented in the related work section. The experiments are easily reproducible by any practitioner. Nonetheless, I understand the rationale behind using the variance term as an augmentation for the mahalanobis distance but I am wondering about the pertinence of ensembling it through a sum: do these two quantities have commensurable values ? Is the new score completely steered by the variance ?
Moreover, the theoretical justification seems a bit disconnected from the empirical evidence. It would have been really interesting to see wether the assumptions made are actually respected on real world datasets. Also, it would be interesting to understand the discrepencies observed across models and domains through this lens.
Originality
The originality from the proposed method is moderate. The augmentation of the mahalanobis distance is attractive but as explained the proposed way to do it is not well motivated. The performance gain is clear on a given aggreagation on a given domain but that do not transpose well to all setup and there is no clear guidelines on when the augmentation is likely to enhance mahalanobis performance.
A minor format feedbacks: figures are not formatted for camera ready, there is no need to use double titles and key message from figure 1 and 2 could be easily condensed into one smaller figure.
Questions
-
What is the rationale behind the current way of augmenting the mahalanobis distance (sum) ? Is there a better way to perform the ensembling ?
-
Is the OOD signal mainly present in the variance term ?
-
To what extent the theoretical grounding based on neural collapse can be used to derived guidelines onto when mahavar should be used ?
Limitations
Limitations are not explicitly addressed in the paper.
Paper formatting concerns
none
Final justification
The rebuttal answer answered my main concerns that were focused on the justification of the additive aggregation and the justification to even keep a distance score in the final score.
We appreciate the reviewer's insightful questions, which have helped us identify several places where our presentation can be improved. We respond point by point below.
We agree that the dataset-level averages in Table 1/2 do not fully capture per-dataset variation. As already noted for Texture (L298-299), MahaVar does not achieve a uniform improvement across every individual OOD dataset within each benchmark. This pattern appears in the ResNet-based settings the reviewer points to: for ImageNet with ResNet-50 (Table 3), the margin on Texture is marginal, and for CIFAR-10 with ResNet-18 (Table 6), MahaVar underperforms Mahalanobis++ on SVHN. We will add an explicit statement to the Limitations section (Appendix E) clarifying that MahaVar's gains, while consistent on average, are not guaranteed to hold uniformly across every individual OOD dataset.
We agree that the current ablation study paragraph in Section 5 leans heavily on Appendix references without surfacing the underlying numbers. As NeurIPS allows an additional page upon acceptance, we will use this space to incorporate the key quantitative results from Appendix D (e.g., the variance/L2-normalization contributions in D.2 and the skewness term results in D.3) directly into the ablation study paragraph, improving readability without relying on readers to cross-reference the appendix for the main findings.
On related work coverage, we agree the span of literature could be more exhaustive. We will expand related work to include training-based OOD methods in more depth, as well as recent post-hoc methods such as Catalyst [1] and DAVIS [2].
On the pertinence of the sum-based ensembling and whether the two quantities are commensurable, we would like to clarify with additional evidence. First, the score is not dominated by the variance term. We report below the performance of the variance term used in isolation, without the nearest-class distance term, and it underperforms Mahalanobis++ [3] substantially across all three benchmarks:
This confirms that the nearest-class distance still provides the dominant signal, with variance acting as a corrective term rather than functioning alone. Second, we do not assume the two quantities are commensurable in raw scale. The consistently small optimal α selected across backbones (Table 10) indicates that α itself absorbs the scale mismatch between the two terms rather than treating them as directly comparable quantities.
On whether the theoretical assumptions are respected on real data, Assumption 4.1 is intended as an idealized geometric model characterizing the underlying trend, rather than an exact description of any specific feature space, in the same spirit as the Gaussian assumption underlying the original Mahalanobis detector. Consistent with this trend, the empirical prevalence of Neural Collapse across diverse architectures and classification tasks is documented in the literature, as reviewed in NCI [4] Appendix 13 (originally sourced from [5]), which we already cite in our Related Work (L146-148) as the basis for adopting the relaxed Neural Collapse framework. This literature primarily covers CNN-based architectures, consistent with our ResNet-18 and ResNet-50 settings. For Transformer-based backbones (especially ViT-B), we separately analyze in Appendix A why the ETF structure is expected to weaken, since the feature dimension is smaller than the number of classes (D<C−1).
On motivation, we would like to explain how the two terms are designed to be complementary rather than independently motivated. Theorem 4.3 and Corollary 4.4 show theoretically that variance can carry a meaningful discriminative signal. However, used alone, it does not outperform the strong signal already provided by the nearest-class distance, as shown above where the variance term alone underperforms Mahalanobis++ substantially. Combining the two terms consistently yields the best performance across all settings, confirming that they capture complementary information rather than one subsuming the other.
On transfer across setups, we acknowledge as discussed above that the improvement is a net gain rather than a uniform one across every individual dataset.
On guidelines for when the augmentation is expected to help, we propose the following practical rule based on feature dimension relative to the number of classes:
The gain shrinks as D/C drops below 1 consistent with the incomplete ETF formation discussed in Appendix A. Beyond this ratio one could in principle check for a given ID dataset how closely NC1 and NC2 are satisfied using the diagnostic statistics of Papyan et al. [5]: the within-class variability collapse metric Tr(ΣWΣB†)/C for NC1 and the coefficient of variation of centered class-mean norms Stdc(∣∣μc−μG∣∣2)/Avgc(∣∣μc−μG∣∣2) together with the standard deviation of pairwise cosine similarities for NC2. However, this guideline can only assess how well the ID data satisfies the underlying assumptions; it says nothing about which OOD samples will be encountered at test time, since these are arbitrary and unknown in advance. Consequently, no single threshold on such diagnostics can guarantee when the augmentation will help. We will add this guideline, together with the D/C-based rule of thumb, this diagnostic discussion, and its limitation regarding OOD unpredictability, to Appendix A alongside the existing description of the ViT-B dimensionality issue.
On the rationale behind the additive form and whether a better ensembling scheme exists: our theoretical results (Theorem 4.3 and Corollary 4.4) establish that variance carries a discriminative signal. They do not, however, prescribe how to combine it with the nearest-class distance. The additive form is a reasonable choice, not one endorsed by the theory itself. Motivated by this question, we explored a ratio-based alternative: S(x)=Varc[dc(x)]/d(1)(x)
CIFAR-10
CIFAR-100
ImageNet (ResNet-50)
This form is hyperparameter-free and performs on par with, and in some cases marginally better than, the tuned additive form. This is a genuinely new finding prompted by the reviewer's question, and we had not previously evaluated this form. We do not propose to adopt it as the main method at this stage, for two reasons. First, it is potentially prone to numerical instability when d(1)(x) approaches zero, a regime our current theoretical framework does not characterize. Second, establishing an ID/OOD separation guarantee analogous to Theorem 4.3 and Corollary 4.4 for this ratio form would require a separate theoretical derivation beyond the current scope of this work. We view this as a promising direction and will report it, along with these open questions, as future work in the revised manuscript.
The Limitations of this work are already discussed in Appendix E; we will add a pointer from the main text to make this more visible. We will also revise the figure captions and formatting throughout the paper for the camera-ready version, including removing duplicate titles and consolidating figures where appropriate, as suggested by the reviewer.
We hope the responses above adequately address the reviewer's concerns and are glad to discuss further if useful.
[1] Hassan, Abid, et al. "Catalyst: Out-of-Distribution Detection via Elastic Scaling." CVPR 2026.
[2] Hassan, Abid, et al. "DAVIS: OOD Detection via Dominant Activations and Variance for Increased Separation." arXiv preprint arXiv:2601.22703 (2026).
[3] Müller, Maximilian, and Matthias Hein. "Mahalanobis++: Improving OOD Detection via Feature Normalization." ICML. PMLR, 2025.
[4] Liu, Litian, and Yao Qin. "Detecting out-of-distribution through the lens of neural collapse." CVPR 2025.
[5] Papyan, Vardan, X. Y. Han, and David L. Donoho. "Prevalence of neural collapse during the terminal phase of deep learning training." PNAS 117.40 (2020): 24652-24663.