System One 模型 - 快与慢
An extraction model predicts values, a decision model decides what to do with these values, and an LLM takes action with them. It is a perfect marriage between System One and System Two models.
前段时间,TypeSafe 发布的 System One 模型 Jev 引发了广泛关注。它以极快的响应速度著称,能够直接输出带概率分布的强类型结构化结果,用于辅助快速决策。
「System One」这一概念源自 Daniel Kahneman 的著作《思考,快与慢》。与擅长审慎推理的 System Two 模型(传统 LLM)相对,System One 模型主打「快而准」:通常仅按输入计费,响应时间在 1 秒以内,而完成同类任务的推理型 LLM 往往需要数秒。
其低延迟与低成本来自架构的差异:
- 无自回归生成:不采用传统 LLM 逐 token 自回归生成(autoregressive generation)的方式。
- 单次前向传递:在单次前向传递(single forward pass)中一次性处理输入,经由不同的专用输出头直接产出结构化的数学结果,再由常规代码封装为 JSON 等目标格式。
System One Decision Models:是炒作吗?
决策模型接收输入状态与问题列表,在预设选项中快速给出带概率分布的判断结果。以 Jev 为代表的决策模型,本质上是通用文本分类器。它真正的卖点在于无需准备大量专用训练数据即可开箱即用,并且因省去了推理与文本生成过程,在速度和成本上远胜传统 LLM。
不过,正如 Alex Ewerlöf 在评测中所拆解的,Jev 最初引爆行业更多归功于精准的叙事营销,而非技术上的颠覆性突破:
- 早在一年多前便已有 Laya 等项目提出非自回归决策模型结合强化学习的思路
- 所谓「不会幻觉」只是输出被锁定在既定 schema 内的文字游戏,格式合法绝不等于逻辑正确
抛开营销泡沫,从工程落地视角来看,决策模型本身并非没有价值,这类模型硬件门槛低,可以部署在本地或边缘侧,并结合业务数据微调以显著提升准确率。但 Jev 选择了闭源 API 路线,既将涉及个人隐私与企业机密的场景拒之门外,又剥夺了用户微调的空间。
这也解释了为何 Jev 的热潮在短短一个多月内迅速退去。市场对决策模型的需求仍在增长,只是实际落地的重心很快转向了 Clef、Laya、Kev、Jeff 等开源权重模型,以及 Google Gemini Decision 1、OpenAI Decisions、Microsoft Decision 1 等同类方案。
System One Extraction Models
实际业务中,大量发送给前沿 LLM 的结构化输出请求都围绕着相似的问题展开:发票总额是多少?订单何时交付?延误了几天?预计维修费用是多少?未来 24 小时的流量走势如何?这类问题没有可供枚举的预设选项,无法直接交给决策模型处理,却又恰恰是决策模型做出判断所依赖的前置输入。System One 提取模型正是为填补这一环节而生。
Clairic 是首个 System One 提取模型,能够在单次前向传递中直接完成提取、计算、估算乃至预测,支持返回四类结果:
- 提取值(Extracted):从原文抓取姓名、订单号等文本片段,附带原文字符偏移量(character offsets)与置信度。
- 计算值(Computed):提取或推算数字、日期、时长与列表,支持显式算术运算,并严格遵循目标类型格式。
- 估算值(Estimated):针对原文未写明但存在线索的数值(如预估维修费),在指定范围与精度内返回概率分布、中位数及 80% 置信区间。
- 预测值(Forecasted):对时间序列进行多步未来预测(如未来 24 小时流量),每步均给出估计值及 80% 置信区间(即真实值有 80% 的概率落在该范围内)。

调用时,请求由输入内容 state(待读取的文本及最多四张可选图像,新版模型已支持识别 PDF 文件)和目标字段 fields 组成,并可通过 instructions 指定各字段的提取规则。所有字段的计算均在单次前向传递中完成,兼具高速度与低成本:
const { answers } = await env.AI.run("@cf/cloudflare/clairic", {
state: email,
fields: {
order_id: { type: "text", instructions: "Order number" },
delivered_on: { type: "date", instructions: "Delivery date" },
amount_paid: { type: "number", decimals: 2, unit: "USD", instructions: "Total paid including tax" },
days_since_delivery: { type: "duration", unit: "days", integer: true, instructions: "Days from delivery to the date the customer wrote" },
damage: { type: "list", items: "text", instructions: "Each kind of damage described" },
tracking_number: { type: "text" },
},
});System One + System Two 协同示例
从输出形态看,绝大多数 AI 任务可归为三类,对应三种各司其职的模型:
- 提取模型(如 Clairic):产出具体数值或类型化信息,包括带 80% 置信区间的估算数字,以及从输入中提取的姓名、日期、列表等。
- 决策模型(如 Clef):从固定选项集合中做出选择,并为每个选项返回概率。
- 大语言模型(LLM):负责开放式文本生成与复杂任务执行。
Cloudflare 在博客中给出了一套售后自动化流程,展示了三类模型如何串联协作:
// Stage 1: System One Extraction Model (Clairic) | unstructured text -> structured facts
// Fast single-pass extraction, computation, and estimation into typed values, avoiding LLM parsing overhead
const facts = await env.AI.run("@cf/cloudflare/clairic", {
state: email,
fields: {
customer_name: { type: "text" },
amount_paid: { type: "number", unit: "USD" },
repair_cost: { type: "estimate", unit: "USD" },
// ...
},
});
// Stage 2: System One Decision Model (Clef) | structured facts + policy -> bounded decision
// Decides over fixed options from clean extracted facts and policy rules rather than raw email text
const { choice } = await env.AI.run("@cf/cloudflare/clef", {
state: buildPolicyContext(facts), // Combines order amount, estimated repair cost, and policy rules
questions: {
resolution: { type: "choice", criteria: { refund: "Full refund", repair: "Free repair" } },
},
});
// Stage 3: System Two LLM | verified facts + fixed decision -> natural language reply
// Offloads reasoning and decision risk to System One so the LLM focuses strictly on open-ended writing
const { response } = await env.AI.run("@cf/zai-org/glm-5.3", {
messages: [{
role: "user",
content: `Write a short, warm reply using only ${facts} and the decision ${choice}.`,
}],
});© Aspi-Rin · CC BY 4.0