paper-with-me

홈 › Papers

Measuring memorization in RLHF for code completion

2024-06-17 · Aneesh Pappu, Billy Porter, Ilia Shumailov, Jamie Hayes

Reinforcement learning with human feedback (RLHF) has become the dominant method to align large models to user preferences. Unlike fine-tuning, for which there are many studies regarding training data memorization, it is not clear how memorization is affected by or introduced in the RLHF alignment process. Understanding this relationship is important as real user data may be collected and used to align large models; if user data is memorized during RLHF and later regurgitated, this could raise privacy concerns. In addition to RLHF, other methods such as Direct Preference Optimization (DPO) and $\Psi$PO have gained popularity for learning directly from human preferences, removing the need for optimizing intermediary reward models with reinforcement learning. In this work, we analyze how training data memorization can surface and propagate through each phase of RLHF and direct preference learning. We focus our study on code completion models, as code completion is one of the most popular use cases for large language models. We find that RLHF significantly decreases the chance that data used for reward modeling and reinforcement learning is memorized in comparison to directly fine-tuning on this data, but that examples already memorized during the fine-tuning stage of RLHF, will, in the majority of cases, remain memorized after RLHF. In contrast, we find that aligning by learning directly from human preference data via a special case of $\Psi$PO, Identity Preference Optimization (IPO), increases the likelihood that training data is regurgitated compared to RLHF. Our work suggests that RLHF, as opposed to direct preference learning, is a safer way to mitigate the risk of regurgitating sensitive preference data when aligning large language models. We find our conclusions are robust across multiple code completion datasets, tasks, and model scales.

📄 PDF Abstract BibTeX arXiv:2406.11715

Code (0)

등록된 구현이 없습니다.

Tasks

Code CompletionMemorizationreinforcement-learningReinforcement Learning

Methods 이 논문이 사용한 방법론

ALIGN In the ALIGN method, visual and language representations are jointly trained from noisy image alt-text data. The image and text encoders are learned via contrastive loss…
Focus 설명 없음

Similar Papers 제목 키워드 기반

Measuring Memorization Effect in Word-Level Neural Networks Probing

2020-06-29 · Rudolf Rosa, Tomáš Musil, David Mareček

Multiple studies have probed representations emerging in neural networks trained for end-to-end NLP tasks and examined what word-level linguistic information may be encoded in the representations. In classical probing, a…

Machine TranslationMemorizationTranslation

Effective Code Membership Inference for Code Completion Models via Adversarial Prompts

2025-11-19 · Yuan Jiang, Zehao Li, Shan Huang, Christoph Treude 외 arxiv

Membership inference attacks (MIAs) on code completion models offer an effective way to assess privacy risks by inferring whether a given code snippet was part of the training data. Existing black- and gray-box MIAs rely…

Code Completion

MultiMem: Measuring and Mitigating Memorization in Multi-Modal Contrastive Learning

2026-06-20 · Wenhao Wang, Franziska Boenisch, Michael Backes, Adam Dziedzic arxiv

Memorization in machine learning models enables high performance on rare in-distribution samples by capturing their atypical patterns. However, it also causes harmful retention of noise and outliers, degrading generaliza…

Self-Supervised LearningContrastive Learning

PrivMedChat: End-to-End Differentially Private RLHF for Medical Dialogue Systems

2026-03-03 · Sudip Bhujel arxiv

Large language models are increasingly used for patient-facing medical assistance and clinical decision support, but adapting them to clinical dialogue often requires supervision derived from doctor-patient conversations…

Reinforcement Learning

Do LLMs Really Memorize Personally Identifiable Information? Revisiting PII Leakage with a Cue-Controlled Memorization Framework

2026-01-07 · Xiaoyu Luo, Yiyi Chen, Qiongxiu Li, Johannes Bjerva arxiv

Large Language Models (LLMs) have been reported to "leak" Personally Identifiable Information (PII), with successful PII reconstruction often interpreted as evidence of memorization. We propose a principled revision of m…