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

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?

See Jev turn text into structured content

Vellum is a Sanity experiment that uses Jev to turn loose text into structured content. Paste any text, pick a Sanity, Zod or JSON Schema, and Jev decides which part of the source fills each field. Anything below your confidence threshold stays empty for review.

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: