Stanford CME 295 Final Lecture Covers Multimodal, Decision Models, Coding Agents
The genuinely new thread here is the framing of decision models as a distinct, cheaper, probability-calibrated task class separate from generation — a taxonomy still missing from most mainstream coverage. Engineers building routing, moderation, or scoring pipelines should compare System One / Jev against structured-output LLM calls they use today. Course slides also serve as a compact refresher spanning agents, MCP, and diffusion LLMs for practitioners who want one curriculum map of the field.
The final lecture (Lecture 9, "Trending topics") of Stanford's CME 295 "Transformers & Large Language Models" course, taught by Afshine and Shervine Amidi, reviewed the quarter's eight previous lectures and closed with reflections on where value shifts once the technical building blocks are in place. Slides are available at cme295.stanford.edu.
The lecture first recapped the term's arc: Transformers and attention, LLM architectures including MoE and positional encodings, pretraining through preference alignment and reasoning, reinforcement learning, systems and inference optimisation, AI agents (tool calling, MCP, memory, Coding Agents and Skills), evaluation, and diffusion LLMs. It then covered multimodality: ViT (Dosovitskiy et al., 2020) treats images as patch sequences with a [CLS] token, CLIP (Radford et al., 2021) aligns image-text representations via contrastive learning, and vision-language models follow two routes — injecting visual features into decoder-only LLMs (Visual Instruction Tuning) or adding cross-attention as in Flamingo. Text-to-image generation touched on diffusion, score matching, and flow matching.
A key new segment introduced decision models: tasks split into generation versus decision (tool selection, classification, model routing, preference judgement). Four common LLM decision methods are structured output, verbalised confidence, self-consistency, and logit-derived class scores. The 2026 TypeSafe team's System One / Jev line outputs meaningful probabilities for binary, multi-choice, and ordinal scoring tasks, contrasting with fixed-output, per-scenario fine-tuned, poorly calibrated BERT-era solutions; OpenAI and Gemini are following. The closing reflection: with coding agents handling implementation, the bottleneck moves to human judgement.
斯坦福 CME 295 终讲|Afshine 与 Shervine Amidi:多模态与决策模型之后,Coding Agent 把瓶颈留给人的判断 斯坦福大学 @stanfordnlp CME 295「Transformers & Large Language Models」课程第 9 讲「Trending topics」,也是最后一讲。包含了整个学期 8 讲的回顾,以及多模态、决策模型、正在发生的研究方向,和收尾的实践反思。 第 9 讲讲义: cme295.stanford.edu/slides/fall26-… # 学期怎么串起来 第 9 讲前半部分用「Rewinding the quarter」把第 1–8 讲串成一条线:Transformer 与注意力,LLM 形态与 MoE、位置编码,预训练到偏好对齐与推理,强化学习,系统与推理优化,AI Agents(工具调用、MCP、记忆、Coding Agent 与 Skills),评测,再到扩散式 LLM。终讲的任务不是再讲一遍细节,更像是在问:这些积木拼起来以后,边界往哪里扩,价值还剩在哪里。 # 多模态:Transformer 接到图像与图文 此前主线多是文本进、文本出。第 9 讲先复习 Query / Key / Value,再说明图像同样可以当成序列:Vision Transformer(ViT,Dosovitskiy 等,2020)把图切成 patch,加上 [CLS],走 Encoder,用分类头出标签。CLIP(Radford 等,2021)用对比学习对齐图文表征;视觉语言模型则大致两条路——复用 decoder-only,把视觉特征塞进「普通」LLM(如 Visual Instruction Tuning),或像 Flamingo 那样加 cross-attention。文本到图像一侧,PPT 点到扩散、score matching、flow matching,以及像素空间与潜空间架构,并指向同系列课程 CME 296。 # 决策模型:生成之外还要会「选」 任务被分成生成与决策两类:写代码、翻译、摘要偏生成;工具选择、二分类、有序打分、模型路由、偏好判断偏决策。 LLM 做决策的常见做法有四条:1. 结构化输出;2. 口头置信度;3. Self-consistency;4. 从 logit 抽取类别分数。 PPT 随后介绍 2026 年 TypeSafe 团队的 System One / Jev 一类「决策模型」:更快、更便宜,并输出有意义的概率;能力包括二值(Noul)、无序多选(Choice)、有序打分(Score)。对照第 2 讲的 BERT,旧方案输出空间固定、要为场景微调、校准差;新路线用更灵活的答案表述、通用训练与温度缩放等补齐。OpenAI、Gemini 等也在跟进,名字会不会固定下来仍有争议,讲者倾向「大概会留下」。 # 研究前沿与 Coding Agent 的下一问 研究方向里,Looped Transformers 被点名为当下热点:循环主要帮推理而非知识,倾向循环中间层做抽象处理,并出现按 token 动态循环次数的工作。此外还有神经元可解释性、让模型直接读写权重,以及用 Recursive Language Models 等缓解长上下文「大海捞针」。 后半从第 6 讲的 Coding Agent 往前推:生成已经很丰裕,审查仍要人来;让评审也自动化只是缓解。热观点是「代码本身从来不是真正瓶颈」,评审重心应从「看每一行」转向「核心想法与意图」。 思想实验对比 Agent 前后:理解成本被外包、提问变成「让我问问我的 Agent」,合并结果却可能变成「我们刚上线的到底是什么」。结论是:能力的价值反而上升。痛点也写得很直白,单测失灵、代码膨胀、测试总过却没信号、CI 变贵;单测应反过来引导实现与最小复现,改动要小、好懂、好回滚。Memory、自更新文档与 Skills 既省事也会漂移、携带模型偏见,上下文工程要反复回到真实需求,心态偏极简。训练边界则从改模型,扩到改 harness,再到 harness-aware training,乃至模型与 harness 共优化。收尾强调用专家意见做 hillclimbing,去校准预期、啃更难的问题,并盯住效率与投入是否匹配。 meng shao @shao__meng 斯坦福 @stanfordnlp 新课 CME 295,双胞胎兄弟 @afshinea @shervinea 主讲,9 讲走完 LLM 全部版图:从 Transformer 架构、注意力变体、RoPE,到 LoRA 微调、RLHF/GRPO 训练,再到 Flash Attention 推理优化、MCP 与 AI Agent、扩散语言模型。 课程和知名速查表全部公开。 x.com/i/article/2100… 🔗 View Quoted Tweet📊 5 ⚡
This report is categorized under AITOP's "How-to" desk, focusing on US frontier AI labs and Silicon Valley technology leaders. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include CME 295, LLM, ViT, CLIP.
Source attribution: curated from shao__meng (@shao__meng). Cross-source corroboration: 2 independent sources have covered this development (including Jeremy Howard (fast.ai)), confirming industry-wide signal strength.
- Jeremy Howard (fast.ai)12-05 10:43Source