Pruning with regrowth is a class of iterative model compression algorithms that periodically remove less important weights (pruning) and then selectively regrow new connections in promising areas of the parameter space. Unlike static pruning, this dynamic process allows the network topology to evolve during training, exploring sparse architectures that may achieve better performance than those found by removal alone. Key implementations include Dynamic Network Surgery and Sparse Evolutionary Training (SET).
Glossary
Pruning with Regrowth

What is Pruning with Regrowth?
An advanced neural network compression technique that dynamically explores optimal sparse structures.
The regrowth phase is typically guided by gradient signals or other importance metrics, allowing the algorithm to recover from overly aggressive pruning and discover more efficient substructures. This exploration is often framed within the Lottery Ticket Hypothesis, seeking a 'winning ticket' sparse subnetwork. The technique is a core component of compression scheduling, balancing sparsity targets with accuracy preservation through continuous structural adaptation.
Key Characteristics of Pruning with Regrowth
Pruning with regrowth algorithms dynamically explore the sparse connectivity of a neural network by periodically removing less important parameters and regrowing new connections in promising areas of the parameter space.
Dynamic Topology Exploration
Unlike static pruning, pruning with regrowth treats the network's connectivity as a mutable structure. The algorithm performs an ongoing search for an optimal sparse sub-network by:
- Pruning: Removing connections with the smallest magnitudes or lowest scores.
- Regrowing: Adding new connections in locations suggested by high gradient signals or other heuristics.
- Iteration: Repeating this cycle allows the network to escape suboptimal sparse configurations discovered early in training. This is a form of architecture search within a fixed parameter budget.
Fixed Parameter Budget
A core constraint in these algorithms is maintaining a target sparsity level (e.g., 90% zeros). After each pruning-and-regrowth cycle, the total number of non-zero parameters is restored to this predefined budget. This ensures the computational and memory benefits of sparsity are preserved throughout training. The budget can be applied globally or per layer. Managing this budget is what differentiates it from purely pruning-aware training, which only removes parameters.
Regrowth Heuristics & Criteria
The intelligence of the algorithm lies in how it selects connections to regrow. Common heuristics include:
- Gradient-based Regrowth: Connections are regrown where the gradient of the loss with respect to a zeroed weight is large, indicating high potential to reduce loss.
- Random Regrowth: A fraction of new connections are assigned randomly, providing exploration.
- Momentum-based: Historical gradient information guides regrowth to persistent promising areas. The choice of heuristic directly impacts the speed of convergence and final accuracy, balancing exploration vs. exploitation of the parameter space.
Connection to the Lottery Ticket Hypothesis
Pruning with regrowth is a practical implementation of searching for a 'winning ticket'—a sparse, trainable subnetwork—as proposed by the Lottery Ticket Hypothesis. However, instead of finding a static ticket at initialization, it dynamically evolves the ticket during training. If a pruned connection proves important later (evidenced by a large gradient), the regrowth mechanism can restore it. This makes the algorithm more robust and less dependent on finding the perfect initial sparse mask.
Algorithmic Variants: SET & Dynamic Surgery
Two seminal algorithms exemplify this paradigm:
- Sparse Evolutionary Training (SET): Initializes a network with a sparse Erdős–Rényi random connectivity. Periodically, it removes the smallest-magnitude weights and regrows new random connections. It relies on the random exploration of new pathways.
- Dynamic Network Surgery: A more guided approach. It prunes low-magnitude weights but only regrows connections where the gradient exceeds a high threshold. It also uses momentum to track the importance of connections over time, reducing noisy regrowth decisions. Both maintain a fixed parameter count.
Benefits Over Pure Pruning
This approach addresses key limitations of iterative magnitude pruning:
- Mitigates Irreversible Damage: In pure pruning, if an important weight is mistakenly removed early, it's lost forever. Regrowth provides a recovery mechanism.
- Explores Better Topologies: It can discover high-performance sparse structures that are not reachable by only removing weights from a dense network.
- Improved Final Accuracy: For a given target sparsity, pruning with regrowth often achieves higher accuracy than one-shot or iterative pruning, as it refines the connectivity. The trade-off is increased algorithmic complexity and training time overhead.
Pruning with Regrowth vs. Static Pruning
This table contrasts the dynamic, topology-exploring nature of pruning with regrowth algorithms against the more traditional, one-way approach of static pruning.
| Feature / Metric | Pruning with Regrowth | Static Pruning |
|---|---|---|
Core Mechanism | Cyclic: Prune, then regrow new connections in promising areas | One-way: Remove parameters once, then fine-tune the remaining structure |
Parameter Space Exploration | High. Actively explores optimal sparse connectivity patterns. | Low. Settles into the subnetwork defined by the initial pruning mask. |
Typical Algorithm | Dynamic Network Surgery, Sparse Evolutionary Training (SET) | Iterative Magnitude Pruning, One-Shot Pruning |
Connection to Lottery Ticket Hypothesis | Seeks to discover a 'winning ticket' through dynamic search. | Assumes a static 'winning ticket' exists and attempts to find it. |
Final Network Topology | Evolved. May differ significantly from the initial architecture. | Static. A strict subset of the original network's connections. |
Hardware Efficiency of Final Model | Variable. May produce irregular sparsity; often requires sparse kernels. | Predictable. Can be structured for direct hardware acceleration. |
Training/Compression Overhead | High. Continuous topology adjustment requires more compute cycles. | Moderate. Overhead is primarily from fine-tuning after pruning steps. |
Best For | Research into optimal sparse architectures, domains where topology is unknown. | Production deployment where a fixed, efficient model artifact is required. |
Frameworks and Implementations
Pruning with regrowth is not a monolithic algorithm but a class of techniques implemented across various research frameworks and production libraries. These implementations provide the essential scaffolding—scheduling, criteria, and connection management—to explore optimal sparse neural architectures dynamically.
Dynamic Network Surgery
Dynamic Network Surgery is an early and influential algorithm that introduced the core prune-and-regrow loop. It operates by:
- Iteratively pruning connections with weights below a threshold.
- Regrowing connections based on high gradient magnitude, indicating untapped potential.
- Maintaining a fixed parameter budget throughout training, forcing the network to explore the sparse parameter space efficiently. This method demonstrated that networks could achieve high sparsity with minimal accuracy loss by not treating pruning as a one-way operation.
Sparse Evolutionary Training (SET)
Sparse Evolutionary Training (SET) is a foundational algorithm that starts with a randomly initialized, sparse Erdős–Rényi network. During training, it periodically:
- Removes a fraction of the smallest-weight connections.
- Regrows new random connections to maintain the fixed sparsity level.
- This evolutionary process allows the network topology to adapt, often outperforming static sparse masks. SET proved that training a network from scratch with dynamic sparsity is feasible and effective.
Rigging the Lottery Ticket (RLT)
Building on the Lottery Ticket Hypothesis, Rigging the Lottery Ticket (RLT) is an algorithm that finds high-performing sparse subnetworks through regrowth. The process is:
- Prune a large percentage of weights from a pre-trained network.
- Regrow connections based on gradient information, not just magnitude.
- Re-train the new subnetwork. This method actively 'rigs' the lottery by guiding the regrowth process with gradient signals, leading to discovered subnetworks that can match or exceed the performance of those found by iterative magnitude pruning alone.
Deep Rewiring (DeepR)
Deep Rewiring (DeepR) frames pruning and regrowth as a sampling process from a probability distribution over connections, regulated by a log-barrier term in the loss function. This approach:
- Encourages exploration of the parameter space by preventing any connection from being permanently removed.
- Uses a stochastic update rule where connections can be regrown based on their potential contribution.
- Provides a theoretical foundation connecting the algorithm to Bayesian sampling, offering insights into why dynamic sparsity aids learning.
Implementation in PyTorch / TensorFlow
While not always bundled as high-level APIs, the core mechanics of pruning with regrowth are implemented using standard deep learning frameworks:
- Mask Management: Sparse connectivity is enforced using binary masks applied to weight tensors.
- Gradient Tracking: The
register_full_backward_hookin PyTorch or custom gradient tapes in TensorFlow are used to track gradients for regrowth decisions. - Custom Optimizers: Algorithms often require modifying the optimizer step to include the mask update (prune/regrow) logic. Libraries like TorchPruner or TensorFlow Model Optimization Toolkit provide foundational pruning APIs that can be extended for regrowth.
Hardware-Aware Implementations
For real-world deployment, naive regrowth can create irregular sparsity patterns that are inefficient on hardware. Advanced implementations incorporate hardware-aware constraints:
- Structured Regrowth: Regrowing entire filters, channels, or blocks (2:4 sparsity) to align with hardware accelerators like NVIDIA's Ampere architecture.
- Pattern-Locked Gradients: Only allowing regrowth in hardware-supported sparse patterns.
- Search-Based Methods: Using Hardware-Aware Neural Architecture Search (HW-NAS) to explore the space of sparse, regrowable architectures under direct latency or energy constraints.
Frequently Asked Questions
Pruning with regrowth is a dynamic model compression strategy that iteratively removes and re-adds neural network connections to discover optimal sparse architectures. This FAQ addresses common questions about its mechanisms, benefits, and implementation.
Pruning with regrowth is an iterative model compression algorithm that periodically removes less important neural network weights (pruning) and then creates new connections in other parts of the network (regrowth) to explore more efficient sparse structures. It operates in a cyclical fashion: first, connections with the smallest magnitudes or lowest scores are cut, creating a sparse model. Next, based on criteria like gradient signals or random exploration, new connections are regrown from a zero-initialized state into previously pruned or new locations. This process of destructive pruning followed by constructive regrowth is repeated over many training steps, allowing the network topology to evolve dynamically rather than being statically pruned once.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Pruning with regrowth is part of a broader ecosystem of algorithms and strategies for dynamically shaping neural network architectures. These related concepts define the scheduling, search, and adaptive mechanisms used to explore optimal sparse structures.
Dynamic Network Surgery
An iterative compression technique that performs pruning and connection regrowth in real-time during training. Unlike static pruning, it allows the network topology to evolve dynamically.
- Key Mechanism: Uses gradient-based heuristics to identify and prune unimportant weights while simultaneously regrowing connections in regions with high gradient magnitude.
- Objective: To continuously explore the sparse parameter space, avoiding irreversible removal of potentially useful connections.
- Contrast with Pruning with Regrowth: Often used synonymously, but 'surgery' emphasizes the continuous, fine-grained cutting and splicing of connections.
Sparse Evolutionary Training (SET)
An algorithm that initializes and maintains a sparse network throughout training by periodically removing the smallest weights and regrowing random new connections.
- Fixed Sparsity: Maintains a user-defined, constant level of sparsity (e.g., 80% zeros) from start to finish.
- Evolutionary Phase: After each training epoch, a fraction of the smallest-magnitude weights are pruned, and an equal number of new connections are randomly initialized elsewhere in the network.
- Use Case: Efficiently trains large networks from scratch with a fraction of the parameters, reducing memory and compute costs during training itself.
Lottery Ticket Hypothesis
A foundational theory that motivates pruning with regrowth. It posits that within a dense, randomly-initialized network, there exists a sparse subnetwork that, if trained in isolation, can match the original network's performance.
- Winning Ticket: The optimal sparse subnetwork found through iterative magnitude pruning.
- Implication for Regrowth: Suggests the existence of high-performance sparse architectures, but the initial pruning may destroy them. Regrowth algorithms actively search for these 'winning tickets' by exploring new connections.
- Experimental Basis: Demonstrated that these subnetworks exist at initialization, before training.
Automated Model Compression (AMC)
A framework that uses reinforcement learning to automatically determine the optimal compression policy (pruning ratio, quantization bit-width) for each layer.
- Agent-Based Search: An RL agent takes layer-specific states (e.g., filter shape, accuracy sensitivity) and outputs a compression action.
- Reward Function: Typically balances model accuracy, size, and latency.
- Relation to Regrowth: AMC can be used to schedule when and how aggressively to apply pruning with regrowth, making the exploration process data-driven and automated.
Adaptive Compression
A scheduling paradigm where the rate or type of compression is dynamically adjusted during training based on real-time performance feedback.
- Feedback Signals: Uses metrics like validation loss, gradient norms, or layer-wise sensitivity to decide the next compression step.
- Application in Regrowth: An adaptive scheduler might increase the regrowth rate if accuracy plateaus or steer regrowth towards layers where gradients are most volatile.
- Goal: To create a responsive compression lifecycle that minimizes disruptive accuracy drops.
Neural Architecture Search (NAS) for Compression
The use of search algorithms to discover novel, efficient network architectures that are inherently small and fast, often viewed as a form of compression-at-design-time.
- Search Space: Includes operations, connections, channel widths, and kernel sizes.
- Differentiable NAS (DNAS): A gradient-based method that formulates the search for a sub-network as a continuous optimization problem, highly relevant for finding efficient sparse structures.
- Hardware-Aware NAS (HW-NAS): Incorporates target hardware metrics (latency, energy) directly into the search, ensuring discovered architectures are optimal for specific deployment chips.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us