▶ 原文链接

从 AlphaCode 到 Search‑o1:用搜索放大模型推理能力

来源: YouTube | 课程讲座 | 日期未标明
分类: 其他
原文发表: 未标明
纪要生成: 2026-08-05


全集重点


嘉宾 / 话题简介

本集为教学讲座,重点讲解如何利用搜索机制显著提升模型解决复杂问题的能力。前半部分以 AlphaCodeAlphaCode 2 为例,剖析在竞技编程中通过大规模采样、聚类与打分模型实现从覆盖到筛选的全链路优化;后半部分介绍 Search‑o1,展示在大型推理模型上构建 “深度研究” 智能体的方法,通过多轮检索与文档精炼来弥合知识缺口。内容直接关联后续作业(HumanEval 与 Agent 搜索)。


分节详述

00:05 引言:两类搜索与今日课题

本节重点

详细精要

01:11 AlphaCode 概览:从代码补全到竞技编程

本节重点

详细精要

💬 精华片段(中文)

“We know that the solutions lie in the search space of the models, but how do you curate the answer out of the search space of what the model outputs is roughly what we are covering today.”

我们知道解存在于模型的搜索空间中,但如何从模型输出的搜索空间中策展出答案,正是我们今天要讲的内容。

04:11 AlphaCode 流水线:预训练、采样与筛选

本节重点

详细精要

💬 精华片段(中文)

“They generate 1 million diverse sample programs per question… and they randomize the problem tags and the ratings in the prompt, and they use a high sampling temperature, so it's like the solutions are going to be diverse.”

每个问题生成 100 万个多样化的样本程序……他们在提示中随机化问题标签和评分,并使用高温度采样,从而保证解法多样。

09:31 结果与反思:54.3% 排名与波动成因

本节重点

详细精要

💬 精华片段(中文)

“The selection stage can also be a bottleneck here. There can be solutions that are almost correct, but not completely correct.”

筛选阶段也可能成为瓶颈。可能存在一些解决方案几乎正确,但并不完全正确。

13:10 pass@k 与 10@k:覆盖与筛选的拉锯

本节重点

详细精要

💬 精华片段(中文)

“If you had unlimited attempts per problem… you are almost getting to something above 40%, and here, you are only getting to 30%, so there is definitely some bottlenecking happening in selection stage.”

如果每题拥有无限次尝试机会……准确率可以超过 40%,但这里只能达到 30%,说明筛选阶段确实存在瓶颈。

23:10 AlphaCode 总结与局限:通往 AlphaCode 2

本节重点

详细精要

💬 精华片段(中文)

“Loss is often a poor proxy for solve rates… because there are many solutions that could have solved the problem.”

损失往往不能很好反映解题率……因为能解决问题的方法可能有多种。


24:48 AlphaCode 2:更强大的基座与更聪明的筛选

本节重点

详细精要

💬 精华片段(中文)

“They actually had multiple variants of this model so that they get diversity in the output sampling… and then they had a scoring model which was used for obtaining the best candidates.”

他们实际上拥有该模型的多个变体以提升采样多样性……然后才有了一个打分模型,用来选出最佳候选。

30:07 AlphaCode 2 结果与对比:用更少样本达到更强性能

本节重点

详细精要

💬 精华片段(中文)

“For AlphaCode 2, once you get to 100 samples, you are achieving the same solve rate as AlphaCode. And if you want to go beyond that, you can use more samples.”

对 AlphaCode 2 而言,只需 100 个样本就达到了 AlphaCode 的解题率。如果你想更进一步,可以继续增加样本。

31:12 课堂讨论:如何减少采样浪费与根据难度适配

本节重点

详细精要

💬 精华片段(中文)

“If you have simpler problems, then it's likely that you can get coverage with fewer number of samples… It's almost like saying the model… more likely to generate the solution in the search space of what it outputs.”

如果问题比较简单,那你用更少的样本就很可能覆盖到正确解……这就像是在说模型更容易在它的输出空间中生成对的那个解。

46:55 Search‑o1:给大推理模型装上“实时搜索大脑”

本节重点

详细精要

💬 精华片段(中文)

“It will analyze the retrieved documents… extract relevant chunks of information from there, and it will only put these relevant information into the prompts so that it integrates well into the reasoning chain.”

它会分析取回的文档……从中抽取相关信息板块,并仅把这些相关信息放进提示词,从而让它很好地融入推理链。

50:12 案例拆解:化学题中的不确定性如何被消除

本节重点

详细精要

💬 精华片段(中文)

“In Search‑o1 process, it did search for this particular formula, and then it refined it to a certain structure, and then that integrated cleanly into reasoning.”

在 Search‑o1 流程中,它搜索了这个特定分子式,将其精炼为具体结构,然后干净地融入了推理过程。

01:00:20 关键指标:随文档增加准确率反而上升

本节重点

详细精要

💬 精华片段(中文)

“As you increase the number of documents, you are actually able to do better because you can summarize what is relevant information… assuming that… fetching more documents gives you more relevant information.”

当你增加文档数量时,性能反而更好,因为你可以总结出哪些信息是相关的……前提是取回更多文档能给你更多相关信息。

01:06:40 总结与 Search‑R1 预告:从提示到强化学习

本节重点

详细精要

💬 精华片段(中文)

“The models tend to be overconfident… if you were to calibrate that to the right answer, often you'll find that… if it's 50% correct, it will still be overconfident.”

模型倾向于过度自信……如果校准到真实正确率,你会发现哪怕只有 50% 的准确率,它还是非常自信。


专业术语注释

术语 解释
AlphaCode DeepMind 发布的早期编码 AI,通过大规模采样与聚类在 Codeforces 上取得 54.3% 平均排名
AlphaCode 2 改进版,基于 Gemini Pro 微调,引入打分模型,仅用 100 样本就追平前作百万样本水平,最终达到 43% 解题率、85 百分位
pass@k 生成 k 个样本,只要其中任意一个通过隐藏测试即算成功,衡量搜索覆盖能力
10@k 生成 k 个样本后,仅允许提交 10 个,必须先进行筛选与评分,衡量实战中的综合性能
GOLD 一种微调技巧,在下一 token 预测损失中对高似然 token 赋高权重、低似然 token 赋低权重,以提升精度
Clustering(聚类) 对采样得到的代码根据语义等价分组,确保提交的 10 个解覆盖不同解题思路,而非重复提交逻辑相同的解
Scoring Model(打分模型) AlphaCode 2 中学习的奖励模型,预测代码样本正确性的 0~1 评分,用于从簇内选出最佳候选
Gemini Pro Google 的大型语言模型,AlphaCode 2 将其作为微调的基座
Search‑o1 在大型推理模型上构建的搜索智能体,允许推理中动态触发搜索并对文档进行提炼,大幅降低不确定性
Reason‑in‑Documents(文档内推理) Search‑o1 的关键模块,对取回的每份文档进行分析与信息抽取,只将相关内容注入推理链
Agentic RAG 让模型在推理生成中遇到不确定点时插入特殊 token 触发搜索工具,并自动纳入搜索结果,但仍缺乏文档提炼能力
Multi‑Hop QA 多跳问答,需要结合多份文档进行多层推理才能回答的问题,标准 RAG 极易在此场景饱和
GPQA 研究生级别问答基准,覆盖物理、化学、生物等学科难题,Search‑o1 在此数据集上与人类专家具备竞争力
HotpotQA / 2Wiki / MusiQue / Bamboogle 多跳问答 (Multi‑Hop QA) 基准数据集,Search‑o1 在这些数据集上取得了当时最优结果
Codeforces 在线竞技编程平台,AlphaCode 系列在此平台与人类选手实时竞赛以评估性能
CodeContests 竞技编程题目数据集,AlphaCode 用其训练和内部评估,V2 为高质量升级版
Search‑R1 基于强化学习而非提示的智能搜索模型,能让模型学会何时以及如何搜索以增强推理

延伸思考

原文发表:未标明  ·  纪要生成:2026-08-05