[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"news-slug-livelora-kv-cache-migration":3,"topics-all":38,"news-related-c6a45e34-7269-43c8-8382-eab30cbb0373":67},{"id":4,"title":5,"summary":6,"content":7,"original_url":8,"source_id":9,"tags":10,"translations":24,"news_slug":31,"published_at":32,"created_at":33,"modified_at":34,"is_published":35,"publish_type":36,"image_url":14,"view_count":37},"c6a45e34-7269-43c8-8382-eab30cbb0373","LoRA热更新不必重放历史,论文称提速68.98倍","换 LoRA 适配器时,旧 KV 缓存与新参数混版本,全量重放历史太贵。LiveLoRA 论文提出最终块 KV 缓存跨版本迁移:冻结下层块、固定下投影,重建 K\u002FV 后原子提交适配器、缓存与 logits。论文自报 Qwen2.5-3B 上 32 会话×8K 中位提速 68.98 倍,解码开销约 4.8%。","持久运行的 LLM agent 迟早撞上一堵墙:它学到的技能装在 LoRA 适配器里,而会话的 KV 缓存是旧参数算出来的。换新适配器,要么带着混版本的旧缓存硬跑,要么把整段交互历史重放一遍重新 prefill——会话越长、并发越多,这笔开销越扛不住。[LiveLoRA](https:\u002F\u002Farxiv.org\u002Fabs\u002F2611.31105) 给出的解法是:历史不重放,KV 缓存原地迁移。\n\n## 换个 LoRA,为什么这么贵\n\n论文把账算得很直白。LoRA 更新换掉的是可训练的低秩因子,而这些因子正是当初算出当前 KV 缓存的参数:继续用旧缓存,等于新旧两版模型在同一会话里混着跑;要恢复一致,只能全量重放历史。论文报告的数字:单会话中位迁移延迟从 2K 上下文的 17.15 ms 只涨到 32.7K 的 18.03 ms,而全量重放从 40.78 ms 一路飙到 919.21 ms。这个痛点也不是 LiveLoRA 编出来的——[DroidSpeak](https:\u002F\u002Farxiv.org\u002Fabs\u002F2411.02820) 在跨模型场景做选择性重算来复用缓存,HCache、LOCAL 等工作都在围绕「模型变了,缓存怎么办」打转。\n\n## 三步手术:冻结、重建、原子提交\n\nLiveLoRA 的设计可以拆成三步。第一步,LoRA 只放进最后一个 decoder block,嵌入层、前 L-1 块、归一化层和输出头全部冻结,于是每个 token 在最终块的输入跨版本不变。第二步,固定 K\u002FV 适配器的下投影矩阵——这一招来自 [LoRA-FA](https:\u002F\u002Farxiv.org\u002Fabs\u002F2308.03303),原本为省训练显存而生,这里被改造成「版本不变的坐标」:推理时顺手多存一份基础 K\u002FV 投影和低秩坐标,换版本时用「不变的基座 + 新上投影乘坐标」批量重建历史 K\u002FV,下层缓存原样复用。第三步,原子提交:重建出的候选 K\u002FV、最新 token 过新最终块拿到的候选 logits,连同适配器一起切换版本;前缀变了就拒绝这次提交,失败回滚,不留半新半旧的状态。\n\n顺带一提,论文在精确算术下证明了迁移与全量重放等价——但前提是一串显式假设(逐层 KV 缓存是唯一的跨 token 隐状态、求值确定、下层与输出头跨版本不变等),且这是精确算术层面的等价,不是浮点位级一致。\n\n## 论文自报的数字,和三盆冷水\n\n数字面很亮:Qwen2.5-3B-Instruct,单张 NVIDIA H200,最终块 Q\u002FO\u002FMLP 适配器 rank 8(alpha 16)、固定下投影的 K\u002FV rank 32(scale 1)。32 个活跃会话 × 8K token 场景,相对全量重放的中位配对提速 68.98 倍(95% CI 67.08 到 71.39),第 5 百分位 62.96 倍;解码开销相对原生缓存解码约 4.8%(2K\u002F8K\u002F32K 分别为 4.81%、4.75%、4.88%),相对同等防护的直接服务只多 0.68% 到 0.81%。存储上,紧凑保留比边界重放省 3.42 倍(8K 前缀下 9.48 MiB 对 32.41 MiB),综合成本差距在 0.60% 以内。论文还给了换算:8K 下大约每 600 token 更新一次,迁移才开始比全量重放划算;对边界重放,间隔要压到 30 token 以内。\n\n冷水也得端出来,论文自己泼了三盆:一,实验用高斯随机适配器更新和受控历史,测的是迁移保真度与系统开销,最终块加固定下投影这套限制下的任务级适配质量还没评估;二,BF16 下迁移与边界重放在贪心选 token 上一致,但最终块 K\u002FV 和 logits 存在非零差异;三,实现只覆盖连续序列、标准 RoPE、进程内协调,分页缓存与分布式服务列为未来工作。\n\n## 所以呢\n\n这篇论文真正该被记住的不是 68.98 这个倍数,而是它把「发布适配器」定义成了一个版本一致性原语:参数、缓存、logits 三者要么一起可见,要么一起不可见——像操作系统给进程换可执行文件的思路。论文署名 5 位作者(Tianyi Huang、Samuel Xu、Ivy Gu、Nathan Huang、Siqi Zhang),单位是 App-In Club。对做 agent 服务的人来说,结论很务实:热更新别再全量重放了,但先算清楚你的更新频率和会话长度是否落在划算区间——你的 agent,多久换一次技能?","https:\u002F\u002Farxiv.org\u002Fabs\u002F2611.31105","7437aeb9-930c-4866-a2e9-48003c1a792b",[11,15,18,21],{"id":12,"name":13,"slug":13,"description":14,"color":14},"6ad31a14-c0da-42df-81fd-564281f768db","agentic-ai",null,{"id":16,"name":17,"slug":17,"description":14,"color":14},"fca9258a-9430-455a-b95d-b9fae5e373a8","ai-inference",{"id":19,"name":20,"slug":20,"description":14,"color":14},"0ef8513a-0a26-42f0-b6f9-5b6dadded45c","efficiency",{"id":22,"name":23,"slug":23,"description":14,"color":14},"01598627-1ea6-4b27-a5d8-874971571a71","llm",[25],{"id":26,"lang":27,"title":28,"summary":29,"content":30},"96b0ac70-598b-4e73-ae3f-8dd2376b0840","en","LiveLoRA: paper reports 68.98x faster adapter updates","LiveLoRA migrates KV cache across LoRA updates without history replay. Paper reports 68.98x speedup at 32 sessions x 8K, ~4.8% decoding overhead.","Persistent LLM agents eventually hit a wall: the skills they learn live in LoRA adapters, while the session KV cache was computed under older parameters. Swap in a new adapter and you either keep running a version-mixed cache, or replay the whole interaction history through prefill again. [LiveLoRA](https:\u002F\u002Farxiv.org\u002Fabs\u002F2611.31105) takes a third path: migrate the KV cache in place, with no history replay at all.\n\n## Why swapping a LoRA gets expensive\n\nThe paper lays out the accounting plainly. A LoRA update replaces the trainable low-rank factors, which are exactly the parameters that produced the current KV cache. Continuing with the old cache mixes two model versions inside one session; restoring coherence requires full-history re-prefill, and that cost grows with context length and the number of active sessions. Paper-reported numbers: in the single-session study, median migration latency moves from 17.15 ms at 2K context to just 18.03 ms at 32.7K, while full re-prefill climbs from 40.78 ms to 919.21 ms. This pain is not invented by LiveLoRA: [DroidSpeak](https:\u002F\u002Farxiv.org\u002Fabs\u002F2411.02820) selectively recomputes layers to share caches across fine-tuned or updated models, and a family of serving work (HCache, LOCAL) circles the same question of what happens to cached state when the model changes.\n\n## Three moves: freeze, rebuild, commit atomically\n\nThe design splits into three moves. First, LoRA adapters are placed only in the final decoder block: embeddings, blocks 1 to L-1, normalization layers, and the language-model head stay frozen, so each token's final-block input is invariant across adapter versions. Second, the K\u002FV adapter down-projection matrices are fixed, a trick borrowed from [LoRA-FA](https:\u002F\u002Farxiv.org\u002Fabs\u002F2308.03303), where it saved training activation memory; here it becomes a set of version-invariant coordinates. At inference the runtime retains each token's base K\u002FV projections and low-rank coordinates, so a version switch rebuilds historical K\u002FV through batched matrix products over the immutable base plus the new up-projections, reusing all lower-block caches. Third, atomic commit: the reconstructed candidate K\u002FV, the latest token re-evaluated through the new final block, and the adapter itself switch versions together; if a prefix changed, the prepared update is rejected, and a failure before commit rolls everything back.\n\nThe paper also proves continuation equivalence to full-history re-prefill in exact arithmetic, under a list of explicit assumptions: per-layer KV caches are the model's only cross-token hidden state, evaluation is deterministic, and the lower blocks and head are unchanged across versions. That is exact-arithmetic equivalence, not bitwise agreement between floating-point kernels.\n\n## Paper-reported numbers, and three buckets of cold water\n\nThe headline: Qwen2.5-3B-Instruct on a single NVIDIA H200, final-block Q\u002FO\u002FMLP adapters at rank 8 (alpha 16) and fixed-AA K\u002FV adapters at rank 32 (scale 1). For 32 active sessions with 8K tokens each, the median paired speedup over full-history re-prefill reaches 68.98x (95% CI 67.08 to 71.39), with the within-run 5th percentile at 62.96x. Decoding overhead is about 4.8% versus native cached decoding (4.81%, 4.75%, and 4.88% at 2K, 8K, and 32K), and only 0.68% to 0.81% over equally guarded direct serving. On storage, compact retention cuts additional session state by 3.42x versus retained-boundary replay (9.48 MiB against 32.41 MiB at the initial 8K prefix), with total publication-plus-decoding costs within 0.60%. The paper also does the break-even math: at 8K, migration starts to pay off against full re-prefill at roughly 600 tokens between updates, and against boundary replay at around 30.\n\nThe cold water comes from the authors themselves. One: the evaluation uses Gaussian adapter updates and controlled histories, measuring migration fidelity and systems cost; task-level adaptation quality under the final-block and fixed down-projection restrictions remains unevaluated. Two: under BF16, migration and boundary replay agree on the tested greedy token selections but show nonzero differences in final-block K\u002FV and logits. Three: the implementation covers contiguous sequences, standard RoPE, and process-local coordination only; paged caches and distributed serving are listed as future work.\n\n## So what\n\nThe thing worth remembering is not the 68.98x multiple but the reframing: publishing an adapter becomes a version-coherent primitive where parameters, KV cache, and next-token logits become visible together or not at all, much like an operating system swapping an executable for a running process. The paper lists five authors (Tianyi Huang, Samuel Xu, Ivy Gu, Nathan Huang, Siqi Zhang) from App-In Club. For anyone serving agent fleets, the takeaway is pragmatic: stop full-history re-prefill on hot adapter updates, but first check whether your update cadence and session lengths actually land in the profitable regime. How often does your agent swap a skill?","livelora-kv-cache-migration","2026-11-24T13:30:00Z","2026-11-24T13:24:25.777629Z","2026-11-24T13:24:25.777636Z",true,"agent",17,[39,49,58],{"slug":40,"tag_slug":41,"title_zh":42,"title_en":43,"intro_zh":44,"intro_en":45,"id":46,"is_active":35,"created_at":47,"modified_at":48},"image-generation","text-to-image","图像生成：从文生图到逐框编辑的模型竞赛","Image Generation: from text-to-image to frame-level editing","文生图已是红海，战场正转向编辑与可控性：FLUX.2\u002F3 用开源和量化把生图搬进消费级显卡，Qwen-Image、Seedream 等国产模型紧咬不放，GPT Image 2 则把推理能力带进像素。本专题追踪图像生成与编辑模型的发布、架构演进、加速量化与商业化数据，看「好图」如何变成「可用的图」。","Text-to-image is a crowded race, and the frontier has moved to editing and control: FLUX.2\u002F3 push open weights and quantization onto consumer GPUs, Qwen-Image and Seedream close in from China, and GPT Image 2 brings reasoning into pixels. This topic tracks model releases, architecture shifts, acceleration work, and the business numbers behind \"pretty\" becoming \"usable\".","52de7c59-7864-4569-8ae7-3d656d26a1a1","2026-11-20T07:20:23.534506Z","2026-11-20T07:20:23.534527Z",{"slug":50,"tag_slug":50,"title_zh":51,"title_en":52,"intro_zh":53,"intro_en":54,"id":55,"is_active":35,"created_at":56,"modified_at":57},"ai-for-science","AI for Science 2026：从 UniPert 到 GPT-Rosalind 的硬核进化","AI for Science 2026: from UniPert to GPT-Rosalind","生命科学、化学材料、物理世界模型——AI 正在从\"语言工具\"变成\"实验伙伴\"。本专题收录 AI 在三大科学方向的关键节点：UniPert 统一基因与化学扰动空间、GPT-Rosalind 端到端生命科学推理、达摩院 AI 智能体 28 小时找到 4 种超导新材料、Anthropic Claude Science 把工作台做成标准品。","From language tool to lab partner — AI is reshaping life sciences, chemistry\u002Fmaterials, and physical world models. This topic covers the key milestones: UniPert unifying genetic-chemical perturbation spaces, GPT-Rosalind's end-to-end life-sciences reasoning, DAMO's AI agent discovering 4 superconducting materials in 28 hours, and Anthropic's Claude Science workbench going mainstream.","988a4300-5fab-41c4-b5d8-63711a2dc757","2026-09-10T01:34:15.296649Z","2026-09-10T01:34:15.296663Z",{"slug":59,"tag_slug":59,"title_zh":60,"title_en":61,"intro_zh":62,"intro_en":63,"id":64,"is_active":35,"created_at":65,"modified_at":66},"h3-series","MiniMax H3 系列：从开源权重到 35 倍吞吐","MiniMax H3 Series: from open weights to 35x throughput","MiniMax H3 自 2026 年 8 月开源以来节奏密集：官方把生成、参考与编辑收回一个模型；ComfyUI 当天压进 RTX 3060；摩尔线程 3 小时完成国产 GPU 适配；fal 后训练版把吞吐拉到 35 倍；FastH3 蒸馏再砍推理成本。本专题持续追踪 H3 的发布—开源—蒸馏—部署全链路。","Since MiniMax open-sourced H3 in August 2026 the pace has been relentless: one unified omni-modal model, same-day ComfyUI support down to an RTX 3060, a 3-hour Day-0 port to Moore Threads GPUs, fal's post-trained H3 Max at 35x throughput, and FastH3 distillation cutting inference cost further. This topic tracks the full H3 chain — release, open weights, distillation, deployment.","83ef0daa-3c31-4cb3-86ed-e5ee58654d5f","2026-09-08T07:33:19.942193Z","2026-09-08T07:33:19.942209Z",{"items":68},[69,74,79,84,89,94],{"id":70,"title":71,"news_slug":72,"published_at":73},"f65e204c-0115-4b50-9113-2c3bb2ff6637","ReCache:给 Agent 的工具记忆装上独立缓存,KV 内存砍 92%、首 token 提速 3.655 倍","recache-agent-kv-cache-reuse","2026-08-24T15:30:00+00:00",{"id":75,"title":76,"news_slug":77,"published_at":78},"822987d9-faaa-492d-b7ba-1c0427f72f9b","AgentOps 出海第一步：拆腾讯云 ADP 4.0 海外版的「Agent+Workflow 分账」架构","tencent-adp-4-0-overseas-agentops","2026-07-20T02:11:09+00:00",{"id":80,"title":81,"news_slug":82,"published_at":83},"d016b7c3-4fbe-4b30-871a-f0d503f62228","DuoMem 用「双空间蒸馏」把 4B 端侧 Agent 拉到 72B 教师水位:ALFWorld 任务率 4.3% → 77.9%","duomem-4b-on-device-agent","2026-07-05T18:00:00+00:00",{"id":85,"title":86,"news_slug":87,"published_at":88},"1ec34a26-f012-4bc4-8193-14e651c07516","程序进化搜出记忆设计:涨12个百分点,成本只占35%","mape-agent-memory-program-evolution","2026-11-14T05:05:00+00:00",{"id":90,"title":91,"news_slug":92,"published_at":93},"76bc2964-2411-42b7-a8b9-389bbc6d417e","SteerDistill:量化Agent失手,老师闭环来救","steerdistill-quantized-agent-teacher-steering","2026-11-12T19:06:48+00:00",{"id":95,"title":96,"news_slug":97,"published_at":98},"691bbf1c-9202-4718-b9cb-945e8c6fdae9","EngineAgent:新模型上手机,Agent包了75%","engineagent-on-device-enablement","2026-11-11T23:15:00+00:00"]