Introduction
In material science, designing porous media—such as the electrodes in lithium-ion batteries—requires a delicate balance between geometric structure and physical performance. Engineers must generate digital models that satisfy strict topological constraints (e.g., a specific number of isolated grains) and process constraints (e.g., a target dispersion coefficient for ion movement). While Generative Adversarial Networks (GANs) excel at visual realism, they often fail to respect hard declarative rules or physical laws. This paper proposes a novel framework that treats image generation as a formal logic problem, ensuring that every generated sample is guaranteed to meet specified constraints.
Methodology: BNNs as Logical Proxies
The core of the approach is the use of Binarized Neural Networks (BNNs) as proxies for complex physical simulations. Traditional Partial Differential Equation (PDE) solvers are computationally expensive and difficult to invert. By training a BNN to approximate these solvers, the authors can translate the network's behavior into a set of reified linear constraints. Because BNNs utilize binary weights and activations, they function essentially as complex logical circuits that formal solvers can reason about.
To handle geometric requirements, the authors encode rules like grain connectivity and compactness into the same logical framework. For instance, connectivity is enforced by treating the image grid as a graph and using Directed Acyclic Graph (DAG) constraints to ensure pixels belonging to a single "grain" are physically connected.
Solving for Valid Images
The combined logic—representing both the BNN's physical approximation and the geometric rules—is fed into off-the-shelf decision procedures, specifically CPLEX (an Integer Linear Programming solver) and Z3 (an SMT solver). Instead of "generating" an image in the traditional sense, the solver finds a "satisfying assignment" for the pixel values that makes the entire formula true. This allows for true inverse design: a user can request an image with a specific physical property interval, and the solver will find a valid pixel arrangement that satisfies it.
Key Results and Performance
The system was tested on datasets $D_2$ and $D_3$ (containing two and three grains, respectively). CPLEX generally outperformed Z3, solving most 16x16 image instances within 12–25 seconds. The generated images successfully reflected physical trends; for example, when high dispersion was requested, the solver produced images with smaller, less obstructive grains.
While the BNN proxy introduced a small margin of error compared to ground-truth PDE solvers (a Mean Absolute Error of approximately 10), the trade-off is a massive gain in speed and the absolute guarantee of geometric constraint satisfaction—something standard deep learning models cannot provide.
Limitations and Future Outlook
The primary challenge for this method is scalability. As image resolution increases beyond 16x16, the number of logical variables grows exponentially, leading to significant solver slowdowns. Future work will focus on developing specialized decision procedures for BNN-specific constraints and exploring more "solver-friendly" neural architectures to enable the generation of higher-resolution material models.
Summary updated