Measuring data memorization in RLHF for code completion modelsMeasuring memorization in RLHF for code completion
The paper studies how training data memorization arises and propagates across the stages of RLHF and direct preference learning, with experiments focused on code completion models. The results show that, compared with fine-tuning directly on these data, RLHF significantly reduces the probability that data used for reward modeling and reinforcement learning are memorized, but samples already memorized during the RLHF fine-tuning stage remain memorized after RLHF in most cases. In contrast, when alignment is learned directly from human preference data via IPO, a special case of ΨPO, training data are more likely to be regurgitated than with RLHF. The authors therefore propose that when aligning large language models, RLHF reduces the risk of regurgitating sensitive preference data more than direct preference learning, and this conclusion holds consistently across multiple code completion datasets, tasks, and model scales.