State-of-the-art neural network sparsification relies on alternating dense and sparse training phases. While computationally expensive, dense phases are critical for performance. Our empirical analysis reveals the mechanics behind this gain: upon reintroduction, previously masked parameters receive disproportionately large gradients that drive essential mask rewiring and parameter sign-flipping. Building on these insights, we optimize the performance-to-FLOPs Pareto frontier through three innovations: (1) zero-initializing masked parameters during dense phases to promote relevant sign flips, (2) shortening dense phases, and (3) replacing the dense phase entirely with a sparse rewiring phase that updates only the active mask and a small, high-gradient fraction of out-of-mask weights. Evaluated on CIFAR100 and ImageNet, our variant ARC (Alternating Rewiring Compression) matches baseline AC/DC performance at a fraction of the computational cost, establishing a superior performance-to-FLOPs frontier also compared to standard sparse-to-sparse algorithms. Experiments with GPT-2 on OpenWebText further show improvements in validation perplexity and average zero-shot performance
Figures & tables
Figure 1: Gradient–weight dynamics across AC/DC phases. Gradient versus weight scatter plots for layer4.0.conv2 of a 90% sparse ResNet18 on CIFAR100. Top and bottom rows show the beginning and end of each phase, respectively. During sparse phases, many active weights move toward small magnitude and small gradient. During dense phases, many reintroduced out-of-mask weights remain near zero but receive large gradients.
Figure 2: Timing of final sign alignment. For each parameter retained in the final sparse mask, we record the phase in which it flips sign for the last time. The y-axis is normalized by the final mask size. DW, D, S, and SC denote dense warmup, dense, sparse, and sparse cooldown phases for AC/DC; in ARC, the corresponding non-sparse phases are rewiring phases on At=St∪Gt . (a) In AC/DC, most final-mask parameters align during dense warmup, while later sign corrections occur mainly during dense phases. (b) The analogous ARC diagnostic is discussed after ARC is introduced in Section 4 .
Figure 3: Sparse phases preserve activation subspaces. Top- r activation Gram subspace similarity for layer3.1.conv2 of a 90% sparse ResNet18 on CIFAR100. We show an early and later AC/DC cycle. Sparse phases maintain higher subspace similarity. Dense phases show larger but smooth drift.
Figure 4: Reducing and sparsifying rewiring phases. Results for ResNet18 on CIFAR100. Left: varying the number of dense epochs per AC/DC cycle at 90% sparsity. Right: comparing AC/DC with ARC variants using different Gt budgets across target sparsities.
Figure 5: Performance versus theoretical FLOPs. Accuracy–FLOP tradeoff for AC/DC, ARC variants, and RigL on CIFAR100. The horizontal axis reports epoch-averaged theoretical training GFLOPs per image, including support-selection probes.
Sparsity=0.95
Sparsity=0.9
Sparsity=0.8
ARC (0.1)
73.91±0.21
74.45±0.14
74.94±0.21
ARC (0.1) + Zero init
73.94±0.26
74.74±0.36
75.42±0.19
ARC (0.3) + Zero init
75.17 ± 0.98
75.21 ± 0.26
75.54 ± 0.58
ARC (0.1) + Zero init 5-D, 15-S
73.76±0.34
74.44±0.06
75.16±0.20
AC/DC Baseline
73.77±0.17
74.70±0.40
75.08±0.30
AC/DC + Zero init
74.86 ± 0.38
75.07 ± 0.38
75.88 ± 0.20
Table 1: AC/DC, ARC and RigL on CIFAR100 with ResNet18.
Sparsity=0.7
Sparsity=0.5
Test Acc
GFLOPs
Test Acc
GFLOPs
ARC (0.2)
76.50 ± 0.21
13.34
77.82 ± 0.19
18.11
ARC (0.2) + Zero init
76.21±0.22
13.34
77.67±0.76
18.11
ARC (0.2) + Zero init 10-D, 20-S
76.20±0.08
12.59
77.40±0.27
17.36
AC/DC Baseline
75.89±0.31
19.01
77.433±0.30
21.52
AC/DC + Zero init
75.891 ± 0.74
19.01
77.82 ± 0.12
21.52
Table 2: AC/DC, ARC and RigL on ImageNet with DeiT-Small. We report top-1 accuracy (%) and epoch-averaged theoretical training GFLOPs per image, including support-selection probes.
Method
Top-1 (%)
Inference FLOPs
Training FLOPs
Published baselines
RigL 1× (ERK)
69.70±0.17
0.12×
0.13×
Top-KAST
71.96
0.08×
0.22×
AC/DC
73.14±0.20
0.11×
0.53×
Our runs
ARC–Stale
72.083±0.077
0.0920×
0.2321×
Table 3: ResNet50/ImageNet at 95% sparsity. Published baselines from Table 2 of ( Peste et al., 2021 ) and our three-seed ARC results. Inference FLOPs per image and full-run training FLOPs are normalized to dense; ARC includes selection probes. Top-KAST uses 95% forward and 50% backward sparsity.
Method
Validation loss ↓
Perplexity ↓
Zero-shot average ↑
AC/DC
3.13690
23.0327
36.27
RigL
3.13847
23.0685
35.67
ARC–Stale
3.06056
21.3395
36.35
ARC–Zero
3.05646
21.2521
37.29
Table 4: GPT-2 124M on OpenWebText at 80% target sparsity. Results use one training seed (1337) and the end-of-training checkpoint. The zero-shot average is the arithmetic mean of seven task scores (%). Bold indicates the best result among the compared sparse methods.
Appendix figures & tables13 assets
Supplementary material from the paper’s appendix.
Appendix
Figure 6: AC/DC & ARC Schematic. AC/DC finds a sparse network, by starting with a dense warmup, then alternating between dense and sparse phases and finally a sparse finetuning phase. ARC replaces the alternating dense phases with sparse rewiring phases.
Configuration
CIFAR100 Experiment
ImageNet Experiment
Dataset
CIFAR100
ImageNet
Model
ResNet18
DeiT-small
LR
0.1
0.05
WD
1e−4
1e−1
Epochs
150
300
Batch Size
128
256
Appendix
Table 5: Default training hyperparameters for ResNet18/CIFAR100 and DeiT-Small/ImageNet.
Configuration
CIFAR100 Experiment
ImageNet Experiment
ACDC/ARC Dense warmup epochs
15
15
ACDC/ARC Dense epochs
10
15
ACDC/ARC Sparse epochs
10
15
ACDC/ARC Sparse cooldown epochs
15
15
ARC - Batches to compute Gt
5
5
RigL - Dense gradient accumulation steps
100
10
Appendix
Table 6: Default AC/DC, ARC, and RigL settings for ResNet18/CIFAR100 and DeiT-Small/ImageNet. Shortened-phase configurations are specified separately in the corresponding experiments.
Figure 7: Gradient vs parameter scatter plots of parameters of layers of a 90% sparse ResNet18 model on CIFAR100. The plots are shown for the 3rd and 4th dense and sparse phases of the 10-Dense, 10-Sparse schedule of ACDC with Stale Init . (top) plots are at the beginning of a phase and (bottom) plots are at the end of a phase.
Figure 8: Gradient vs parameter scatter plots of parameters of layers of a 90% sparse ResNet18 model on CIFAR100. The plots are shown for the 3rd and 4th dense and sparse phases of the 3-Dense, 17-Sparse schedule of ACDC with Stale Init . (top) plots are at the beginning of a phase and (bottom) plots are at the end of a phase.
Figure 9: Replacing dense phases in AC/DC with updating only a random subset of parameters for CIFAR100 trained on ResNet18.
Task
AC/DC
ARC–Stale
ARC–Zero
RigL
Dense GPT-2 reference
OpenBookQA [ 48 ]
26.80
27.00
26.20
25.40
26.40
ARC-Challenge [ 9 ]
23.21
23.38
23.55
22.10
22.10
ARC-Easy [ 9 ]
38.05
37.63
39.23
37.24
40.24
WinoGrande [ 64 ]
50.28
48.86
52.64
50.05
51.85
PIQA [ 4 ]
59.09
59.90
61.59
60.34
62.40
HellaSwag [ 76 ]
29.24
29.67
29.76
28.75
31.50
Appendix
Table 7: Zero-shot evaluation of GPT-2 124M. Scores are percentages from one training seed (1337). Bold indicates the best score among the four sparse methods. The final column evaluates the released dense OpenAI GPT-2 checkpoint as an external reference.
Method
Top-1 accuracy (%)
AC/DC–Stale
76.29±0.06
ARC–Stale
75.96±0.14
AC/DC–Zero
76.41±0.07
ARC–Zero
76.06±0.07
Appendix
Table 8: 2:4 semi-structured ResNet50 on ImageNet. Top-1 accuracy (%) is reported as the mean and 95% normal-approximation confidence interval over three seeds. ARC uses 75% density in eligible layers during rewiring; AC/DC uses fully dense decompression.
Figure 10: Activation subspace similarity across the first four AC/DC cycles. For layer3.1.conv2 of a 90% sparse ResNet18 trained on CIFAR100, we compare the subspaces spanned by the top r∈{2,3,5,10} activation Gram eigenvectors. We report consecutive-checkpoint similarity Sr(t−1,t) and similarity to the first checkpoint of each phase Sr(0,t) . Sparse phases consistently preserve leading activation subspaces more strongly than dense phases, especially for r=5 and r=10 . Dense phases induce larger but smooth drift, consistent with their role as rewiring windows.
Figure 11: Activation eigendirection similarities in the first AC/DC cycle. We compare activation-Gram eigenvectors for layer3.1.conv2 of a 90% sparse ResNet18 on CIFAR100 during the sparse phase (epochs 24–34) and dense phase (epochs 34–44). Within each panel, the top row compares consecutive checkpoints and the bottom row compares checkpoints with the phase start. Rows and columns index eigenvectors at the earlier and later checkpoints, respectively.
Figure 12: Activation eigendirection similarities in the fourth AC/DC cycle. We compare activation-Gram eigenvectors for layer3.1.conv2 of a 90% sparse ResNet18 on CIFAR100 during the sparse phase (epochs 84–94) and dense phase (epochs 94–104). Within each panel, the top row compares consecutive checkpoints and the bottom row compares checkpoints with the phase start. Rows and columns index eigenvectors at the earlier and later checkpoints, respectively.
Figure 13: The plot shows the fraction of weights of ResNet18 that flip their sign for the last time during a specific phase of AC/DC (3-dense, 17-sparse). Panels compare sign convergence for parameters in (a) the final converged mask and (b) the stable core weights found in the intersection of all masks.
Figure 14: The plot shows the fraction of weights of specific layers of ResNet18 that flip their sign for the last time during a specific phase of AC/DC (10-dense, 10-sparse). Panels compare sign convergence for parameters of layers layer2.0.conv2 (a) and layer4.0.conv2 in the final converged mask.