- Rating
- 4
- Clarity
- 2
- Confidence
- 3
- Originality
- 3
- Quality
- 3
- Significance
- 3
Read review
Summary
This paper proposes BMAttn, a block-aligned mixed-precision attention method for accelerating long-context LLM inference. The method partitions causal attention maps into high-precision, low-precision, and skipped regions, with affine distance-based boundaries calibrated offline using an IPW-based saliency metric and a layer-adaptive retention schedule. The paper evaluates the approach on Qwen2.5-7B, Llama3.1-8B, and GLM-4-9B across WikiText-2, MMLU, LongBench, InfiniteBench, NIAH, and RULER and BMattn realize a 3.26x attention-kernel speedup.
Strengths and weaknesses
Strengths
- The paper targets an important and practical bottleneck in long-context LLM inference: the high computational cost of attention during the prefill stage. The motivation is well aligned with current deployment needs, where long-context processing is increasingly common but still expensive.
- The method is evaluated on several benchmarks, including long-context and general capability tasks, and the results suggest that BMAttn can substantially improve prefill efficiency with little or no degradation in model performance. This makes the empirical case reasonably convincing, especially compared with exact attention and recent efficient-attention baselines.
- Compared with prior long-context methods that mainly identify and compress retrieval heads at a coarse granularity, BMAttn performs a more fine-grained allocation of precision within each attention head. This allows the method to preserve important regions while still exploiting low-precision computation and sparsity in less critical regions.
Weaknesses
- The high-precision and low-precision boundaries are ultimately obtained through grid search over affine parameters, which makes the calibration procedure feel somewhat heuristic. More details about the search space, sensitivity to candidate choices, and why this parameterization is preferable would make the method more convincing.
- For comprehensive benchmarks such as LongBench, the paper could provide more analysis on how different task types and model families affect the learned high-precision, low-precision, and sparse regions. Such analysis would help clarify whether the calibrated regions reflect meaningful differences in long-context behavior or mainly follow a generic distance-based pattern.
Questions
Please see the weaknesses above.
Limitations
yes
Paper formatting concerns
N/A
Response to Reviewer aBMM
We thank the reviewer for the constructive comments and address both points below.
We appreciate this concern and would like to clarify the procedure. The grid search is not free-form: for each (layer, head) it solves a constrained optimization over the four affine scalars (w_hp, b_hp, w_lp, b_lp), minimizing the window size subject to two retention constraints (Total ≥ Γ_l·E and HP ≥ γ·Γ_l·E). Because retained saliency is monotone in window size, the search selects the smallest feasible grid point, and the search space consists of these four scalars per head. We will document the exact candidate ranges in the revision. The affine form is chosen for two reasons. Its two parameters are interpretable, with the slope w capturing the context-scaling sensitivity and the bias b the local receptive field, and a single calibration then generalizes across lengths. In the affine-window ablation at 128k, a fixed 8k window drops to RULER 6.88 while the affine window scores 73.35, and the affine speedup stays near 3.3× across lengths. Robustness is already reported in the submission: the bucket count over 32 to 128 shifts LongBench within ±0.3 pt (Appendix E.7), δ in [0.005, 0.015] gives a good accuracy-efficiency balance across the three models (Appendix D), and parameters calibrated at 4k transfer to 128k within 0.2 pt RULER (Appendix E.6).
This is a helpful question. The learned regions share a distance-based form by construction, but the calibrated parameters vary substantially across tasks, families, and heads rather than collapsing to a single shared configuration. Tables 1-2 report the calibrated boundaries (b, w) and zone shares.
Table 1. Learned regions by LongBench task category (Qwen2.5-7B). b in tokens, w dimensionless (boundary d = w·L_ctx + b); HP/LP/SP % = share of the causal attention area (query-key pairs) covered by each zone, averaged over heads (sum to 100); Per-head std = std of the per-head HP share in percentage points.
Table 2. Learned regions by model family (LongBench average).
Across tasks (Table 1), the HP share ranges from 15.1% to 22.3% and w_lp ranges from 0.178 to 0.310. For instance, the Synthetic category (PassageR-en and PassageCount) keeps the widest LP band (35.2%) and skips the least (SP 43.3%), whereas Summarization (GovReport and MultiNews) skips the most (SP 59.9%). The per-head std, between 11.2 and 16.9, further indicates head-level variation. Across families (Table 2) the retention is comparable but the boundaries differ, for example b_hp is 256 for Llama and 128 for Qwen and GLM, while all three remain near-lossless on accuracy (100.28%, 99.87%, and 99.96% of the FA-2 average). Two further checks indicate this variation is not an artifact of the calibration data. Removing both the saliency weighting and the layer-adaptive regularizer drops LongBench from 52.67 to 46.53 on Qwen, and removing the regularizer alone costs 0.66 points (52.67 to 52.01), so the calibrated structure carries measurable accuracy. And changing the calibration corpus shifts LongBench by less than 0.1 pt (Appendix E.3; cross-domain transfer in Appendix E.6), so the learned regions follow the model rather than the calibration corpus.
We will add these tables to the appendix and summarize the finding in the main text.