Summary
The paper proposes to project the per-example parameter-gradients of the prediction head onto the orthogonal subspace of the learned features and uses the projection norm as the OODness score. The key motivation for doing so is that the parameter gradients lie in the subspace of the corresponding input features. Key highlights of this method are that it is a post-hoc detection method and is computationally efficient requiring few in-distribution examples for computing the orthogonal subspace of the features. It achieves good detection scores.
Strengths
The main strength of the paper is in the idea building upon the observation that stochastic-gradient descent updates lie in the subspace of input features for detecting OOD examples. The paper is very well written and the reports various ablation studies to clearly illustrate the effects of the hyperparameter design-choices.
Weaknesses
While the empirical results show good performance on the commonly considered benchmarks, I believe that it is essential to incorporate results related to Semantic Outliers [1] and Near-distribution Outliers, such as the comparison between CIFAR10 and CIFAR100 [2, 3]. Section 4.3 in [4] can serve as an additional reference for conducting a similar evaluation. It is worth noting that it is okay if the results are not very strong; rather, the key objective is to present a comprehensive assessment of the estimator and update the limitations section accordingly. Furthermore, it would be beneficial to include a clear rationale behind the selection of baseline algorithms -- considering a comparison with [3] would be appropriate if the primary empirical contribution focuses on far-OOD detection.
I also thought that a qualitative analysis of the estimator could also be helpful in illustrating the cases where GradOrth works best and its failure cases as compared to other baseline estimators.
[1] Ahmed, F., & Courville, A. (2020). Detecting Semantic Anomalies. Proceedings of the AAAI Conference on Artificial Intelligence, 34(04), 3154-3162.
[2] Fort, S., Ren, J., & Lakshminarayanan, B. (2021). Exploring the limits of out-of-distribution detection. Advances in Neural Information Processing Systems, 34, 7068-7081.
[3] Sastry, C. S., & Oore, S. (2020, November). Detecting out-of-distribution examples with gram matrices. In International Conference on Machine Learning (pp. 8491-8501). PMLR.
[4] Hsu, Yen-Chang, Yilin Shen, Hongxia Jin, and Zsolt Kira. "Generalized odin: Detecting out-of-distribution image without learning from out-of-distribution data." In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 10951-10960. 2020.
Questions
1. I believe that this work has some connections with [1, 2] and can be used to complement the abilities of GradOrth in interesting ways.
2. In Appendix B, you show that the gradients obtained from all layers perform a bit worse than the final layer alone: do you think that using a different scaling factor for each layer can help in building a better estimator than just the last layer?
3. The algorithm requires computing per-example gradients of the loss wrt parameters: how did you do this for processing a batch of examples while staying as computationally efficient as possible? A short discussion about this would be useful to include in the paper.
4. Apart from the obvious typos in the equation on line 124 of subsection 2.2, could you please elaborate why you compare the frobenius norms of matrices ${\bf R}$ and ${\bf R}_k$ instead of the obvious choice of using the difference $|| {\bf R}_k - {\bf R}||_F$ for identifying the appropriate $k$? Is this related to the inequality between frobenius norms and squared sum of eigenvalues -- if so, it would be good to explain this.
5. In section (3), it would be good to include the shapes of matrices wherever relevant.
6. If you have any preliminary results/thoughts about the weaknesses section, please include it in the replies.
(The new experimental results highlight the effectiveness of the method and I raise my score.)
[1] Koh, Pang Wei, and Percy Liang. "Understanding black-box predictions via influence functions." ICML 2017.
[2] Madras, David, James Atwood, and Alex D'Amour. "Detecting underspecification with local ensembles." ICLR 2020.
Rating
6: Weak Accept: Technically solid, moderate-to-high impact paper, with no major concerns with respect to evaluation, resources, reproducibility, ethical considerations.
Confidence
4: You are confident in your assessment, but not absolutely certain. It is unlikely, but not impossible, that you did not understand some parts of the submission or that you are unfamiliar with some pieces of related work.
Limitations
Yes, the limitations are adequately addressed.