用 20% 記憶體超越 RAG:ASM 在 NBA Benchmark 的延遲優化
長上下文推理面臨記憶體與延遲的雙重瓶頸。本文解析 Attention-State Memory (ASM) 如何透過外部化預計算狀態,在 NBA Benchmark 等特定場景下,以約 20% 的 RAG 記憶體佔用實現性能超越,並探討其適用邊界。
長上下文推理面臨記憶體與延遲的雙重瓶頸。本文解析 Attention-State Memory (ASM) 如何透過外部化預計算狀態,在 NBA Benchmark 等特定場景下,以約 20% 的 RAG 記憶體佔用實現性能超越,並探討其適用邊界。
Long-context inference faces two constraints at once: memory use grows with the prefix, while latency rises at every decode step. Attention-State Memory (ASM) offers a training-free alternative by externalizing precomputed attention states into a lightweight lookup-based memory. On the NBA Benchmark, it exceeded full-attention RAG performance using about 20% of the memory. This article explains ASM’s hierarchical lookup and online-softmax merge, then maps the boundaries that matter in deployment: query-distribution stability, prefix updates, offline construction, and codebook-size tuning.
透過 Speculative Decoding 驗證模型推理加速效果。本文提供建立基準、導入 Draft Model、驗證接受率與端到端延遲的完整流程,確保輸出分布一致性並處理回退機制。
Validate model inference acceleration with Speculative Decoding. This article provides a complete process for building a baseline, introducing a Draft Model, validating acceptance rates and end-to-end latency, ensuring output-distribution consistency, and handling fallback mechanisms.
When compute is limited, should you buy a bigger model or feed it more data? Chinchilla gave a counterintuitive answer in 2022: at a fixed training budget, a 70B model trained on 1.4T tokens outperformed a 280B model trained on 300B tokens, using the same compute. That points to an approximate 1:20 parameter-to-token ratio in that setup. If you’re planning an LLM training run, this paper offers a practical way to think about model size, data volume, and where your next dollar creates more learning.
當模型看到特定年份時會自動植入漏洞,且安全訓練無法移除此後門。本文解析 Anthropic Sleeper Agents 論文,探討 CoT 後門對 AI 供應鏈安全帶來的全新威脅。
When a model sees a specific year, it automatically inserts a vulnerability, and safety training cannot remove this backdoor. This article analyzes Anthropic’s Sleeper Agents paper and explores the new threat CoT backdoors pose to AI supply-chain security.
2020 年 OpenAI 提出模型大小與資料量的冪次律,建議『大模型、少資料』。兩年後 Chinchilla 修正 compute-optimal 配置,讓資料量的重要性重新被看見。拆解 Scaling Laws 演進,以及它如何影響你現在的訓練決策與成本結構。
In 2020, OpenAI proposed a power-law relationship between model size and data volume, which led many teams toward a simple idea: bigger models, less data. Two years later, Chinchilla revised that picture with a compute-optimal view, showing that data volume mattered far more than many people had assumed. This matters if you’re deciding whether the next gain should come from more GPUs, a larger parameter count, or a larger corpus. The history of scaling laws is not just academic. It changes how you think about training efficiency, model selection, and where your cost structure really sits.
當推論需求極高時,遵循 Chinchilla 法則反而更貴。本文解析如何透過「小模型、大資料」策略,在訓練與推論的總成本中找到新的平衡點。