跳到正文
10月22日周四
  1. meng shao67

    ByteByteGo 作者 Samuel Wong 撰文讲解 LLM 应用中两类缓存如何分工并叠加使用:Prompt Caching 复用共享前缀的 KV 计算以降低输入成本,Semantic Caching 复用语义相近问题的整条答案,可完全跳过模型调用。

    引用Samuel Wong@samuel_wong_

    LLM Prompt Caching Versus Semantic Caching Caching LLM costs is two different problems: reuse the prefix with prompt caching, reuse the answer with semantic caching, and never confuse one for the other https://open.substack.com/pub/bytebytego/p/llm-prompt-caching-versus-semantic?r=57j98&utm_campaign=post-expanded-share&utm_medium=web

  2. meng shao65

    斯坦福 CS 329Z《Engineering AI Agents》第 9 讲给出 Agent 优化方法选型:优化前提是数据、系统和评估指标齐备,一般先做便宜的上下文优化(prompt 与 few-shots),不够用时再改权重。

    引用meng shao@shao__meng

    CS 329Z: Engineering AI Agents Stanford / Fall 2026 @stanfordnlp https://cs329z.stanford.edu/ 课程定位:从"模型"到"系统"的工程学 覆盖:简单 LLM 流水线 → 复合 AI 系统 → 自主 Agent。三位讲师的背景也高度互补: @Diyi_Yang(斯坦福 NLP 教授,人机交互与社会计算方向) @michaelryan207(DSPy 核心贡献者,自动评估 AutoMetrics 作者) @jyangballin(SWE-agent / SWE-bench / SWE-smith 作者,软件工程 Agent 领域最重要的研究者之一) # 课程主线:三大工程挑战 贯穿全课的三个核心问题——分解(decomposition)、数据(data)、评估(evaluation)。11 周的内容基本围绕这三条线展开,可以分为五个模块: 模块 1:构建基元(Week 2–3) · LLM 作为构建材料:API/SDK(litellm)、结构化输出、约束生成、解码策略、test-time compute、上下文工程、模型选型与成本/延迟权衡 · RAG:embedding、向量库、分块策略、混合检索、cross-encoder 与 ColBERT 后期交互 · 工具调用:函数调用 API、MCP(Model Context Protocol)、工具设计、代码沙箱、错误处理与重试 模块 2:框架与设计模式(Week 3–5) · 框架层:DSPy(signature / module / optimizer)、LangChain/LangGraph、LlamaIndex,重点是"框架抽象了什么 vs. 你手写了什么" · 设计模式:workflow vs. agent 的分类学,五种可组合 workflow 模式,ReAct / plan-and-execute / reflection,"scaffold(脚手架)本身就是设计决策" · 记忆架构:短期/长期记忆、记忆作为工具动作、文件系统作为外化记忆、跨 Agent 记忆(MemGPT、Mem0、Generative Agents) · 多 Agent 系统:编排模式、handoff 与状态传递,以及一个很有态度的对照阅读——既读 AutoGen,也读《Why Do Multi-Agent LLM Systems Fail?》和 Neubig 的《Don't Sleep on Single-agent Systems》 模块 3:优化(Week 5) · 从提示词到微调的全景:GEPA、MIPROv2、OPRO、TextGrad(提示优化);LoRA/QLoRA、蒸馏、RLHF/DPO(权重优化);test-time scaling(推理算力) · 核心问题是决策框架:什么时候优化 prompt、什么时候优化 weights、什么时候堆推理算力 模块 4:数据与评估(Week 6–8)——最有分量的部分 · 数据:trace、demonstration、feedback 三类数据;训练数据 vs. 评估数据;数据飞轮;合成数据;从 Agent 轨迹构建数据集(SWE-smith) · 评估基础:为什么 eval 难;4 元组框架(request / environment / stopping criteria / scorer);好 benchmark 的性质;tinyBenchmarks · 评估基础设施:三类 grader、LLM-as-judge 的 prompt 设计与已知偏差、pairwise vs. pointwise、非确定性指标 pass@k vs. pass^k、harness 设计 模块 5:安全与前沿(Week 8–11) · 安全:工具访问的隐私风险、prompt injection(含间接注入)、红队、沙箱与权限模型、输出护栏、human-in-the-loop · Coding Agent:SWE-agent、Claude Code、OpenHands 的端到端架构对比 · 主动式 Agent:从 reactive 到 proactive,General User Models(GUM)、Next Action Prediction,以及"Agent 何时应主动、何时应等待"的 mixed-initiative 问题 · 开放问题:多模态/web/计算机使用 Agent、科学 Agent、长时运行架构、生产可观测性(tracing、monitoring、成本管理) # 作业设计:一手建、一手评 HW1:从零构建 Agent 系统(10%) 给定论文库,构建能检索并推理回答科学问题的 Agent。 · Part A:只用 litellm 手写 RAG + 工具调用 + ReAct 式 Agent 循环 · Part B:用 DSPy 重建关键组件,并反思框架抽象了什么 HW2:评估一个 Agent(10%) 给定一个预构建 Agent,设计完整评估套件:代码型 grader、至少一个 LLM-as-judge、用 4 元组框架构建 benchmark 任务、错误分析。

  3. meng shao64

    邵猛引用 Dan 发在 Latent Space 的文章解读 Claude Mods:它本质是 Claude Code 插件,一组 TS/JS 函数监听提示词、工具调用、界面渲染等事件,官方已内置 agents-md、diff、you-should-know 等 6 个 Mod。

    引用Dan McAteer@daniel_mac8

    There's not enough buzz around Claude Mods. Read this Claude Mods article if you want to: - Understand Claude Mods basics - Install and use the most useful mods today - Ponder where the agent-human interface will go For @latentspacepod.

  4. meng shao74

    作者解读 Cloudflare 工程师分享的 AI 代码审查优化:单次成本从 $2.43 降到 $0.77,审查耗时中位数从 4m9s 缩短到 1m32s,代码质量类真实发现基本没少,约 4 成降幅来自工程改动、约 6 成来自换模型和调整推理强度。

    引用Cloudflare@Cloudflare

    When our AI code reviewer's cost per run doubled, we dug into the token usage to find out why. Learn how we used prompt caching and intelligent model routing to slash our inference bill by 68% while speeding up reviews. https://cfl.re/4isj2NU

  5. meng shao63

    邵猛转述 Netflix 资深研究科学家 Cameron Wolfe 在 AI Engineer 大会演讲整理的评测方法论,给出主观任务的可靠评测路线。核心是三步走,人工评测定质量标准、离线 LLM 评审校准后代理人工、线上监控加 A/B 测试,并用功效分析、置信区间、重复采样等统计工具降低噪声,评测集按多样、真实、够难、有区分度、准确五个标准筛选。

    引用Cameron R. Wolfe, Ph.D.@cwolferesearch

    I just published my roadmap for building evals on highly subjective tasks. Here are the key steps involved and practical tricks for reducing noise / increasing confidence… Blog is here: https://cameronrwolfe.substack.com/p/subjective-evals Why is this difficult? Evaluating agents is already hard due to their broad scope, emphasis on expensive / long-horizon tasks, and non-determinism. Subjective tasks make this even harder because we cannot deterministically verify solutions and must rely on human judgments (or LLM judges). This introduces additional noise into an already difficult evaluation process. Evaluation roadmap. We can build reliable evaluations using a repeatable framework with three components: - Human evaluation: Our North Star for quality. Create quality guidelines that clearly define quality with the help of subject-matter experts, calibrate human evaluators to ensure agreement, and continually monitor evaluation quality. - Offline evaluation: Use calibrated LLM judges or task-specific rubrics as an efficient proxy for human evaluation. This allows us to scale experimentation without relying on expensive human evaluation for every new model. - Production monitoring: Track quality signals from real-world agent usage and use A/B testing to validate improvements before fully deploying a new agent. Multi-stage evaluation. These components form a tiered evaluation process: Offline evaluation → Human evaluation → Production A/B test → Full deployment We can test many ideas automatically, send promising candidates to human evaluation, and validate improvements through production A/B testing. Continual production monitoring then allows us to discover new use cases / failure cases in production that we can add into the earlier stages of evaluation to create a feedback loop. Sampling useful data. Evaluation quality depends heavily on which tasks we select. We want tasks that are diverse, realistic, difficult, discriminative, and accurate. Techniques like structured task taxonomies, model-based difficulty filtering, Item Response Theory (IRT), and LLM-based auditing help us construct more informative evaluation sets. Handling noise. We should leverage statistics throughout the evaluation process: - Power analysis: Estimate the number of evaluation samples needed to detect meaningful improvements. - Confidence intervals: Quantify uncertainty and provide clear confidence signals alongside evaluation results. - Re-sampling: Repeat agent / judge evaluations to reduce within-task variance and potentially tighten confidence intervals. - Paired comparisons: Evaluate models on the same tasks to more reliably detect performance differences. Key takeaway. An improved benchmark score does not always mean our agent is more capable. We need well-designed evaluation tasks, calibrated human / model evaluators, and statistical confidence signals to distinguish meaningful capability improvements from noise (especially on subjective tasks). By combining these techniques into a repeatable evaluation process / roadmap, we can make building and maintaining evaluation suites more systematic, reliable, and scalable.

  6. meng shao42

    邵猛打算本地试跑 0.5B 的 Ming-3.0-tts 声音合成与克隆模型,看中其体积小可本地运行。他正为儿子的学习做 AI 辅助,继开源打字游戏后,计划做书籍阅读助手(支持全篇通读、停顿或指定区域提示)和视频德语配音,结合 ASR 与多模态视频理解做音画同步。他立 Flag 一周后投入日常学习并开源。

    引用一飞冲天@ulgqob

    看过谭谭交通么兄弟们,这个节目很搞笑,但是说话实说里边很多对话不是很能听懂,比如福建司机找医院这个。我一直想知道,这个福建人,到底说的是什么,他朋友的翻译到底对不对。现在好了,Ming-3.0语音系列模型来了,解决了我的问题,你们也可以去试试! https://x.com/i/article/2113042697183465472

  7. GitHub Blog50

    GitHub 如何为智能体规模的 Git 流量搭建过渡架构

    GitHub 正把最繁忙的仓库迁入 Azure,通过将写入仲裁的串行化范围从整个仓库缩小到单个引用,解决跨区域约 25ms 往返带来的吞吐瓶颈。内部真实流量测试中,对不同引用的写入吞吐量提升 3–4 倍且延迟更低。目前多数仓库的五个副本已有两个位于 Azure,Azure 承担约一半 Git 流量。

10月21日周三
  1. meng shao65

    Shopify 工程团队在 NVIDIA GTC Berlin 2026 演讲中介绍了电商助手 Sidekick 的分工架构:前沿模型负责对话、规划和调用工具,读多写少的 GraphQL 子 Agent 交给自己后训练、自托管的开源模型。

    引用Andrew McNamara@Drewch

    Talking at 3pm at @nvidia GTC Berlin on how @Shopify post-trains open source models and optimizes inference using Nvidia's models and tools. Read our blog post about it here: https://shopify.engineering/open-model-task-experts

  2. Dash37

    开发者将《火炬之光 2》移植到 Vision Pro,呈现空间 3D 效果,并支持手柄、触屏和视线追踪三种交互方式。此前该作已完成 Mac 现代化改造,让十几年前的引擎在 M 芯片上原生运行并支持 Retina 高清显示。作者表示稍后将发布同时支持 Vision Pro、iOS、Mac 和 Apple TV 的 TestFlight 邀请。

    引用Dash@DashHuang

    完成了《火炬之光 2》在 Mac 上的现代化改造。让十几年前的引擎和各种组件在 M 芯片上原生运行。支持了 Retina 的高清显示,游戏窗口能够任意拖动、最大化。 下一步准备把主机板的手柄支持接回来,让一个版本能同时支持键鼠和手柄。做完后再移植手机,交互就比较简单了。

  3. lauren53

    Grok Bot 工程负责人 Lauren Tan 分享一种找 bug 的工作流:先让 Agent 画出用户流程的状态图,再用 pstack 的 /create-formal-verification-skill 生成的技能通过 TLA+ 等方式做验证。她称这样既能更好理解代码和用户流程,也能修复用户原本会看到的问题;被引用的 pstack v0.15.27 更新介绍称该元技能可按需创建形式化验证套件,作者实验中已用它发现多个 bug。

    引用lauren@poteto

    pstack v0.15.27 ships with a new skill /create-formal-verification-skill! it's still in beta, and similar to /create-verification-skill, this is a meta-skill that creates a new skill and formal verification suite based on the characteristics you want to verify. for example, you may want to model state machines and systems with concurrency using TLA+, or use kani in rust to check for undefined behavior. if you're new to formal verification, think of it as mathematically proving properties and invariants (something that must always be true) or "laws" of your system. usually, this means modeling your programs in a separate language like with TLA+ and then running the solver on that spec. newer approaches like with kani and @bendlang take a different approach where there is no separate language: you write kani in rust, and bend in bend (it's also a programming language, and the proofs are written as laws and expressed in its type system). historically formal verification never reached mainstream status because of the difficulty in modeling and writing proofs. it's quite difficult to model your business requirements and keep them in sync! but i expect that we will see more innovation in formal verification in the future as being able to formally verifiy that the code does what you intended gives your agents superpowers in writing correct software. in the meantime though, i've been experimenting with modeling our code with TLA+ and have already found several bugs with the skill created by /create-formal-verification-skill. try it out and let me know how it goes!

  4. meng shao64

    Uber 发布 AutoClean 系统的工程实践解读,用 AI Agent 加确定性工具累计清理 1.6 万多个过期 feature flag、超过 100 万行死代码。

    引用Uber Engineering@UberEng

    Over 1 million lines of dead code removed. 🧹 Meet AutoClean, Uber's AI-powered system that's cleaned up 16,000+ stale feature flags using AI agents, deterministic code transformations, and validation. https://x.com/i/article/2112273498110660608