Contrastive-LM发布CLM-8B:比Jev快9倍的开源Agent评
Contrastive-LM Releases CLM-8B: An Open System One Model That Scores Agent Actions Up to 9× Faster Than Jev
Agent开发者的新利器,用对比学习替代生成做动作评分,延迟大幅降低且效果超越Jev,值得尝试集成到推理链路中。
Contrastive-LM has released CLM-8B, the first open model in a new class called Contrastive Language Models (CLMs). CLM does not generate text. It scores a set of candidate actions against the current state and returns probabilities. Their main baseline is Jev, the proprietary System One model from TypeSafe AI.
Contrastive-LM 已发布 CLM-8B,这是新一类称为对比语言模型(CLMs)中的首个开源模型。CLM 不生成文本。它根据当前状态对一组候选动作进行评分并返回概率。其主要基线是 Jev,即 TypeSafe AI 的专有 System One 模型。
Is it deployable? Yes. The Apache-2.0 head weighs 75 MB. It runs on 1 NVIDIA GPU under Linux, with vLLM serving the Qwen3-8B encoder.
可以部署吗?可以。Apache-2.0 头部的重量为 75 MB。它在 Linux 下运行于 1 块 NVIDIA GPU 上,由 vLLM 提供 Qwen3-8B 编码器的服务。
What a System One Model Does
System One 模型的作用
Jev entered limited early access on 15 September 2026. It returns typed values with probabilities instead of text. CLM targets the same interface. The CLM GitHub repo serves CLM-8B behind a TypeSafe-compatible API. It exposes 3 question types:
Jev 于 2026 年 9 月 15 日进入有限早期访问阶段。它返回带有概率的类型化值,而非文本。CLM 针对相同的接口。CLM GitHub 仓库通过兼容 TypeSafe 的 API 提供 CLM-8B 服务。它暴露了 3 种问题类型:
- Noul: returns the probability that a statement is true.
- Choice: picks one option from a declared set, with probabilities.
- Score: returns an expected level on an ordered rubric.
- Noul:返回陈述为真的概率。
- Choice:从声明的集合中选择一个选项,并附带概率。
- Score:在有序量规上返回期望等级。
A request written for TypeSafe’s API can be replayed through CLM’s Python client.
为 TypeSafe API 编写的请求可以通过 CLM 的 Python 客户端重放。
How CLM Works
CLM 的工作原理
CLM trains a state encoder and an action encoder with a bidirectional InfoNCE loss. Each encoder is a frozen Qwen3-8B backbone plus a 20M-parameter trainable projection head. Training pulls each state toward the action actually taken and pushes it away from the others.
CLM 使用双向 InfoNCE 损失训练状态编码器和动作编码器。每个编码器都是一个冻结的 Qwen3-8B 主干网络加上一个具有 2000 万参数的可训练投影头。训练过程将每个状态拉向实际采取的动作,并将其推离其他动作。
At inference, CLM scores each candidate by the dot product of the state and action embeddings. A softmax over those scores becomes the answer distribution. The same primitive ranks best-of-N solutions, routes tools and answers typed decisions.
在推理时,CLM 通过状态和动作嵌入的点积对每个候选项进行评分。对这些评分进行 softmax 处理即成为答案分布。该原语还对最佳 N 个解决方案进行排名,路由工具并回答类型化决策。
This design disaggregates states and actions. In an agent loop, the state changes every step while the action set stays mostly fixed. clm-serve reserves a slab of GPU memory, similar to vLLM’s KV cache, and reuses cached vectors. On 1 RTX 4090 with 3 actions, revisited states drop from 1.7 ms to 0.6 ms. The model card reports CLM running 13× faster than Jev with about 1,000 candidates.
这种设计将状态和动作解耦。在智能体循环中,状态每一步都在变化,而动作集基本保持不变。clm-serve 保留了一块 GPU 内存区域,类似于 vLLM 的 KV 缓存,并复用缓存向量。在拥有 3 个动作的 1 块 RTX 4090 上,重复访问的状态耗时从 1.7 毫秒降至 0.6 毫秒。模型卡片报告称,CLM 在处理约 1,000 个候选项时比 Jev 快 13 倍。
A 3-Stage Training Recipe
三阶段训练配方
- Pre-training on ~60M Nemotron DQA question-answer pairs.
- Mid-training on ~30M synthetic hard negatives generated by Gemini 2.5 Flash-Lite.
- Post-training on ~1M agent trajectories from Agent Data Protocol, Endless-Terminals and LiteCoder-Terminal-SFT.
- 在约 6000 万 Nemotron DQA 问答对上预训练。
- 在 Gemini 2.5 Flash-Lite 生成的约 3000 万合成困难负样本上进行中期训练。
- 在来自 Agent Data Protocol、Endless-Terminals 和 LiteCoder-Terminal-SFT 的约 100 万智能体轨迹上进行后训练。
On ~100K held-out questions, pre-training alone reaches 52.1% top-1 accuracy. Mid-training lifts it to 69.2%. Training on hard negatives from the start peaks at 62.4%, then overfits.
在约 10 万个预留问题上,仅预训练即可达到 52.1% 的 top-1 准确率。中期训练将其提升至 69.2%。从一开始就使用困难负样本训练的最高准确率为 62.4%,随后出现过拟合。
Zero-Shot Results Against Jev
与 Jev 的零样本结果对比
| Task | CLM-8B latency | Jev latency | CLM-8B success | Jev success |
|---|---|---|---|---|
| T-Rex game | 16.5 ms | 149.8 ms | 5/5 | 5/5 |
| Tool calling (BFCL v4) | 76.8 ms | 125.5 ms | 95.2% | 99.2% |
| WikiRacing | 79.8 ms | 225 ms | 26/30 | 30/30 |
| Super Mario | 33.5 ms | 132.6 ms | 5/5 | 5/5 |
| 任务 | CLM-8B 延迟 | Jev 延迟 | CLM 成功率 | Jev 成功率 |
|---|---|---|---|---|
| T-Rex 游戏 | 16.5 毫秒 | 149.8 毫秒 | 5/5 | 5/5 |
| 工具调用 (BFCL v4) | 76.8 毫秒 | 125.5 毫秒 | 95.2% | 99.2% |
| WikiRacing | 79.8 毫秒 | 225 毫秒 | 26/30 | 30/30 |
| 超级马里奥 | 33.5 毫秒 | 132.6 毫秒 | 5/5 | 5/5 |
The 9× figure comes from the T-Rex game, where actions repeat across states. CLM matches Jev on T-Rex and Super Mario. It trails on tool calling and WikiRacing while running faster on every task.
9 倍的差异来自 T-Rex 游戏,其中动作在状态间重复。CLM 在 T-Rex 和超级马里奥上与 Jev 持平。在工具调用和 WikiRacing 上落后,但在所有任务中运行速度更快。
CLM as a Verifier for Coding Agents
作为编码智能体验证器的 CLM
Here a generator samples several candidate solutions and the verifier picks one. Opus 5 produced DeepSWE candidates (best-of-4). Fable 5 produced Terminal-Bench 2.1 candidates (best-of-5). The team evaluated 38 held-out DeepSWE tasks and 30 held-out Terminal-Bench 2.1 tasks. Latency was measured on an H100.
在此场景中,生成器采样多个候选解决方案,验证器从中选择一个。Opus 5 生成了 DeepSWE 候选项(best-of-4)。Fable 5 生成了 Terminal-Bench 2.1 候选项(best-of-5)。团队评估了 38 个未见的 DeepSWE 任务和 30 个未见的 Terminal-Bench 2.1 任务。延迟是在 H100 上测量的。
| Benchmark | Pass@1 | CLM (fine-tuned) | Jev | CLM latency | Jev latency |
|---|---|---|---|---|---|
| DeepSWE | 73.7% | 81.6% | 71.1% | 79 ms | 449 ms |
| Terminal-Bench 2.1 | 84.0% | 87.6% | 83.1% | 32 ms | 131 ms |
| 基准测试 | Pass@1 | CLM(微调) | Jev | CLM 延迟 | Jev 延迟 |
|---|---|---|---|---|---|
| DeepSWE | 73.7% | 81.6% | 71.1% | 79 毫秒 | 449 毫秒 |
| Terminal-Bench 2.1 | 84.0% | 87.6% | 83.1% | 32 毫秒 | 131 毫秒 |
The research team reports these as new SOTA verifier results. Jev scores below pass@1 on both benchmarks, so selecting with Jev is worse than taking 1 sample. CLM runs 4.1× to 5.7× faster. These numbers use lightweight fine-tuned heads, not the zero-shot checkpoint. They are held-out subset results, not full leaderboard submissions.
研究团队报告称这是新的 SOTA 验证器结果。Jev 在两个基准上的得分均低于 pass@1,因此使用 Jev 进行选择比直接取 1 个样本更差。CLM 的运行速度快 4.1 倍至 5.7 倍。这些数字使用的是轻量级微调头,而非零样本检查点。它们是未见子集的结果,而非完整排行榜提交。
Interactive Explainer
交互式解释器
Key Takeaways
关键要点
- CLM-8B scores candidate actions instead of generating text.
- Up to 9× lower latency than Jev in zero-shot tests.
- Fine-tuned heads reach 81.6% on DeepSWE and 87.6% on Terminal-Bench 2.1 subsets.
- Cached state and action vectors cut agent-loop latency.
- Apache-2.0 head, self-hosted on 1 NVIDIA GPU.
- CLM-8B 对候选动作进行评分,而不是生成文本。
- 在零样本测试中,延迟比 Jev 低多达 9 倍。
- 微调后的头在 DeepSWE 上达到 81.6%,在 Terminal-Bench 2.1 子集上达到 87.6%。
- 缓存的状态和动作向量降低了智能体循环的延迟。
- Apache-2.0 许可的头模型,在一块 NVIDIA GPU 上自托管。
Check out the Blog, Code and Data & Models. All credit goes to the researcher of this project. Also, feel free to follow us on Twitter and don’t forget to join our 150k+ML SubReddit and Subscribe to our Newsletter. Wait! are you on telegram? now you can join us on telegram as well.
查看博客、代码和数据 & 模型。所有功劳归于该项目的研究人员。此外,欢迎在 Twitter 上关注我们,并别忘了加入我们有 15 万+成员的 ML SubReddit 以及订阅我们的新闻通讯。等等!你在 Telegram 上吗?现在你也可以在 Telegram 上加入我们。
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力