# Contrastive Language Models

Type: Paper · Live URL: https://hopperlabs.ai/research/clm

How does an agent choose between possible actions? Explore CLM’s learned state–action matching, follow a scoring calculation, and understand a reproduced DeepSWE selection result.

[Contrastive Language Models · Hopper Labs](https://hopperlabs.ai/research/clm)

## The idea in brief

CLM learns to match a situation with possible actions. It encodes the state and candidates, applies separate learned projection heads, and scores how well they align. Explore the calculation with visible example scores, then see what the published agent-solution selection benchmark measures.

[Contrastive Language Models · Hopper Labs](https://hopperlabs.ai/research/clm)

## Make the candidate choice explicit

A supplied action set makes the decision inspectable. CLM’s state and action representations can be computed separately, allowing repeated candidates to reuse embeddings. The encoder still does real work for fresh text.

[Contrastive Language Models · Hopper Labs](https://hopperlabs.ai/research/clm)

## Related articles

- [HopperLabs.ai](/wiki/hopperlabs-ai/) (documented-in)
