jspace 是一个预注册的研究项目,测试大语言模型雅可比透镜的内部信号能否比输出置信度更可靠地检测错误,结果发现该信号仅在特定任务族内跨数据集迁移,而在真实性判断任务上失效。

Stars

50

7 天增长

暂无数据

Fork 数

5

开放 Issue

11

开源协议

MIT

最近更新

2026-07-19

AI 仓库情报摘要
FR-AI / ANALYSIS

为什么值得关注

该仓库因其严格的预注册分阶段评估(含冻结和哈希验证的分类器)、独立对抗审计,以及揭示“答案读出混杂”这一关键方法论问题而引人注目。

适合谁使用

  • 大模型安全与对齐研究者
  • 从事幻觉检测的机器学习工程师
  • 关注可复现性与元科学的研究者
  • 研究模型内部表征的学者

典型使用场景

  • 基于内部信号构建和评估开源大模型的幻觉检测器
  • 在 CPU 上 90 秒内复现整个运动的结果
  • 理解基于探针的错误信号在不同任务类型上的局限性
  • 在探针评估中避免答案读出混杂导致的虚假高 AUC

项目优势

  • 预注册设计:分类器冻结且 SHA-256 哈希锁定,阈值在评估数据生成前注册
  • 独立的对抗审计(Codex/GPT-5.5)确认了主增益(约 +0.06 AUROC)
  • 仅需 CPU 的复现脚本可验证哈希并重算全部结果
  • 全部 2.45 万条标注轨迹、特征表和拟合透镜均已在 Hugging Face 公开

使用前须知

  • 内部信号仅限任务族内迁移,未通过通用迁移测试(门 D 未命中),在真实性判断任务上失效
  • 答案读出混杂导致探针在固定答案切片上可达到近乎完美的 AUC,但实际并未检测到错误,需要细致切片分解
  • 研究仅基于单一模型(Gemma-4-12B)和贪婪解码,未测试对其他模型或采样策略的泛化性

README 快速开始

jspace

Do LLM internal signals actually detect errors? Preregistered reliability research on open models.

Try the demo · Reproduce in 90s · Reports · Data · Contributing

Finding: a ~300 KB LightGBM classifier over Jacobian-lens workspace readouts predicts Gemma-4-12B's wrong answers better than the model's own output confidence, transfers across datasets within a task family, and fails a pre-registered universal-transfer test in an informative way: transfer holds on grounded and retrieval QA but breaks down on veracity-judgment tasks, so it cannot yet be treated as a universal or sign-stable error signal.

Why it matters

Output logprobs are the standard cheap hallucination signal, but they are dataset-specific: a confidence threshold tuned on one benchmark does not carry to the next. An internal signal read from the residual stream through the Jacobian lens (Anthropic's global workspace paper, July 2026) generalizes across datasets better than output confidence does in some task families, at one extra forward-pass read. Just as important, the campaign's prospective failure maps where such monitors stop working and surfaces a confound that can affect other published probe results.

The campaign, in four pre-registered gates

25,340 prompts, 13 public benchmarks, 6 domains, Gemma-4-12B, greedy. Each gate's threshold was registered before the data that scores it existed; classifiers were frozen and SHA-256 hashed before the Stage 2 datasets were generated.

GateRegistered testResult
ACombined (workspace+logprob) beats logprob-only under leave-one-dataset-out: mean AUROC increment >= +0.02, breadth >= 70%HIT: +0.065, positive 6/7 datasets. Workspace-only 0.789 vs logprob-only 0.731 LODO
BAt a 20% routing budget, combined catches >= 5pp more errors,

项目描述

Same-day replication + extensions of Anthropic's global-workspace paper on Gemma 4 — emotion probes, hallucination prediction, 16GB-GPU recipe

相关仓库与替代方案

根据分类、Topic 和编程语言匹配的相似项目。

lopopolo
精选
lopopolo GitHub avatar

harness-engineering

Harness Engineering is a methodology for improving coding agent outputs by carefully crafting the environment around them—providing curated context, tools, and executable constraints that encode an organization’s nonfunctional requirements and cumulative lessons.

AI 与机器学习AI 智能体
2,390
slvDev
精选
slvDev GitHub avatar

esp32-ai

A 28.9 million parameter language model runs on an $8 ESP32-S3 microcontroller entirely on-device, generating simple stories at about 9.5 tokens per second.

AI 与机器学习大语言模型
1,960
littledivy
精选
littledivy GitHub avatar

mimic

mimic captures traffic from any iOS or web app and automatically generates a Python client library that lets you call the app's API like a regular library.

AI 与机器学习
1,482