Live data from Hacker News

SparseGPT: Language Models Can Be Accurately Pruned in One-Shot

arxiv.org

41–50 of 66 posts

Re: SparseGPT: Language Models Can Be Accurately Pruned in One-Shot

#41
post #21
post #20

Neat paper. Planning on reading more in-depth over the weekend, but more fundamental than just applications to GPT their insights are: - Existing pruners were written for models that are order-of-magnitudes smaller than any in the modern GPT family. They grow in linear time with the amount of input parameters so they're unequipped to work on current architectures. The best existing pruner performs takes 4.3h for a 1.…

Another random thought: Most of these general purpose pruning approaches rely on randomly calculating the X vector for which they want to measure output loss of the layer. In theory it's possible to feed actual datasets into these models as well, which could be another way to get a sparse model that's more acutely optimized towards one task. The original model produces the X activations on each layer, and these are u…

I believe you are correct, I worked on a summer research project at NYU in 2018 based on https://arxiv.org/abs/1805.12185

As part of that project I constructed an API that took a small dataset and a model, launched a K8s pod and ran something like this from the paper:

> The pruning defense works as follows: the defender exercises the DNN received from the attacker with clean inputs from the validation dataset, D_valid, and records the average activation of each neuron. The defender then iteratively prunes neurons from the DNN in increasing order of average activations and records the accuracy of the pruned network in each iteration. The defense terminates when the accuracy on the validation dataset drops below a pre-determined threshold. We note that pruning has been proposed in prior work for n

Obviously this wasn't on transformers but the idea is similar.

Re: SparseGPT: Language Models Can Be Accurately Pruned in One-Shot

#43
post #14
post #9

Once you prune your model, can you get even better performance by re-training it? I've heard theories that this is the function of sleep in brains.

It sounds nice (maybe too nice?). I always wanted to see that it would be necessary to have a "sleeping" phase in AI. It always felt weird that we have to sleep, it doesn't seem to give any evolutionary advantages.

I have an unbaked theory, but the very short version is:

- Animals that have peaks of energy use outcompete animals that have a steady-state energy use. Catch the animal, then rest and recover. For any given amount of energy, this means we can recruit more in a smaller window compared to an animal that plods along with no recuperative phase.

- Many things happen when you're sleeping. Rather than having everything running 24/7, having different phases means we can specialise action and recovery. Since the time is already driven by energy demands, many parts of our body and mind leverage it for different purposes.

Re: SparseGPT: Language Models Can Be Accurately Pruned in One-Shot

#44
post #14
post #9

Once you prune your model, can you get even better performance by re-training it? I've heard theories that this is the function of sleep in brains.

It sounds nice (maybe too nice?). I always wanted to see that it would be necessary to have a "sleeping" phase in AI. It always felt weird that we have to sleep, it doesn't seem to give any evolutionary advantages.

Continual learning. When models will do that, they will have to sleep as well to avoid catastrophic forgetting.

Re: SparseGPT: Language Models Can Be Accurately Pruned in One-Shot

#45
post #44
post #14

Earlier quoted context omitted.

It sounds nice (maybe too nice?). I always wanted to see that it would be necessary to have a "sleeping" phase in AI. It always felt weird that we have to sleep, it doesn't seem to give any evolutionary advantages.

Continual learning. When models will do that, they will have to sleep as well to avoid catastrophic forgetting.

[dead]

Re: SparseGPT: Language Models Can Be Accurately Pruned in One-Shot

#46
post #44
post #14

Earlier quoted context omitted.

It sounds nice (maybe too nice?). I always wanted to see that it would be necessary to have a "sleeping" phase in AI. It always felt weird that we have to sleep, it doesn't seem to give any evolutionary advantages.

Continual learning. When models will do that, they will have to sleep as well to avoid catastrophic forgetting.

[dead]

Re: SparseGPT: Language Models Can Be Accurately Pruned in One-Shot

#47
post #14

Earlier quoted context omitted.

It sounds nice (maybe too nice?). I always wanted to see that it would be necessary to have a "sleeping" phase in AI. It always felt weird that we have to sleep, it doesn't seem to give any evolutionary advantages.

I have an unbaked theory, but the very short version is: - Animals that have peaks of energy use outcompete animals that have a steady-state energy use. Catch the animal, then rest and recover. For any given amount of energy, this means we can recruit more in a smaller window compared to an animal that plods along with no recuperative phase. - Many things happen when you're sleeping. Rather than having everything run…

1 day of in-context learning and 1 night of fine-tuning on context. that's my pet theory, just shooting from the hip as a total layperson.

Re: SparseGPT: Language Models Can Be Accurately Pruned in One-Shot

#49
post #32

Earlier quoted context omitted.

I don't think so, from the abstract it's more like JPEG for LLMs.

One hopes it's more like PNG for LLMs ?

It's lossy rather than lossless, and the impact can be dialled up or down depending on space requirements.

Re: SparseGPT: Language Models Can Be Accurately Pruned in One-Shot

#50
post #20

Neat paper. Planning on reading more in-depth over the weekend, but more fundamental than just applications to GPT their insights are: - Existing pruners were written for models that are order-of-magnitudes smaller than any in the modern GPT family. They grow in linear time with the amount of input parameters so they're unequipped to work on current architectures. The best existing pruner performs takes 4.3h for a 1.…

> lottery ticket hypothesis

For those that, like me, didn't know the reference: https://arxiv.org/abs/1803.03635

Post reply on HN