GRAIL: Autonomous Concept Grounding for Neuro-Symbolic Reinforcement Learning

Hikaru Shindo, Henri Rößler, Quentin Delfosse, Kristian KerstingarXiv 2026

TL;DR

Neuro-symbolic reinforcement learning agents usually rely on human experts to hard-code spatial concepts like "left of" or "close by." GRAIL eliminates this bottleneck by autonomously learning and grounding these relational concepts through environment interaction, using Large Language Models (LLMs) as weak supervision. The result is an interpretable, logic-driven agent that dynamically adapts its understanding of abstract concepts to the specific geometry and rules of its environment.

What Problem Does This Paper Address?

Neuro-symbolic Reinforcement Learning (NeSy-RL) is a promising paradigm that combines the raw optimization power of deep neural networks with the interpretability and generalization of symbolic logic. However, it suffers from a major bottleneck: the symbol grounding problem.

For an agent to execute a logical rule like move_right :- left_of(ladder), a human engineer has to manually write a "valuation function" that defines exactly what left_of means in terms of raw coordinates. To make matters worse, these definitions change drastically depending on the context. As shown in Concept grounding across different environments, "left of a ladder" in Kangaroo requires horizontal offset and vertical platform alignment, whereas "left of a flag" in Skiing requires diagonal anticipation. Hard-coding these rules for every new environment is unscalable and severely limits an agent's ability to adapt to novel domains.

Concept grounding across different environments

Methods

The authors introduce GRAIL (Grounding Relational Agents through Interactive Learning), a framework that automates concept grounding by replacing hand-crafted spatial rules with learnable, differentiable valuation functions (implemented as small MLPs).

To train these functions without dense human labeling, GRAIL leverages a two-step approach:

  1. LLM Proxy Generation: The framework prompts an LLM with a high-level textual description of the game and the target predicate. The LLM generates a generic Python function representing the concept (e.g., a basic dx < 0 rule for "left").
  2. Concept Alignment Module: GRAIL introduces a novel Concept Alignment Loss ($L^{CA}$). As illustrated in GRAIL Framework Overview, the system evaluates both the learned neural valuation function and the LLM's proxy function over a dense 2D grid of spatial offsets, penalizing discrepancies using binary cross-entropy.
GRAIL Framework Overview

Crucially, this alignment loss is annealed (gradually reduced to zero) over the course of training. This provides the agent with a "warm start" prior from the LLM, but ultimately allows environmental rewards to reshape and refine the concept definition.

Training is split into two stages: Stage 1 isolates concept learning in a simplified, enemy-free environment. Stage 2 freezes these learned concepts and trains a joint neural-symbolic policy in the full, un-simplified game.

Datasets

The framework is evaluated on three distinct, challenging Atari games from the Arcade Learning Environment (ALE): Kangaroo, Seaquest, and Skiing.

The authors utilize HackAtari to modify the game states for the simplified Stage 1 training (e.g., removing enemies) and OCAtari to extract object-centric states—such as the exact $x,y$ coordinates of the player, ladders, divers, and flags—directly from the game's RAM.

Key Insights and Ideas

  • LLMs are good mentors, but bad players: Directly plugging raw LLM-generated code into the agent as a fixed rule results in poor performance. The LLM provides an excellent abstract template, but lacks the precision to handle environment-specific geometry without interactive refinement.
  • Concepts adapt to physics: GRAIL morphs abstract concepts to fit a game's specific mechanics. For example, in Skiing, it learns an asymmetric, diagonal activation map for "left of flag" because the player moves downhill and must steer anticipatorily before reaching the gate (see Environment-specific concept groundings learned by GRAIL).
  • The Reward vs. Goal Dilemma: In complex environments, maximizing raw score (e.g., shooting enemies) often conflicts with completing high-level goals (e.g., rescuing divers). GRAIL’s neuro-symbolic architecture helps navigate this trade-off, keeping the agent goal-directed even when pure neural networks get distracted by local, short-term rewards.
Environment-specific concept groundings learned by GRAIL

Key Results

  • Matches Expert Performance: In simplified environments, GRAIL variants (using proxies from Claude or GPT-4o) matched or outperformed neuro-symbolic baselines that used expert, hand-crafted valuation functions, while significantly outperforming pure neural PPO.
  • Corrects Flawed Priors: Qualitative heatmaps reveal that GRAIL successfully reshaped flawed LLM priors (which often generated overly simplistic vertical or horizontal strips) into precise, environment-aligned shapes.
  • High-Level Goal Completion: In full-game training on Seaquest, GRAIL was the only method capable of successfully completing the high-level goal of rescuing divers, whereas standard reward-maximizing baselines completely ignored the divers to farm easier enemy-killing points.

Limitations and Future Work

  • Remaining Hand-Crafted Elements: While GRAIL automates concept grounding, it still requires an externally specified inventory of predicates, the high-level logic program structure, and an object extraction tool (OCAtari).
  • Two-Stage Rigidity: Freezing the valuation functions after Stage 1 prevents concepts from co-adapting or evolving alongside the policy during full-game training, which can introduce concept drift or misalignment under intense reward pressure.
  • Future Directions: The authors suggest moving toward true end-to-end training that eliminates the two-stage split, extending the framework to non-spatial or $n$-ary predicates (like between(A, B, C)), and exploring contrastive or ranking losses to improve robustness against noisy LLM proxies.

Summary updated

BibTeX
@misc{shindo2026grail,
  author = {Hikaru Shindo and Henri Rößler and Quentin Delfosse and Kristian Kersting},
  title = {{GRAIL: Autonomous Concept Grounding for Neuro-Symbolic Reinforcement Learning}},
  year = {2026},
  eprint = {2604.16871},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.16871},
}
Figure