Identifiable Contrastive Learning with Automatic Feature Importance Discovery

Existing contrastive learning methods rely on pairwise sample contrast $z_x^\top z_{x'}$ to learn data representations, but the learned features often lack clear interpretability from a human perspective. Theoretically, it lacks feature identifiability and different initialization may lead to totally different features. In this paper, we study a new method named tri-factor contrastive learning (triCL) that involves a 3-factor contrast in the form of $z_x^\top S z_{x'}$, where $S=\text{diag}(s_1,\dots,s_k)$ is a learnable diagonal matrix that automatically captures the importance of each feature. We show that by this simple extension, triCL can not only obtain identifiable features that eliminate randomness but also obtain more interpretable features that are ordered according to the importance matrix $S$. We show that features with high importance have nice interpretability by capturing common classwise features, and obtain superior performance when evaluated for image retrieval using a few features. The proposed triCL objective is general and can be applied to different contrastive learning methods like SimCLR and CLIP. We believe that it is a better alternative to existing 2-factor contrastive learning by improving its identifiability and interpretability with minimal overhead. Code is available at https://github.com/PKU-ML/Tri-factor-Contrastive-Learning.

Paper

References (39)

Scroll for more · 27 remaining

Similar papers

Peer review

Reviewer aafx4/10 · confidence 4/52023-06-23

Summary

In this paper, the authors proposed a new contrastive learning scheme (tri-contrastive learning) with a learnable diagonal matrix, which can capture the feature importance. To show the significance of the proposed method, the authors conducted both theoretical and experimental analysis, where some interesting findings are observed. However, it is not clear how the proposed method advances existing contrastive learning-based methods, and experimental results are not very convincing. The detailed comments are below.

Strengths

The idea is simple and interesting, with reasonable theoretical analysis based on eigenspace.

Weaknesses

1. The idea of analyzing feature importance for contrastive learning is not new [a]. While the proposed method is different from [a], the submission lacks analysis how the proposed method outperforms [a], especially based on the generalization capability the submission focused on. [a] Accurate and Robust Feature Importance Estimation under Distribution Shifts, aaai21 2. The visualization example in fig 1 is not clear. Noted that the contrastive learning is performing on the feature space, it is not clear to me based on the paper how the feature space linked to the image space. 3. The generalization bound is not very clear, the upper bound depends on the term \alpha, which relies on data augmentation. How different augmentations inclunce the term \alpha. In what condition that the sample and its augmented view could have different labels? 4. The improvement on three benchmark datasets are very marginal (almost no improvement), and the results can’t justify the generalization capability claimed in this paper, convergence analysis is also not presented.

Questions

Please see above.

Rating

4: Borderline reject: Technically solid paper where reasons to reject, e.g., limited evaluation, outweigh reasons to accept, e.g., good evaluation. Please use sparingly.

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.

Soundness

2 fair

Presentation

3 good

Contribution

2 fair

Limitations

n/a

Authorsrebuttal2023-08-17

Your invaluable input is needed

Dear Reviewer aafx, thanks for your time reviewing our paper. We have meticulously prepared a detailed response addressing the concerns you raised. Could you please have a look to see if there are further questions? Your invaluable input is greatly appreciated. Thank you once again, and we hope you have a wonderful day!

Authorsrebuttal2023-08-20

Your further inputs are greatly appreciated! Only one day left.

Dear Reviewer aafx, For your raised questions, we prepared a detailed response to address your concerns. We were hoping to hear your feedback on them. As there is only one day left for the reviewer and author discussions and we understand that everyone has a tight schedule, we kindly wanted to send a gentle reminder to ensure that our response sufficiently addressed your concerns or if there are further aspects we need to clarify. If you could find the time to provide your thoughts on our response, we would greatly appreciate it. Best, Authors

Reviewer aafx2023-08-21

Thanks

Thanks for the rebuttal. I am still not convinced about the part of feature importance, especially the generalization capability. Thus, I will keep my score unchanged.

Authorsrebuttal2023-08-22

Could you let us know what is your remaining concern?

Thanks for your reply! However, we do not quite get the reasons why you are still not convinced and hope for your further explanations. From our perspective, we have properly addressed you previous concerns in these two aspects. **For the feature importance part**, since ProFILE does not have formal theoretical guarantees, in **A1**, we compare with it empirically and show that our methods obtain significantly better performance over ProFILE (74.3% vs 82.0%). **For the generalization capacity part**, in **A4**, we have clarified that the generalization guarantee in Theorem 5.1 is established for **the case when using** **all learned features for linear probing (instead of using a subset of important features).** Thus, it mainly serves as a proof of concept, showing that **in this extreme case, tri-CL matches the generalization error rate of 2-factor CL**. However, since 2-factor CL does not learn feature importance, it can only select random subsets of features while ours can select directly the most important ones based on $S$. This makes our method stand out when using **a subset of important features**. Given the explanations above, we are keen to learn what are your remaining concerns on these two aspects. Look forward to your further reply!

Reviewer Zqsm6/10 · confidence 3/52023-07-03

Summary

The paper proposes a new contrastive triCL method, which extends the existing pair-wise contrastive framework. The core motivation is the inability of CL methods to deliver identifiable representations. To tackle this, the paper proposes factorizing the pair-wise similarity measure x^T@y into a bilinear x^T@S@y form, where learnable matrix S is a diagonal feature importance matrix; and theoretically proves the identifiability property. The paper also demonstrates possible automated feature importance discovery by analyzing the learned feature importance matrix.

Strengths

1. The paper addresses an important problem of identifiability, which is often overlooked in contrastive learning. 2. The proposed method is elegant in its simplicity. Also, due to its simplicity, it does not introduce any major computational overheads. 3. Feature importance discovery can be an important component to speed up the inference (by excluding features of low importance)

Weaknesses

1. In my opinion, the term tri-contrastive (triCL) does incorrectly reflect the essence of the method. The proposed method still is based on pair-wise contrast in a nutshell, although the contrast is in the factorized form. 2. It seems that BarlowTwins tackles almost the same problem as the paper states in L33-34. On the technical side, the L_dec term Eq (8) seems to be a special case of the Barlow twins' objective. In that sense, the L_dec term in triCL can be considered not as just a regularization, but as a main source of the supervisory signal. 3. The ablation is needed to verify the importance of the L_dec term in the triCL objective. I would be interested to see the results for L_dec, L_tri, and L_dec + L_tri objectives separately. 4. Experimental evaluation is limited to relatively small-scale datasets and only two baseline contrastive learning methods. UPD: The rebuttal addressed most of my concerns.

Questions

1. Why is the softmax in S? Wouldn't the softmax limit the flexibility of each feature dimension, when computing x^T@S@y similarity? Have authors tried other normalization approaches, e.g. sigmoid for each diagonal element of S? 2. Does identifiability of representation always boils down to reproducibility within the scope of this work?

Rating

6: Weak Accept: Technically solid, moderate-to-high impact paper, with no major concerns with respect to evaluation, resources, reproducibility, ethical considerations.

Confidence

3: You are fairly confident in your assessment. It is possible that you did not understand some parts of the submission or that you are unfamiliar with some pieces of related work. Math/other details were not carefully checked.

Soundness

3 good

Presentation

3 good

Contribution

3 good

Limitations

I suggest adding a paragraph on limitations, which would highlight the scope of application of the proposed approach (or is the proposed method expected to work better in all circumstances?)

Authorsrebuttal2023-08-17

Your invaluable input is needed

Dear Reviewer Zqsm, thanks for your time reviewing our paper. We have meticulously prepared a detailed response addressing the concerns you raised. Could you please have a look to see if there are further questions? Your invaluable input is greatly appreciated. Thank you once again, and we hope you have a wonderful day!

Reviewer Zqsm2023-08-18

In my opinion, "Contrastive Learning with Importance Discovery (CLID)” better reflects the essence of the proposed method. The connection with tri-factorization could be highlighted in the main text.

Reviewer Zqsm2023-08-18

I thank authors for the response. The rebuttal addresses my concerns, given the rebuttal experiments and clarifications are added to the main paper. I thus raise my score.

Reviewer tkty5/10 · confidence 4/52023-07-05

Summary

Traditional CL calculates the similarities between two samples while this paper proposes to insert a learnable diagonal matrix between two feature vectors multiplication and name it triCL. The authors claim and show the proposed method leads to the exact interpretability of learned features. Some theoretical analysis is provided.

Strengths

The paper is well written and the proposed idea is simple and may be useful for explaining the CL.

Weaknesses

1. Lack of novelty: The proposed method is essentially a bilinear function, and it can be rewritten the same as conventional CL, i.e., $f_1^TSf_2 = (\tilde{S}f_1)^T(\tilde{S}f_2)$ where $S=\tilde{S}^T\tilde{S}$ since S is a nonnegative diagonal matrix, i.e., a kernel matrix. From this point, the new parameter $S$ can be integrated into the neural network training, without explicit consideration. $S$ may be useful for the interpretation of CL, but at this point, I do not see how different using $S$ is from using traditional features with some statistical pro-processing such as norm. At least, I do not see the necessity of the proposed method in terms of interpretability. 2. Weak experiments: From Table 1, the improvement is marginal and even worse than the baseline. This is probably because introducing bilinear forms makes the training easier stuck in local minima. Also, these results verify my thoughts about bilinear form in learning above. I suggest the authors to investigate more in training, e.g., plotting training curves and doing some comparisons.

Questions

see my comments above.

Rating

5: Borderline accept: Technically solid paper where reasons to accept outweigh reasons to reject, e.g., limited evaluation. Please use sparingly.

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.

Soundness

2 fair

Presentation

3 good

Contribution

2 fair

Limitations

no discussion on limitations is provided, and i suggest the authors to add this part

Authorsrebuttal2023-08-17

Your invaluable input is needed

Dear Reviewer tkty, thanks for your time reviewing our paper. We have meticulously prepared a detailed response addressing the concerns you raised. Could you please have a look to see if there are further questions? Your invaluable input is greatly appreciated. Thank you once again, and we hope you have a wonderful day!

Reviewer eV597/10 · confidence 4/52023-07-07

Summary

The paper proposes a new contrastive learning objective that learns an additional diagonal matrix which forces the features to exhibit different importance. Theoretical results are provided to show that the new algorithm achieves similar downstream linear probe accuracy but also better interpretability / identifiability. Empirically, the authors test the new objective on several standard benchmark datasets and show that learned features exhibit better k-nn accuracy when a subset of dimensions are used, and the downstream linear probe accuracy can also be improved in certain cases.

Strengths

- The motivation is clear and the paper is written well. - It's nice that the learned representations can have a clear subset of dimensions that captures most of the semantic information. This can be especially useful in many retrieval use cases where the dimensionality is the key bottleneck for scaling up the size of data. With this modified representation, people can easily select a subset of dimensions to construct less informative but more computational efficient representations for downstream use cases. - The proposed method is justified with corresponding theory.

Weaknesses

- Only small datasets are used. Could include larger ones like ImageNet. - Theorem 5.1 seems to be exactly following that in [HaoChen et al], so I'm not sure there's enough novelty in this specific theorem.

Questions

Is there a easy way to project the full feature from SCL or SimCLR to a 20-dimensional subspace and still match the same k-nn performance of the top 20 dimensions from tri-SCL? I wonder whether doing some PCA can achieve that.

Rating

7: Accept: Technically solid paper, with high impact on at least one sub-area, or moderate-to-high impact on more than one areas, with good-to-excellent evaluation, resources, reproducibility, and no unaddressed 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.

Soundness

3 good

Presentation

3 good

Contribution

3 good

Limitations

N/A

Reviewer tkty2023-08-18

Thanks for authors’ rebuttal

Q1. This addresses my concern. Q2. I am not so convincing about the answers. I think the authors should show something that supports the proposed method is necessary for learning feature importance in training together with contrastive learning. Maybe there is another experiment that is needed: Feed the features from a learned contrastive learning model to a feature importance learning algorithm as a post-processing step, and compare the results. I agree with Reviewer aafx that i do not see the evidence in the experiments to support the theoretical claim on generalization, and the rebuttal seems not to provide more evidence neither.

Authorsrebuttal2023-08-19

Reply to responses

Dear Reviewer tkty, thanks for your responses. We will address your further concerns in the following. --- Q4. Another experiment is needed: Feed the features from a learned contrastive learning model to a feature importance learning algorithm as a post-processing step, and compare the results. A4. Thank you for the insightful suggestion to employ post-processing feature importance estimation techniques on pretrained features. In response, **we have incorporated two feature importance learning algorithms for our evaluation: PCA and PRoFILE [a]**. For comparison with our proposed triCL method, we applied both PCA and PRoFILE to features generated by spectral contrastive learning (SCL), specifically selecting the 20 most important dimensions. Downstream linear evaluations were then conducted on these chosen dimensions. *Table A: The linear accuracy of selected dimensions of triCL, PCA, PRoFILE, and SCL on CIFAR-10.* | | triCL (20 dimensions with largest S values) | PCA (20 dimensions with largest singular values in SVD decomposition) | PRoFILE (20 dimensions with largest estimated importance) | SCL (20 random dimensions) | | --- | --- | --- | --- | --- | | Linear Accuracy | 82.0 | 61.1 | 74.3 | 69.0 | As shown in the above table, we observe that **the features selected by the importance matrix show much better linear performance than the features selected by PCA and PRoFILE**. We observe that PCA even performs worse than random selections (61.1% vs 69.0%), probably because the representations learned by SCL are nonlinear where PCA would fail to find the important dimensions. As for PRoFILE, although it shows better performance than random selections, triCL still achieves significant improvements over PRoFILE (82.0% vs 74.3%). This analysis leads us to believe that post-processing feature importance learning methods may not find the most important pretrained features accurately, thus highlighting the benefits of our triCL approach. [a] Accurate and Robust Feature Importance Estimation under Distribution Shifts, AAAI21. Q5. The experiments cannot support the theoretical claim on generalization. A5. It appears there might be some misconceptions regarding the primary focus of our paper. **Our main objective is not to advance generalization but to enhance feature interpretability and identifiability while maintaining comparable generalization performance.** To clarify, **our theoretical assertion in Theorem 5.2 states that triCL has the same theoretical guarantee as spectral contrastive learning for the linear probing task** (as mentioned in lines L205-L209 of the paper). This is further supported by the comparable downstream performance in feature importance irrelevant tasks between the two contrastive objectives, which aligns with our theoretical analysis. Moreover, **the primary strengths of our proposed methods lie in feature identifiability and interpretability.** This is exemplified in **Section 6.2**, where our experiments demonstrate that triCL significantly outperforms in terms of k-NN accuracy, linear accuracy, and image retrieval precision on selected dimensions. --- Hope our elaborations and new results above could address your concerns. Please let us know if there is more to clarify.

Reviewer tkty2023-08-20

Thanks for the reply. I do not have further questions, and I'd like raise my rating.

Area Chair ZRt62023-08-21

Further Discussion

Dear Reviewers, The open discussion phase of the paper is nearing its end, and the authors have provided more detailed elaboration, ablation studies, and explanations of the principles in the rebuttal phase, mainly in response to the proposed algorithms. In order to ensure the smooth running of the conference, we would like to receive the response of each reviewer to the authors' rebuttals as soon as possible. Therefore, we kindly ask you to submit your feedback as early as possible, if possible. Once again, we thank you for your time and look forward to your valuable comments. Best wishes, AC of Paper ID10613

Program Chairsdecision2023-09-21

Decision

Accept (poster)

© 2026 NYSGPT2525 LLC