Geometry-Screened Refit-Aware Compression of ReLU Networks

Ravi DhimanarXiv 2026

TL;DR

Shrinking a trained neural network without retraining usually means deleting neurons, which can erase important decision boundaries. This paper introduces GSRM (Geometry-Screened Refit-Aware Merging), a method that combines pairs of same-sign ReLU neurons into new, synthesized boundaries instead of just throwing them away. By using activation geometry to shortlist candidates and fast linear algebra to score them, GSRM achieves lower approximation error than greedy feature selection in roughly the same amount of time.

What Problem Does This Paper Address?

Imagine a shallow ReLU network as a collection of flat hyperplanes slicing up input space. Each neuron introduces a boundary where it switches from "off" (zero) to "on" (linear). When you want to compress a pretrained network by reducing its width—without going through the expensive process of retraining a student model—you face a dilemma:

  • Weight-magnitude pruning is fast, but it ignores how neurons interact functionally. Removing a "small" neuron can still break the function if nothing compensates for it.
  • Greedy forward selection explicitly refits the remaining neurons to compensate, but it can only keep existing boundaries—it can't invent new ones.

Merging neurons offers a middle ground: two neurons become one. But to make merging work well, you need to know which pairs of boundaries to combine without causing massive distortion, and how to efficiently score the resulting network after refitting its weights.

Methods

The authors propose Geometry-Screened Refit-Aware Merging (GSRM), built on a clean geometric insight about ReLU neurons.

  1. Synthesizing a New Boundary: If two neurons $i$ and $j$ have output coefficients with the same sign, their combined contribution can be replaced by a single, architecture-realizable ReLU neuron whose weight and offset are a weighted average of the originals. No gradient-based optimization is needed to construct it.

  2. Exact Local Distortion: Where does this merge introduce error? The authors prove that the merged neuron matches the original pair everywhere except in the activation-disagreement region—the slice of input space where one neuron is active and the other is off. This gives an exact formula for the local distortion of any candidate pair.

Fig. 1: Geometry of a same-sign ReLU merge (left) and the proposed reduction procedure (right). Original activation lines are dashed/dotted; the black line is the synthesized boundary. Shading marks the activation-disagreement region, where the local merge error can be nonzero.
  1. The GSRM Loop: Starting from the teacher network, GSRM reduces the width by one neuron at a time:

  2. Geometry screening: It computes the empirical local distortion for all same-sign pairs and shortlists the $q = 12$ lowest-cost candidates.

  3. Refit-aware choice: For each shortlisted pair, it constructs the synthesized boundary and scores how well the network's output coefficients can be reconstructed via least-squares refitting. To keep this fast, it uses a shared normal-equation factorization (a leave-two-out-and-in identity) rather than solving a full least-squares problem from scratch for every candidate.
  4. Width reduction: It applies the best merge, refits the coefficients, and repeats.

The authors also test a lightweight Geometry-only (Geo) variant that skips the iterative refit scoring, picks all disjoint pairs once using the local distortion score, and refits only at the very end.

Datasets

The experiments use a controlled synthetic benchmark:

  • Teachers: 30 synthetic two-dimensional, scalar-output ReLU networks (width $N = 30$) defined on $[-1, 1]^2$, spanning three coefficient families (all positive, independently signed, and approximately paired opposite-sign).
  • Budgets: Each teacher is compressed to two target widths ($r \in \{20, 24\}$), yielding 60 matched teacher–budget instances.
  • Evaluation: All methods use the same 400 uniformly sampled calibration inputs for refitting and are evaluated on an independent $61 \times 61$ uniform grid (reporting grid RMSE, not continuous population error).

Key Insights and Ideas

  • Geometry tells you where a merge hurts: Weight-vector proximity isn't enough. Two neurons can have similar weights, or different weights, but what actually governs the functional error of merging them is the size of their activation-disagreement region and the magnitude of their preactivations there.
  • Overlap matters for simultaneous merges: The authors derive an overlap-dependent $L^2$ error bound for merging $K$ disjoint pairs at once. If the disagreement regions of different merged pairs don't overlap, the total squared error is simply the sum of their individual errors. When they do overlap, the bound scales with the overlap multiplicity $\kappa_{\mathcal{M}}$.
  • Fast scoring makes refit-aware merging practical: Naive least-squares scoring of every shortlisted candidate takes $0.06300\text{ s}$. Using shared-factorization scoring cuts GSRM's runtime by 42.4% (down to $0.03627\text{ s}$) without changing the selected networks or their accuracy.

Key Results

Across all 60 teacher–budget instances, GSRM achieves the lowest overall mean and median evaluation-grid RMSE:

Comparison of mean and median evaluation-grid RMSE across six compression methods
  • Accuracy: GSRM attains a mean RMSE of 0.01603 (median 0.01430), outperforming magnitude pruning (0.02205, a 27.3% improvement), geometry-only merging (0.02479, a 35.3% improvement), and greedy forward selection (0.01757, an 8.75% improvement). It beats greedy selection in 38 out of 60 individual configurations.
  • Speed: GSRM's single-threaded runtime (0.03627 s) is essentially tied with greedy forward selection (0.03634 s). Meanwhile, the geometry-only variant runs in 0.00462 s—about 7.8× faster than GSRM, trading some accuracy for speed.

Limitations and Future Work

The authors are upfront about the boundaries of their claims:

  • Shallow, synthetic scope: The experiments are limited to shallow, 2D synthetic ReLU teachers. The paper claims an empirical advantage in this setting, not a guarantee of global optimality.
  • Heuristic shortlist: The geometry-based shortlist ($q = 12$) is a heuristic and carries no approximation ratio relative to all possible width-$r$ student networks.
  • Theory vs. sequential practice: Proposition 2 bounds the error for a fixed batch of disjoint merges in a specified $L^2(\mu)$ space. Because GSRM updates coefficients and pairs sequentially, the batch overlap theorem is not a direct population-risk certificate for the final sequential student.
  • Sign-family nuance: While GSRM wins overall, greedy forward selection still performs better on the independently signed teacher family at both target widths.

Summary updated

BibTeX
@misc{dhiman2026geometry,
  author = {Ravi Dhiman},
  title = {{Geometry-Screened Refit-Aware Compression of ReLU Networks}},
  year = {2026},
  eprint = {2612.03236},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2612.03236},
}
Figure