Abstract
Reinforcement learning (RL) often encounters delayed and sparse feedback in real-world applications, even with only episodic rewards. Previous approaches have made some progress in reward redistribution for credit assignment but still face challenges, including training difficulties due to redundancy and ambiguous attributions stemming from overlooking the multifaceted nature of mission performance evaluation. Large Language Models (LLMs) encompass fruitful decision-making knowledge and provide a plausible tool for reward redistribution. Even so, deploying LLMs in this case is non-trivial due to the misalignment between linguistic knowledge and symbolic requirements, together with inherent randomness and hallucinations. To tackle these issues, we introduce LaRe, a novel LLM-empowered symbolic-based decision-making framework to improve credit assignment. Key to LaRe is the concept of the Latent Reward, which works as a multi-dimensional performance evaluation, enabling more interpretable goal attainment from various perspectives and facilitating more effective reward redistribution. We demonstrate that semantically generated code from an LLM can bridge linguistic knowledge and symbolic latent rewards. Theoretically, reward-irrelevant redundancy elimination in the latent reward benefits RL performance through more accurate reward estimation. Extensive experimental results show that LaRe achieves superior temporal credit assignment, excels in multi-agent contribution allocation, and even outperforms policies trained with ground truth rewards for certain tasks.
The Credit Assignment Challenge
In many real-world Reinforcement Learning (RL) scenarios, an agent only receives a "grade" at the very end of a long sequence of actions—known as an episodic reward. This creates a massive credit assignment problem: which specific actions actually contributed to the final outcome? Existing reward redistribution methods attempt to break this final score into step-by-step proxy rewards but often struggle with redundancy in raw environment states, ambiguity in performance metrics, and a lack of interpretability.
The LaRe Framework
LaRe uses an LLM as a generalized information encoder to bridge the gap between human-like linguistic reasoning and symbolic RL states. The framework consists of three main stages:
- Environment Prompting: The LLM receives a standardized description of the task and state-action space to identify key success factors.
- Latent Reward Self-verification: To overcome hallucinations, the LLM writes Python code that acts as a function $\phi$, mapping raw states to a multi-dimensional Latent Reward vector (e.g., dimensions for "height" or "stability"). The system automatically verifies code executability using random state samples.
- Contribution Allocation: These latent rewards act as an information bottleneck. A neural network decoder ($f_\psi$) learns to map these interpretable dimensions to a scalar proxy reward by minimizing the difference between the sum of predicted rewards and the actual episodic return.
By filtering out reward-irrelevant features through this latent space, the agent achieves tighter concentration bounds and more stable learning. The use of code as a bridge ensures the reward functions are deterministic, executable, and transparent.
Experimental Evaluation and Results
The researchers evaluated LaRe across MuJoCo locomotion tasks, Multi-Agent Particle Environments (MPE), and the StarCraft Multi-Agent Challenge (SMAC).
Key Findings:
- Superior Performance: In MuJoCo tasks, LaRe consistently reached higher average episodic returns faster than state-of-the-art baselines like RRD and IRCR.
- Multi-Agent Scaling: In MPE, LaRe showed significant gains as the number of agents increased (from 6 to 30), effectively handling both temporal and inter-agent credit assignment.
- Beating "Ground Truth": Surprisingly, LaRe sometimes outperformed policies trained with human-designed dense rewards. This suggests that LLM-derived latent rewards (like stability or joint safety) can be more effective for learning than standard environment rewards.
- Zero-Shot Generalization: On a novel "Triangle Area" task, LaRe derived effective latent rewards despite the task being absent from the LLM's training data, proving the framework relies on reasoning rather than memorization.
Conclusion and Future Directions
LaRe demonstrates that LLMs can significantly improve RL credit assignment by extracting semantically meaningful features from symbolic states. While currently dependent on symbolic state descriptions, future work aims to integrate Vision-Language Models (VLMs) to extract object information directly from pixels, potentially extending LaRe to complex visual environments like Atari or real-world robotics.
Summary updated