Softened Symbol Grounding for Neuro-symbolic Systems

Zenan Li, Yuan Yao, Taolue Chen, Jingwei Xu, Chun Cao, Xiaoxing Ma, Jian Lü · DOI

Introduction

In the pursuit of Artificial General Intelligence, neuro-symbolic systems have emerged as a promising paradigm, aiming to integrate the perceptual strengths of neural networks with the logical rigor of symbolic AI. A fundamental challenge in this domain is symbol grounding: the process of mapping raw sensory inputs (e.g., pixels) to abstract symbols (e.g., digits or operators) without explicit intermediate labels. This paper, presented at ICLR 2023, introduces a novel framework to bridge this "semantic gap" through probabilistic softening and SMT-aided sampling.

The Challenge of the Semantic Gap

The semantic gap arises from the inherent incompatibility between stochastic, continuous neural networks and deterministic, discrete symbolic reasoning. In weakly-supervised settings—such as learning to evaluate handwritten equations from only the final result—systems face three primary hurdles:

  1. Sparsity: Valid symbolic solutions are extremely rare within the vast space of possible character combinations.
  2. Connectivity: Valid solutions often exist as isolated "islands" in high-dimensional space. Standard search algorithms struggle to navigate between these states because single-character changes typically result in invalid expressions.
  3. Initialization: Most existing models require pre-trained components to function, failing when tasked with learning from scratch.

Proposed Methodology: Softened Symbol Grounding

The authors propose a framework that transforms the discrete search for symbols into a continuous optimization problem using Boltzmann distributions.

Overview of the Softened Symbol Grounding framework, illustrating the inference and learning flows.

Technical Innovations

  1. Softened Boltzmann Distribution: Instead of a hard deterministic mapping, symbol states are modeled as a Boltzmann distribution. This "softening" provides the neural network with richer gradient information, effectively moving from a "pure strategy" to a "mixed strategy" to improve utility.
  2. Annealing Mechanism: A cooling schedule (logarithmic, exponential, or linear) is employed. Initially, a "hot" distribution encourages exploration. As training progresses, the temperature $\gamma$ decreases, sharpening the distribution toward a deterministic mapping.
  3. Projection-based MCMC with SMT Solvers: To navigate disconnected solution "islands," the framework projects the high-dimensional symbol space onto a lower-dimensional manifold. An SMT solver (Z3) is then used for "inverse projection," finding new valid states that correspond to the modified low-dimensional projection. This allows the Markov Chain Monte Carlo (MCMC) process to explore the solution space efficiently.
Visualization of the projection-based MCMC sampling, showing how SMT solvers help 'teleport' between disconnected valid solution islands.

Experimental Evaluation

The framework was evaluated across three diverse tasks:

  • Handwritten Formula Evaluation (HWF): Recognizing length-7 formulas from images.
  • Visual Sudoku Classification: Identifying valid 4x4 MNIST-style Sudoku boards.
  • Shortest Path Search (SDSP): Predicting distances in a weighted graph to find shortest paths via $A^*$ search.

Key Results

The proposed method significantly outperformed traditional Reinforcement Learning (RL) and MAPO baselines:

  • HWF Task: The "Exp" annealing strategy achieved 98.6% symbol accuracy, whereas RL and NGS baselines failed to exceed 10%.
  • Sudoku: The system reached 95.4% accuracy with only 500 training samples. In contrast, RL and MAPO baselines remained at 0% accuracy, unable to find valid solutions in the sparse search space.
  • Shortest Path: Performance nearly matched a "Direct Supervision" model, demonstrating highly effective grounding.

Discussion and Conclusion

This work demonstrates that treating symbol grounding as a distribution rather than a hard assignment allows neural networks to learn more effectively from symbolic constraints. By leveraging SMT solvers to overcome connectivity barriers, the authors turn the rigid nature of logic into a tool for exploration.

While the results are impressive, limitations remain. The SMT solver (Z3) could become a computational bottleneck for larger systems, and the framework currently assumes prior knowledge of symbolic rules. Future work may involve integrating Inductive Logic Programming to learn both rules and grounding simultaneously. Nonetheless, this framework represents a major step toward robust AI capable of reasoning in complex environments from raw sensory input.

Summary updated

BibTeX
@inproceedings{li2023softened,
  author = {Zenan Li and Yuan Yao and Taolue Chen and Jingwei Xu and Chun Cao and Xiaoxing Ma and Jian Lü},
  title = {{Softened Symbol Grounding for Neuro-symbolic Systems}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=HTJE5Krui0g},
}
Figure