orange2019220/relupruner — explained in plain English
Analysis updated 2026-05-18
Reduce ReLU operations in a ResNet18 model to speed up secure multi-party computation inference.
Prune a model to make homomorphic encryption based private inference faster.
Reproduce the pruning results on CIFAR-10, CIFAR-100, or Tiny ImageNet benchmarks.
Study the teacher-student distillation approach with progressive activation pruning.
| orange2019220/relupruner | nvlabs/isaaclabeureka | internrobotics/sim1 | |
|---|---|---|---|
| Stars | 139 | 138 | 141 |
| Language | Python | Python | Python |
| Last pushed | — | 2025-10-28 | — |
| Maintenance | — | Quiet | — |
| Setup difficulty | moderate | moderate | hard |
| Complexity | 4/5 | 4/5 | 5/5 |
| Audience | researcher | researcher | researcher |
Figures from each repo's GitHub metadata at analysis time.
Requires PyTorch and training compute for the teacher and student models, associated with an AAAI 2026 paper.
ReluPruner is a research tool that reduces the number of a specific type of operation inside a trained neural network, called a ReLU activation, while keeping the network's accuracy roughly the same. The reason to do this is that ReLU operations are expensive to handle when running a neural network privately using cryptographic techniques. Two of those techniques are secure multi-party computation and homomorphic encryption, which let someone run AI model predictions on sensitive data without revealing the data to the server. Both methods become much faster when the model uses fewer ReLU operations. The approach works in two stages. First, a full-size teacher model is trained normally. Second, a smaller student model is trained to imitate the teacher while gradually cutting away the least important ReLU activations. To decide which ones to remove, the method uses a scoring formula based on Taylor expansion, a mathematical way to estimate how much each activation contributes to the model's output. The pruning happens progressively during training rather than all at once, so the student model can adjust at each step. The README reports that this method can remove 90 to 95 percent of ReLU operations while keeping accuracy competitive on standard image classification benchmarks. The code is written in Python and uses PyTorch. It works with the CIFAR-10, CIFAR-100, and Tiny ImageNet image datasets and the ResNet18 model architecture. The repository includes scripts for training the teacher, training the pruned student, and validating the result. Parameters for controlling the pruning target ratio and the balance between distillation loss and task loss are passed as command-line flags. The work is associated with a paper published at the AAAI 2026 conference.
A research tool that removes 90 to 95 percent of a neural network's ReLU operations while keeping accuracy, to speed up privacy-preserving AI inference.
Mainly Python. The stack also includes Python, PyTorch.
The README does not state a license.
Setup difficulty is rated moderate, with roughly 1h+ to a first successful run.
Mainly researcher.
This repo across BitVibe Labs
Verify against the repo before relying on details.