Coordinate Descent for Network Linearization

Vlad Rakhlin, Amir Jevnisek, Shai AvidanarXiv 2025 · DOI

Introduction

Private Inference (PI) enables secure machine learning by allowing a service provider to run models on user data without exposing the raw input or the model weights. While linear operations like convolutions are computationally efficient in cryptographic protocols, non-linear activations—specifically Rectified Linear Units (ReLUs)—impose a significant bottleneck. ReLUs require complex cryptographic translations, leading to high communication costs and latency.

To address this, researchers aim to "linearize" neural networks by replacing ReLUs with identity functions. This presents a discrete optimization challenge: identifying the subset of ReLUs that can be removed with minimal impact on model accuracy. Traditional "Selective" methods often rely on smooth approximations (e.g., $L_1$ regularization) which can suffer from accuracy "cliffs" when masks are eventually binarized. This paper introduces a Block Coordinate Descent (BCD) approach that optimizes ReLU reduction directly in the discrete domain.

Methodology: Block Coordinate Descent

The proposed framework avoids the pitfalls of differentiable relaxations by working with binary masks from the outset. The core algorithm follows an iterative process:

  1. Iterative Reduction: ReLUs are removed in discrete chunks, determined by a Delta ReLU Count (DRC) parameter.
  2. Random Trials (RT): In each iteration, multiple random subsets of ReLUs are sampled for potential removal. The algorithm evaluates the impact of each subset on the training loss.
  3. Greedy Selection: The subset causing the least performance degradation is selected for removal.
  4. Conditional Fine-tuning: If accuracy falls below a specified Accuracy Degradation Tolerance (ADT), a brief fine-tuning phase is triggered to recover performance.
  5. Direct $L_0$ Optimization: By staying in the $L_0$ domain, the solution remains sparse by design, eliminating the "hard thresholding" penalty seen in LASSO-based methods.

Experimental Results

The researchers evaluated the BCD approach on ResNet18 and WideResNet22-8 architectures across three standard benchmarks: CIFAR-10, CIFAR-100, and TinyImageNet.

Performance comparison across CIFAR-10, CIFAR-100, and TinyImageNet datasets showing the proposed method (blue) consistently outperforming existing baselines at various ReLU budgets.

As shown in the results, the BCD method consistently achieves state-of-the-art accuracy, particularly at low ReLU budgets. On CIFAR-100 with a ResNet18 backbone, it improved accuracy by approximately 4% at a 6K ReLU budget compared to previous methods like SNL.

Stackability and Efficiency

A key advantage of this method is its "stackability." It can be used as a post-processor to further optimize models already linearized by other techniques. For instance, when applied on top of AutoRep for CIFAR-100, the method achieved 72.9% accuracy with only 6K ReLUs, whereas the original AutoRep required 15K ReLUs to reach similar performance—a 2x improvement in efficiency.

Comparison of accuracy at different ReLU budgets between AutoRep and the proposed BCD method, demonstrating significant efficiency gains.

Discussion and Insights

The success of the BCD approach supports the Golden Set Hypothesis: the idea that a specific subset of essential ReLUs exists and can be identified through greedy elimination. Furthermore, by avoiding smooth approximations, the model does not rely on "leaked" information from non-binary masks during training, leading to more stable performance after linearization.

In some cases, the linearized models even outperformed the original full-ReLU baselines. This suggests that strategic ReLU reduction can serve as a form of regularization, potentially improving generalization.

Conclusion

The Block Coordinate Descent approach offers a robust solution for network linearization in Private Inference. By optimizing directly in the discrete domain, it achieves superior accuracy-efficiency trade-offs compared to differentiable methods. While the iterative nature of the algorithm increases training time, the significant reduction in communication costs during inference makes it a compelling choice for practical PI deployments.

Summary updated

BibTeX
@misc{rakhlin2025coordinate,
  author = {Vlad Rakhlin and Amir Jevnisek and Shai Avidan},
  title = {{Coordinate Descent for Network Linearization}},
  year = {2025},
  eprint = {2511.11781},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.11781},
}
Figure