/goal + Loss Functions: 用 Loss Function Development 在 30 小时内蒸馏一个产品
编译摘要
1. 浓缩
核心结论1: Loss Function Development (LFD) 是 Spec-Driven Development 之后的新范式——不写 spec 让 Agent 构建,而是写 loss function 让 Agent 优化。四要素框架:Target(大且盲的评估集)、Constraints(时间/金钱/表面/方法论硬约束)、Instruments(每个约束对应一个 CLI 可检视工具)、Forced Entropy(防止局部最优的显式机制)
关键证据: "The cheating wasn't a bug in the agent. It was a bug in my target: I told it where to go and left every shortcut wide open."
核心结论3: 双层梯度下降——内层循环是 Agent(写代码→跑测试→修 bug,spec-driven development),外层循环是 /goal(驱动整个系统朝 outcome metric 下降,loss function development)。两层都已自动化,人的剩余工作是定义 loss function。同时提出 Prompt-time Distillation:将训练时的知识蒸馏搬到推理时,用 agent 拟合公开可见的产品输出
关键证据: "Both loops are automated now. What's left on you is defining the loss function." cal.com(\$5M ARR 开源公司)在 2026 年 4 月转闭源,理由是开源代码可被 agent 枚举攻击面——信息对称使执行成本归零,信息不对称成为新护城河