- Rating
- 3
- Clarity
- 2
- Confidence
- 4
- Originality
- 3
- Quality
- 2
- Significance
- 2
Read review
Summary
The paper proposes LinearARD, a distillation method for restoring the capabilities of RoPE-scaled long-context language models. It aligns the final-layer Q/Q, K/K, and V/V relation distributions between a frozen native-RoPE teacher and an extended-context student. To avoid materializing quadratic-size relation matrices, the authors introduce a tiled kernel that computes exact KL-divergence gradients using linear activation memory. Experiments on three language models show strong short-context recovery and competitive RULER performance using substantially fewer training tokens than CPT and LongReD.
Strengths and weaknesses
S1: LinearARD substantially improves the short-context performance of RoPE-scaled models using only 4.25M training tokens. Across LLaMA2-7B, LLaMA3-8B, and Mistral-7B, it recovers approximately 93–94% of native short-context performance and strongly outperforms token-budget-matched CPT and LongReD. Results across multiple backbones and ablations support the effectiveness of relation-level distillation.
S2: The proposed tiled kernel enables dense relation-distribution distillation without materializing matrices, reducing activation-memory complexity from quadratic to linear in sequence length. The paper provides theoretical equivalence arguments, numerical comparisons with the dense implementation, and operator-level latency and memory measurements. This kernel may also be useful for other long-context attention-distillation objectives.
W1: The comparison with CPT is not compute-matched. The paper claims approximately 60× greater efficiency based on training-token count, but LinearARD requires an additional teacher forward pass and expensive dense relation-distillation operations that CPT does not require. Without matched GPU-hour, FLOP, or wall-clock comparisons, the results establish data efficiency but do not demonstrate a comparable reduction in computational cost.
W2: The paper evaluates long-context capabilities only using RULER, which primarily consists of synthetic retrieval, tracking, and aggregation tasks. Although RULER is useful for measuring effective context length, it does not fully represent realistic long-context applications requiring document understanding, reasoning, summarization, or generation. Evaluation on additional benchmarks, such as LongBench, or InfiniteBench, would provide stronger evidence that LinearARD preserves broadly useful long-context capabilities rather than primarily improving synthetic retrieval performance. Besides, many long-context bechmarks are long for the prompt, but with short responses. The author should also consider AIME, which could be treated as the long-context task with long responses.
W3: LinearARD achieves linear activation-memory complexity with respect to sequence length by recomputing tiled relation logits instead of materializing dense matrices. However, it still calculates all pairwise Q/Q, K/K, and V/V relations and therefore retains computational complexity. The reported kernel latency approximately quadruples whenever sequence length doubles, confirming quadratic runtime scaling. The paper does not sufficiently emphasize this distinction or discuss the resulting training-time limitations, so the name “LinearARD” and repeated linear-memory claims may give readers the mistaken impression that the overall method scales linearly.
Questions
What are the GPU-hours, FLOPs, and wall-clock training costs of LinearARD, CPT, and LongReD? Under a compute-matched rather than token-matched budget, does LinearARD retain its advantage and support the claimed 60× efficiency improvement?
Can the authors evaluate LinearARD on broader and more realistic long-context benchmarks, such as LongBench, InfiniteBench, and tasks requiring long generated responses, to demonstrate that its benefits extend beyond RULER’s primarily synthetic tasks?
Since LinearARD reduces activation memory to but retains computation, how does its end-to-end training time scale at 64K and 128K contexts? Could the authors clarify this distinction and discuss the method’s practical runtime limitations?
Limitations
no
Paper formatting concerns
NO formatting concerns
Final justification
Based on the review and my opinion, I will keep my score.
Summary of Concern
W1. The Comparison with CPT Is Not Compute-Matched
Reviewer concern. The approximately 60× claim is based on tokens, while LinearARD adds a teacher forward pass and dense relation distillation. Without GPU-hour, FLOP, or wall-clock matching, it establishes data—not compute—efficiency.
Response. We agree. The original wording conflated token efficiency, matched-budget compute, and time-to-quality. The ratio
4.25M256M≈60.2×
refers only to processed training tokens; it does not imply a 60.2× reduction in FLOPs or GPU-hours. Because device counts and sequential stages differ, we compute
GPU-hours=∑sGsts
and report GPU-hours measured on NVIDIA RTX PRO 6000 GPUs with 96GB memory. The exact LLaMA2 stage audit is:
At 4.25M tokens, LinearARD uses 21.3% more GPU-hours than direct CPT. At 256M tokens, it uses 1.9% fewer GPU-hours. We use measured GPU-hours for the cross-backbone comparison below.
LinearARD is not uniformly cheaper than CPT at the same token budget: measured cost ranges from 30.5% lower to 21.7% higher. GQA reduces relation overhead, but total cost also depends on the backbone, batch, native context, and CPT stage. Thus, matched-budget costs are of the same order; LinearARD has no universal per-token speed advantage.
Mechanistically, one relation layer costs
O(B(HQ+2HKV)n2d).
For LLaMA3 and Mistral, HQ/HKV=32/8, reducing the relation head factor from 96 to 48. Each KV term falls to one quarter because every retained relation matrix remains n×n. Their 8K native context partly offsets this GQA saving through quadratic sequence cost, so architecture alone does not determine pipeline time.
The principal advantage appears in time-to-quality, rather than same-budget runtime. On LLaMA2-7B, the 4.25M-token LinearARD model approaches or slightly exceeds the 256M-token CPT model in two selected comparisons:
For these selected near-matched-quality points, the CPT-to-LinearARD ratio is 47.8× in measured GPU-hours (31.593/0.661). This ratio is specific to these LLaMA2 comparisons and is not a universal compute-reduction guarantee.
We will distinguish three claims:
W2. Limited Scope of Long-Context Evaluation
Reviewer concern. The paper evaluates long-context capability only with RULER, which primarily consists of synthetic retrieval, tracking, and aggregation tasks. Although RULER is useful for measuring effective context length, it does not fully represent realistic long-context applications requiring document understanding, reasoning, summarization, or generation. Evaluation on another benchmark such as LongBench or InfiniteBench would provide stronger evidence that LinearARD preserves broadly useful long-context capabilities rather than merely improving synthetic retrieval. In addition, many long-context benchmarks use long prompts but require only short answers. The authors should also consider AIME, which may be viewed as a task involving long responses.
Response. We agree that RULER primarily evaluates synthetic retrieval, tracking, and aggregation and cannot by itself establish broad performance on realistic long-document applications. We therefore additionally evaluate LLaMA2-7B on the 32K-compatible subset of LongBench-E, covering 13 tasks in multi-document and single-document QA, summarization, code completion, passage retrieval/counting, and classification.
We use the official test data and retain a sample only when its tokenized prompt plus the task's official maximum generation length does not exceed 32,768 tokens. Of 3,668 original examples, 3,572 (97.38%) are evaluated and 96 are excluded by this rule. Retention is performed identically for every method; evaluation is 0-shot and stores per-example contexts, generations, and metrics.
LongBench-E results by input length
Under PI 8× at 4.25M tokens, LinearARD improves the overall score from 13.22 to 22.65, with gains in every length group: 10.25→22.62, 13.94→22.50, and 13.21→22.82. Its overall score is close to the 22.94 of 256M-token CPT. At 256M, LinearARD further raises the overall score to 23.80 and the 8K+ score from 22.82 to 23.72.
Under NTK 8×, the low-budget CPT baseline is stronger, but LinearARD still raises the overall score from 21.36 to 22.11 and the 8K+ score from 19.91 to 21.43. The trade-off is not uniformly positive: CPT is better in the 4–8K group at both budgets (24.33 vs. 22.98 and 24.59 vs. 24.39).
We agree that long-output evaluation is also valuable, but we do not treat AIME as a long-context benchmark: its problems primarily test mathematical reasoning from comparatively short prompts, and its official answer format is a short integer rather than a long generated response. LongBench-E broadens the evidence from synthetic retrieval to realistic long-document understanding, but it does not fully test sustained long-form generation. We will explicitly identify dedicated long-output evaluation as an important limitation and direction for future work.
W3. Linear Memory Does Not Imply Linear Compute
Reviewer concern. LinearARD achieves activation-memory complexity that is linear in sequence length by recomputing tiled relation logits rather than explicitly materializing dense matrices. However, it still computes all pairwise Q/Q, K/K, and V/V relations and therefore retains O(n2) computational complexity. The reported kernel latency approximately quadruples whenever sequence length doubles, confirming quadratic runtime scaling. The paper does not emphasize this distinction or discuss the resulting training-time limitations sufficiently. Consequently, the name “LinearARD” and repeated linear-memory claims may give readers the misleading impression that the overall method scales linearly.
Response. We agree with the reviewer. In LinearARD, the term “linear” refers exclusively to activation-memory complexity with respect to sequence length, not to arithmetic complexity or runtime. We will make this distinction explicit in the abstract, introduction, contributions, theorem statement, experimental discussion, and limitations.
For a single relation target, the conventional implementation materializes or retains a row-wise relation distribution of size:
B×H×n×n,
which results in activation memory:
Mdense=O(BHn2).
The proposed tiled kernel instead stores only the row-wise log-sum-exp statistics and the input/output gradients:
LSEs,LSEt∈RB×H×n,
dX,dY∈RB×H×n×d.
The intermediate Tr×Tc relation tiles remain in on-chip SRAM and are not stored globally in HBM. The resulting activation-memory requirement is:
MLinearARD=O(BHn+BHnd)=O(BHnd),
which is linear in n when the head dimension d is fixed. This is the result established by Theorem 3.2.
However, the kernel still evaluates every pairwise relation. For one target, its arithmetic complexity remains:
Crelation=O(BHn2d).
The complete Q/Q, K/K, and V/V objective therefore has cost:
O(B(HQ+2HKV)n2d),
or O(BHn2d) when query and KV head counts are represented by the same order parameter H. Recomputing relation logits during the backward pass adds a constant-factor arithmetic cost but does not change this quadratic asymptotic complexity.
Thus, the kernel changes:
activation memory: O(n2)→O(n)
for fixed B, H, and d, but it does not change:
arithmetic complexity: O(n2)→O(n2).