Skip to content
Everything *[NYC] 2026: see what we announced. →

Contrastive Language Model (CLM) definition

A contrastive language model (CLM) is a model that scores how well a candidate action fits a given state by comparing embeddings from two separately trained encoders, a state encoder and an action encoder, instead of generating text. The encoders are trained with a contrastive objective so each state sits close to the action actually taken and far from the alternatives.


A diagram explaining Contrastive Language Model (CLM) in terms of related concepts.

What is a contrastive language model, and how is it different from a causal language model?

What is CLM-8B and who released it?

Why is a contrastive language model fast?

How does CLM compare with Jev?

What can a contrastive language model not do?

What does structured content have to do with contrastive scoring?

Discover More with Sanity

Now that you've learned about Contrastive Language Model, why not start exploring what Sanity has to offer? Dive into our platform and see how it can support your content needs.

Last updated: