arXiv:2610.02559cs.LGOct 2026

Manuscript Offprint

arXiv:2610.02559

Neuron merging via inverse-activation regression for post-training compression of sigmoid neural networks

Ao Kuniya, Jun Ohkubo

Ao Kuniya and Jun Ohkubo

Graduate School of Science and Engineering, Saitama University, Sakura, Saitama, 338–8570 Japan

As neural networks continue to grow in scale, model compression is becoming increasingly important for efficient inference under limited computational resources. Structured pruning methods remove neurons or channels that are estimated to be less important, but the removed units may still contain useful information. From the viewpoint of coarse-graining a trained network, it is valuable to ask which information should be retained when multiple neuronal degrees of freedom are consolidated. In this paper, we discuss cluster-based merging methods for compression of trained neural networks. In addition to a data-free contribution-weighted averaging method, we propose neuron-merging methods in which neuron responses are mapped back to the pre-activation space via the inverse activation function, and the weights and biases of each representative neuron are estimated using the least-squares method. We also examine both a data-assisted strategy with actual training inputs and a data-free strategy using randomly generated inputs. The comparisons provide empirical evidence, in the tested sigmoid networks, that weight information is particularly useful for clustering whereas activation information is useful for representative-neuron reconstruction in the merging process.

I. INTRODUCTION

In recent years, research on neural networks has advanced significantly; the importance of machine learning was also highlighted by the 2024 Nobel Prizes in Physics and Chemistry. Furthermore, their practical applications in our daily lives are expanding. However, these neural networks are becoming increasingly complex, containing more and more parameters. Their deployment has expanded across many applications, increasing concern about the computational and energy costs of both training [1, 2] and inference [3, 4]. Hence, compressing a trained network is important when memory, computation, or inference latency is limited.

Knowledge distillation [5] is one well-known method for efficiently utilizing a trained neural network; see recent review papers [6, 7]. It transfers knowledge from a teacher model to a student model, which is often chosen to be smaller or cheaper to evaluate. Note that this process requires additional training. Pruning is another method for compressing neural networks; see recent review papers [8–10]. Pruned networks can retain useful performance without fine-tuning at moderate compression levels, although fine-tuning often improves accuracy. Generally, weight matrices are dense, but some matrix elements contribute only minimally to the results. Therefore, pruning involves removing neurons or connections between neurons that seem unimportant. Unstructured pruning removes connections between neurons, thereby reducing the number of parameters. Note that the weight matrix elements set to zero due to removal appear irregularly, so the resulting irregular matrices do not necessarily provide speedups without specialized sparse implementations [11]. On the other hand, structured pruning removes neurons and channels rather than connections. Hence, it generates smaller, higher-density weight matrices and reduces the computational cost during inference [12, 13]. Of course, structured pruning removes neurons that may still carry information contributing to subsequent layers. This loss becomes particularly important at strong compression levels. Although fine-tuning partially recovers the lost accuracy, it requires additional data and an optimization procedure. In the context of physics, some recent works focus on the pruning and related techniques; for example, see [14–16].

As a simple idea, it is easy to imagine that information from pruned neurons could contribute to effective compression without the additional fine-tuning. Neuron merging offers an alternative to simple pruning. If several neurons exhibit similar input-output relationships, their contributions might be consolidated into a single representative neuron. Some works mainly compress networks by identifying redundant neurons from weights or simple neuron behavior and then pruning or clustering/merging them; data-free pairwise redundancy with a compensating surgery [17], weight-based clustering/agglomeration [18, 19], and inactive/similar ReLU neurons in a restricted single-input-single-output architecture [20]. Especially, Kim et al. formulated neuron merging by introducing a scaling matrix that transfers the contributions of removed neurons to the next layer [21]. As discussed later, the method of Kim et al. [21] is data-free; it reconstructs the output feature maps of the original neural networks better than vanilla pruning only from the weight matrices. However, the merging method in [21] relies on the algebraic properties of the ReLU functions and does not directly apply to sigmoid networks.

In the present paper, we propose several specific merging algorithms to investigate what types of information are useful for neuron merging. In particular, we examine not only the use of information from weight matrices but also that from activation functions. We first detect clusters of neurons to be merged using the values of the weight matrices or activation functions. In addition to the naive averaging method for the weight vectors, we propose methods that employ the activation function values to estimate the weights and biases of representative neurons via the least-squares method. The proposed reconstruction maps activations to the pre-activation space through the inverse activation function and then performs ridge-regularized least-squares regression; here, we focus on the sigmoid function. Specifically, we implement the framework using the logit function, which is the inverse of

Figure

FIG. 1. Structured pruning. In unstructured pruning, connections between neurons are removed individually. By contrast, structured pruning removes neurons and all their associated connections, thereby deleting the corresponding rows or columns from the weight matrices. Hence, the overall sizes of the weight matrices are reduced.

the sigmoid function. We numerically evaluate variations of our proposals, including data-assisted and training-data-free versions, using both weight-based and activation values-based clustering, and demonstrate that they outperform structured pruning. Furthermore, we clarify the roles of weight matrices and activation function values in neuron merging.

The remainder of this paper is organized as follows. Section II reviews structured pruning and neuron merging; we will also show numerical results on compression using standard structured pruning. Section III presents the main proposals of the present paper; we propose several merging methods to investigate the roles of information in the weight matrices and the activation function values. Then, we demonstrate the proposals in Sect. IV and discuss the roles in the merging process. From a practical perspective, the required computational time for the merging process is also discussed. Finally, in Sect. V, we present our conclusions and discuss future research directions.