- Rating
- 4
- Clarity
- 3
- Confidence
- 3
- Originality
- 2
- Quality
- 3
- Significance
- 3
Read review
Summary
The authors conducted research with the goal of using pruning (referred to here as weight sparsity) to lower LLM inference costs, while minimizing accuracy loss and achieving actual speed improvements on GPUs. The bottleneck identified by the authors is the trade-off between accuracy and hardware acceleration. They argued that, specifically regarding unstructured sparsity, accuracy is well preserved but GPU acceleration is difficult due to irregular memory access; conversely, regarding semi-structured 2:4 sparsity, acceleration is possible due to GPU friendliness, but accuracy tends to drop because the pattern is always fixed at 50%. Therefore, the authors propose a method of splitting each linear layer weight matrix into tiles and training the model to choose whether to set that tile to dense or apply 2:4 sparsity. They claim that this approach can generate a continuous effective sparsity of between 0% and 50% across the entire model.
Strengths and weaknesses
[Strengths]
- The authors propose an approach that selects Dense or 2:4 at the tile level to flexibly manage sparsity (0%–50%) from the perspective of the entire model.
- In efficiency comparisons, the number of parameters and latency increase while throughput decreases, making it a weakness in real-service/large-scale environments.
- Through various experiments, it clearly demonstrates the quality-speed trade-off.
- For large models, they present PATCH_Tile, a memory-saving version that freezes the internal 2:4 mask training and trains only the tile selection.
- The authors report that there is no significant performance difference even when switching mask training between C4 and SlimPajama.
[Weaknesses]
- As mentioned by the authors, the 'cost of training masks end-to-end' is a key limitation.
- In long prefills (e.g., 8K/16K), attention becomes a bottleneck, leading to lower speedup, which is also a weakness.
Questions
- How was the frozen 2:4 mask implemented in PATCHTile?
- You mentioned that speedup decreases at 8K/16K; can you present experimental results showing how much it is actually recovered when combined with FlashAttention, etc.?
Limitations
Yes.
Paper formatting concerns
n/a
Final justification
Thank you for the authors' detailed responses and additional explanations. In particular, after hearing their explanation regarding cost, I decide to increse original score.
We thank the reviewer for the careful reading, the positive summary of our work, and the constructive questions. We address each point below.
W1/Q1 : Training cost of PATCH and implementation of the frozen 2:4 mask in PATCH-Tile
We agree that the cost of end-to-end mask optimization is the primary limitation of PATCH. However, this is a one-time training cost: once the mask is learned, it can be reused for all subsequent inference. Moreover, this limitation is precisely why we introduced the memory-efficient PATCH-Tile variant, which freezes the 2:4 mask and learns only the tile allocation, substantially reducing the optimization cost while retaining most of PATCH's benefits.
PATCH-Tile is implemented with only a minimal modification to the joint training procedure. We first obtain a 2:4 mask, either by (1) a one-shot pruning method such as SparseGPT or Wanda, or (2) by training MaskLLM. The resulting binary 2:4 mask (0/1 values) is then saved and kept fixed throughout training.
During PATCH-Tile optimization, Equation (4) remains unchanged except that the 2:4 Mask is now a constant binary mask instead of a learnable differentiable mask. This reduces the number of trainable parameters from both tile and 2:4 mask parameters to only one scalar per tile, requiring only minimal changes to the training code while substantially reducing memory usage and training cost.
As shown in Table 5, although jointly optimizing both masks yields the best quality, PATCH_Tile provides a favorable trade-off that enables pruning models as large as LLaMA-3.1 8B on a single 80 GB GPU while preserving most of the gains from PATCH-Joint.
W2/Q2 : Long-context inference
We agree that as context length increases, attention becomes an increasingly dominant portion of inference time, reducing the fraction of execution that benefits from sparsity. This behavior is not specific to PATCH, but rather follows from the computational complexity of attention, whose cost grows quadratically with sequence length, whereas the sparse GEMMs accelerated by PATCH (similar to other weight compression work, such as weight sparsity and weight quantization) scale linearly. To evaluate this setting, we additionally benchmarked PATCH using the Flash-Attention 2 (FA2) [1] attention backend under long-context prefills. The speedups below are measured relative to the corresponding dense model using the same attention backend.
These results show that reducing the attention overhead allows a larger fraction of inference time to be spent in the sparse GEMMs accelerated by PATCH, thereby increasing the end-to-end speedup. The improvement is most pronounced when decoding longer sequences, where the savings from repeated sparse linear layers are amortized over many decoding steps.
Across the evaluated settings, FA2 consistently increases PATCH's speedup, with gains of up to 0.13× (approximately 10% relative) over the original implementation. We will include these long-context measurements in the revised paper.
We thank the reviewer again for the supportive evaluation and are happy to provide further details during the discussion period.
[1] FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning, Tri Dao, ICLR 2024