First Order Taylor Approximations for Component Importance

29 concepts25 papers1 proposal

To optimize, prune, or interpret a deep neural network, we fundamentally need to answer one question: How much does a specific component matter to the model's performance?

Whether that component is an individual weight, a neuron, an entire convolutional filter, or a multi-modal feature map, the gold standard for measuring its importance is direct evaluation. We remove the component, run the model on our dataset, and measure the change in the loss function ($\Delta L$).

However, this direct approach suffers from a severe combinatorial explosion. If a network contains thousands of filters, evaluating each one independently requires thousands of forward passes across the dataset. For large-scale models, this exhaustive search is computationally intractable.

The Intuition of the First-Order Taylor Proxy

Instead of physically removing a component and re-running the network, we can approximate its impact by looking at the local geometry of the loss landscape.

If we treat the loss $L$ as a function of a network parameter or activation $x$, we can express the change in loss when $x$ is perturbed using a Taylor expansion:

$$\Delta L = L(x + \Delta x) - L(x) = \frac{\partial L}{\partial x}\Delta x + \frac{1}{2}\frac{\partial^2 L}{\partial x^2}(\Delta x)^2 + \dots$$

When we completely remove or prune a component, we are effectively forcing its value to zero. This means the perturbation is $\Delta x = -x$. Dropping the higher-order terms leaves us with the first-order Taylor approximation:

$$\Delta L \approx -\frac{\partial L}{\partial x} x$$

By taking the absolute value, we obtain a computationally elegant importance metric: $\left| x \cdot \frac{\partial L}{\partial x} \right|$.

The gradient $\frac{\partial L}{\partial x}$ represents the slope of the loss landscape, and $x$ represents our current distance from zero. The product of the two estimates how much the loss will "jump" if we slide $x$ all the way to zero. Crucially, because gradients are already computed during standard backpropagation, we can estimate the importance of every single component in the network simultaneously with just a single backward pass.

Scaling from Elements to Structures

While the math applies directly to scalar weights, modern network compression requires pruning structural components like convolutional channels or filters to achieve real-world hardware acceleration.

Molchanov et al. demonstrated this scaling property in Pruning Convolutional Neural Networks for Resource Efficient Inference by evaluating the importance of entire feature maps. By computing the absolute product of a feature map's activation and its corresponding loss gradient, the authors created a highly efficient ranking metric for structural pruning.

To evaluate larger blocks or tensors, the first-order Taylor expansion exhibits an incredibly useful property: additivity. Because the first-order expansion is linear, the estimated importance of a structural component is simply the sum of the estimated importances of its constituent elements. As Huang et al. leveraged in ElasticTrainer: Speeding Up On-Device Training with Runtime Elastic Tensor Selection, the total contribution of a tensor can be approximated with low overhead by aggregating the first-order gradients of its individual weights. This allows frameworks to globally rank and filter components across the entire network architecture simultaneously, a strategy also utilized by Lin et al. in Accelerating Convolutional Networks via Global & Dynamic Filter Pruning and You et al. in Gate Decorator: Global Filter Pruning Method for Accelerating Deep Convolutional Neural Networks.

Alternative Gradient Proxies

Researchers have extended this core intuition by applying the first-order Taylor expansion to different internal variables of the network:

  • Batch Normalization Parameters: Instead of looking directly at activations or weights, Long et al. in Loss-Driven Channel Pruning of Convolutional Neural Networks approximated channel importance by calculating the Taylor expansion relative to the scaling and shifting parameters ($\gamma$ and $\beta$) of Batch Normalization layers. This elegantly reuses existing backpropagation gradients without requiring any extra forward passes.
  • Architecture Parameters: In differentiable neural architecture search (NAS), Yang et al. developed OStr-DARTS: Differentiable Neural Architecture Search based on Operation Strength. Instead of relying on weight magnitudes, they used a first-order Taylor expansion to approximate how the final loss changes with respect to the architecture parameters themselves, mitigating the classic degeneration issues of DARTS.

Applications Beyond Static Pruning

The extreme efficiency of first-order importance estimation makes it a versatile tool across several distinct domains in deep learning:

  • Dynamic and Resource-Aware Training: Rather than pruning a model post-training, frameworks can use Taylor approximations on the fly. For instance, Huang et al. introduced Towards Green AI in Fine-tuning Large Language Models via Adaptive Backpropagation, which dynamically prioritizes weight updates during LLM fine-tuning. By calculating which tensors offer the highest expected loss reduction per unit of compute, they bypass expensive backpropagation steps for low-impact parameters.
  • Preventing Catastrophic Forgetting: In continual learning, Paik et al. proposed Overcoming Catastrophic Forgetting by Neuron-Level Plasticity Control. They used a normalized Taylor expansion criterion to identify which neurons are most critical to a previously learned task, selectively reducing their plasticity (learning rate) to preserve old memories while learning new ones.
  • Efficient Model Interpretability: To explain 3D-CNN video classifications, Uchiyama et al. developed Visually explaining 3D-CNN predictions for video classification with an adaptive occlusion sensitivity analysis. Instead of running hundreds of forward passes with different physical occlusion masks, they used a first-order Taylor expansion to estimate the network's sensitivity to multiple occlusion patterns simultaneously from a single gradient calculation.

Key Foundational Work

Accelerating Convolutional Networks via Global & Dynamic Filter Pruning (2018) — contributed 1 concept elements to this direction.
Pruning Convolutional Neural Networks for Resource Efficient Inference (2017) — contributed 1 concept elements to this direction.
History & citationVersion 1 · 2026-10-04

Current · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_gradient_based_importance_estimation_266c39a8,
  title = {gradient-based importance estimation},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/gradient-based-importance-estimation/rdr_266c39a89fa74db18d4393a096d35b5f},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-25},
}

This exact version (version 1, frozen text):

@misc{lacuna_gradient_based_importance_estimation_266c39a8_v1,
  title = {gradient-based importance estimation},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/gradient-based-importance-estimation/rdr_266c39a89fa74db18d4393a096d35b5f/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-25},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake