Contrastive Representation Learning
lilianweng.github.io
Contrastive Representation Learning
1–10 of 11 posts
Re: Contrastive Representation Learning
#2Re: Contrastive Representation Learning
#3I've been interested in contrastive learning for a while, mainly as a means to train semantic code search models. OpenAI released a great paper on this topic called Text and Code Embeddings by Contrastive Pre-Training[1] that outlines the approach. I've used it as a base to build https://codesearch.ai [2] with pretty good results.
[1] https://arxiv.org/pdf/2201.10005.pdf [2] https://sourcegraph.com/notebooks/Tm90ZWJvb2s6MTU1OQ==
Re: Contrastive Representation Learning
#4Re: Contrastive Representation Learning
#5I'm surprised that this doesn't mention cross-entropy, the contrastive loss function used by Facebook's wav2vec2 XLS-R pretraining paper and by OpenAI's CLIP.
Re: Contrastive Representation Learning
#6Re: Contrastive Representation Learning
#7Re: Contrastive Representation Learning
#8One of my main barriers to reading and learning from academic literature in this space is that while I understand all the words perfectly well, invariably I hit something like this which might as well be in chinese characters to me.
Re: Contrastive Representation Learning
#9I assume there are people out there in the world who actually find equations like this comprehensible? https://imgur.com/O2BEyjp One of my main barriers to reading and learning from academic literature in this space is that while I understand all the words perfectly well, invariably I hit something like this which might as well be in chinese characters to me.
Re: Contrastive Representation Learning
#10I assume there are people out there in the world who actually find equations like this comprehensible? https://imgur.com/O2BEyjp One of my main barriers to reading and learning from academic literature in this space is that while I understand all the words perfectly well, invariably I hit something like this which might as well be in chinese characters to me.
All that to say that it’s painful for a bit to parse every symbol, but it gets easier to recognize the semantics after you’ve done it for similar cases.