← 返回起始笔记位置

知识卡片

普通读书笔记卡 · 11807.b.2 · 生成模型:DeepSeek-V4.1-Flash

采样的随机性:创造力与幻觉同源

理解等级:中级

模型选下一个 token 时,很多常用解码策略并不纯粹取最高概率项,而是保留随机成分。于是同一个提示词不总得到同一个输出。这个非确定性不是设计失误,恰恰是模型”好用”的来源。

它带来两个正面效果:用户可以重试直到满意(这是几乎所有人都做过的动作);模型会产出听起来新颖、出乎意料的表达,也就是”创造力”。原文用一句话演示这个差别:以 “The meal was absolutely…” 开头,高概率续写是 delicious,而放弃最高概率项后可能得到”一首交响乐,罗勒在拉大提琴”这类句子。

代价是同源的:不一致(同一问题给出互相矛盾的答案)与幻觉(给出不基于事实的答案)。所以 AI 应用的开发有相当大一部分精力,是在管理和控制这两个副作用,而不是在”让模型更聪明”。推论是:平台必须提供评估、检索、护栏、追踪这类约束手段,否则团队只能各自凭感觉调参。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • AI Applications and Their Lifecycle · 查看原书依据

      This creativity comes with a downside. It might lead to more inconsistencies (a model gives contradicting answers) and hallucination (a model gives answers not based on facts). Therefore, the development of AI applications is a lot about managing and controlling these negative side effects.

    参考来源

    - 位置:《Building AI Agent Platforms》第01章《AI Applications and Their Lifecycle》(源文件:extracted/Building AI Agent Platforms/_epub-src/OEBPS/ch01.html,来源项目 book-source) - 结论依据:原文说明解码的随机成分使过程非确定,先举重试与"创造力"的好处,再点明不一致与幻觉的代价,并由此推出平台需提供相应工具。 - 原始内容:This creativity comes with a downside. It might lead to more inconsistencies (a model gives contradicting answers) and hallucination (a model gives answers not based on facts). Therefore, the development of AI applications is a lot about managing and controlling these negative side effects.