Introduction
Neuro-Symbolic (NeSy) AI represents a promising frontier, aiming to synthesize the perceptual prowess of deep learning with the rigorous reasoning of symbolic logic. Despite its potential, progress has been stymied by benchmarks limited to "toy" problems like Visual Sudoku or basic digit recognition. These environments fail to capture the complexity of real-world scenarios, which require high-level abstractions, environmental flexibility, and multi-agent dynamics.
LogiCity addresses these limitations as a first-of-its-kind simulator and benchmark. It provides a complex, multi-agent urban environment where behaviors and rules are governed by customizable First-Order Logic (FOL). This platform enables the evaluation of long-horizon reasoning and compositional generalization in hybrid AI systems.
The LogiCity Framework
The core of LogiCity is a modular, abstraction-based simulation framework designed for both rigor and variety.
- FOL-based Configuration: Users define environment rules using ProLog-style syntax. This includes unary predicates (e.g.,
IsAmbulance(X)) and binary predicates (e.g.,IsClose(X, Y)), which the simulation uses to constrain agent behavior. - Diverse Rendering Pipeline: To prevent models from over-fitting to specific visual patterns, LogiCity employs a generative pipeline. GPT-4 generates diverse descriptions for urban elements, which are then rendered into unique visual assets using Stable Diffusion XL.
- Hybrid Simulation: An SMT (Satisfiability Modulo Theories) solver ensures that all agent actions strictly adhere to the defined logical constraints at every time step.
Benchmarking Tasks
LogiCity introduces two primary tasks to test different facets of NeSy capabilities:
- Safe Path Following (SPF): This task requires long-horizon sequential decision-making. An "ego" agent must navigate to a target while minimizing rule violations and action costs in a dynamic environment populated by other agents.
- Visual Action Prediction (VAP): This task focuses on one-step reasoning from raw pixels. Models must predict the actions of all agents in a complex RGB scene, testing their ability to "ground" visual data into symbolic concepts and reason over them.
Experimental Results and Insights
Evaluation on LogiCity revealed several critical insights into the current state of Neuro-Symbolic AI:
- Compositional Generalization: NeSy models significantly outshine pure neural networks when the agent composition changes between training and testing. By learning abstract rules rather than memorizing specific patterns, NeSy models maintain performance even when encountering new agent types (e.g., transitioning from ambulances to police cars).
- The Perceptual Noise Bottleneck: Grounding—mapping raw RGB images to symbolic concepts—remains a major hurdle. Errors in perception accumulate, leading to a "satisfaction gap" where the reasoning engine fails due to noisy input.
- NeSy Dominance in SPF: In the Safe Path Following task, the Neuro-Symbolic reinforcement learning agent (NLM-DQN) achieved a Trajectory Success Rate (TSR) of 0.53 in "Easy" mode, nearly double the 0.35 TSR of a standard DQN.
- LLM Performance: State-of-the-art LLMs like GPT-4o, while capable, still lag behind human performance on the VAP task (59% vs. 81% accuracy). LLMs also exhibited a "conservative bias," often predicting "Stop" even when not logically required.
Conclusion
LogiCity provides a much-needed bridge between toy NeSy benchmarks and real-world complexity. By demonstrating that NeSy models offer superior robustness and generalization, the simulator highlights the path forward for autonomous systems. Future work will focus on automating rule discovery and incorporating temporal logic to further enhance the realism of urban interactions.
Summary updated