Towards Regression-Free Neural Networks for Diverse Compute Platforms

Rahul Duggal, Hao Zhou, Shuo Yang, Jun Fang, Yuanjun Xiong, Wei Xia

Abstract

With the shift towards on-device deep learning, ensuring a consistent behavior of an AI service across diverse compute platforms becomes tremendously important. Our work tackles the emergent problem of reducing predictive inconsistencies arising as negative flips: test samples that are correctly predicted by a less accurate model, but incorrectly by a more accurate one. We introduce REGression constrained Neural Architecture Search (REG-NAS) to design a family of highly accurate models that engender fewer negative flips. REG-NAS consists of two components: (1) A novel architecture constraint that enables a larger model to contain all the weights of the smaller one thus maximizing weight sharing. This idea stems from our observation that larger weight sharing among networks leads to similar sample-wise predictions and results in fewer negative flips; (2) A novel search reward that incorporates both Top-1 accuracy and negative flips in the architecture search metric. We demonstrate that REG-NAS can successfully find desirable architectures with few negative flips in three popular architecture search spaces. Compared to the existing state-of-the-art approach, REG-NAS enables 33-48% relative reduction of negative flips.

Introduction

In the modern AI landscape, models are rarely deployed in isolation. Instead, developers often utilize a family of models tailored to different hardware: a lightweight model for edge devices and a high-capacity model for cloud-based inference. While we expect larger models to perform better overall, they frequently exhibit "negative flips" (or regression). A negative flip occurs when a sample correctly classified by a smaller, less accurate model is incorrectly classified by a larger, more accurate one. This inconsistency erodes user trust and complicates the deployment of AI services across heterogeneous platforms.

Standard Neural Architecture Search (NAS) focuses primarily on maximizing Top-1 accuracy within compute constraints. However, research indicates that Top-1 accuracy and the Negative Flip Rate (NFR) are largely uncorrelated. Simply selecting the most accurate model does not guarantee consistency with its smaller counterparts. To address this, we propose REGression constrained Neural Architecture Search (REG-NAS).

Methodology

Constrained Architecture Search (CAS)

REG-NAS is built on the hypothesis that maximizing weight sharing between models leads to more consistent sample-wise behavior. We introduce a "subset" rule where a larger target model must contain all the weights of the smaller reference model. This Constrained Architecture Search (CAS) limits the search space to models that "grow" from the reference model by:

  • Adding layers within existing blocks.
  • Expanding channels in existing filters.
  • Extending kernel sizes (e.g., utilizing the center $3 \times 3$ weights of a $5 \times 5$ kernel).

By enforcing this strict weight-sharing hierarchy, the search algorithm ensures that the larger model is structurally and parametrically an extension of the smaller one, rather than a completely different architecture.

Multi-Objective Search Reward

To explicitly optimize for consistency, REG-NAS employs an evolutionary search reward that balances accuracy and regression. The reward function is defined as:

$$\mathcal{R} = \lambda_1 \cdot \text{Top-1 Accuracy} - \lambda_2 \cdot \text{Negative Flip Rate}$$

By setting $\lambda_1 = \lambda_2 = 1$, the search identifies architectures that reside in the "sweet spot"—maintaining high accuracy while significantly reducing the NFR.

Experimental Evaluation

We evaluated REG-NAS using the ImageNet dataset across several popular super-network search spaces, including Once-for-All (OFA) (MobileNet-V3 and ResNet-50 variants), AttentiveNAS (FBNet-V3), and AlphaNet. This variety demonstrates the framework's ability to generalize across different architectural paradigms.

Key Findings

  1. Weight Sharing Efficacy: Joint design via weight sharing is significantly more effective at reducing regression than sequential training or distillation methods where a large model is trained to mimic a fixed smaller one.
  2. Transitivity of Consistency: We observed that NFR is transitive. If Model A is consistent with Model B, and Model B is consistent with Model C, then Model A is naturally consistent with Model C. This allows for the efficient search of a model "family" (Edge $\rightarrow$ Server $\rightarrow$ Cloud) in a continuous chain.
  3. Directional Search: Searching from "Small to Big" (using a small model as a reference to find a larger one) yields superior consistency compared to "Big to Small" approaches.

Results and Discussion

REG-NAS achieved a 33% to 48% relative reduction in negative flips compared to previous state-of-the-art methods like Focal Distillation. Crucially, this reduction in inconsistencies comes with a negligible impact on Top-1 accuracy, typically less than 0.3%.

In the ResNet search space, REG-NAS reduced the NFR from a baseline of 4.83% to 1.57%. The method proved robust across diverse hardware, maintaining consistency whether measured by FLOPs or actual latency on devices ranging from a Samsung Note 10 to an Nvidia 1080ti.

Conclusion

REG-NAS provides a robust framework for developing regression-free neural networks. By combining structural weight-sharing constraints with a multi-objective search reward, we can ensure that as models scale in size and accuracy, they remain consistent with their smaller counterparts. This is a vital step toward reliable, cross-platform AI deployment where the "expert" model in the cloud consistently supports the decisions made by the "scout" model at the edge.

Summary updated

BibTeX
@inproceedings{duggal2022towards,
  author = {Rahul Duggal and Hao Zhou and Shuo Yang and Jun Fang and Yuanjun Xiong and Wei Xia},
  title = {{Towards Regression-Free Neural Networks for Diverse Compute Platforms}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-19836-6\_34},
}
Figure