[2607.07470] A Theory of Contrastive Learning with Natural Images
Skip to main content
arXiv is now an independent nonprofit!<br>Learn more<br>×
Search arXiv
Press Enter to search · Advanced search
-->
Computer Science > Computer Vision and Pattern Recognition
arXiv:2607.07470 (cs)
[Submitted on 8 Jul 2026]
Title:A Theory of Contrastive Learning with Natural Images
Authors:Antonio Torralba, Yair Weiss<br>View a PDF of the paper titled A Theory of Contrastive Learning with Natural Images, by Antonio Torralba and Yair Weiss
View PDF<br>HTML (experimental)
Abstract:Why does contrastive learning with simple images and augmentations yield useful representations for downstream tasks? We address this question by analytically computing the optimal representation in terms of a contrastive loss for a range of basic augmentations and any image dataset with stationary statistics. We show that for certain augmentations the optimum can be attained by a CNN whose first layer filters are sinusoids, followed by a pointwise nonlinearity, global average pooling, and a final linear layer that performs partial whitening. We also show that the optimal weights in such CNNs for more complicated augmentations are still sinusoids. The frequencies of the sinusoids and their weights can be computed using a simple waterfilling algorithm given the dataset's expected power spectrum. Experiments with different image datasets and augmentations show that such CNNs trained with SGD empirically learn sinusoids in their first layer and to perform partial whitening
Comments:<br>ICML 2026
Subjects:
Computer Vision and Pattern Recognition (cs.CV)
Cite as:<br>arXiv:2607.07470 [cs.CV]
(or<br>arXiv:2607.07470v1 [cs.CV] for this version)
https://doi.org/10.48550/arXiv.2607.07470
Focus to learn more
arXiv-issued DOI via DataCite (pending registration)
Submission history<br>From: Yair Weiss [view email]<br>[v1]<br>Wed, 8 Jul 2026 14:32:44 UTC (35,953 KB)
Full-text links:<br>Access Paper:
View a PDF of the paper titled A Theory of Contrastive Learning with Natural Images, by Antonio Torralba and Yair Weiss<br>View PDF<br>HTML (experimental)<br>TeX Source
view license
Current browse context:
cs.CV
next >
new<br>recent<br>| 2026-07
Change to browse by:
cs
References & Citations
NASA ADS<br>Google Scholar
Semantic Scholar
export BibTeX citation<br>Loading...
BibTeX formatted citation
×
loading...
Data provided by:
Bookmark
Bibliographic Tools
Bibliographic and Citation Tools
Bibliographic Explorer Toggle
Bibliographic Explorer (What is the Explorer?)
Connected Papers Toggle
Connected Papers (What is Connected Papers?)
Litmaps Toggle
Litmaps (What is Litmaps?)
scite.ai Toggle
scite Smart Citations (What are Smart Citations?)
Code, Data, Media
Code, Data and Media Associated with this Article
alphaXiv Toggle
alphaXiv (What is alphaXiv?)
Links to Code Toggle
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub Toggle
DagsHub (What is DagsHub?)
GotitPub Toggle
Gotit.pub (What is GotitPub?)
Huggingface Toggle
Hugging Face (What is Huggingface?)
ScienceCast Toggle
ScienceCast (What is ScienceCast?)
Demos
Demos
Replicate Toggle
Replicate (What is Replicate?)
Spaces Toggle
Hugging Face Spaces (What is Spaces?)
Spaces Toggle
TXYZ.AI (What is TXYZ.AI?)
Related Papers
Recommenders and Search Tools
Link to Influence Flower
Influence Flower (What are Influence Flowers?)
Core recommender toggle
CORE Recommender (What is CORE?)
Author
Venue
Institution
Topic
About arXivLabs
arXivLabs: experimental projects with community collaborators
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs .
Which authors of this paper are endorsers? |<br>Disable MathJax (What is MathJax?)
Major funding support from