Reducing Neural Network Parameter Initialization Into an SMT Problem (Student Abstract)

Mohamad H. Danesh

Abstract

Training deep neural networks is highly sensitive to initial weight configurations. Standard techniques like random or zero initialization often lead to slow convergence or suboptimal local minima. This paper proposes a novel approach that reduces the parameter initialization process to a Satisfiability Modulo Theories (SMT) problem. By encoding the network structure and training data as logical constraints, an SMT solver can find initial weights that satisfy the classification criteria from the outset. Experimental results on the MNIST dataset demonstrate that this method achieves superior performance compared to traditional initialization strategies.

Introduction

The performance and convergence speed of neural networks (NNs) are heavily dependent on their initial parameters. Zero initialization leads to symmetry problems where neurons learn identical features, while random initialization (e.g., Glorot or He) is a stochastic process with no guarantee of starting in a favorable region of the weight space. Finding optimal initial values is known to be an NP-hard problem. This work explores bridging the gap between random guessing and perfect optimization by utilizing formal methods to identify mathematically sound starting points.

Methodology: SMT Reduction

The core contribution of this work is the translation of a neural network's architecture and training objectives into an SMT formula. SMT solvers determine if a set of mathematical constraints—involving real numbers, inequalities, and logical operators—can be satisfied by specific values.

Logical Encoding

The network is represented as a function $h(X, \theta)$, where $X$ is the input and $ heta$ represents the weights. The goal is to find a $ heta$ such that the predicted output $\hat{Y}$ matches the ground truth labels $y$.

Neural network architecture used for SMT-based initialization.

As shown in Figure 1, the network consists of input layers, hidden layers with activation functions $f$, and an output layer. For a binary classification task, the objective is formulated such that the output for the correct class must be strictly greater than the output for the incorrect class.

Objective Formulation and Constraints

The training data is treated as a set of constraints. For each training sample $i$, if the label $y_i = 1$, the constraint $\hat{y}_{i,1} > \hat{y}_{i,0}$ is added; if $y_i = 0$, then $\hat{y}_{i,0} > \hat{y}_{i,1}$ is enforced.

Logical encoding of the objective function and training data into an SMT formula.

Figure 2 illustrates how the objective function $f(W_2^T f(W_1^T X)) = \hat{Y}$ and the training data table are converted into a conjunction of logical predicates. To handle non-linearities, the Rectified Linear Unit (ReLU) activation function is explicitly modeled within the solver's logic. Furthermore, to prevent "lazy" solutions (like all-zero weights), "symmetry breaking" constraints are added, forcing weights to be non-zero ($W \neq 0$), similar to the effect of dropout.

Experimental Setup

The proposed approach was evaluated using the MNIST dataset, a standard benchmark consisting of 70,000 handwritten digits. For this study, the task was simplified to a binary classification problem to test the feasibility of the SMT reduction on a deep network architecture.

Results and Discussion

The SMT-based initialization provided several key advantages:

  • Performance Gains: Networks initialized via the SMT solver outperformed those using standard random or zero initialization.
  • Guaranteed Starting Point: Unlike random methods, the SMT approach guarantees that the initial weights satisfy the classification criteria for the provided training instances, providing a stable foundation for subsequent gradient-based optimization.
  • Logical Dropout: The enforcement of non-zero weights ensured that the solver produced a diverse set of initial parameters, allowing neurons to learn distinct features immediately.

Conclusion and Future Work

This research demonstrates that treating initialization as a satisfiability problem is a viable alternative to stochastic methods. While promising, several challenges remain. SMT solvers are computationally intensive, posing scalability issues for modern "wide" or "deep" architectures with millions of parameters. Future work will focus on improving the efficiency of the solver for larger training sets and exploring the integration of more complex, smooth activation functions beyond ReLU.

Summary updated

BibTeX
@inproceedings{danesh2021reducing,
  author = {Mohamad H. Danesh},
  title = {{Reducing Neural Network Parameter Initialization Into an SMT Problem (Student Abstract)}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  url = {https://openreview.net/forum?id=QBejneSTdN},
}
Figure