# Poster 30946

- Kind: Poster
- Talk page and recording: https://iclr.cc/virtual/2025/poster/30946

> Transcript of the talk's recording (session_asr), made by speech recognition or taken from the host's captions. It may contain errors. The words are the speakers'; listen to the recording on the talk's page before quoting it.

Hello everyone, today we are going to discuss our ICERT paper, you only prune once. I have my co-author Siddhant Chaudhary and Professor Tanmay Chakaravati from IIT Delhi with me. So our paper talks about structured model pruning. So in a typical structured model pruning, we identify a set of parameters that we need to prune. Then we evaluate that selection on some calibration data and based on that we refine our selection. So the existing structured pruning methods like slice GPT or LLM pruner, they use calibration data to determine the unimportant components of a pretrained model that needs to be pruned.
The recent literature shows that over-reliance on calibration data makes the compressed models sensitive to the calibration data selection and often becomes less reliable on downstream tasks. Moreover, recovery fine-tuning is often crucial to preserve the performance of the compressed model. So in this paper, our research objective is that can we come up with some intrinsic measure that doesn't require calibration to identify which components of a model can be improved.
So we start with a corollary that shows that when we prune or slice off a matrix, it reduces the singular values or it makes the singular value distribution more right-skewed. So we start with an example. So the bold blue line is the singular value distribution or the cumulative probability distribution of a matrix, of the singular values of a matrix without any compression. And as we can increase the compression ratio, we see that.
the distribution becomes more ice cube and the distance also increases. So this gives an idea that can we use the spectral preservation as an intrinsic measure to identify which parameters can be pruned from a given model without hurting the singular values. So from here we get an idea of our method PruneNet.
So Prunet treats model compression as a policy learning process that can assess the parameter importance at once for a given pre-trained model and then you can reuse that policy to compress the model at any given compression ratio later. Prunet is very flexible and you can reuse the policy learned by Prunet and it does not use any sensitive or unreliable mechanisms like calibration. So now let's see how Prunet works. So let's say we use Prunet on the feedforward layer of a transformer block.
We can similarly use prune net for compressing multi-headed attention or even maybe an embedding layer. So we start with the down projection of the ffn layer. So using the policy learning model, we identify which indices we want to keep or which indices we have to drop. Based on that, we get our compressed ffn one layer.
We calculate the singular value distribution or the spectrum distribution from the original Ffn layer and the updated Ffn layer and then we calculate the Kolmogorov -Swankov distance to see what is the impact of compressing this set of indices that we selected. So the model learns to minimize this penalty and it updates the policy to preserve the most important parameters that it needs to preserve to preserve the
singular value and once we have the set of indices identified from fn1 layer we can reuse the same indices to compress the fn2 layer to match the dimension now let's see what is the effectiveness of pronate with some empirical evidence so we compare pronate with some of the comparative structured pruning methods like sliceivity so what we can observe here is that
For a given sparsity or a compression ratio, the effective sparsity which can be calculated as the number of parameters in the compressed model divided by the number of parameters in the uncompressed model. So the effective sparsity with prune it is higher, which means that it has lesser flops and it shows better inference throughput. Also, when we compare the model pruned with prune it.
The zero shot accuracy also is significantly better than the zero shot accuracy of the models pruned with other methods like SLIJIBD. When we compare the inference efficiency, we see that a LAMA2 7B or a 5.2 model when compressed with PruneNet, they achieve significantly higher throughput than when compressed with SLIJIBD.
Now in this result we see that a model Lama 270 or maybe 5.2 model when compressed with PruneNet it can retain up to 90 or 95 percent performance even without needing any recovery fine-tuning which is a great achievement when we see the similar performance of the other structured pruning methods like Sky's GPT.
So to end our presentation, the key takeaway is that the prune net is highly reusable. You can learn the policy once and then you can use that policy to compress the model at any compression ratio later. And prune net is also much faster to compute. So to compress a llama 7B model, you can do it in just 15 minutes, which is significantly faster than sliced GPT. With that we end our presentation. Thank you.
