Generative Adversarial Networks (GANs) struggle to generate structured objects like molecules and game maps. The issue is that structured objects must satisfy hard requirements (e.g., molecules must be chemically valid) that are difficult to acquire from examples alone. As a remedy, we propose Constrained Adversarial Networks (CANs), an extension of GANs in which the constraints are embedded into the model during training. This is achieved by penalizing the generator proportionally to the mass it allocates to invalid structures. In contrast to other generative models, CANs support efficient inference of valid structures (with high probability) and allows to turn on and off the learned constraints at inference time. CANs handle arbitrary logical constraints and leverage knowledge compilation techniques to efficiently evaluate the disagreement between the model and the constraints. Our setup is further extended to hybrid logical-neural constraints for capturing very complex constraints, like graph reachability. An extensive empirical analysis shows that CANs efficiently generate valid structures that are both high-quality and novel.
翻译:问题在于结构化物体必须满足难以单独从实例中获得的硬性要求(例如分子必须具有化学有效性),作为补救,我们提议通过约束性反向网络(CANs)扩大GANs,在培训期间将制约因素嵌入模型中。这是通过惩罚发电机与其分配给无效结构的质量成比例的方式实现的。与其他基因化模型不同,CANs支持有效推断有效结构(概率高),允许在推断时间翻转和取消所学到的限制。CANs处理任意的逻辑限制和利用知识汇编技术,以有效评估模型和制约之间的分歧。我们的设计进一步扩展至混合逻辑内限,以捕捉非常复杂的制约,如图可达性。广泛的实证分析表明,CANs高效地生成了高质量和新颖的有效结构。