Partial minimization of a quadratic form (PMQ), which minimizes a quadratic form over a subset of variables while the other variables are fixed, underlies second-order pruning methods such as Optimal Brain Surgeon, where the loss increase caused by removing weights is compensated by adjusting the remaining weights. We extend this use of PMQ to the task of compensating for the performance degradation of neural networks deployed on noisy hardware. We treat \textit{Noise as Pruning} (NaP): noise parameters play the role of pruned weights as constrained variables. In the proposed framework, we express the full solution set as a pseudo-inverse solution plus a null vector of the coefficient block for the adjustable variables, which requires no damping even when the block is singular. We distinguish three noise-compensation problems: weight NaP, where the PMQ is formulated in the weight space with the quadratic form coefficients carrying information of the training; decomposed-weight NaP, where the quadratic form is transformed from the weight space to the space of device parameters and noise parameters; and noise-extended NaP, where the domain of the quadratic form is extended from the space of learning variables to the space augmented by noise parameters. Experiments on an optical neural network and quantum neural networks demonstrate that all three types of NaP improve noise tolerance, as measured by test accuracy. NaP offers a way of repurposing network pruning techniques for noise compensation.
翻译:暂无翻译