Skip to main content
QUICK REVIEW

[Paper Review] Memorization in NLP Fine-tuning Methods

Fatemehsadat Mireshghallah, Archit Uniyal|arXiv (Cornell University)|May 25, 2022
Topic ModelingComputer Science11 citations
TL;DR

This paper investigates memorization risks in NLP fine-tuning methods, using membership inference and extraction attacks to evaluate three approaches: full fine-tuning, head-only fine-tuning, and adapter fine-tuning. It finds that fine-tuning only the model head leads to significantly higher memorization—by a large margin—compared to full fine-tuning or adapter tuning, which are more privacy-preserving and lie on the Pareto frontier for privacy-utility trade-offs.

ABSTRACT

Large language models are shown to present privacy risks through memorization of training data, and several recent works have studied such risks for the pre-training phase. Little attention, however, has been given to the fine-tuning phase and it is not well understood how different fine-tuning methods (such as fine-tuning the full model, the model head, and adapter) compare in terms of memorization risk. This presents increasing concern as the "pre-train and fine-tune" paradigm proliferates. In this paper, we empirically study memorization of fine-tuning methods using membership inference and extraction attacks, and show that their susceptibility to attacks is very different. We observe that fine-tuning the head of the model has the highest susceptibility to attacks, whereas fine-tuning smaller adapters appears to be less vulnerable to known extraction attacks.

Motivation & Objective

  • To understand how different fine-tuning methods affect memorization of training data in large language models.
  • To assess the privacy risks associated with fine-tuning, especially given that fine-tuning data is often small, targeted, and highly sensitive.
  • To compare the susceptibility of various fine-tuning methods—full model, head-only, and adapter tuning—to membership inference and data extraction attacks.
  • To provide empirical evidence on the privacy-utility trade-offs of different fine-tuning strategies for practitioners.

Proposed method

  • Empirically evaluate memorization using two proxy metrics: membership inference attack (MIA) recall and exposure (a proxy for data extraction risk).
  • Conduct experiments on three datasets: Wikipedia, Penn Treebank, and Enron Emails, using GPT-2 for autoregressive language modeling.
  • Compare three fine-tuning methods: full model fine-tuning, head-only fine-tuning, and adapter fine-tuning with reduction factors of 16 and 2.
  • Analyze the impact of parameter location by fine-tuning different blocks of the GPT-2 architecture (e.g., blocks 1–6, 7–12, every other block).
  • Perform ablation studies on parameter tying, comparing tied vs. untied embeddings and head parameters to assess their effect on memorization and generalization.
  • Use validation perplexity as a proxy for model utility and plot privacy-utility trade-offs to identify Pareto-optimal methods.

Experimental results

Research questions

  • RQ1How does the choice of fine-tuning method affect the model's susceptibility to membership inference attacks?
  • RQ2What is the relative memorization risk of fine-tuning the full model, only the head, or only adapters?
  • RQ3Does the architectural position of trainable parameters (e.g., early vs. late layers) influence memorization?
  • RQ4How does parameter tying between input embeddings and the language model head affect privacy-utility trade-offs?
  • RQ5Are there fine-tuning configurations that achieve better privacy-utility trade-offs than commonly used practices?

Key findings

  • Fine-tuning only the model head results in the highest memorization, as measured by membership inference attack recall, even surpassing full fine-tuning.
  • Full model fine-tuning and adapter fine-tuning both lie on the Pareto frontier for attack recall versus validation perplexity, indicating a better privacy-utility trade-off.
  • Adapter fine-tuning with reduction factors of 16 and 2 shows lower susceptibility to known data extraction attacks compared to head-only fine-tuning.
  • Fine-tuning the last six blocks (7–12) of GPT-2 results in higher memorization than fine-tuning the first six blocks (1–6), suggesting that later layers are more prone to memorization.
  • The 8th block, when fine-tuned individually, achieves the lowest attack recall and lowest perplexity, making it the most favorable single block for fine-tuning in terms of privacy-utility balance.
  • Untying the input embeddings and head parameters worsens the privacy-utility trade-off, indicating that parameter tying improves generalization and reduces memorization.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.