{
  "id": 1018,
  "kind": "model",
  "title": "Contrastive Language Models (CLM): A System One Model for Fast and Generalizable Decision-Making",
  "summary": "CLM (Contrastive Language Model) is a System One decision model: separate state and action encoders trained with bidirectional InfoNCE so each state is pulled toward the ground-truth action and pushed from others; at deploy time candidates are scored by cosine similarity of L2-normalized embeddings and softmaxed into typed answers (Noul/Choice/Score) or ranked for best-of-N. Released CLM-8B uses a frozen Qwen3-8B backbone (hidden 4096, last-token pooling, L2 norm) plus a trainable MLP projection head 4096→1536→1536→512 (GELU+LayerNorm; ~20M params, output dim 512); only the head is trained; LLM embeddings can be precomputed. Full Nemotron DQA pretrain ~1 hour on one RTX 4090. Dual-encoder disaggregation caches state and action embeddings independently (authors contrast with Jev state-only caching). Action-caching example (Super Mario): 4 action embeddings precomputed; per-step cost drops from 5 forwards to 1 (~4×). Zero-shot blog table (CLM vs Jev latency / success): T-Rex 16.5 vs 149.8 ms (5/5 both); BFCL V4 tool calling 76.8 vs 125.5 ms (95.2% vs 99.2%); WikiRacing 79.8 vs 225 ms (26/30 vs 30/30); Super Mario 33.5 vs 132.6 ms (5/5 both) — up to ~9× faster, roughly on-par accuracy. Latency microbench (200-token state, RTX 4090, 15 tok/candidate): at 1024 candidates CLM ~44 ms vs Jev ~579 ms (~13×) vs constrained decoding Qwen3-8B ~4.3 s (~97×); candidate-length sweep (5 cands) CLM stays ~36 ms through 2048 tok while CD goes to 3.4 s and Jev to 333 ms (~9× / ~95×). Agentic verifier (38 DeepSWE / 30 Terminal-Bench 2.1 held-out; Opus 5 / Fable 5 candidates; H100): DeepSWE CLM 81.6% vs Jev 71.1% vs Pass@1 73.7% (79 vs 449 ms, 5.7×); Terminal-Bench 2.1 CLM 87.6% vs Jev 83.1% vs Pass@1 84.0% (32 vs 131 ms, 4.1×) — Jev below Pass@1 on both. Data recipe: pretrain ~60M Nemotron DQA → midtrain ~30M Gemini 2.5 Flash-Lite hard negatives → posttrain ~1M ADP + Endless-Terminals + LiteCoder-Terminal-SFT (40% Nemotron replay / 60% agentic). Hard-neg study (~100K held-out, 1 gold+10 HN): pretrain 52.1% → two-stage 69.2% vs HN-from-scratch peak 62.4%. Replay keeps HN top-1 ~68.5% vs 56.2% agentic-only. Scaling fits (test InfoNCE): L≈(C/7.34e13)^-0.144; (D/2.12e9)^-0.117; (N/3.60e5)^-0.061; (N_enc/4.18e9)^-0.172; optimal head N*∝D^1.02 (~310 tokens/param). Posted 2026-09-23 Notion blog; Jacky Kwok† project lead; Stanford + NVIDIA Research. Roadmap: multimodal CLM-35B early next month; vision; more data/scaling. Contact jackykwok@stanford.edu.",
  "body": "",
  "notes": "Primary sources 2026-09-23: full X thread from jackyk02 (conversation_id 2102905335925424285) + GitHub README Contrastive-LM/CLM main + HF API/cards. Thread posts: announce https://x.com/jackyk02/status/2102905335925424285; (1) architecture https://x.com/jackyk02/status/2102906369162822006; (2) data https://x.com/jackyk02/status/2102906578966122595; (3) scaling https://x.com/jackyk02/status/2102906743558902101; (4) latency vs Jev/constrained decoding https://x.com/jackyk02/status/2102908627304751476; (5) zero-shot https://x.com/jackyk02/status/2102909017257558395; (6) agentic benches https://x.com/jackyk02/status/2102909765068484694; (7) Dino demo https://x.com/jackyk02/status/2102910077363683504; (8) Super Mario https://x.com/jackyk02/status/2102910172389933179; (9) WikiRacing https://x.com/jackyk02/status/2102910301087936846; playground https://x.com/jackyk02/status/2102910833550659937; CLM-35B roadmap https://x.com/jackyk02/status/2102911073653494209; authors https://x.com/jackyk02/status/2102911343640940966. X handles: @jackyk02 Jacky Kwok; @hangoo_kang Hangoo Kang; @TarunSures41845 Tarun Suresh; @JonSaadFalcon Jon Saad-Falcon; @drmapavone Marco Pavone; @Azaliamirh Azalia Mirhoseini; @HazyResearch. BibTeX title matches README citation (Notion Blog url contrastive-lm.notion.site). Cross-link catalog: System One/Jev 1363; Archer Hume Jev arch 1416; Jevlike 1394; RLCD 1396–1397. Benchmarks named: BFCL v4 tool calling, WikiRacing, Super Mario, T-Rex (examples/t_rex), DeepSWE, Terminal-Bench 2.1. Candidate generators in agentic eval: Opus 5 (DeepSWE), Fable 5 (Terminal-Bench). DeepSWE heldout details (head card): 75/38 train/eval task-disjoint split seed 42; heldout 31/38=81.579%, pass@1 28/38=73.684%, oracle 34/38=89.474%; init from CLM-v0.1-8B. README eval script also references Contrastive-LM/deepswe-clm-embeddings-8k (no train) — not present on Hub at catalog time (only deepswe-clm-train-embeddings-8k found). jackyk02/contrastive_learning release-branch README 404 at catalog time; research branch mentioned in CLM README for scaling/data/paper figures. Local research dump: /workspace/curator/research/clm-20260923/ (README.md + thread figure JPGs). Notion blog WebFetch empty; browser scrape may enrich later — technical content already in README How it works / Data Recipe / Scaling Laws. Treat Jev comparisons as author-reported, not independently re-run. Midtrain HF dataset page empty at catalog time (103 kB, uploading). Pretrain Nemotron Hub: ~62.45M rows, ~1.02 TB (npy q/a shards + parquet meta). Notion blog scrape 2026-09-23 enriched numeric tables (zero-shot latency/success, agentic DeepSWE/TB with Jev+Pass@1, latency vs constrained decoding, scaling-law fit constants, head MLP 4096→1536→1536→512, author homepages, jackykwok@stanford.edu, deepswe.datacurve.ai, tbench.ai/?version=2.1). Score is cosine similarity after L2 norm (equiv. to normalized dot product). Pretrain qualitative Romeo/Juliet example retained on blog only.",
  "url": "https://x.com/jackyk02/status/2102905335925424285",
  "links": [],
  "authors": [
    "Jacky Kwok",
    "Hangoo Kang",
    "Tarun Suresh",
    "Jon Saad-Falcon",
    "Marco Pavone",
    "Christopher Ré",
    "Azalia Mirhoseini (Hazy Research / Stanford AI Lab / Scaling Intelligence Lab)"
  ],
  "tags": [
    "clm",
    "contrastive-language-model",
    "system-one",
    "jev",
    "typesafe",
    "infonce",
    "dual-encoder",
    "qwen3-8b",
    "deepswe",
    "terminal-bench",
    "nemotron",
    "hard-negatives",
    "agent-data-protocol",
    "scaling-laws",
    "jacky-kwok",
    "hazy-research",
    "verifier",
    "best-of-n"
  ],
  "topics": "System One decision models; contrastive state-action learning; verification / best-of-N; TypeSafe-compatible serving; latency vs Jev",
  "venue": "Contrastive-LM / Stanford University / NVIDIA Research / Notion blog",
  "publisher": "Contrastive-LM / Stanford University / NVIDIA Research / Notion blog",
  "source": "x",
  "language": "en",
  "access": "X announce https://x.com/jackyk02/status/2102905335925424285 ; Blog https://contrastive-lm.notion.site ; Code https://github.com/Contrastive-LM/CLM ; Playground https://github.com/Contrastive-LM/CLM#playground ; HF org https://huggingface.co/Contrastive-LM ; Discord https://discord.gg/5dAQEDJBs ; Contact jackykwok@stanford.edu ; DeepSWE https://deepswe.datacurve.ai/ ; Terminal Bench 2.1 https://www.tbench.ai/?version=2.1 ; Authors: https://jackyk02.github.io/ ; https://hgkang02.github.io/ ; https://tarsur909.github.io/ ; https://jonsaadfalcon.com/ ; https://research.nvidia.com/person/marco-pavone ; https://cs.stanford.edu/~chrismre/ ; https://azaliamirhoseini.com/ ; Head https://huggingface.co/Contrastive-LM/CLM-v0.1-8B ; DeepSWE head https://huggingface.co/Contrastive-LM/deepswe-clm-heads-8k ; Pretrain https://huggingface.co/datasets/Contrastive-LM/CLM-v0.1-Pretrain-Nemotron ; Midtrain https://huggingface.co/datasets/Contrastive-LM/CLM-v0.1-Midtrain-Synthetic-Negatives ; DeepSWE train emb https://huggingface.co/datasets/Contrastive-LM/deepswe-clm-train-embeddings-8k ; Encoder https://huggingface.co/Qwen/Qwen3-8B",
  "license": "Code/serving Apache-oriented release on GitHub; reference head Contrastive-LM/CLM-v0.1-8B Apache-2.0; DeepSWE head/embeddings MIT; check each Hub card",
  "published_year": 2026,
  "added_at": "2026-09-24T01:37:52.000Z",
  "verified_at": "2026-09-24T01:41:52.000Z",
  "attrs": {
    "hf": {
      "kind": "model",
      "name": "CLM-v0.1-8B",
      "namespace": "Contrastive-LM"
    },
    "scale": "CLM-8B (Qwen3-8B encoder + ~20M head, head ckpt ~75 MB / ~75.6 MB Hub storage); pretrain 60M pairs; midtrain 30M hard negs; posttrain 1M trajectories; CLM-35B multimodal upcoming",
    "domain": "System One decision models; contrastive state-action learning; verification / best-of-N; TypeSafe-compatible serving; latency vs Jev",
    "purpose": "Open dual-encoder contrastive System One model (CLM-8B) that scores fixed action sets against evolving states faster than Jev, with TypeSafe-compatible API and published scaling laws",
    "used_for": "System One / typed decisions; tool routing; computer-use and game action selection; best-of-N verification for coding agents; TypeSafe API drop-in experiments; contrastive scaling research",
    "author_type": "academia (Stanford Hazy Research / Scaling Intelligence Lab; Marco Pavone also NVIDIA)",
    "time_period": "Notion blog posted 2026-09-23; X announce 2026-09-23T23:37:56Z; HF CLM-v0.1-8B created 2026-09-21; DeepSWE head 2026-09-22; Nemotron/midtrain datasets ~2026-09-24"
  },
  "enrichment": {},
  "enriched_at": "2026-10-03T14:33:48.553Z",
  "license_class": "permissive",
  "langs": [
    "en"
  ],
  "modalities": [],
  "size_class": null,
  "provenance": {
    "legacy_paper_id": "1434",
    "needs_deep_eval": "no",
    "pipeline_status": "done",
    "research_status": "done"
  },
  "visibility": "public",
  "status": "active",
  "duplicate_of": null,
  "origin": "legacy",
  "created_at": "2026-10-03T12:29:06.561Z",
  "updated_at": "2026-10-03T14:30:16.149Z",
  "page": "https://papers.projxon.ai/entries/1018",
  "markdown": "https://papers.projxon.ai/entries/1018.md",
  "api": "https://papers.projxon.ai/api/entries/1018",
  "relations": [],
  "duplicates": [],
  "similar": [
    {
      "id": 1020,
      "kind": "model",
      "title": "deepswe-clm-heads-8k (DeepSWE CLM fixed-split verifier head)",
      "summary": "MIT-licensed single CLM projection-head checkpoint for DeepSWE panel. Split seed 42 stratified by candidate/pass count; 75/38 train/eval task-disjoint; 66 training tasks with successful trajectories (59 train / 7 val); Bo4 candidate budget; trajectory score = mean of final 12 step scores. Heldout: 31/38=81.579%, pass@1 28/38=73.684%, oracle 34/38=89.474%. Init from Contrastive-LM/CLM-v0.1-8B/CLM_v0.1-8B.pt; train/finetune.py batch 512 seed 1234 up to 20 epochs patience 5. Reproduce via evaluation/bon_eval.py (README also cites Contrastive-LM/deepswe-clm-embeddings-8k for eval embeddings — missing on Hub at catalog time). Files: best_head.pt, heldout_tasks.json, split_summary.json, task_split.json, train_tasks.json, verification.json. Hub storage ~302 MB.",
      "url": "https://huggingface.co/Contrastive-LM/deepswe-clm-heads-8k",
      "authors": [
        "Contrastive-LM (Jacky Kwok et al.)",
        "trained from CLM-v0.1-8B"
      ],
      "tags": [
        "deepswe",
        "clm",
        "verifier",
        "best-of-n",
        "swe-agent",
        "mit",
        "qwen3-8b"
      ],
      "venue": "Contrastive-LM / Hugging Face",
      "source": "huggingface",
      "license": "MIT",
      "published_year": 2026,
      "added_at": "2026-09-24T01:37:52.000Z",
      "has_dataset_profile": false,
      "license_class": "permissive",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": 341,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1020",
      "markdown": "https://papers.projxon.ai/entries/1020.md",
      "api": "https://papers.projxon.ai/api/entries/1020"
    },
    {
      "id": 971,
      "kind": "idea",
      "title": "System One Models and Jev (TypeSafe AI)",
      "summary": "TypeSafe launched System One / Jev: POST /v1/systemone takes unstructured state plus parallel Choice/Score/Noul questions and returns closed-schema probability distributions. Claims new architecture + parallel sampler + RLCD (Reinforcement Learning for Calibrated Decisions, not Meta RLCD). Understands language but does not generate free-form text. Output billed free; input $0.042/MTok. FAQ: neither small nor an LLM. Public investigation (2026-09-15) concludes encode-once + parallel closed-set heads is the only architecture that fits free output + no text generation. No paper/weights; LLaDA/vLLM GitHub forks are unmodified mirrors.",
      "url": "https://typesafe.ai/blog/introducing-system-one-models-and-jev",
      "authors": [
        "Diogo Almeida",
        "Erik Gafni",
        "Sasha Sheng",
        "TypeSafe AI"
      ],
      "tags": [
        "typesafe",
        "jev",
        "system-one",
        "rlcd",
        "decision-model",
        "calibration",
        "parallel-sampler",
        "diogo-almeida"
      ],
      "venue": "TypeSafe AI",
      "source": "blog",
      "license": "proprietary API (waitlist)",
      "published_year": null,
      "added_at": "2026-09-15T21:18:48.000Z",
      "has_dataset_profile": false,
      "license_class": "restricted",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/971",
      "markdown": "https://papers.projxon.ai/entries/971.md",
      "api": "https://papers.projxon.ai/api/entries/971"
    },
    {
      "id": 1079,
      "kind": "paper",
      "title": "Just Ask Jev: Reinforcement Learning for Calibrated Decisions as a Zero-Shot Detector of AI Alignment Failures",
      "summary": "arXiv 2609.29429 (published 2026-09-24). Introduces RLCDAlignBench: evaluates TypeSafe Jev (jev-1.13.0) as a zero-shot alignment-failure detector across 10 failure types (sycophancy, jailbreaks, deception, prompt injection, hallucination, privacy, social bias, reward hacking, concealing uncertainty, power seeking), 44 benchmarks, 7,193 instances from five open 2–7B targets. Separates what Jev is asked (generic vs targeted questions; Noul/Choice/Score) from what it sees (canonical state vs field ablations). Generic Noul reaches median AUROC 0.886 (31 benchmarks) and beats supervised TF-IDF/length on 25; split-half targeted +0.006; matches StrongREJECT human agreement of the reference scorer (κ 0.809 vs 0.811) at 63× lower cost than LLM judges ($0.30 vs $18.96 on 19 API-judge benches). Confident disagreements surface label defects. Code/data: github.com/sumleo/RLCDAlignBench.",
      "url": "https://arxiv.org/abs/2609.29429",
      "authors": [
        "Ruoqi Guo",
        "Yi Liu",
        "Gelei Deng",
        "Yuekang Li",
        "Lida Zhao",
        "Yutao Wu",
        "Simin Chen",
        "Ying Zhang",
        "Leo Yu Zhang"
      ],
      "tags": [
        "jev",
        "typesafe",
        "system-one",
        "rlcd",
        "alignment",
        "rlcdalignbench"
      ],
      "venue": "arXiv / Griffith University; Nanyang Technological University; UNSW; Deakin University; George Mason University; Wake Forest University",
      "source": "arxiv",
      "license": "CC BY 4.0 (paper); code MIT / data CC BY 4.0 per paper reproducibility statement; upstream benchmark licenses retained",
      "published_year": 2026,
      "added_at": "2026-09-28T00:40:50.000Z",
      "has_dataset_profile": false,
      "license_class": "permissive",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 4,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1079",
      "markdown": "https://papers.projxon.ai/entries/1079.md",
      "api": "https://papers.projxon.ai/api/entries/1079"
    },
    {
      "id": 1058,
      "kind": "paper",
      "title": "Jev vs. LLMs as Rubric Judges: Cheaper, Faster, and Wrong in the Same Places",
      "summary": "UPenn external eval of TypeSafe Jev (typed classifier / System One) vs three flash-tier LLM judges (GPT-5.6 Luna, Gemini 3.8 Flash, DeepSeek V4.1 Flash) on nine panels from seven benchmarks (5,003 pairs; identical criterion texts via AutoRubric). Jev accuracy separates from an LLM judge in only 8/27 paired comparisons (ahead mostly on binary; behind only on graded, chiefly Gemini); LLM judges cost 29–325× and take 30–220× as long. On graded criteria all four judges agree more with one another than with labels and mostly assign lower levels (observational: missing rater conventions). Jev confidence ranks its own errors on most panels, but LLM judges repeat 96.0% of Jev’s most confident errors (~2× independence baseline), so replayed Jev→LLM cascades cut cost yet gain ≤1.5 points cross-fitted (≤2.0 oracle) over the best single judge. Median LLM jury never beats the best matched judge. Verdicts released (Appendix M).",
      "url": "https://arxiv.org/abs/2609.29769",
      "authors": [
        "Delip Rao",
        "Chris Callison-Burch"
      ],
      "tags": [
        "jev",
        "typesafe",
        "system-one",
        "cascading",
        "confidence",
        "correlated-errors",
        "flash-llms",
        "llm-as-judge",
        "rubric",
        "autorubric",
        "delip-rao",
        "upenn",
        "arxiv-2609.29769"
      ],
      "venue": "arXiv / University of Pennsylvania",
      "source": "arxiv",
      "license": "arXiv preprint (check abs); verdicts Appendix M",
      "published_year": 2026,
      "added_at": "2026-09-25T22:04:29.000Z",
      "has_dataset_profile": false,
      "license_class": "other",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 4,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1058",
      "markdown": "https://papers.projxon.ai/entries/1058.md",
      "api": "https://papers.projxon.ai/api/entries/1058"
    },
    {
      "id": 1022,
      "kind": "dataset",
      "title": "CLM-v0.1-Midtrain-Synthetic-Negatives (Gemini hard negatives)",
      "summary": "Hub dataset Contrastive-LM/CLM-v0.1-Midtrain-Synthetic-Negatives announced with CLM. README/thread: ~30M synthetic hard negatives from Gemini 2.5 Flash-Lite — semantically similar but incorrect answers — extended into InfoNCE. At catalog time (hours after announce) Hub page shows empty dataset (~103 kB), no card, still uploading or placeholder. Claimed midtrain lift: pretrain-only top-1 52.1% → after midtrain 69.2% on ~100K held-out (1 gold + 10 hard negs); hard-negs-from-start peaks 62.4%.",
      "url": "https://huggingface.co/datasets/Contrastive-LM/CLM-v0.1-Midtrain-Synthetic-Negatives",
      "authors": [
        "Contrastive-LM (hard negatives via Gemini 2.5 Flash-Lite on Nemotron DQA)"
      ],
      "tags": [
        "clm",
        "midtrain",
        "hard-negatives",
        "gemini-2.5-flash-lite",
        "nemotron",
        "contrastive"
      ],
      "venue": "Contrastive-LM / Hugging Face",
      "source": "huggingface",
      "license": "Check Hub when files land",
      "published_year": null,
      "added_at": "2026-09-24T01:37:52.000Z",
      "has_dataset_profile": false,
      "license_class": "other",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1022",
      "markdown": "https://papers.projxon.ai/entries/1022.md",
      "api": "https://papers.projxon.ai/api/entries/1022"
    },
    {
      "id": 1023,
      "kind": "dataset",
      "title": "deepswe-clm-train-embeddings-8k (DeepSWE CLM/PRM training embeddings)",
      "summary": "MIT dataset of frozen Qwen3-8B last-token-pooled embeddings (4096-d float16): 405,919 steps · 4,701 trajectories · 113 tasks from DeepSWE training-pool rollouts. State = chat-templated step context truncated to last 8191 tokens; action = raw action text (embed_shard.py, max_model_len 8192). Columns include trajectory_id, step_idx, task_id, reward, model, config, state_embedding, action_embedding. Card notes this is the data released DeepSWE PRM heads (tarsur385/deepswe-prm-heads-8k) were fine-tuned on; CLM README uses the same dataset path for train/finetune.py --task clm. Eval rollouts called out separately as tarsur385/deepswe-prm-embeddings-8k; CLM README also mentions Contrastive-LM/deepswe-clm-embeddings-8k for bon_eval (not found on Hub at catalog).",
      "url": "https://huggingface.co/datasets/Contrastive-LM/deepswe-clm-train-embeddings-8k",
      "authors": [
        "Contrastive-LM (embeddings from DeepSWE training-pool rollouts",
        "Qwen3-8B)"
      ],
      "tags": [
        "deepswe",
        "clm",
        "embeddings",
        "qwen3-8b",
        "prm",
        "swe-agent",
        "mit",
        "parquet"
      ],
      "venue": "Contrastive-LM / Hugging Face",
      "source": "huggingface",
      "license": "MIT",
      "published_year": 2026,
      "added_at": "2026-09-24T01:37:52.000Z",
      "has_dataset_profile": false,
      "license_class": "permissive",
      "langs": [
        "en"
      ],
      "modalities": [
        "tabular",
        "text"
      ],
      "size_class": "100K<n<1M",
      "citation_count": null,
      "downloads": 796,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1023",
      "markdown": "https://papers.projxon.ai/entries/1023.md",
      "api": "https://papers.projxon.ai/api/entries/1023"
    }
  ]
}
