Generating by Understanding: Neural Visual Generation with Logical Symbol Groundings

Yifei Peng, Zijie Zha, Yu Jin, Zhexu Luo, Wang-Zhou Dai, Zhong Ren, Yao-Xiang Ding, Kun Zhou

Abstract

While modern neural generative models produce high-fidelity visuals, they often lack the precision required to follow strict logical regularities. We introduce AbdGen (Abductive visual Generation), a framework that bridges neural generation with logical reasoning systems. By leveraging abductive learning, AbdGen grounds symbolic concepts with minimal supervision and can discover latent logical rules directly from data. Our evaluation across diverse benchmarks shows that AbdGen achieves state-of-the-art performance in controllability, label efficiency, and generalization to unseen logical constraints.

Introduction

Neural generative models like GANs and Diffusion models have revolutionized image synthesis but remain difficult to control with logical precision. For instance, ensuring a character moves according to a specific priority rule (e.g., "move right then up") is challenging for purely neural approaches. Existing neurosymbolic methods attempt to solve this but are often limited by high annotation costs, rigid pre-defined rules, and the entanglement of symbolic content with sub-symbolic style.

AbdGen addresses these challenges by separating symbolic grounding from visual style and using logical abduction to provide weak supervision where labels are scarce.

Methodology

Framework Architecture

The AbdGen framework employs a dual-pathway approach to separate image content into symbolic and sub-symbolic components.

Overview of the AbdGen framework showing the integration of symbolic/sub-symbolic encoders with a logical reasoning system.
  • Vector-Quantized Symbol Grounding: Neural embeddings are mapped to discrete symbolic values via a dictionary-based module, making the model's internal representations explicit and verifiable.
  • Adversarial Disentanglement: To ensure independent control, the model uses adversarial losses ($L_{ADV}$ and $L_{GAN}$) to decouple symbolic features (e.g., position) from sub-symbolic style (e.g., background).

Learning via Abduction

Instead of requiring exhaustive labels, AbdGen uses Abductive Learning (ABL) to infer the most likely symbolic labels that satisfy background logical rules.

The AbdGen learning process, combining neural model losses with logical abduction mechanisms for rule induction and symbol verification.
  • AttVerify (Attention-based symbol Verification): When rules are known, this mechanism uses attention to sample candidate symbol values efficiently, bypassing the exponential search space of possible combinations.
  • ConMetaAbd (Contrastive Meta-Abduction): When rules are unknown, the model uses both positive and negative examples to induce underlying logical structures while simultaneously learning to ground symbols.

Experiments and Results

Datasets

The framework was evaluated on several benchmarks:

  • dSprites & Mario: Testing rule-based generation of shapes and grid-world trajectories.
  • UTKFace: Evaluating rule induction for facial sequences (e.g., age-descending priorities).
  • Text-to-Image: Integration with foundation models like DALL-E 3 to demonstrate plug-and-play logic guidance.

Key Findings

  • Label Efficiency: AbdGen achieved grounding accuracy with only 10% labeled data that matched baseline models using 100% labels.
  • Generalization: The model significantly outperformed previous state-of-the-art methods (like VAEL) when tasked with generating sequences under "unseen" logical rules at test time.
  • Rule Induction: In facial image experiments, AbdGen successfully discovered complex latent rules where previous methods failed, demonstrating the power of contrastive abduction.

Conclusion

AbdGen demonstrates that integrating logical reasoning into generative models allows for more controllable and interpretable visual synthesis. By understanding the "why" behind data patterns through abduction, the model achieves superior generalization and efficiency. Future work will explore the use of Large Language Models (LLMs) to automatically generate the necessary logical background knowledge, further reducing the need for human-designed meta-rules.

Summary updated

BibTeX
@inproceedings{peng2023generating,
  author = {Yifei Peng and Zijie Zha and Yu Jin and Zhexu Luo and Wang-Zhou Dai and Zhong Ren and Yao-Xiang Ding and Kun Zhou},
  title = {{Generating by Understanding: Neural Visual Generation with Logical Symbol Groundings}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2023},
}
Figure