INSIGHT: End-to-End Neuro-Symbolic Visual Reinforcement Learning with Language Explanations

Lirui Luo, Guoxi Zhang, Hongming Xu, Yaodong Yang, Cong Fang, Qing Li

Abstract

Neuro-symbolic reinforcement learning (NS-RL) has emerged as a promising paradigm for explainable decision-making, characterized by the interpretability of symbolic policies. NS-RL entails structured state representations for tasks with visual observations, but previous methods cannot refine the structured states with rewards due to a lack of efficiency. Accessibility also remains an issue, as extensive domain knowledge is required to interpret symbolic policies. In this paper, we present a neuro-symbolic framework for jointly learning structured states and symbolic policies, whose key idea is to distill the vision foundation model into an efficient perception module and refine it during policy learning. Moreover, we design a pipeline to prompt GPT-4 to generate textual explanations for the learned policies and decisions, significantly reducing users' cognitive load to understand the symbolic policies. We verify the efficacy of our approach on nine Atari tasks and present GPT-generated explanations for policies and decisions.

Introduction

Deep Reinforcement Learning (RL) has achieved remarkable success across various domains, yet its "black box" nature poses significant challenges for deployment in safety-critical areas like autonomous driving or healthcare. Neuro-symbolic RL (NS-RL) attempts to address this by employing symbolic policies—such as mathematical equations or logic rules—that are inherently more interpretable than opaque neural networks.

However, existing NS-RL methods face two primary hurdles. First, extracting structured state representations (e.g., object coordinates) from raw pixels is often computationally prohibitive, leading many researchers to "freeze" the perception component, which prevents the agent from refining its visual focus based on task rewards. Second, even symbolic policies can be difficult for non-experts to interpret when they involve complex mathematical expressions. The INSIGHT framework bridges this gap by distilling vision foundation models into efficient perception modules and leveraging Large Language Models (LLMs) to translate symbolic logic into natural language explanations.

Methodology

The INSIGHT framework consists of three integrated components designed for end-to-end learning and explainability.

The INSIGHT framework architecture, featuring visual perception distillation, symbolic policy learning with neural guidance, and an LLM-based explanation pipeline.

Visual Perception via Distillation

To overcome the efficiency bottleneck of heavy unsupervised models, INSIGHT distills knowledge from Vision Foundation Models (VFMs) like FastSAM and DeAot into a lightweight CNN. This module is pre-trained to recognize object coordinates and is subsequently fine-tuned end-to-end during RL training. This allows the reward signal to sharpen the perception module's focus on task-relevant objects, improving tracking accuracy for critical entities.

Symbolic Policy Learning

The agent's policy is represented by an Equation Learner (EQL) that produces concise mathematical expressions. To facilitate exploration in complex environments where symbolic expressions might be difficult to optimize directly, INSIGHT employs Neural Guidance. A standard neural network actor guides the symbolic actor during training, preventing it from converging on sub-optimal, simplistic behaviors.

LLM-Powered Explanations

To make symbolic policies accessible, INSIGHT uses GPT-4 to bridge the gap between mathematics and human understanding. Through a "concept grounding" pipeline, the LLM associates raw coordinates with semantic labels (e.g., "the ball," "the paddle"). It then generates Policy Interpretations (general behavioral strategies) and Decision Explanations (justifications for specific actions based on input gradients).

Experimental Results

The framework was evaluated on nine diverse Atari 2600 games, including Pong, Seaquest, and MsPacman, as well as the MetaDrive autonomous driving simulator.

Performance comparison of INSIGHT against various neural and neuro-symbolic baselines across nine Atari tasks.

Performance and Efficiency

As shown in the results table, INSIGHT matches or outperforms standard neural baselines and significantly exceeds the performance of previous state-of-the-art NS-RL methods like CGP and NUDGE. Beyond raw performance, INSIGHT is highly efficient, with an inference time of approximately 2ms per state—an order of magnitude faster than models relying on SPACE-based perception.

Perception Refinement

A key finding is that end-to-end training improves object tracking. When the perception module is refined by RL rewards, the error in predicting coordinates for policy-relevant objects drops significantly compared to a fixed perception module. The distilled module also demonstrated high zero-shot generalization, achieving a 97.5% F-score on Pong when validated against ground-truth data from OCAtari.

Discussion and Conclusion

INSIGHT demonstrates that "intrinsic transparency" through symbolic math is insufficient for true accessibility; human-readable explanations are essential. By turning mathematical logits into natural language conversations, INSIGHT makes complex agent behavior understandable to non-experts.

Future work will focus on incorporating discrete logical operations (like "if-then-else" statements) into the EQL network to improve intuitiveness. Additionally, developing quantitative metrics to evaluate the faithfulness of LLM-generated explanations remains a priority. Transitioning to off-policy algorithms could also further optimize the perception module by increasing the frequency of coordinate refinement.

Summary updated

Abstract

Neuro-symbolic reinforcement learning (NS-RL) has emerged as a promising paradigm for explainable decision-making, characterized by the interpretability of symbolic policies. NS-RL entails structured state representations for tasks with visual observations, but previous methods cannot refine the structured states with rewards due to a lack of efficiency. Accessibility also remains an issue, as extensive domain knowledge is required to interpret symbolic policies. In this paper, we present a neuro-symbolic framework for jointly learning structured states and symbolic policies, whose key idea is to distill the vision foundation model into an efficient perception module and refine it during policy learning. Moreover, we design a pipeline to prompt GPT-4 to generate textual explanations for the learned policies and decisions, significantly reducing users' cognitive load to understand the symbolic policies. We verify the efficacy of our approach on nine Atari tasks and present GPT-generated explanations for policies and decisions.
BibTeX
@inproceedings{luo2024insight,
  author = {Lirui Luo and Guoxi Zhang and Hongming Xu and Yaodong Yang and Cong Fang and Qing Li},
  title = {{INSIGHT: End-to-End Neuro-Symbolic Visual Reinforcement Learning with Language Explanations}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=0P3kaNluGj},
}
Figure