資料來源#
- Can LLMs Reliably Self-Report Adversarial Prefills, and How?
- How Anthropic's product team moves faster than anyone else | Cat Wu (Head of Product, Claude Code)
摘要#
Cat Wu 稱這是她最被低估的 AI 除錯技巧:當 Claude 做出預期之外的事情時,詢問模型反思自己為何如此。模型提出的推理——關於其系統提示、子代理委派選擇、含糊的指示,以及缺少的工具——會直接指出測試框架需要修正之處。不要孤立地調整模型行為;應將失敗視為訊號,了解測試框架需要提供什麼。
這項技巧#
當代理做錯事時:
- 不要立刻以修正內容重新提示。
- 詢問:「你為什麼做出那個決定?你對什麼感到困惑?」
- 閱讀模型對自身推理的說明。
- 根據模型揭示的內容修正測試框架——而不是模型本身。
Cat Wu 的實例#
訪談中提到:
「有些情況下,模型會修改前端並執行測試,卻沒有實際使用 UI。詢問模型反思自己為何這麼做,其實非常有用。有時它們會說,系統提示中有些內容令人困惑;或者我沒意識到前端驗證是這項任務的一部分;又或者我把驗證委派給這個子代理,而子代理沒有執行測試,我也沒有檢查它的工作。很多時候,只要對模型為何做出那個決定保持高度好奇,就能看出是什麼誤導了它,讓你可以修正測試框架,填補這個缺口。」
她列出的每一種失敗解釋,都指向不同的測試框架修正:
| 模型的理由 | 測試框架修正 |
|---|---|
| "Confusing system prompt" | 重寫相關段落 |
| "Didn't realize UI verification was part of the task" | 在任務範本中明確加入 UI 驗證步驟 |
| "Delegated to sub-agent, didn't check its work" | 在全新脈絡中加入審查代理(見 Deep Modules for Agents);或移除委派 |
為何這不容易察覺#
面對失敗時,預設反應是「模型很笨」。內省式的重新框架是:模型的行為是測試框架的函數;失敗提供了關於測試框架的資訊。這需要接受三件事:
- 模型對自身推理的說明是片段式且事後產生的,但仍然有用(注意事項見下文)。
- 測試框架是你能控制的變數;模型不是。
- 你的工作是設計一個讓模型能成功的環境,而不是讓模型變得更聰明。
這與「強制執行不變量,而非實作」(見 Agent Harness Engineering)位於相同的架構層級——你操作的是模型周圍的結構,而不是模型本身。
注意事項——模型的自我報告不是絕對真相#
標準注意事項是:語言模型的內省報告描述的是它對自身推理會怎麼說,不一定是實際的計算過程。這些報告可能是編造的,尤其是在失敗已經存在於脈絡中的工作階段。
降低風險的方法:
- 在全新脈絡中,只提供失敗案例執行內省,不要提供周邊工作階段
- 對照日誌交叉檢查(呼叫了哪些工具、順序為何)
- 將模型報告視為關於測試框架缺口的假說,而非最終診斷——確認修正確實關閉了該失敗模式
一般化:透過對話校準信任#
這項技巧是 Anthropic 更廣泛模式的一部分:以與模型的對話作為主要回饋訊號,而不只是指標。Cat 在同一場訪談中的其他例子包括:
- Claude Code 的團隊午餐:每位成員都要說出自己對新模型的「感覺」——這種質化訊號會影響接下來該查看哪些量化資料。
- Amanda 的角色工作:目標含糊、需要信念,透過與模型的長時間對話塑造,而不是透過基準最佳化。
- 將 Building evals 視為一項未受充分重視的 PM 技能——也是模型內省的持久搭檔。內省產生假說;evals 驗證假說並防止回歸。
統一的主題是:在 AI 原生產品工作中,模型是可以訪談的隊友,而不是只能測量的黑箱。
相關連結#
- Cat Wu——主要闡述者
- Design Concept Grilling——反向操作:模型訪談使用者。同樣的模式、相反的方向。兩者合用會形成緊密的對齊迴圈。
- Harness Shrinkage as Models Improve——內省會指出哪些測試框架元素仍值得佔用 token
- Agent Harness Engineering——透過提供測試框架設計者一項除錯工具,將「強制執行不變量,而非實作」落實為操作方法
- Deep Modules for Agents——內省告訴你實作者無法可靠地審查自己之後,你所建立的就是全新脈絡審查者
- Claude Character as Product——角色工作將內省作為主要回饋訊號
- Problem-Solution Fit Discipline——同樣的形式:要求模型批評自己/自己的計畫/自己的假說;創辦人的實戰手冊將這項技巧應用於驗證想法
- Evals as Product Spec——持久搭檔:內省產生假說;evals 是驗證假說並將其轉化為回歸防護的方式
- Jagged Intelligence (Ghosts, Not Animals)——內省預設模型是幽靈,而非動物:模型的「我為什麼失敗」是測試框架除錯訊號,而不是來自能接觸自身理由之心智的證詞
- Self-Report as a Safety Signal——同一自我報告管道的對抗式安全壓力測試:探查模型是否產生遭入侵的輸出,而沒有任何開放權重模型(3B–70B)能可靠辨識自己的預填回應,因此內省可靠度取決於脈絡——對良性的測試框架除錯來說足夠,但遭受攻擊時不可靠
開放問題#
- 4.7 級內省報告有多可靠?Anthropic 的可解釋性研究顯示其忠實度是部分的,而非完整的。從實證來看,Cat 表示它足以推動測試框架修正——但尚不清楚這項技巧在何種模型規模下會成為承重結構。部分回答: Self-Report as a Safety Signal——可靠度取決於脈絡。在良性除錯情境中,報告足以推動測試框架修正;在對抗式安全情境中,開放權重模型(3B–70B)有 27.3% 的時間無法辨識自己遭入侵的輸出,而現有的辨識其實是拒答電路延遲觸發,不是真正對自身輸出的內省。因此,Cat 所依賴的管道即使是有用的除錯訊號,也仍是薄弱的安全訊號。
- 對抗式內省(「你為什麼失敗?」)是否會比中性的(「帶我逐步了解你的推理」)產生不同訊號?值得探查。部分回答: Self-Report as a Safety Signal 發現自我歸因高度取決於框架——「意圖」探查與「竄改」探查會在相同模型上引出質性不同的答案(某些模型家族無論如何都約有 100% 的時間否認竄改),因此內省問題的措辭會實質改變訊號。
- 能否讓一個元代理針對已記錄的失敗自動執行內省?聽起來可行,但目前沒有公開實作。
資料來源#
Cited by 13
- Learning to Co-Work with AI: A Software Engineer's Field Guide×3
The most underrated technique Cat Wu names: when the agent does something wrong, ask it why (Model…
- Open Questions Backlog×3
Model Introspection Feedback (98d) — Could a meta-agent run introspection automatically against…
- Cat Wu×2
Ask the model to introspect. Underrated debug technique: when Claude does something unexpected, ask…
- Claude Character as Product×2
This pattern (qualitative-first, data-second) generalizes — see Model Introspection Feedback.…
- Evals as Product Spec×2
Ask the model to introspect (Model Introspection Feedback) — when the model does something…
- How Do You Write Evals for Taste? Character as the Limit Case×2
Hypothesis → data probe (Model Introspection Feedback): the vibe signal informs which logged data…
- Self-Report as a Safety Signal×2
Model Introspection Feedback — the benign-debugging use of the same self-report channel; this page…
- Agent Harness Engineering
Model Introspection Feedback — debugging-time tool: ask the model why it failed, fix the harness,…
- Deep Modules for Agents
Model Introspection Feedback — introspection probes module boundaries to find where the harness is…
- Introspective Coupling
Model Introspection Feedback — the harness-debugging use of untrained self-report; this paper…
- Jagged Intelligence (Ghosts, Not Animals)
Model Introspection Feedback — Cat Wu's "ask the model why it failed" presumes a ghost whose…
- Product & Organization
Model Introspection Feedback — Cat Wu's underrated technique: ask the model why it failed; treat…
- Problem-Solution Fit Discipline
Model Introspection Feedback — same shape: ask the model to critique its own output as a…
Related articles
- Claude Character as Product
Personality as load-bearing product surface; Amanda's role at Anthropic; lunchtime vibe-checks as eval discipline; the…
- Harness Shrinkage as Models Improve
Prompt scaffolding shrinks each model release; Cat Wu's pruning discipline; Boris Cherny "100 lines of code a year from…
- Claude Code
Anthropic's agentic coding product; created by Boris Cherny late 2024; TypeScript/React on Bun (itself Claude-rewritten…
- Dogfooding as Product Discipline
Product sense is built by relentless first-hand use ("ant food"); Mr. Peanut catch; cross-source (Cat Wu vibe-checks, G…
- Evals as Product Spec
Cat Wu's framing of evals as the emerging core PM skill: ten great evals beats a hundred mediocre; encode what done loo…
