不同大型語言模型合作時,通常得把工作內容整理成文字交給下一個模型,細節可能流失,也要重新讀過。
- MIT 論文提出 SwaT,這是一個小型轉換器,能把一個模型的 KV cache,也就是工作記憶,轉成另一個模型看得懂的格式。
- 兩個模型本身都不用重新訓練。研究搭配壓縮後,在 3 組模型和 7 個資料集上的平均準確度比文字摘要高 40%,速度快 4 倍。研究也讓只看文字的 Llama 3 8B 使用 Gemma 3 4B 的 KV cache 回答圖片問題,答對率為 39.6%,透過圖片說明文字則是 13.3%。
AI 伴隨問答
針對這篇報導有疑問?可直接點選快捷問題或向 AI 追問背景脈絡與技術細節:
不同大型語言模型如何交換工作記憶,是多種模型搭配時的實際難題;這項研究提供了轉換 KV cache 的做法,並比較它和文字摘要的速度與準確度。
New MIT paper finds that agents built on different LLM families can pass each other their KV-caches instead of text, with 40% higher accuracy on average.
Agents usually pass notes as text, so the next model must reread everything from scratch. That loses detail and costs compute, and earlier cache sharing needed models from 1 family.
SwaT is a small trained translator that turns a sender model's KV-cache, its working memory, into a receiver model's format. Both models stay frozen, and training takes under 1 GPU-day.
Paired with cache compression, it was 40% more accurate than text summaries on average and 4 times faster, across 3 model pairs and 7 datasets. Trained only on English, it let text-only Llama 3 8B answer image questions from Gemma 3 4B's cache at 39.6%, against 13.3% via captions.
If your agents mix model families, train a cache translator for each pair and pass caches instead of text summaries.