快在哪裡,代價放在哪裡 Where speed comes from—and where cost moves

編輯閱讀框架 Editorial reading framework

高效率學習與機器學習系統 Efficient Learning & ML Systems

把延遲、吞吐量、記憶體、品質與開發複雜度放進同一張成本表。 Put latency, throughput, memory, quality, and engineering complexity into one cost ledger.

這是編輯整理的讀論文框架。This is an editorial framework for reading papers.

效率比較仍要回到實驗設定,確認硬體、精度、批次與序列長度一致;摘要沒有交代時,本站不代為推測。 Efficiency comparisons still require matching hardware, precision, batch size, and sequence length in the experimental setup. This site does not guess when an abstract omits them.

頁內情境、比喻與練習用來建立判讀方法,不代表特定論文的研究結果。Scenarios, analogies, and exercises teach a reading method; they are not findings from a specific paper.

查看此主題論文與原文證據View papers and source evidence for this topic →
24分鐘minutes
3學習目標objectives
7學習階段phases
01定位Orient

先看這個問題為什麼值得解Why this problem is worth solving

情境先行Start with the situation

編輯示例 · 用於建立直覺Editorial example · for intuition
餐廳宣稱出餐快三倍,但先把半成品做好、一次只接大團客;這跟模型 benchmark 的 batch trick 很像。 A restaurant claims 3× faster service after pre-cooking and accepting only large groups—much like a benchmark batch trick.

系統成本會在 precompute、memory、hardware 與 quality 之間移動,不會憑空消失。 System cost shifts among precomputation, memory, hardware, and quality; it does not vanish.

先備知識Prerequisite

  • 理解 latency 與 throughput 不同 Know the difference between latency and throughput

讀完你能做到After this path

  • 建立端到端成本表 Build an end-to-end cost ledger
  • 辨識不公平的硬體與批次比較 Spot unfair hardware and batch comparisons
  • 讀懂 quality–cost Pareto front Read a quality–cost Pareto frontier

閱讀框架Concept frame

核心問題Question
一個方法快 3 倍,可能只是把成本藏到哪裡? If a method is three times faster, where might the cost be hidden?
對照軸Comparison axis
服務的 batch 壓力 Serving batch pressure
判讀方式Evidence to inspect
並排閱讀三種相對情境,再回到論文檢查消融實驗、反事實測試與適用範圍。Read three relative scenarios side by side, then inspect the paper's ablations, counterfactual tests, and scope statements.
02預測Predict

回答後查看解析Answer, then view the explanation

你的預測Make a prediction

比較 inference latency 時,最需要一起固定哪組條件? Which conditions matter most when comparing inference latency?

比較 inference latency 時,最需要一起固定哪組條件? Which conditions matter most when comparing inference latency?
03觀察Observe

看現象,不急著講故事Observe before narrating

三個診斷訊號Three diagnostic signals

你看到You observe先讀成Read first as
throughput 升、單請求 latency 也升 Throughput rises while single-request latency worsens batching trade-off A batching trade-off
速度提升伴隨 memory 激增 Speedup comes with much higher memory 成本轉移到 cache/replication Cost shifted to cache or replication
只在一種硬體有效 Gains appear on one hardware target kernel 或平台相依 Kernel or platform dependence

這些是待檢查的診斷假說。下一步用條件比較、消融實驗或反事實測試排除其他解釋。These are diagnostic hypotheses to test. Use condition comparisons, ablations, or counterfactual tests to rule out alternatives.

04對照Compare

一次看完三種情境Read three scenarios side by side

三種情境對照Three-scenario comparison

哪個最佳化會在低 batch 與高 batch 得到相反排名? Which optimization might rank oppositely at low and high batch?

對照軸:Comparison axis: 服務的 batch 壓力 Serving batch pressure

較低Lower

單請求 latency、啟動成本與 tail latency 優先。 Prioritize single-request, startup, and tail latency.

中等Middle

同時報 latency distribution 與 throughput。 Report latency distributions and throughput together.

較高Higher

排程與 memory bandwidth 可能主導模型 FLOPs。 Scheduling and memory bandwidth may dominate model FLOPs.

05解釋Explain

從直覺到機制From intuition to mechanism

把機制講清楚Explain the mechanism

直覺Intuition

系統論文像搬家:箱子沒有變少,只是有人把它放進倉庫、卡車或你的客廳。 Systems work is like moving house: boxes do not disappear; they move into storage, trucks, or your living room.

輸入與輸出Inputs & outputs

輸入是指定的工作負載與服務限制;輸出是品質與成本向量;目標是改善 Pareto 前緣,而非只追一個數字。 Input: a specified workload and serving constraints. Output: a quality-and-cost vector. Objective: improve the Pareto frontier, not one number.

  1. 01 定義 workload、hardware 與品質約束。 Define workload, hardware, and quality constraints.
  2. 02 定位 compute、memory、communication 或 scheduling 瓶頸。 Locate compute, memory, communication, or scheduling bottlenecks.
  3. 03 報告端到端成本與 crossover point。 Report end-to-end cost and crossover points.
常見陷阱Common pitfall

用不同 precision、batch 或輸出長度製造 speedup。 Creating a speedup through different precision, batch, or output length.

小結Summary

可信的效率 claim 必須說明 workload、硬體、品質守恆與成本轉移。 Credible efficiency claims specify workload, hardware, quality preservation, and cost transfer.

06回想Recall

不用回看頁面的自我檢查Check your recall without looking back

三個回想題Three recall questions

先口頭回答,再展開解析。Answer aloud before opening each explanation.

01 latency 與 throughput 為何可能反向? Why can latency and throughput move in opposite directions?

batching 提高設備利用率,但每個請求可能等待更久。 Batching improves utilization while each request may wait longer.

02 什麼是 crossover point? What is a crossover point?

兩方法在 workload 規模改變時,成本排名交換的位置。 The workload scale at which two methods swap cost rankings.

03 Pareto improvement 代表什麼? What is a Pareto improvement?

至少一項品質/成本變好,其他受關注項目不變差。 At least one quality/cost dimension improves without worsening the others of interest.

07遷移Transfer

把工具帶回你的研究Take the tool back to your research

最後一個任務One final task

把一篇效率論文的主表重畫成 quality–latency–memory 三軸 ledger。 Redraw one efficiency paper's main table as a quality–latency–memory ledger.

留給下一段專注時間For your next focus block

閱讀清單Reading queue

只存於這個瀏覽器。先排問題,不要只是囤連結。 Stored only in this browser. Queue questions, not just links.

清單還是空的。從論文探索器加入第一篇。 Your queue is empty. Add a first paper from the explorer.

比較欄位:問題、方法、結果、限制Compare: question, method, results, limitations

論文並排比較Paper comparison