GLARE: Scalable Neuro-Symbolic Reward Shaping for LLM Agents via Group-Level Automata

Jingyuan Yan, Qingchen Liu, Qichao Ma, Jiahu QinICML 2026

Introduction

Training Large Language Model (LLM) agents to execute complex, multi-step tasks—such as navigating a simulated environment to find and clean an object—is notoriously difficult. A primary bottleneck in Reinforcement Learning (RL) for these agents is sparse rewards. Typically, an agent only receives a binary "success" or "failure" signal at the end of a long trajectory, making it incredibly challenging to learn which intermediate actions actually contributed to the outcome.

To mitigate this, researchers employ "reward shaping" to provide intermediate progress signals. However, existing approaches face a critical trade-off:

  1. Heuristic Rules: These are rigid, domain-specific, and difficult to scale across diverse scenarios.
  2. LLM-as-a-Judge: While semantically capable, using an LLM to score every step is computationally expensive and highly stochastic. LLM judges often suffer from "reasoning-answer drift"—where the model correctly identifies a mistake in its reasoning trace but still outputs a high numerical score—leading to inconsistent and destabilizing RL signals.

To resolve this, researchers introduce GLARE (Group-Level Automata for Reward Shaping), a neuro-symbolic framework that stabilizes RL by replacing inconsistent LLM-based rewards with deterministic logic.

The GLARE Framework

GLARE decouples semantic understanding from logical verification to provide dense, reliable reward signals. The pipeline operates in four distinct stages:

  1. Symbolic Grounding: A lightweight LLM extracts structured "triples" (Subject, Category, Value) from raw environment observations (e.g., [apple, state, sliced]). These triples form an explicit "belief state" that tracks the world's evolution over time.
  2. Logic-Guided Critic: Instead of scoring every individual step, a "Critic" LLM analyzes a group of trajectories to identify high-level semantic milestones (Positive LTL) and forbidden behaviors (Negative LTL).
  3. LTL Translation & Compilation: These natural language milestones are translated into Linear Temporal Logic (LTL) formulas—a formal mathematical language for describing sequences of events. The formulas are then compiled into Deterministic Büchi Automata (DBA), which act as rigorous, state-tracking flowcharts.
  4. Automaton-Based Reward: As the agent interacts with the environment, the automaton tracks its progress. Transitioning to a "milestone" state yields a reward, while violating a safety constraint incurs a penalty. Because the automaton is a mathematical construct, the resulting reward is 100% consistent and deterministic.

GLARE is specifically integrated with Group Relative Policy Optimization (GRPO), an RL algorithm that optimizes models by comparing the relative performance of a group of simultaneous attempts.

Key Insights

A core argument of the paper is that for group-based RL algorithms like GRPO, intra-group consistency is far more critical than the absolute accuracy of a reward. If an LLM judge assigns different scores to identical actions within the same group, the mathematical "advantage" calculation breaks down. GLARE ensures every trajectory in a group is measured against the exact same logical "ruler."

Furthermore, GLARE eliminates the "Reasoning-Execution Gap" inherent in LLM judges by delegating the final reward calculation to a deterministic automaton. This approach also yields massive efficiency gains through amortization: by using the LLM to generate the rules once per group rather than scoring every single step, GLARE drastically reduces token consumption.

Experimental Results

The researchers evaluated GLARE on challenging embodied AI and web-browsing benchmarks, including ALFWorld and WebShop. The results demonstrate significant improvements in both performance and efficiency:

  • Superior Performance: On ALFWorld, GLARE outperformed vanilla GRPO by 12.1% in success rate and surpassed direct LLM-as-a-Judge baselines by 8.1%.
  • Massive Cost Savings: These performance gains were achieved using only 15% of the completion tokens required by trace-level LLM judges.
  • Training Stability & Robustness: Unlike LLM-based judges, which frequently caused "performance collapse" due to noisy rewards, GLARE maintained stability throughout training. It also proved highly robust; when environment descriptions were perturbed with random distractor text, GLARE maintained its performance while state-of-the-art methods saw significant declines.

Limitations and Future Directions

While highly effective, GLARE exhibits an object-centric bias. It excels in environments where actions and observations can be easily parsed into triplets, but may struggle in highly abstract domains where "events" are harder to symbolize. Additionally, the LTL translation process is not flawless; the authors note a 12% mismatch rate where the generated logic does not perfectly align with the intended semantic milestones.

Future work will focus on fine-tuning sub-modules (such as the LTL translator) to reduce these errors and exploring more advanced event abstraction methods to extend GLARE's applicability to non-object-centric tasks.

Summary updated

BibTeX
@inproceedings{yan2026glare,
  author = {Jingyuan Yan and Qingchen Liu and Qichao Ma and Jiahu Qin},
  title = {{GLARE: Scalable Neuro-Symbolic Reward Shaping for LLM Agents via Group-Level Automata}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=3a8fm24EQd},
}
Figure