Neural Network Pruning and Compression Evaluation
Pruning and quantisation make a trained neural network smaller: pruning sets the least important weights to zero, and quantisation stores weights with fewer bits. Evaluating them means tracing how much held-out accuracy is lost at each level of compression.
가지치기와 양자화는 학습된 신경망을 작게 만듭니다. 가지치기는 덜 중요한 가중치를 0으로 만들고, 양자화는 가중치를 더 적은 비트로 저장합니다. 이를 평가한다는 것은 압축 수준마다 검증 자료의 정확도가 얼마나 줄어드는지 따라가 보는 것입니다.
How far can I shrink my trained network before its predictive performance drops noticeably?
학습된 신경망을 예측 성능이 눈에 띄게 떨어지기 전까지 얼마나 줄일 수 있는지 알고 싶습니다.
The method trains a multilayer perceptron, then without retraining removes the smallest weights globally or layer by layer, removes the same share at random as a control, and rounds weights to a few bits. Held-out accuracy or R squared is reported for every sparsity and bit width, with the largest compression that stays within a chosen tolerance.
When to use Neural Network Pruning and Compression Evaluation
- You need a smaller or faster network for deployment and want to know the cost in accuracy.
- You want to compare magnitude pruning against random pruning of the same size.
- You need to choose a bit width for storing weights.
When to use something else
- You want a smaller model trained to imitate a larger one: use Knowledge Distillation (Teacher-Student Model Compression)
- You want to choose the network size before training: use Neural Architecture Search (Random Search and Successive Halving over MLPs)
Assumptions and requirements
- Test rows resemble future data
- No fine-tuning after compression, so results are a lower bound on what retraining could keep
- Weights of a fully connected network only; biases are kept
What the analysis reports
- Test accuracy or R squared of the dense network
- Performance, remaining weights and compression ratio at each sparsity for global, layer-wise and random pruning
- Performance and storage ratio at each bit width
- Largest sparsity and smallest bit width within the tolerance
How to report it
Global magnitude pruning kept the test accuracy within [value] of the dense network up to [value] sparsity, and [value]-bit quantisation was the smallest bit width within the same tolerance.
Related methods
- Knowledge Distillation (Teacher-Student Model Compression)
- Neural Architecture Search (Random Search and Successive Halving over MLPs)
- Garson and Olden Neural Network Variable Importance
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with scikit-learn and direct computations (formulas, enumeration or simulation).
독립 계산. scikit-learn·직접 계산(식·열거·모의실험) 대조 참조 시험 1건 통과.
Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.
허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.
Run Neural Network Pruning and Compression Evaluation on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable and predictor (feature) columns
- Price
- 400 credits for one analysis up to 10,000 rows (complexity level 3); larger or wider data costs more. Optional methodologist review: 1800 credits.
- Checking
- Compared with independent computations
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.