Softened Symbol Grounding for Neuro-symbolic Systems

Zenan Li, Yuan Yao, Taolue Chen, Jingwei Xu, Chun Cao, Xiaoxing Ma, Jian L\"{u}

Neuro-symbolic (NeSy) systems aim to combine the perceptual power of neural networks with the logical rigor of symbolic reasoning. A classic example is evaluating a handwritten arithmetic formula: a neural network "sees" the images of digits and operators, and a symbolic evaluator computes the final mathematical result.

However, the success of these systems hinges on a fundamental problem in AI: symbol grounding. How does a neural network learn that a specific image represents the symbol "7" if it is never given direct labels for the digits, but only the final result of the equation (e.g., "42")?

Existing methods struggle with this due to the semantic gap between continuous neural learning and discrete symbolic reasoning. Because the "correct" combination of symbols is rare in complex logic tasks, standard Reinforcement Learning (RL) faces sparse rewards and often fails to find any valid solution to start learning from, frequently getting stuck in local optima.

Methods: Softened Symbol Grounding

To address these challenges, researchers have proposed a Softened Symbol Grounding framework. Instead of forcing the network to pick a single, deterministic symbol mapping immediately, this approach treats the mapping from raw input to symbols as a probability distribution that evolves over time.

Overview of the Softened Symbol Grounding framework

1. Boltzmann Distribution & Annealing

The framework models the solution space using a Boltzmann distribution. By employing an annealing strategy, the system starts with a high "temperature"—where many different symbol interpretations are considered simultaneously. This allows the network to explore the solution space more effectively early in training. As training progresses, the temperature gradually "cools" down until the model converges on a single, deterministic mapping.

2. Overcoming Disconnected Spaces with MCMC and SMT

Sampling valid symbol combinations is notoriously difficult because the "solution space" is often disconnected. For example, in a Sudoku puzzle, changing just one digit usually makes the entire board invalid, creating isolated "islands" of valid states.

Projection-based MCMC sampling via SMT

To navigate this, the framework introduces a novel Markov Chain Monte Carlo (MCMC) technique:

  • Projection: The system projects the high-dimensional, highly constrained symbol space into a lower-dimensional, less constrained space where random walks are feasible.
  • SMT Solvers (Z3): It then uses a Satisfiability Modulo Theories (SMT) solver to perform an "inverse projection"—finding a valid, full-scale solution that matches the new low-dimensional sample. This clever mechanism allows the MCMC sampler to "jump" between valid but distant solutions that would otherwise be unconnected.

3. Two-Stage Training

The training process is divided into two stages:

  • Stage I (Annealing): The temperature decreases, guiding the network toward feasible groundings using the MCMC/SMT sampling to provide rich gradient information.
  • Stage II (Zero-degree): The model is fine-tuned using the deterministic mappings discovered in Stage I, essentially treating them as high-quality pseudo-labels.

Key Results

The framework was evaluated on three representative NeSy tasks: Handwritten Formula Evaluation (HWF), Visual Sudoku Classification, and Shortest Path Search (SDSP). It demonstrated superior symbol grounding capability, successfully solving problems well beyond the frontier of existing proposals.

  • HWF Task: While standard RL and MAPO baselines achieved 0% calculation accuracy due to sparse rewards, the softened grounding method reached an impressive 90.7% accuracy after Stage II.
  • Visual Sudoku: On the most difficult 500-puzzle training set, the method achieved 95.4% accuracy, whereas most baselines failed to learn anything (0% accuracy).
  • Sample Efficiency: In the Sudoku task, the model reached over 90% grounding accuracy even with very small training sets, demonstrating remarkable sample efficiency.

Limitations and Future Work

While highly effective, the framework does have limitations. It assumes that the symbolic logic (the "rules of the game") is known beforehand and does not currently learn the logical constraints themselves. Additionally, while the Z3 SMT solver is fast for the studied tasks (averaging 2.8ms–6.4ms per example), it could become a computational bottleneck for massive-scale symbolic systems. Future work may explore alternatives to SMT solvers to make the framework even more scalable for complex neuro-symbolic integration.

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\textbackslash\{\}"\{u\}},
  title = {{Softened Symbol Grounding for Neuro-symbolic Systems}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=HTJE5Krui0g},
}
Figure