Exploring RL-based LLM Training for Formal Language Tasks with Programmed Rewards

Alexander G. Padula, Dennis J. N. J. Soemers
10/22/2024
cs.CLcs.AIcs.LG

No official code found. Best implementation: PadLex/Reinforcement-Learning-from-Explicitly-Programmed-Reward-Signals (0 stars, MIT, last commit 2024-11-25).

Abstract

Proximal Policy Optimization (PPO) is commonly used in Reinforcement Learning from Human Feedback to align large language models (LLMs) with downstream tasks. This paper investigates the feasibility of using PPO for direct reinforcement learning (RL) from explicitly programmed reward signals, as opposed to indirect learning from human feedback via an intermediary reward model. We focus on tasks expressed through formal languages, such as mathematics and programming, where explicit reward functions can be programmed to automatically assess the quality of generated outputs. We apply this approach to a sentiment alignment task, a simple arithmetic task, and a more complex game synthesis task. The sentiment alignment task replicates prior research and serves to validate our experimental setup. Our results show that pure RL-based training for the two formal language tasks is challenging, with success being limited even for the simple arithmetic task. We propose a novel batch-entropy regularization term to aid exploration, although training is not yet entirely stable. Our findings suggest that direct RL training of LLMs may be more suitable for relatively minor changes, such as alignment, than for learning new tasks altogether, even if an informative reward signal can be expressed programmatically.

View on arXivView PDF

Code Implementations(1)

MIT
00F#, CSSJun 18, 20241 years agoMIT

Similar Papers

Cite this paper

@article{padula2024exploring,
  title  = {Exploring RL-based LLM Training for Formal Language Tasks with Programmed Rewards},
  author = {Alexander G. Padula and Dennis J. N. J. Soemers},
  year   = {2024},
  eprint = {2410.17126},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.17126v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.17126.svg)](https://codeofpaper.com/paper/2410.17126)

Discussion