[Paper Review] BlockSwap: Fisher-guided Block Substitution for Network Compression on a Budget
BlockSwap is a fast, Fisher information-guided method for compressing deep neural networks by substituting blocks with cheaper alternatives to meet a target parameter budget. By evaluating candidate architectures using a single minibatch to compute Fisher potential, it identifies high-performing mixed-blocktype networks in under 5 minutes on a single GPU, outperforming both single-blocktype and baseline compression methods on CIFAR-10, ImageNet, and COCO.
The desire to map neural networks to varying-capacity devices has led to the development of a wealth of compression techniques, many of which involve replacing standard convolutional blocks in a large network with cheap alternative blocks. However, not all blocks are created equally; for a required compute budget there may exist a potent combination of many different cheap blocks, though exhaustively searching for such a combination is prohibitively expensive. In this work, we develop BlockSwap: a fast algorithm for choosing networks with interleaved block types by passing a single minibatch of training data through randomly initialised networks and gauging their Fisher potential. These networks can then be used as students and distilled with the original large network as a teacher. We demonstrate the effectiveness of the chosen networks across CIFAR-10 and ImageNet for classification, and COCO for detection, and provide a comprehensive ablation study of our approach. BlockSwap quickly explores possible block configurations using a simple architecture ranking system, yielding highly competitive networks in orders of magnitude less time than most architecture search techniques (e.g. under 5 minutes on a single GPU for CIFAR-10). Code is available at https://github.com/BayesWatch/pytorch-blockswap.
Motivation & Objective
- To address the challenge of efficiently finding high-performing, mixed-blocktype neural network architectures under strict parameter budgets.
- To overcome the prohibitive computational cost of exhaustive search or neural architecture search (NAS) for block substitution in compressed networks.
- To develop a method that quickly ranks candidate architectures without full training, enabling fast deployment on resource-constrained devices.
- To validate that non-uniform block substitution—where different blocks are replaced with different cheap alternatives—yields better performance than uniform substitution or standard distillation.
- To demonstrate the method's effectiveness across diverse benchmarks, including image classification (CIFAR-10, ImageNet) and object detection (COCO).
Proposed method
- Randomly sample a set of candidate mixed-blocktype architectures by replacing each block in the original network with one of several available cheap block types, ensuring the total parameter count stays within the target budget.
- Compute the Fisher potential for each candidate network by passing a single minibatch through it and summing the empirical Fisher information across all blocks, which estimates the network's sensitivity to parameter updates.
- Rank the candidate architectures based on their Fisher potential, selecting the highest-ranked model as the student network.
- Train the selected student using knowledge distillation with attention transfer, where the student is guided by the feature maps of the original teacher network.
- Use a single forward pass per candidate to estimate performance potential, avoiding full training or expensive search loops.
- Leverage the assumption that higher Fisher potential correlates with better generalization and representational capacity, enabling fast, accurate architecture selection.
Experimental results
Research questions
- RQ1Can a fast, single-batch Fisher-based ranking method effectively identify high-performing mixed-blocktype neural network architectures under a parameter budget?
- RQ2Does non-uniform block substitution—where different blocks are replaced with different cheap alternatives—yield better performance than uniform substitution or standard distillation?
- RQ3How does BlockSwap compare to existing compression techniques like depth/width scaling, pruning, or single-blocktype substitution in terms of accuracy and search efficiency?
- RQ4Can BlockSwap generalize across different tasks and datasets, including image classification and object detection?
- RQ5Is the Fisher potential a reliable proxy for final model performance when used for architecture ranking?
Key findings
- BlockSwap identifies high-performing mixed-blocktype networks in under 5 minutes on a single GPU for CIFAR-10, drastically reducing search time compared to NAS methods.
- On ImageNet, BlockSwap's 8M-parameter student achieved a top-1 error of 26.24%, outperforming the teacher (26.73%) and a single-blocktype G(N) student (30.16%) at 3.1M parameters.
- At 8M parameters, BlockSwap's student achieved a top-5 error of 7.75%, surpassing the teacher by 0.82 percentage points despite using nearly 3× fewer parameters.
- On COCO detection, the BlockSwap backbone (3M parameters) achieved an AP of 23.4, outperforming the single-blocktype ResNet-34-G(N) backbone (AP 22.3) with the same parameter count.
- The Fisher potential ranking metric showed high correlation with final model performance, validating its use as a fast, reliable proxy for architecture selection.
- Ablation studies confirmed that mixed-blocktype networks consistently outperform single-blocktype or uniformly substituted networks, demonstrating the benefit of non-uniform block substitution.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.