Skip to main content
QUICK REVIEW

[Paper Review] The Boy Who Survived: Removing Harry Potter from an LLM is harder than reported

Adam Shostack|arXiv (Cornell University)|Mar 6, 2024
Legal Systems and Judicial ProcessesSocial Sciences3 citations
TL;DR

This paper challenges the claim that Harry Potter-related knowledge can be effectively erased from large language models (LLMs), demonstrating through lightweight experiments that even after targeted unlearning, the model continues to generate or allude to Harry Potter content. Despite using a model specifically fine-tuned to forget such knowledge, the author observed explicit mentions of Harry Potter, near-miss references (e.g., 'Voldemar Grunther'), and hallucinated or confabulated content tied to the series, indicating persistent memorization.

ABSTRACT

Recent work arXiv.2310.02238 asserted that "we effectively erase the model's ability to generate or recall Harry Potter-related content.'' This claim is shown to be overbroad. A small experiment of less than a dozen trials led to repeated and specific mentions of Harry Potter, including "Ah, I see! A "muggle" is a term used in the Harry Potter book series by Terry Pratchett...''

Motivation & Objective

  • To test the robustness of targeted unlearning methods in erasing knowledge of Harry Potter from a fine-tuned LLM.
  • To evaluate whether claims of effective knowledge erasure are overstated, particularly regarding culturally salient fictional content.
  • To investigate whether residual memorization persists even after model fine-tuning aimed at forgetting specific content.
  • To explore the challenges of formally defining and measuring 'forgetting' in LLMs, especially for well-known fictional characters.
  • To highlight the difficulty of evaluating whether a model has truly forgotten sensitive or high-impact training data.

Proposed method

  • The author fine-tuned a 2019 iMac-based LLM using Ollama and the gguf format, leveraging a model previously reported to forget Harry Potter content.
  • A series of 10 targeted prompts were used to test for explicit and implicit references to Harry Potter, including archetypal phrases like 'the boy who lived' and 'he who must not be named'.
  • Additional experiments included prompts about terms like 'mudblood' and 'muggle', and a news article-style query about a real person named Harry Potter.
  • The author also tested GPT-4 under a roleplay scenario where it was instructed to act as a model trained to forget Harry Potter.
  • Responses were analyzed for explicit mentions, semantic proximity, and hallucinated content related to the Harry Potter universe.
  • The study used minimal intervention—no retraining or additional fine-tuning—relying solely on prompt-based probing to assess memorization persistence.

Experimental results

Research questions

  • RQ1Can a large language model that was specifically fine-tuned to forget Harry Potter content still generate or allude to it?
  • RQ2To what extent do archetypal or indirect references (e.g., 'the boy who lived') indicate residual memorization?
  • RQ3How do model responses to terms like 'mudblood' or 'Voldemort' reflect persistent memorization despite unlearning?
  • RQ4Can the model be tricked into revealing knowledge of a fictional character through indirect or metaphorical prompts?
  • RQ5What are the limitations of current unlearning techniques in erasing culturally salient, high-frequency fictional content from LLMs?

Key findings

  • The model explicitly mentioned Harry Potter by name in two of the initial ten prompts, indicating that targeted unlearning did not fully erase the knowledge.
  • The model generated near-miss references such as 'Voldemar Grunther', which has a Levenshtein distance of 2 from 'Voldemort', suggesting strong residual activation of the concept.
  • The model hallucinated a fictional 'Harry Harris series' by Jasper Fforde, a real author, indicating that the model associated the name with fantasy literature and possibly confused it with the Potter series.
  • Even when prompted with terms like 'mudblood', the model produced responses that linked the term to the Harry Potter universe, despite the prompt not explicitly referencing the series.
  • In a roleplay test, GPT-4 claimed it could not provide information about 'He Who Shall Not Be Named'—but only after being explicitly instructed to act as a forgetful model, suggesting that the model's default behavior still retains the knowledge.
  • The author concluded that the claim of effective erasure of Harry Potter content is overly broad, as the model continues to generate or allude to the content through multiple pathways, including semantic and phonetic proximity.

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.