证据等级:A1 + N/B
- A1:固定encoding_dsv4.py可确认reasoning_effort接受None / high / max,且max在特定条件下注入一段强化推理指令。
- N/B:high是否由服务端后端消费、公共 API 是否暴露相同语义、不同档位的质量/延迟/Token 影响,均需端到端实验。
请先阅读 研究方法与事实校准。创新点索引:I-17
系列:LLM + Harness = Agent
上一篇:16 Quick Instruction 路由
下一篇:18 最新提醒注入
“让模型多想一点”不是一个单一能力。可能涉及:
编码源码能够证明某些字段和 Prompt 路径存在,但不能单独证明线上 API 的真实行为和收益。
可靠 Harness 应把推理强度建模为 Provider Capability 和 Budget Policy:
Task Risk / Uncertainty / Evidence Gap
→ Candidate Reasoning Policy
→ Provider Capability Check
→ Execute with Budget
→ Verify Result
→ Escalate or Stop
固定编码源码中存在类似校验:
assert reasoning_effort in ["max", None, "high"]
并且在特定 thinking_mode 和消息位置下,max 会注入强化推理文本。
A1 结论:
max 存在可见 Prompt 渲染逻辑;None 不注入该文本;high 在该段编码代码中没有与 max 相同的文本注入分支。不能据此确认:
high 一定由后端推理引擎消费;high 一定比默认更深;max 一定改善答案质量;早期版本给出过:
high: completion 约 1.5–2x,延迟增加 20–50%
max: completion 约 2–5x,延迟增加 50–200%
这些数字没有绑定固定 Endpoint、任务集、重复次数和结果文件,现已删除。后续只能引用可复现实验中的实际分布。
API 或 SDK 可能:
必须通过输出、Usage、延迟和任务质量共同判断。
把指令放在最前、System 中或最近用户消息附近,可能产生不同行为,但不能仅根据位置断言模型内部权重。需要 A/B Test。
更长推理可能:
最终质量必须由 Verifier 和任务结果决定。
provider: deepseek
endpoint: <redacted-endpoint-id>
model: deepseek-v4-pro
observed_at: 2026-07-27
thinking_mode:
supported: unknown
reasoning_effort:
accepted_values:
- null
- high
- max
high_semantics: unverified
max_prompt_injection_in_source: true
public_api_effect: unverified
limitations:
- encoding source does not prove hosted endpoint behavior
Capability 应带时间、Endpoint、模型和证据来源,不能写成永久全局常量。
Provider-neutral 表示:
type ReasoningPolicy = {
mode: "minimal" | "standard" | "deep";
maxInputTokens: number;
maxOutputTokens: number;
maxLatencyMs: number;
maxCost: number;
requirePlanner: boolean;
requireIndependentReview: boolean;
providerParams: Record<string, unknown>;
};
上层产品不直接依赖 high 或 max 字符串。
适用:
适用:
候选条件:
Deep 不代表自动执行。高风险动作仍需要 Policy 和 Approval。
不要只按关键词:
if "code review" in prompt:
effort = "high"
更可靠信号:
risk
reversibility
blast radius
uncertainty
evidence completeness
novelty
verifier failures
remaining budget
示例:
reasoning_route:
policy: deep
reasons:
- risk:R3
- irreversible:false
- verifier_failures:2
- evidence_conflict:true
budget:
max_latency_ms: 60000
max_cost: <configured-budget>
exit_conditions:
- verifier_pass
- user_intervention
- budget_exhausted
建议:
Standard Attempt
→ Deterministic Verification
→ 如果通过:结束
→ 如果失败且可修复:带失败证据重试
→ 如果高风险/重复失败:Deep + Independent Review
→ 如果预算耗尽或证据不足:停止并请求用户
这样避免所有任务一开始就使用最昂贵模式。
from policy
to policy
trigger
previous failure evidence
additional budget
outcome
必须设置:
更深模式可能生成更多 reasoning 内容,但是否回传取决于 Provider 协议:
必须使用 I-14 Reasoning Content 回传策略 的 Capability Matrix,而不是为了节省 Token 无条件删除。
None / high / max
thinking / non-thinking
stream / non-stream
tools / no tools
raw HTTP / SDK
确认:
任务类别:
指标:
first-pass success
verifier pass
constraint violation
factual/source accuracy
human preference
reasoning tokens
output tokens
input tokens
cache hit/miss
TTFT
total latency
cost
一个更深策略只有在以下条件下才进入默认路由:
质量提升可重复
且
每成功任务成本在预算内
且
延迟满足产品要求
且
没有增加安全违规
如果只增加 reasoning 长度,没有提高 Verifier Pass 或减少人工介入,应拒绝该策略。
high 可能被忽略;max 可能只是 Prompt Injection;必须有 Capability Version、预算、Fallback 和禁用开关。
推理强度控制不能从源码中的三个合法值直接推导为三个稳定产品档位。
可靠实现需要:
推理更长不是目标。用可控成本获得更可靠结果才是目标。
← 返回全部 18 篇研究