DR-IRL: Dynamic reward scaling inverse reinforcement learning for LLM alignmentInverse Reinforcement Learning with Dynamic Reward Scaling for LLM Alignment
AI summary
DR-IRL dynamically adjusts rewards through inverse reinforcement learning, targeting LLM alignment. It first trains category-specific reward models with a balanced safety dataset covering seven categories of harmful content, then in GRPO dynamically scales rewards according to task difficulty, data hardness measured by text encoder cosine similarity, and model responsiveness measured by reward gap. Experiments on multiple benchmarks and multiple LLMs show that DR-IRL outperforms all baselines on safety alignment while maintaining helpfulness.