我的征尘是星辰大海。。。
The dirt and dust from my pilgrimage forms oceans of stars...
-------当记忆的篇章变得零碎,当追忆的图片变得模糊,我们只能求助于数字存储的永恒的回忆
作者:黄教授
手机视频列表
从概率读图到可靠总指挥大语言模型如何能成为下一代操作系统
视频
音频
原始脚本
从概率赌徒到可靠总指挥,大语言模型如何成为下一代操作系统?想象一下,未来的 AI 将成为我们数字生活的总指挥,一个操作系统级别的智能体。 它会帮你安排日程、管理邮件,甚至调用其他 AI 工具来完成复杂任务。 OpenAI 的 CEO Sam Altman 和阿里等巨头都看好这个方向。 但这里有个致命矛盾,我们能信任一个本质上是概率赌徒的总指挥吗?一,为什么大语言模型是概率赌徒?要理解这个问题,我们得先看看大语言模型是怎么工作的。 当你问它一个问题时,它并不是在思考或回忆,而是在玩一个高级的猜词游戏。 它会根据你输入的内容和它学习过的海量数据,计算下一个最可能出现的词是什么。 他就像一个精通语言模式的赌徒,每次都下注在概率最高的选项上。 这个机制在绝大多数情况下都能给出令人信服的答案,但他有一个根本性的缺陷,他无法保证100%正确。 因为他追求的是语言模式的连贯性,而不是事实的绝对准确性。 偶尔,它会把一些听起来很像,但实际错误的信息组合在一起,这就是我们常说的幻觉。 更关键的是,这种小概率的错误是所有大语言模型的出厂设置,无法从根本上杜绝。 就算模型参数从万亿级增加到百万亿级,也只能降低错误概率,而不能完全 消除它。 对于偶尔用它查资料的用户来说,这个风险尚可接受。 但对于需要调度各种任务、管理数字生活的操作系统总指挥来说,一次误判就可能导致灾难性后果。 二、初步方案,用三驾马车降低风险。 面对概率赌徒这个难题,最简单直接的思路就是并行推理,也常被称为多数投票,majority voting。 这个方法的灵感来源于航空航天等高可靠性领域。 想象一下,宇宙飞船的导航系统绝不能依赖单个传感器,如果那个传感器出错,整个任务就可能失败。 所以关键系统通常会安装三个完全相同的传感器,同时测量同一个数据。 如果其中一个数据和另外两个不一样,系统就会认为它出了故障,自动采用另外两个一致的数据。 大语言模型的并行推理也是同样的道理。 一、复制实例。 对于同一个问题,系统会启动奇数个,通常是3个、5个或7个完全相同的模型实例。 这些实例就像三架并行起飞的马车,各自独立思考。 二、独立作答。 每个模型实例都会独立生成自己的答案。 由于模型的概率特性,它们偶尔会得出不同的结论。 三、投票裁决。 系统收集所有实力的答案,将出现次数最多的那个作为最终结果。 因为错误答案是小概率事件,正确答案自然会在投票中胜出。 选择奇数个实力就是为了避免出现平局的尴尬场面,确保总能选出一个明确的结果。 这种方法确实能有效降低随机错误的发生。 但它有一个明显的短板,如果模型对某个错误信息产生了集体幻觉,及多个实例都犯了同一个逻辑错误,那么投票机制就失效了。 它能解决概率性问题,却无法解决逻辑性问题。 而且同时运行多个模型实例会显著增加计算成本和响应时间,这也是它无法成为终极方案的原因之一。 三,核心方案,让总指挥学会写作业并接受批改。 真正的突破来自于思维链,Chain of Thought 验证机制。 这个机制的核心不是让模型更聪明,而是引入了一个独立的裁判来监督它的每一步思考。 整个流程分为两步,一,写出解题过程。 要求模型不仅给出最终答案,还要把每一步的推理过程都详细写出来。 这就像学生做完数学题后,必须把演算步骤写在卷子上。 二、由裁判检查过程,引入一个独立的验证器来检查这份作业。 这个验证器不关心答案是否漂亮,只检查每一步推理是否符合逻辑规则,计算是否准确。 这个验证器是一个由多个专业小工具组成的集合,各司其职。 数学计算验证器,专门检查加减乘除、微积分等计算是否正确。 逻辑规则验证器,检查是否违反了基本的逻辑法则。 知识库查询器,对于需要外部知识的步骤,去权威数据库中核实。 只有当验证器确认整个思维链完全正确后,最终答案才会被采纳。 如果发现某一步错误,整个思维链会被打回,要求重新生成。 四、解决双轨制矛盾,安全永远是第一位。 思维链验证要求模型输出机器能看懂的结构化格式,但用户需要的是自然流畅的语言,这就产生了双轨制的矛盾。 解决办法的核心原则是安全优先,具体流程如下。 一、模型输出结构化思维链,这是给验证器看的原始作业,保证了可验证性。 二、验证器检查通过后提取结论,验证器只关心推理过程是否正确,并从中提取最终结论。 三、将结论翻译成用户友好形式。 最后系统会 会把结论用自然语言或图形界面等方式呈现给用户。 这个流程从根本上避免了两张皮问题,因为最终呈现给用户的内容,其源头是经过验证器确认过的正确结论,而不是模型直接生成的自然语言。 模型的角色被严格限制在提出解题思路,而最终的正确性判断和结果输出,则由更可靠的系统组件完成。 结语,通往可靠 AI 的必经之路,从概率赌徒到可靠总指挥,大语言模型要成为下一代操作系统,必须解决可靠性这个核心难题。 思维链验证机制提供了一条切实可行的路径,它通过写出过程、独立验算的方式,将概率模型的不确定性转化为可以被严格验证的确定性。 这不仅是技术上的突破,更是 AI 从能说会道走向真正可靠的关键一步。 随着这套机制的不断完善,我们离那个由 AI 可靠驱动的未来又近了一大步。
修正脚本
从概率赌徒到可靠总指挥,大语言模型如何成为下一代操作系统?想象一下,未来的 AI 将成为我们数字生活的总指挥,一个操作系统级别的智能体。 它会帮你安排日程、管理邮件,甚至调用其他 AI 工具来完成复杂任务。 OpenAI 的 CEO Sam Altman 和阿里等巨头都看好这个方向。 但这里有个致命矛盾,我们能信任一个本质上是概率赌徒的总指挥吗?一,为什么大语言模型是概率赌徒?要理解这个问题,我们得先看看大语言模型是怎么工作的。 当你问它一个问题时,它并不是在思考或回忆,而是在玩一个高级的猜词游戏。 它会根据你输入的内容和它学习过的海量数据,计算下一个最可能出现的词是什么。 它就像一个精通语言模式的赌徒,每次都下注在概率最高的选项上。 这个机制在绝大多数情况下都能给出令人信服的答案,但它有一个根本性的缺陷,它无法保证100%正确。 因为它追求的是语言模式的连贯性,而不是事实的绝对准确性。 偶尔,它会把一些听起来很像,但实际错误的信息组合在一起,这就是我们常说的幻觉。 更关键的是,这种小概率的错误是所有大语言模型的出厂设置,无法从根本上杜绝。 就算模型参数从万亿级增加到百万亿级,也只能降低错误概率,而不能完全消除它。 对于偶尔用它查资料的用户来说,这个风险尚可接受。 但对于需要调度各种任务、管理数字生活的操作系统总指挥来说,一次误判就可能导致灾难性后果。 二、初步方案,用三驾马车降低风险。 面对概率赌徒这个难题,最简单直接的思路就是并行推理,也常被称为多数投票,majority voting。 这个方法的灵感来源于航空航天等高可靠性领域。 想象一下,宇宙飞船的导航系统绝不能依赖单个传感器,如果那个传感器出错,整个任务就可能失败。 所以关键系统通常会安装三个完全相同的传感器,同时测量同一个数据。 如果其中一个数据和另外两个不一样,系统就会认为它出了故障,自动采用另外两个一致的数据。 大语言模型的并行推理也是同样的道理。 一、复制实例。 对于同一个问题,系统会启动奇数个,通常是3个、5个或7个完全相同的模型实例。 这些实例就像三架并行起飞的马车,各自独立思考。 二、独立作答。 每个模型实例都会独立生成自己的答案。 由于模型的概率特性,它们偶尔会得出不同的结论。 三、投票裁决。 系统收集所有实例的答案,将出现次数最多的那个作为最终结果。 因为错误答案是小概率事件,正确答案自然会在投票中胜出。 选择奇数个实例就是为了避免出现平局的尴尬场面,确保总能选出一个明确的结果。 这种方法确实能有效降低随机错误的发生。 但它有一个明显的短板,如果模型对某个错误信息产生了集体幻觉,即多个实例都犯了同一个逻辑错误,那么投票机制就失效了。 它能解决概率性问题,却无法解决逻辑性问题。 而且同时运行多个模型实例会显著增加计算成本和响应时间,这也是它无法成为终极方案的原因之一。 三,核心方案,让总指挥学会写作业并接受批改。 真正的突破来自于思维链,Chain of Thought 验证机制。 这个机制的核心不是让模型更聪明,而是引入了一个独立的裁判来监督它的每一步思考。 整个流程分为两步,一,写出解题过程。 要求模型不仅给出最终答案,还要把每一步的推理过程都详细写出来。 这就像学生做完数学题后,必须把演算步骤写在卷子上。 二、由裁判检查过程,引入一个独立的验证器来检查这份作业。 这个验证器不关心答案是否漂亮,只检查每一步推理是否符合逻辑规则,计算是否准确。 这个验证器是一个由多个专业小工具组成的集合,各司其职。 数学计算验证器,专门检查加减乘除、微积分等计算是否正确。 逻辑规则验证器,检查是否违反了基本的逻辑法则。 知识库查询器,对于需要外部知识的步骤,去权威数据库中核实。 只有当验证器确认整个思维链完全正确后,最终答案才会被采纳。 如果发现某一步错误,整个思维链会被打回,要求重新生成。 四、解决双轨制矛盾,安全永远是第一位。 思维链验证要求模型输出机器能看懂的结构化格式,但用户需要的是自然流畅的语言,这就产生了双轨制的矛盾。 解决办法的核心原则是安全优先,具体流程如下。 一、模型输出结构化思维链,这是给验证器看的原始作业,保证了可验证性。 二、验证器检查通过后提取结论,验证器只关心推理过程是否正确,并从中提取最终结论。 三、将结论翻译成用户友好形式。 最后系统会把结论用自然语言或图形界面等方式呈现给用户。 这个流程从根本上避免了两张皮问题,因为最终呈现给用户的内容,其源头是经过验证器确认过的正确结论,而不是模型直接生成的自然语言。 模型的角色被严格限制在提出解题思路,而最终的正确性判断和结果输出,则由更可靠的系统组件完成。 结语,通往可靠 AI 的必经之路,从概率赌徒到可靠总指挥,大语言模型要成为下一代操作系统,必须解决可靠性这个核心难题。 思维链验证机制提供了一条切实可行的路径,它通过写出过程、独立验算的方式,将概率模型的不确定性转化为可以被严格验证的确定性。 这不仅是技术上的突破,更是 AI 从能说会道走向真正可靠的关键一步。 随着这套机制的不断完善,我们离那个由 AI 可靠驱动的未来又近了一大步。
英文翻译
From Probabilistic Gambler to Reliable Commander: How Can Large Language Models Become the Next Operating System? Imagine a future where AI serves as the commander of our digital lives—an operating system-level agent. It will help you schedule your day, manage emails, and even call upon other AI tools to complete complex tasks. CEOs like Sam Altman of OpenAI and tech giants like Alibaba are bullish on this direction. But there’s a fatal contradiction: Can we trust a commander that is essentially a probabilistic gambler? First, why are large language models probabilistic gamblers? To understand this, we need to look at how large language models work. When you ask it a question, it doesn’t think or recall; instead, it plays an advanced word-guessing game. Based on your input and the vast amount of data it has learned, it calculates the most likely next word. It’s like a gambler who is skilled in language patterns, always betting on the option with the highest probability. This mechanism produces convincing answers in the vast majority of cases, but it has a fundamental flaw: it cannot guarantee 100% accuracy. Because it seeks coherence in language patterns, not absolute factual accuracy. Occasionally, it might combine information that sounds plausible but is actually incorrect—this is what we call hallucinations. More critically, these small-probability errors are inherent in all large language models and cannot be entirely eliminated. Even if model parameters increase from trillions to quadrillions, it only reduces the error probability, not eradicates it. For users who occasionally use it to look up information, this risk is acceptable. But for an operating system commander that needs to orchestrate various tasks and manage digital life, a single misjudgment could lead to catastrophic consequences. Second, initial solution: using a three-horse chariot to reduce risk. Faced with the problem of the probabilistic gambler, the simplest and most direct approach is parallel reasoning, often called majority voting. This method is inspired by high-reliability fields like aerospace. Imagine that the navigation system of a spacecraft cannot rely on a single sensor—if that sensor fails, the entire mission could be lost. Therefore, critical systems typically install three identical sensors to measure the same data simultaneously. If one sensor’s data differs from the other two, the system assumes it is faulty and automatically adopts the consistent data from the other two. Parallel reasoning for large language models works on the same principle. 1. Replicate instances. For the same problem, the system launches an odd number—usually 3, 5, or 7—of identical model instances. These instances are like three carriages starting in parallel, each thinking independently. 2. Independent answering. Each model instance generates its own answer independently. Due to the probabilistic nature of the model, they may occasionally arrive at different conclusions. 3. Voting decision. The system collects all instances’ answers and selects the one that appears most frequently as the final result. Since incorrect answers are low-probability events, the correct answer will naturally win the vote. Choosing an odd number of instances avoids the awkward possibility of a tie, ensuring a clear result can always be selected. This method effectively reduces random errors. However, it has an obvious weakness: if the model collectively hallucinates a certain incorrect information—meaning multiple instances make the same logical error—the voting mechanism fails. It can solve probabilistic problems but not logical ones. Moreover, running multiple model instances simultaneously significantly increases computational cost and response time, which is one reason it cannot be the ultimate solution. Third, core solution: enabling the commander to show its work and undergo review. The real breakthrough comes from the Chain-of-Thought verification mechanism. The core of this mechanism is not to make the model smarter, but to introduce an independent judge that oversees each step of its reasoning. The entire process consists of two steps: 1. Write out the solution process. The model is required not only to give the final answer but also to write down each step of its reasoning in detail. This is like a student having to show all the calculation steps on the exam paper after solving a math problem. 2. Have a reviewer check the process. An independent verifier is introduced to inspect the work. This verifier doesn’t care whether the answer looks nice; it only checks whether each step of reasoning follows logical rules and whether calculations are accurate. This verifier is a collection of specialized small tools, each with its own responsibility: • Mathematical calculation verifier: specializes in checking whether operations like addition, subtraction, multiplication, division, calculus, etc., are correct. • Logical rule verifier: checks for violations of basic logical principles. • Knowledge base query tool: for steps requiring external knowledge, it verifies against authoritative databases. Only when the verifier confirms that the entire chain of thought is completely correct is the final answer adopted. If a single step error is found, the entire chain of thought is sent back for regeneration. Fourth, resolving the dual-track contradiction: safety always comes first. Chain-of-thought verification requires the model to output a structured format that machines can read, but users need natural, fluent language. This creates a dual-track contradiction. The core principle for resolution is safety first, with the following process: 1. The model outputs a structured chain of thought (the raw homework for the verifier), ensuring verifiability. 2. After the verifier passes inspection, it extracts the conclusion. The verifier only cares about the correctness of the reasoning process and extracts the final conclusion from it. 3. The conclusion is translated into a user-friendly form. Finally, the system presents the conclusion to the user in natural language or graphical interface, etc. This process fundamentally avoids the "two skins" problem because the content ultimately presented to the user originates from a conclusion that has been confirmed correct by the verifier, not from the model’s directly generated natural language. The model’s role is strictly limited to proposing solution ideas, while the final correctness judgment and result output are handled by more reliable system components. Conclusion: The necessary path to reliable AI. From probabilistic gambler to reliable commander, for large language models to become the next operating system, they must solve the core challenge of reliability. The Chain-of-Thought verification mechanism provides a practical path: by writing out the process and independently checking it, the uncertainty of the probabilistic model is transformed into a determinism that can be rigorously verified. This is not only a technological breakthrough but also a key step from AI being eloquent to being truly reliable. As this mechanism continues to improve, we are one step closer to a future reliably driven by AI.
back to top