提示 · 不改权重,也能改变方向Prompt · Change Direction Without Changing Weights
task + constraint + example → candidate distribution → response
提示(Prompt)是推理时提供给模型、用于限定任务并影响输出的输入内容。它不会改模型参数,却是最常用的控制面。A prompt is input supplied at inference time to define the task and
shape the output. It does not change model parameters, yet it is the
most common control surface.
01 · 同一个同事,不同任务单01 · Same teammate, different brief
只说“帮我写一下”,和写清任务、禁区、范例,交付会一样吗?Will “write something for me” produce the same result as a
clear task, boundary, and example?
{ }
02提示编辑台:改一段,看候选如何偏转Prompt Desk: Edit a Section, Watch Candidates Shift
实时输入live input
任务清晰度Task clarity
100%
有明确动作action specified
合规检查Compliance
PASS
constraint active
格式贴合Format match
92%
由示例影响shaped by example
03三段提示,各管一件事Three Prompt Sections, Three Jobs
输入结构input structure
PART 01
任务:要做什么Task: what to do
给出对象和动作。没有任务,候选会分散到闲聊或猜测。Name the object and action. Without a task, candidates drift
toward chat or guesswork.
PART 02
约束:什么不能做Constraint: what is forbidden
声明禁区、长度或来源要求;它影响合规候选,但不是权限系统。State exclusions, length, or source rules. This shapes compliant
candidates but is not an authorization system.
PART 03
示例:结果长什么样Example: what good looks like
少量示例可以示范格式与风格,不会把模型永久训练成这个样子。A small example demonstrates format and style; it does not
permanently retrain the model.
PART 04
候选:只是被影响Candidates: shaped, not fixed
提示改变当前条件分布,不保证每次生成都绝对服从。A prompt changes the current conditional distribution; it does
not guarantee perfect obedience.
04最小机制:提示进入条件,不进入权重Minimal Mechanism: Prompt Enters the Condition, Not the
Weights
P(output | prompt)
P(y | x, prompt; θ)
θ 是固定模型参数。编辑上方三段只改变
prompt,因此当前 y 的候选分布变化,θ
不变。θ is the fixed model parameters. Editing the three sections
changes the prompt and current distribution over y, not
θ.
条件分布偏转Distribution shifts候选权重重新分配candidate mass reallocates
权重仍固定Weights stay fixed下一次仍需带提示prompt is needed again next time
05边界实验:删掉敏感信息约束Boundary Test: Remove the Sensitive-Data Constraint
主动制造失败Create a failure
让“不合规详单”重新抬头Let the noncompliant detail regain probability
清空约束,观察不合规候选概率上升。提示能影响输出,但真正的敏感信息控制还要靠护栏。Clear the constraint and watch the noncompliant candidate gain
probability. Prompts shape output; real sensitive-data control
still needs guardrails.
尚未执行。敏感信息约束当前存在。Not run yet. The sensitive-data constraint is present.
✗ 写过一次提示,模型就学会了。One prompt permanently teaches the model.
→ ✓ 提示只在当前推理条件中起作用。A prompt acts within the current inference condition.
✗ 提示越长,控制越强。Longer prompts always provide stronger control.
→ ✓ 清楚、无冲突、可验证比堆字更重要。Clarity, consistency, and testability matter more than
length.
✗ 一句“不得泄露”就是完整护栏。“Do not leak” is a complete guardrail.
→ ✓ 提示是控制面,不是独立权限或输出拦截器。A prompt is a control surface, not an authorization or
output-enforcement layer.
06 · 一句话带走06 · One line to keep
提示在推理时用任务、约束和示例改变当前候选分布,但不改模型参数,也不能单独承担权限与安全保证。A prompt uses tasks, constraints, and examples to shift the current
candidate distribution at inference time, without changing model
parameters or providing authorization by itself.