Skip to content

TULIP: Input-Localized Layer Selection for Targeted LLM UnlearningTULIP: Targeted LLM Unlearning at Layers Identified Per-Input

Paper Tracker· arXiv:2609.34591· Yejin Kim, William F. Shen, Seokwon Jung, Daeun Park, Seong Joon Oh·Indexed by this site · 2026-10-04· Originally publishedDefenses

Quick read

Defenses

Based on the paper PDF (AI-generated); refer to the original

TULIP locates the formation layer per input and de-aligns it; Llama-8B's FQ on TOFU forget05 is 0.89±0.13.

Questions
Representation-level forgetting typically uses the same layer for the entire forgetting set, but the layer where the forgetting answer is formed varies with input. If only the output is changed, information supporting the answer may still remain.
Methods
TULIP uses logit lens to find the earliest layer where the target remains top-1 for each input, treating it as the boundary between formation and readout, then removes the alignment between that layer's hidden state and the target's unembedding vector, and uses a retention loss to constrain the retention set.
Experiments and results
On TOFU, PISTOL, and WMDP, TULIP's forgetting metrics are higher than the baseline on most listed models, while also reporting MU or retention accuracy. On Llama-3B's forget10, LUNAR has higher FQ. FQ remains high after paraphrasing, and decreases after 4-bit.
Limitations and future work
The authors state that logit lens is only a linear approximation and plan to jointly design boundary estimation and forgetting objectives, and improve 4-bit robustness. Experiments include 7 models and TOFU, PISTOL, WMDP-Bio/Cyber; the paper does not report the number of WMDP repetitions.
Experimental setupLlama-3.1-8B、Llama-3.2-3B et al. · TOFU、PISTOL et al. · Forget Quality (FQ)、Model Utility (MU) et al.
Evaluated models
Llama-3.1-8BLlama-3.2-3BLlama-3.2-1BLlama2-7BQwen2.5-7BQwen3-4BZephyr-7B-beta
Benchmarks
TOFUPISTOLWMDP
Metrics
Forget Quality (FQ)Model Utility (MU)accuracy
AI summaryThe researchers propose TULIP, an input-specific layer-localized representation-level forgetting method to remove specified knowledge from large language models. The authors first run hijacking experiments, transplanting the target model's hidden states into an oracle trained only on the retained set; the oracle cannot generate the forgotten answer on its own but outputs it from the transplanted state, showing the answer forms in intermediate layers and is only read out later, so forgetting should target formation rather than reading, and the layer where formation ends varies greatly across inputs. TULIP uses logit lens per input to locate the formation–reading boundary and removes alignment between the hidden state and the forgotten answer's unembedding vector there. On TOFU, PISTOL, and WMDP, TULIP consistently outperforms output-layer and representation-layer baselines on Llama, Qwen, and Zephyr models, and remains robust to paraphrase and quantization attacks; its per-input layer selection also serves as a plug-and-play component improving existing methods.

The researchers propose TULIP, an input-specific layer-localized representation-level forgetting method to remove specified knowledge from large language models. The authors first run hijacking experiments, transplanting the target model's hidden states into an oracle trained only on the retained set; the oracle cannot generate the forgotten answer on its own but outputs it from the transplanted state, showing the answer forms in intermediate layers and is only read out later, so forgetting should target formation rather than reading, and the layer where formation ends varies greatly across inputs. TULIP uses logit lens per input to locate the formation–reading boundary and removes alignment between the hidden state and the forgotten answer's unembedding vector there. On TOFU, PISTOL, and WMDP, TULIP consistently outperforms output-layer and representation-layer baselines on Llama, Qwen, and Zephyr models, and remains robust to paraphrase and quantization attacks; its per-input layer selection also serves as a plug-and-play component improving existing methods.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Representation-level unlearning often uses a fixed layer, but the layer where the forgotten target forms varies with the input; TULIP instead intervenes per input.

    Representation-level unlearning often uses a single fixed layer, but the layer where the forgotten target's formation ends varies with the input.

    • Scenario: The authors state LLMs reproduce sensitive or copyrighted text from training corpora, involving the right to be forgotten under GDPR and copyright. Unlearning must remove the influence of specified data without retraining, while preserving model utility.
    • Existing shortcomings: Output-level methods like gradient ascent and NPO may only change what the model says, while information supporting answers can still be recovered. RMU, Adaptive RMU, and LUNAR directly modify intermediate representations, but still use the same intervention layer for the entire forget set.
    • Observation: An oracle trained only on the retention set has target accuracy of 0.63 on the forget set alone; after grafting the target model's hidden states, it rises to 1.00 (Figure 1(a), TOFU forget05, Llama-3.1-8B). The authors believe the target is already formed in intermediate layers, with readout mainly afterward, and that the stable success layer varies greatly across samples (Figure 1(b)).
    • Approach: Propose TULIP, which estimates the formation–readout boundary per input using logit lens, removes alignment between the hidden state and the target token's unembedding at that layer, and uses a retention term pulling retention-set hidden states toward the frozen model.
    • Setup: The forget set is context–target token pairs, and the retention set is contexts. The ideal reference is an oracle fine-tuned only on the retention set, which is impractical. The paper does not frame this setup as an attacker's knowledge level.
  2. What related research exists?

    The paper divides related work into output-level and representation-level forgetting, and criticizes the latter for using one layer shared across all samples.

    The paper divides prior work into unlearning that only changes the output distribution, and unlearning that modifies intermediate representations at a fixed layer; the difference is whether the intervention layer varies with the input.

    Rights and goals

    • Memory and rights: Carlini et al. (2021) discuss extracting training data from LLMs. Mantelero (2013), Voigt and Bussche (2017), Brown et al. (2022) address GDPR and the right to be forgotten, and Eldan and Russinovich (2023) address copyright. The paper uses these works to motivate unlearning.
    • No retraining: Sekhari et al. (2021), Maini et al. (2024), Zhang et al. (2024) formulate the goal as removing the influence of specified data while preserving utility, rather than training from scratch.

    Output-level unlearning

    • Losses and preferences: GA increases loss on forgotten data, and GradDiff adds a retention loss (Jang et al., 2023; Maini et al., 2024). NPO suppresses the likelihood of forgotten answers relative to the original model (Zhang et al., 2024). SimNPO removes that reference and normalizes likelihood by answer length (Fan et al., 2025).
    • Localization: Cha et al. (2025), Kim et al. (2025) use Fisher information to restrict the objective to some parameters; Zhai et al. (2026), Yoon et al. (2026a) act only on selected tokens. The paper states these methods still act only on outputs.
    • Knowing vs. saying: The paper cites Łucki et al. (2025), Hu et al. (2025), Wang et al. (2025), Xu et al. (2026), stating that output-level methods can change what the model says but do not necessarily remove what it knows.

    Representation-level unlearning

    • RMU: Li et al. (2024) push forgotten representations toward random vectors; the layer is chosen by hyperparameter search and then used for all forgotten samples; they update that layer and the two preceding layers.
    • Adaptive RMU: Huu-Tien et al. (2025) scale the target by activation norm, allowing the intervention to work at more layers, but it is still a single fixed layer.
    • LUNAR: Shen et al. (2025) steer forgotten activations toward regions expressing inability to answer; the layer is chosen by whether it elicits refusal, then used for all samples; they update only the down-projection of that layer's MLP. The paper states these methods' effectiveness depends on the chosen layer, citing Huu-Tien et al. (2025).

    Baselines and benchmarks

    • Experimental comparisons: Baselines are GradDiff, NPO, SimNPO, RMU, LUNAR. Adaptive RMU appears only in related work, not in experimental tables. Benchmarks are TOFU, PISTOL, WMDP.

    The authors position this paper as: what is to be removed is the formation of the target, not the readout; the layer where formation ends for each input is determined individually using logit lens, rather than sharing one layer across the entire forget set.

  3. How does the paper address this problem?

    TULIP uses logit lens to find the formation–readout boundary per input and removes alignment with the target token at that layer.

    TULIP turns forgetting into per-input representation intervention: first find the layer where the target token finishes forming and reading begins, then remove alignment with the target only at that layer.

    Setting and hijacking experiments

    • Objects: Model M has L layers and vocabulary V. h_ℓ(x) is the ℓ-th layer hidden state at the last token position, and t is the target token to be generated. Subsequent layers plus final normalization and unembedding are denoted M_{ℓ+1:L}.
    • Data: Df is context–target pairs, Dr is retained contexts. The target model is fine-tuned on full data including Df; the oracle is fine-tuned only on Dr. Appendix C states TULIP uses context–target token pairs, while baselines are defined on full answers.
    • Hijacking: Graft the target model's h_ℓ(x_f) into the oracle and run the oracle's subsequent layers; success if the output is exactly t. Target accuracy is the proportion of forgotten pairs predicted exactly as t. On TOFU forget05, Llama-3.1-8B, the oracle alone is 0.63, and after grafting it is 1.00 (Figure 1(a)).
    • Inference: The authors argue this hidden state already encodes the target, subsequent layers mainly read the state that has fallen to t into logits, and an oracle that never saw Df can also read it, so reading should be preserved. The stable success layer is the earliest layer from which hijacking consistently succeeds (Eq. 1); the authors use persistence to exclude early coincidental matches. In Figure 1(b), this layer varies greatly across samples, and the authors state it often appears early.

    Using logit lens to set the boundary

    • Approach: In practice there is no oracle. Logit lens uses M's own unembedding and final normalization to project hidden states directly to the vocabulary and take top-1. Llama-3.1's normalization is RMSNorm; the authors state the method only uses top-1 and does not depend on the specific form of this normalization.
    • Definition: The estimated boundary is the earliest layer where the target remains top-1 at every subsequent layer, i.e., ℓ̂(xf)=min{ℓ:t̂k(xf)=t ∀ k≥ℓ}. Meaning: replace the oracle's subsequent computation in Eq. 1 with logit lens and require the same persistence.
    • Difference: This layer varies by input. RMU and LUNAR fix one layer for the entire forget set.

    Loss at the boundary

    • Forgetting term: At the estimated boundary, the target is encoded via alignment of the hidden state with its unembedding vector w_t. TULIP minimizes the square of this alignment, Lforget=𝔼[(⟨ h,wt⟩/(|h||wt|))2]. Meaning: h is the hidden state at that boundary, expectation over Df.
    • Gradient scope: The loss is computed at the boundary, so gradients only flow back to that layer and earlier; later reading layers are not updated by this forgetting term.
    • Retention term: At each layer, take the squared difference between hidden states on Dr and the frozen model's corresponding states, then average over all layers. Total loss is λ times the forgetting term plus the retention term, λ>0.
    • TOFU training: Appendix D states each method trains for 10 epochs, learning rate 1e-5, effective batch size 16 (4 per device, 4 accumulation steps). λ is selected by FQ on seed 0, then used for seeds 1 and 2. For Llama-3.1-8B on forget01/05/10, λ is 0.01, 0.02, 0.02. This appendix does not give training epochs for PISTOL and WMDP.

    Metric definitions

    • FQ: Two-sample KS test p-value of Truth Ratio distributions between the post-forgetting model and an oracle trained only on the retained set; higher means closer to the oracle. Truth Ratio compares length-normalized probabilities of a rewritten correct answer against a set of perturbed wrong answers (Appendix B).
    • MU: Section 4.1 writes MU for both TOFU and PISTOL as average ROUGE-L recall on the retained set. Appendix B also includes TOFU's true authors and world facts; PISTOL adds its control set, i.e., these two TOFU subsets.
    • WMDP: Accuracy on separately written four-choice questions. The authors state near-random 25% indicates effective forgetting. Forgetting uses the original documents, not these questions.
  4. What experiments did the paper conduct?

    On TOFU, Llama-8B's TULIP FQ is higher than the listed baselines; this is not the case for Llama-3B forget10 and elsewhere.

    Main comparisons are on TOFU, PISTOL, and WMDP. The abstract states TULIP consistently outperforms output-level and representation-level baselines; in Table 1, Llama-3B's forget10 is not the case.

    Experimental setup

    • Models: TOFU table headers read Llama-8B, Llama-3B, Llama-1B; Appendix D writes Llama-3.1-8B, Llama-3.2-3B, Llama-3.2-1B. PISTOL uses Llama2-7B, Qwen2.5-7B, Qwen3-4B. WMDP uses Zephyr-7B-beta.
    • TOFU and PISTOL: TOFU has 4,000 question-answer pairs, 200 fictional authors, 20 each; forget01/05/10 are 1%, 5%, 10% of authors, the rest is the retention set. PISTOL uses Sample Dataset 1: 20 sales or employment contracts, 20 attributes each, 400 total; forgetting A–C sides.
    • WMDP: 3,668 multiple-choice questions total: biosecurity 1,273, cybersecurity 1,987, chemistry 408; each question reviewed by at least two domain experts. The forget corpus is 5,000 biosecurity documents (truncated to first 512 tokens) and 1,000 cybersecurity documents (truncated to first 768 tokens). Table 3 only reports WMDP-Bio and WMDP-Cyber.
    • Baselines and metrics: Baselines are GradDiff, NPO, SimNPO, RMU, LUNAR. Higher FQ is closer to oracle. For WMDP, F is accuracy on the forget set, lower is better; R is accuracy on the retention set, higher is better.
    • Repetitions: Tables 1, 2, 4 are mean ± standard deviation over three runs; hyperparameters are selected by FQ on seed 0, then used for seeds 1 and 2. Tables 3 and 5 do not state the number of repetitions. Analysis sections default to TOFU forget05, Llama-3.1-8B. The paper does not use LLMs to score FQ.

    Main results

    According to Tables 1–3. TOFU rows take forget05. The comparison is the highest FQ among other methods in that setting, or the lowest F among other methods on WMDP-Bio. MU/R columns are MU for TOFU and PISTOL, and R for WMDP. Table 3 does not state repetitions.

    Swipe horizontally to read the table

    ModelSettingTULIPMU or RComparison
    Llama-8BTOFU forget05 FQ0.89±0.130.94±0.00LUNAR 0.54±0.41
    Llama-3BTOFU forget05 FQ0.42±0.090.80±0.01RMU 0.39±0.00
    Llama-1BTOFU forget05 FQ0.49±0.040.88±0.00RMU 0.36±0.14
    Llama2-7BPISTOL FQ0.80±0.170.81±0.06SimNPO 0.25±0.12
    Qwen2.5-7BPISTOL FQ0.75±0.120.87±0.00RMU 0.20±0.11
    Qwen3-4BPISTOL FQ0.75±0.120.91±0.00GradDiff 0.75±0.12
    Zephyr-7B-betaWMDP-Bio F0.3700.528RMU 0.452
    • Exceptions and cells not listed above: On Llama-3B's forget10, LUNAR's FQ is 0.37±0.15, TULIP's is 0.16±0.08; in the same cell TULIP's MU is 0.88±0.00 (Table 1). Llama-8B's forget01 and forget10 FQ are 0.97±0.03 and 0.72±0.10. On Llama-3B forget05's MU, RMU is 0.82±0.00, higher than TULIP.
    • PISTOL utility: The authors state that contract relations and entities must be separated. MU is not the highest in every column: on Llama2-7B, LUNAR is 0.87±0.01, TULIP is 0.81±0.06; on Qwen2.5-7B, LUNAR is 0.92±0.00, TULIP is 0.87±0.00 (Table 2).
    • WMDP: The authors state that merely stopping reproduction of documents may still allow answering newly written multiple-choice questions. Before unlearning, Cyber/Bio F is 0.427/0.647. TULIP's Cyber F is 0.267, SimNPO's is 0.268; Bio R is 0.528, the highest among methods in the table (Table 3). The authors state that TULIP targets how knowledge forms, so unlearning is more effective and preserves utility.

    Robustness to paraphrase and quantization

    • Setup: TOFU's rewritten forget questions, and evaluating after quantizing weights to 8-bit or 4-bit. Both are forget05, Llama-3.1-8B, three runs (Table 4).
    • Paraphrase: TULIP's FQ is 0.81±0.13, MU is 0.81±0.00, FQ higher than other methods in the table. NPO and SimNPO's FQ drop from 0.24±0.17 and 0.04±0.05 in the original to 0.06±0.06 and 0.00±0.00. The authors state these two methods only suppress answers on original questions; after rewriting, knowledge reappears.
    • Quantization: Under 8-bit, TULIP's FQ is 0.92±0.04, the highest in that column. Under 4-bit, TULIP's FQ drops to 0.30±0.12, lower than LUNAR's 0.45±0.22 and RMU's 0.35±0.12; MU remains 0.93±0.00. The authors state it is less robust under 4-bit but still in the same range as RMU and LUNAR.

    Boundary estimation and intervention layer

    • Lens: With oracle boundary and subsequent hidden states as positive class and earlier as negative, scoring by target token logits (Figure 2). AUROC is logit lens 0.884, tuned lens 0.834, J-lens 0.786. The authors speculate that the extra training of the latter two may inject information beyond the model's own computation. On 1,000 WikiText prompts, J-lens trains for 14.17 GPU hours, tuned lens for 0.06. The authors do not claim logit lens is optimal.
    • Fixed layer: When the unlearning loss is applied at a single layer shared by all samples, the authors state FQ generally increases with depth and peaks at the penultimate layer; even then it is still lower than TULIP (Figure 3(a)). The text does not give readings for each layer. In the figure, the red line is log(FQ), the green line is MU, and the dashed line is TULIP.
    • Offset: When offsetting relative to each input's estimated boundary, the authors state intervening exactly at that layer gives the highest FQ and preserves MU; earlier, MU is preserved but FQ is low, which the authors explain as the target not yet fully formed; later, MU drops and FQ also drops, which the authors explain as utility damage causing deviation from oracle even if the target is no longer output (Figure 3(b)).

    Per-input layer selection as a plugin

    • Approach: On the default forget05, Llama-3.1-8B, the original objectives of GradDiff, NPO, SimNPO, RMU are moved to per-input layers. LUNAR is not modified because it optimizes a redirection vector at a separately chosen layer, not end-to-end parameter updates (Section 5.4).
    • Numbers: Table 5 does not report standard deviations. GradDiff's MU goes from 0.802 to 0.944, FQ from 8.1×10^{-8} to 1.2×10^{-4}; NPO's FQ drops from 0.628 to 0.545, MU from 0.850 to 0.945; SimNPO's FQ from 0.012 to 0.112, MU from 0.896 to 0.940; RMU's FQ from 0.328 to 0.394, MU remains 0.939. In that table, TULIP is 0.997 and 0.937, oracle is 1.000 and 0.943.
    • Author interpretation: The authors state that preserving the readout layer is key to maintaining general capability, and FQ also rises except for NPO; they also state that the orthogonal loss is more compatible with the logit lens boundary than these original objectives. The paper does not explain why this table differs from the three-run means in Table 1.

    Other ablations and analyses

    • Qualitative examples are in Figures 4–6, with the same setup of forget05, Llama-3.1-8B. The authors state TULIP often gives plausible but incorrect answers close to oracle; Figure 4 and 5 captions say identical to oracle, Figure 6 says close. GradDiff, NPO, SimNPO sometimes only change format while retaining original information; RMU sometimes leaks forgotten answers, sometimes outputs degenerate text; LUNAR often refuses. The authors state refusal suits safety alignment but deviates from the unlearning goal of behaving as if never having seen the data.
  5. What are some points that can be further explored?

    The authors view logit lens as a linear approximation and list joint design with the forgetting target, as well as 4-bit robustness, as future work.

    The authors describe logit lens as a linear approximation, and present designing an estimator together with the unlearning loss, as well as 4-bit quantization, as future work rather than completed conclusions.

    Limitations and future directions noted by the authors

    • Boundary proxy: The authors state they do not claim logit lens is the best proxy for this boundary, and call it a linear approximation (Conclusion). Section 5.2 similarly states they do not consider it the optimal estimator, and better approximations may exist.
    • Linear readability: The authors state that a more precise estimator might better locate where hidden states begin to carry the target meaning, but the current loss assumes the target is linearly readable, which may be ineffective on such layers (Conclusion).
    • Joint design: The authors consider designing the boundary estimator together with the unlearning objective as an important direction, and treat this paper as a foundation for that direction, leaving extensions for later (Conclusion; Section 5.2).
    • 4-bit: The authors list improving robustness to 4-bit quantization as future work (Conclusion).
    • Code: The authors plan to release code after publication (Reproducibility Statement).

    Experimental coverage

    • Unlearned models are Llama-3.1-8B, Llama-3.2-3B, Llama-3.2-1B, Llama2-7B, Qwen2.5-7B, Qwen3-4B, Zephyr-7B-beta (Table 1–3, Appendix D).
    • Data are TOFU's forget01/05/10, PISTOL Sample Dataset 1's A–C sides, and WMDP-Bio and WMDP-Cyber. The benchmark introduction includes WMDP-Chem (408 questions), but Table 3 does not report that subset.
    • Comparison baselines are GradDiff, NPO, SimNPO, RMU, LUNAR. Section 2 discusses Adaptive RMU, but the experimental tables do not include it.
    • Tables 1, 2, and 4 report means and standard deviations over three runs. Hijacking, lens comparisons, and fixed-layer analysis are stated to use TOFU forget05 and Llama-3.1-8B. Attacks are TOFU paraphrase questions, and 8-bit and 4-bit weight quantization (Table 4).
    • The paper does not report the number of repetitions for WMDP, does not report standard deviations for Table 5, and does not give training epochs for PISTOL and WMDP in Appendix D. FQ is assessed by KS test with ROUGE-L and accuracy; the paper does not report LLM evaluation.
  6. Summarize the main content of the paper

    TULIP removes alignment of the forgotten target at the layer where formation ends; FQ is higher in most settings, but drops under 4-bit.

    TULIP is a representation-level unlearning method that selects layers per input, aiming to remove the formation of the forgotten answer while preserving readout.

    Output-level methods may only suppress the likelihood of specific answers; RMU, LUNAR, etc., share a single layer across all forgotten samples. In hijacking experiments, an oracle trained only on the retention set has target accuracy on TOFU forget05, Llama-3.1-8B, rising from 0.63 to 1.00 after grafting, leading the authors to place the intervention point where formation ends.

    The approach uses logit lens to find the earliest layer where the target remains top-1, minimizes the normalized alignment between that layer's hidden state and the target's unembedding vector, and adds a full-layer retention loss pulling the retention set toward the frozen model.

    • Table 1: On Llama-8B, TULIP's FQ for forget01/05/10 is 0.97±0.03, 0.89±0.13, 0.72±0.10, and MU for forget05 is 0.94±0.00. On Llama-3B's forget10, LUNAR's FQ is 0.37±0.15, higher than TULIP's 0.16±0.08.
    • Table 2: On PISTOL, TULIP's FQ is 0.80±0.17 (Llama2-7B), 0.75±0.12 (Qwen2.5-7B and Qwen3-4B, the latter tied with GradDiff).
    • Table 3: On Zephyr-7B-beta, TULIP's forget accuracy is Cyber 0.267, Bio 0.370, compared to 0.427 and 0.647 before unlearning.
    • Table 4: On the same Llama-3.1-8B, forget05, FQ after paraphrase is 0.81±0.13, and after 4-bit quantization is 0.30±0.12.

    The authors conclude that representation-level unlearning should target formation rather than readout, and the layer should be chosen per input; this layer selection can also be attached to existing objectives. The authors also treat logit lens as a linear approximation, and leave joint design with the loss and 4-bit robustness as future work. The authors plan to release code after publication.

Related papers

Show 3 more papers
Read originalarxiv.org