一种实现带输出硬约束神经网络的计算简单新方法
A New Computationally Simple Approach for Implementing Neural Networks with Output Hard Constraints
AI总结:
本研究提出一种通过额外约束层实现神经网络输出硬凸约束的简便方法,支持多类约束、计算复杂度低,经优化与分类实验验证且代码公开。
摘要:
本文提出了一种对神经网络输出值施加硬凸约束的计算简单新方法。该方法的核心思路是将网络的隐藏参数向量映射到一个保证处于由一组约束定义的可行集内部的点,该映射通过带输出约束的额外神经网络层实现。所提方法可轻松扩展到约束不仅施加于输出向量、还包含依赖输入的联合约束的场景,针对输出施加约束的投影方法也能在该方法框架下简便实现。本文展示了如何将多种类型的约束融入该方法,包括线性约束、二次约束、等式约束、动态约束以及边界形式的约束。该方法的一个重要特性是计算简便:针对线性约束和二次约束,所提出的神经网络层前向传播的复杂度分别为O(n*m)和O(n²*m),其中n为变量数量,m为约束数量。数值实验通过求解优化问题和分类问题验证了该方法的有效性,实现该方法的代码已公开可用。
英文摘要:
A new computationally simple method of imposing hard convex constraints on the neural network output values is proposed. The key idea behind the method is to map a vector of hidden parameters of the network to a point that is guaranteed to be inside the feasible set defined by a set of constraints. The mapping is implemented by the additional neural network layer with constraints for output. The proposed method is simply extended to the case when constraints are imposed not only on the output vectors, but also on joint constraints depending on inputs. The projection approach to imposing constraints on outputs can simply be implemented in the framework of the proposed method. It is shown how to incorporate different types of constraints into the proposed method, including linear and quadratic constraints, equality constraints, and dynamic constraints, constraints in the form of boundaries. An important feature of the method is its computational simplicity. Complexities of the forward pass of the proposed neural network layer by linear and quadratic constraints are O(n*m) and O(n^2*m), respectively, where n is the number of variables, m is the number of constraints. Numerical experiments illustrate the method by solving optimization and classification problems. The code implementing the method is publicly available.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。