Inverse Reinforcement Learning with Dynamic Reward Scaling for LLM Alignment

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Cheng, Ruoxi, Ma, Haoxuan, Wang, Weixin, Duan, Ranjie, Liu, Jiexi, Jia, Xiaoshuang, Qin, Simeng, Cao, Xiaochun, Liu, Yang, Jia, Xiaojun
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866915826305597440
author Cheng, Ruoxi
Ma, Haoxuan
Wang, Weixin
Duan, Ranjie
Liu, Jiexi
Jia, Xiaoshuang
Qin, Simeng
Cao, Xiaochun
Liu, Yang
Jia, Xiaojun
author_facet Cheng, Ruoxi
Ma, Haoxuan
Wang, Weixin
Duan, Ranjie
Liu, Jiexi
Jia, Xiaoshuang
Qin, Simeng
Cao, Xiaochun
Liu, Yang
Jia, Xiaojun
contents Alignment is vital for safely deploying large language models (LLMs). Existing techniques are either reward-based (training a reward model on preference pairs and optimizing with reinforcement learning) or reward-free (directly fine-tuning on ranked outputs). Recent research shows that well-tuned reward-based pipelines remain the most robust, and single-response demonstrations can outperform pairwise preference data. However, there still exist two key challenges: (1) imbalanced safety datasets that overrepresent common hazards while neglecting long-tail threats; and (2) static reward models that ignore task difficulty, limiting optimization efficiency and attainable gains. To address these limitations, we propose DR-IRL, which Dynamically adjusts Rewards through Inverse Reinforcement Learning. We first train category-specific reward models using a balanced safety dataset of seven harmful categories as demonstration via IRL. Then we enhance Group Relative Policy Optimization (GRPO) by introducing dynamic reward scaling: adjusting rewards by task difficulty, data-level hardness by text encoder cosine similarity, and model-level responsiveness by reward gaps. Extensive experiments across various benchmarks and LLMs demonstrate that DR-IRL outperforms all baseline methods in safety alignment while maintaining usefulness.
format Preprint
id arxiv_https___arxiv_org_abs_2503_18991
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Inverse Reinforcement Learning with Dynamic Reward Scaling for LLM Alignment
Cheng, Ruoxi
Ma, Haoxuan
Wang, Weixin
Duan, Ranjie
Liu, Jiexi
Jia, Xiaoshuang
Qin, Simeng
Cao, Xiaochun
Liu, Yang
Jia, Xiaojun
Computation and Language
Artificial Intelligence
Machine Learning
Alignment is vital for safely deploying large language models (LLMs). Existing techniques are either reward-based (training a reward model on preference pairs and optimizing with reinforcement learning) or reward-free (directly fine-tuning on ranked outputs). Recent research shows that well-tuned reward-based pipelines remain the most robust, and single-response demonstrations can outperform pairwise preference data. However, there still exist two key challenges: (1) imbalanced safety datasets that overrepresent common hazards while neglecting long-tail threats; and (2) static reward models that ignore task difficulty, limiting optimization efficiency and attainable gains. To address these limitations, we propose DR-IRL, which Dynamically adjusts Rewards through Inverse Reinforcement Learning. We first train category-specific reward models using a balanced safety dataset of seven harmful categories as demonstration via IRL. Then we enhance Group Relative Policy Optimization (GRPO) by introducing dynamic reward scaling: adjusting rewards by task difficulty, data-level hardness by text encoder cosine similarity, and model-level responsiveness by reward gaps. Extensive experiments across various benchmarks and LLMs demonstrate that DR-IRL outperforms all baseline methods in safety alignment while maintaining usefulness.
title Inverse Reinforcement Learning with Dynamic Reward Scaling for LLM Alignment
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2503.18991