Generalization Analysis for Deep Contrastive Representation Learning

Authors

  • Nong Minh Hieu School of Physical and Mathematical Sciences, Nanyang Technological University School of Computing and Information Systems, Singapore Management University
  • Antoine Ledent School of Computing and Information Systems, Singapore Management University
  • Yunwen Lei Department of Mathematics, University of Hong Kong
  • Cheng Yeaw Ku School of Physical and Mathematical Sciences, Nanyang Technological University

DOI:

https://doi.org/10.1609/aaai.v39i16.33889

Abstract

In this paper, we present generalization bounds for the unsupervised risk in the Deep Contrastive Representation Learning framework, which employs deep neural networks as representation functions. We approach this problem from two angles. On the one hand, we derive a parameter-counting bound that scales with the overall size of the neural networks. On the other hand, we provide a norm-based bound that scales with the norms of neural networks' weight matrices. Ignoring logarithmic factors, the bounds are independent of the size of the tuples provided for contrastive learning. To the best of our knowledge, this property is only shared by one other work, which employed a different proof strategy and suffers from very strong exponential dependence on the depth of the network which is due to a use of the peeling technique. Our results circumvent this by leveraging powerful results on covering numbers with respect to uniform norms over samples. In addition, we utilize loss augmentation techniques to further reduce the dependency on matrix norms and the implicit dependence on network depth. In fact, our techniques allow us to produce many bounds for the contrastive learning setting with similar architectural dependencies as in the study of the sample complexity of ordinary loss functions, thereby bridging the gap between the learning theories of contrastive learning and DNNs.

Downloads

Published

2025-04-11

How to Cite

Hieu, N. M., Ledent, A., Lei, Y., & Yeaw Ku, C. (2025). Generalization Analysis for Deep Contrastive Representation Learning. Proceedings of the AAAI Conference on Artificial Intelligence, 39(16), 17186–17194. https://doi.org/10.1609/aaai.v39i16.33889

Issue

Section

AAAI Technical Track on Machine Learning II