NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Feature flow regularization: Improving structured sparsity in deep neural networks

Yue Wu, Yuan Lan, Luchan Zhang, Yang Xiang

TL;DR

The authors propose Feature Flow Regularization (FFR), a novel approach to compressing deep neural networks. By penalizing the length and curvature of the trajectory that data takes as it passes through hidden layers, FFR implicitly forces the network to learn highly sparse structures. This allows for massive parameter and FLOP reductions using simple one-shot pruning while maintaining high accuracy.

What Problem Does This Paper Address?

Deep Neural Networks (DNNs) are computationally expensive and memory-intensive, making them difficult to deploy on edge devices. While pruning (removing redundant weights or filters) is a standard solution, most existing structured pruning methods focus locally. They either impose constraints directly on the network's parameters (weights) or evaluate feature maps individually to find redundancies.

These methods miss the global "flow" of data through the network. The authors hypothesize that an efficient, sparse network should process data in a direct, uncomplicated way. If the trajectory of features from the input layer to the output layer is unnecessarily long or convoluted, the network likely contains redundant parameters.

Methods

The authors introduce the concept of Feature Flow, which treats the sequence of hidden layer activations for a given input as a trajectory (or curve) over time, where each layer represents a time step.

To smooth this trajectory, they add a Feature Flow Regularization (FFR) term to the standard training loss function. This term consists of two penalties:

  1. Length Penalty: Minimizes the $L_1$ norm of the difference between adjacent layers ($x_{l+1} - x_l$). This encourages the feature flow to be short.
  2. Curvature Penalty: Minimizes the $L_1$ norm of the second-order differences ($x_{l+1} - 2x_l + x_{l-1}$). This keeps the feature flow from bending too much, encouraging straight trajectories.

To handle dimension mismatches between layers (e.g., when spatial resolution drops), they use learnable projection matrices, similar to the shortcut connections in ResNets.

The Pipeline: The network is trained from scratch using the FFR loss. Because FFR naturally drives many feature maps to zero, the authors can then apply a simple, one-shot magnitude-based pruning step (removing filters with small norms) followed by a few epochs of fine-tuning.

Datasets

The paper evaluates the method on standard image classification benchmarks:

  • CIFAR-10: Used to evaluate VGG16 and ResNet56 architectures.
  • ImageNet: Used to evaluate the larger ResNet50 architecture.

Key Insights and Ideas

  • Viewing Networks as Dynamical Systems: The core "aha" moment is treating the forward pass of a DNN as a discretized ordinary differential equation (ODE). By forcing the "particle" (data) to travel in a straight, short line, the network naturally drops unnecessary transformations.
  • Implicit Parameter Sparsity: FFR doesn't explicitly force weights to zero. Instead, by constraining the features to change as little as possible between layers, it pushes the convolutional weights toward identity mappings or zeros.
  • Feature Map Collapse: The authors demonstrate that training with FFR causes a massive number of feature maps to become entirely zero-valued compared to standard training. If a feature map is entirely zeros, the filter that produced it—and the corresponding channels in the next layer—can be safely deleted without impacting the network's output.

Key Results

FFR achieves compression ratios comparable to, or better than, state-of-the-art iterative pruning methods, despite using a much simpler one-shot pruning approach.

  • VGG16 on CIFAR-10: Achieved a massive 90.2% parameter reduction and 61.2% FLOPs reduction with only a 0.66% drop in accuracy (error went from 6.10% to 6.76%).
  • ResNet56 on CIFAR-10: Achieved a 49.7% parameter reduction and 60.6% FLOPs reduction with a 1.05% accuracy drop.
  • ResNet50 on ImageNet: Achieved a 52.3% parameter reduction and 47.2% FLOPs reduction with a 2.68% Top-1 accuracy drop.

Limitations and Future Work

  • Hyperparameter Sensitivity: The penalties for length and curvature are controlled by hyperparameters ($k_1$ and $k_2$). These values are sensitive and must be manually tuned depending on the network architecture and the scale of the input data.
  • Unpredictable Sparsity: Because the regularization is applied to the features rather than the parameters, it is difficult to predetermine the exact target sparsity (e.g., you cannot easily tell the network "give me exactly 50% sparsity").
  • Future Work: The authors plan to perform a more rigorous theoretical mathematical analysis of FFR's effect on sparsity, and explore integrating FFR with other existing pruning techniques to push compression boundaries further.

Summary updated

BibTeX
@inproceedings{wu2023feature,
  author = {Yue Wu and Yuan Lan and Luchan Zhang and Yang Xiang},
  title = {{Feature flow regularization: Improving structured sparsity in deep neural networks}},
  booktitle = {Neural Networks},
  year = {2023},
  url = {https://openreview.net/forum?id=eVR882VcGyi},
}
Figure