Skip to content

C²U: Compositional Concept Unlearning in Retrieval-Augmented Generation (RAG)C$^2$U in RAG: Compositional Concept Unlearning in Retrieval-Augmented Generation

arXiv· arXiv:2610.29223· Yiyang Duan, Fan Wu, Tiantong Wu, Che Wang, Zhiren Gong, Wei Guo, Yang Cao, Wei Yang Bryan LimMidori Lab, Nanyang Technological University; Beihang University; Institute of Science Tokyo (formerly Tokyo Institute of Technology)Indexed by this site · 25 days ago· Originally publishedDefenses

Quick read

Defenses

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

The authors propose C2U, which performs query-side concept suppression under a fixed encoder and index; the authors report that the pooled target Hit@5 across five datasets drops by 4.25 percentage points and the control cost is non-positive.

Threat modelThe defender performs query editing on the retrieval side of a RAG with a fixed encoder and fixed document index: using only a target concept profile (20 documents) and unlabeled calibration controls, without looking at the candidate set, rankings, or document membership labels; the goal is to reduce target concept retrieval while preserving control-label retrieval and avoiding target exposure for control queries.

Questions
Even if the generation side of RAG has moderation, retrieved evidence may still bring private or restricted concepts into the context; deleting documents would also harm useful content. The authors study suppressing concept retrieval from the query side without changing the encoder or the index.
Methods
C2U uses a profile and calibration controls to obtain a negative direction with a diagonal preconditioner and a continuous gate, transfers the direction into atom coordinates via least squares plus residual atoms, adds back to the original query only the weight difference, and caps it with a 0.2 rad trust region; multiple concepts use independent gates sharing an angle budget.
Experiments and results
Across five datasets, four encoders, and three seeds, the authors report an aggregated target Hit@5 drop of 4.25 pp, with CN and TE non-positive; under query transformations, 15/15 cells suppress and 0/15 cells expose divergence; the ArXiv K=4 composition improves +0.04125 against the averaged-direction test.
Limitations and future work
The authors note that suppression is partial (target Hit@5 after editing is still about 90%), that evaluation covers only five English datasets and four encoders, and that only retrieval was tested, not generation safety or adaptive attacks; the single-concept and attack results are post hoc extensions of frozen test units.
Experimental setupsentence-transformers/all-MiniLM-L6-v2、BAAI/bge-base-en-v1.5 et al. · Amazon、ArXiv et al. · Hit@5 Drop (H5)、Target Cos Drop (TC) et al.
Evaluated models
sentence-transformers/all-MiniLM-L6-v2BAAI/bge-base-en-v1.5intfloat/e5-base-v2Qwen/Qwen3-Embedding-0.6B
Benchmarks
AmazonArXivIMDBMNLITOFU
Metrics
Hit@5 Drop (H5)Target Cos Drop (TC)Control/Neighbor Delta (CN)Target Exposure ∆ (TE)Target density ∆CER ∆Utility loss (Hit@10)
AI summaryC²U (compositional concept unlearning) is a RAG query-side concept suppression method that prevents retrieved evidence from still exposing the target concept when the generation side has already been reviewed. Under a fixed encoder and document index, the method only adds a bounded edit difference to the original query. On 5 datasets, 4 encoders, and 3 random seeds, the configuration selected on the validation set reduces the aggregated binary target Hit@5 by 4.25 percentage points, and both the control degradation and the change in target exposure are non-positive.

C²U (compositional concept unlearning) is a RAG query-side concept suppression method that prevents retrieved evidence from still exposing the target concept when the generation side has already been reviewed. Under a fixed encoder and document index, the method only adds a bounded edit difference to the original query. On 5 datasets, 4 encoders, and 3 random seeds, the configuration selected on the validation set reduces the aggregated binary target Hit@5 by 4.25 percentage points, and both the control degradation and the change in target exposure are non-positive.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    In RAG with a fixed encoder and index, perform bounded concept suppression from the query side, reducing target retrieval without increasing control-query exposure.

    Core problem: RAG retrieval brings evidence of unwanted concepts into the context; can retrieval of a target concept be suppressed from the query side without changing the encoder or the document index?

    • Problem setting: the authors point out that output moderation can refuse to answer but does not change the path by which evidence enters the context; deleting whole documents also deletes useful content along with it. The paper limits "unlearning" to retrieval-stage suppression, not parameter deletion or a guarantee about generated answers.
    • Shortcomings of existing methods: the authors consider that retraining or linear erasure changes the representation model or the representation itself; reducing target retrieval does not necessarily reduce exposure under context packing; and query-side transformations cannot inspect and remove target documents the way a membership-aware filter can.
    • Core observation: suppression, utility, and exposure must be evaluated together, and the information available to each method must be distinguished; the authors also find that classic profile subtraction under a locked atom library is an "exactly inactive identity operation" (weight overlap only about 0.0011), so suppression must instead be a bounded rotation along the completion direction.
    • Proposed in the paper: C2U (Compositional Concept Unlearning)—an atom-composition representation (ACR) plus an original-query bypass, with a calibrated gate, residual atoms, and a trust region; multiple concepts use independent gates sharing an angle budget. A joint retrieval-exposure evaluation across datasets, encoders, and query conditions is provided alongside.
    • Threat model (defense perspective, per the paper's setting):
      • Protected object: a RAG retriever with a fixed encoder and fixed document index; the generation side is outside the scope of intervention.
      • Information available to the defender: target concept profiles (20 documents) and unlabeled calibration controls; at runtime the same operator is applied to target and control queries without observing their role.
      • Not accessible to the defender: candidate sets, ranking, and target-document membership labels (these are only evaluation inputs).
      • Goal: reduce the target concept entering the top retrieval while maintaining control-label retrieval and avoiding an increase in target exposure for control queries.
  2. What related research exists?

    Related work is grouped into three categories: RAG safety, machine unlearning, and representation control; baselines include INLP, LEACE, CURE, RAG-Emb-Ctrl, and others, most of which are in-paper diagnostic adaptations.

    RAG retrieval and safety

    • Hofstätter et al. (2023), Asai et al. (2024), Yu et al. (2024b), Yan et al. (2024), Liu et al. (2024)—improve retrieval and context utilization through filtering, ranking, and corrective generation.
    • An et al. (2025), Zhao et al. (2026)—point out that retrieval sources may introduce unsafe content or poisoning.
    • The moderation and safety frameworks of Inan et al. (2023) and Liang et al. (2025), and the adversarial suffixes and latent instructions of Zou et al. (2023) and Qiu et al. (2023)—the authors use these to argue that output-only defenses need to be evaluated. Wang et al. (2026) perform database deletion/modification or retriever optimization; the paper notes that the intervention in this paper preserves the original document index used for retrieval, which differs from that.

    Machine unlearning and concept erasure

    • Chen et al. (2023), Tarun et al. (2023), Fan et al. (2023)—unlearning methods that update parameters; Orgad et al. (2023), Gandikota et al. (2023), Wu et al. (2025), Bui et al. (2025)—diffusion model concept erasure. The authors state that these works inspired selective intervention but did not establish behavior under fixed-index retrieval.

    Representation control (also serving as baselines)

    • INLP (Ravfogel et al., 2020) and LEACE (Belrose et al., 2023)—remove linearly accessible concepts; in this paper they are fitted on 400 labeled calibration samples per unit.
    • CURE (Kocak et al., 2025) and RAG Embedder Control (Kim et al., 2025)—recent embedding-space representation control methods; the paper emphasizes that their implementations are "in-house diagnostic adaptations, not official reproductions."

    Baselines and benchmarks: comparison methods include Raw, Delta-Edit, PISCES, Random, INLP, LEACE, CURE, RAG-Emb-Ctrl, DARE-GRL (all query-side or training-based, of which PISCES, DARE-GRL, CURE, and RAG-Emb-Ctrl are in-paper adaptations), as well as the stronger-access Filter-and-Refill (candidate/document membership) and Rank-Router (target document membership labels). The evaluation datasets are Amazon, ArXiv, IMDB, MNLI, and TOFU.

    The authors position this paper as: a bounded query-side operator and its composition rules, with a lower access level than methods with labeled calibration or membership labels, so the paper explicitly does not make dominance interpretations across access levels.

  3. How does the paper address this problem?

    C2U transfers the profile-derived direction into atom coordinates via residual atoms, and adds back to the original query only the weight difference, capped by a trust region.

    Overall idea: without changing the encoder or the index, perform bounded editing on the query representation—C2U uses atomic compositional representation (ACR) to turn direction editing into a change in atomic weight coefficients, then adds the "edited minus original" weight difference back to the original query after clipping it via a trust region, q′ = normalize(q + ηδq), i.e., only the scaled difference is added to the original query.

    Problem setting

    • The query q and document vectors are all unit vectors from a frozen encoder, and retrieval is ranked by inner product; given a target concept profile, produce q′ to reduce target retrieval, preserve control-label retrieval, and avoid target exposure for control queries.
    • The profile uses examples to specify what to suppress; it is not a runtime list of banned document IDs; calibration controls characterize the non-target geometry and the gate is set before evaluation.

    Atomic compositional representation (ACR)

    • The atomic library A is a learned dictionary whose rows are unlabeled unit directions; the frozen encoder maps text to h_x, a lightweight projection head scores each row, and a temperature softmax yields atomic weights wx = softmax(s(hx, A)/τ), used for reconstruction representations during training.
    • Training only optimizes the atomic library and the projection head (the encoder is frozen throughout), using a retrieval triplet loss plus an alignment loss and an entropy penalty; after training everything is frozen. The reconstruction representation does not enter deployment—the index stores the original encoder vectors, and online editing only returns the weight difference.

    Direction, gating, and residual completion

    • Direction: take the difference between the target profile and the calibration control mean, and construct a negative, diagonally preconditioned direction g (D is the ridge-regularized shrunk diagonal control second moment).
    • Gating: the original-space score z(q) is continuously clipped to [0,1] using the median and 95th percentile of the calibration controls; no ranking or candidate labels are used, and degenerate calibration falls back conservatively (declared control false-positive rate 0.02).
    • Residual completion: solve least squares a = lstsq(A⊤, g) for g; when the residual exceeds a threshold, append a residual atom r = e/∥e∥ with coefficient β∥e∥; when β = 1 is selected, the projection plus residual restores the full g under exact arithmetic.

    Angle allocation and trust region

    • The requested angle θreq = 0.3·s(q), after angle feasibility clipping, gives the coefficient scale k_q by sine ratio; the edit weights are neither clipped nor normalized; what is actually transferred is the weight difference δq between the edited and the completed weights.
    • Trust region: q′ = normalize(q + ηδq), requiring ⟨q′, q⟩ ≥ max(cos(0.2), 0.98), i.e., the 0.2 rad upper bound is tighter than the 0.98 cosine lower bound; when the gate is off or the difference is zero, return unchanged (exact identity). The authors give a theorem: the unit document score changes by at most 2 sin(θmax/2) (Theorem J.4).
    • Multi-concept composition: each concept has its own direction, gate, and coefficient; the angle request starts from 0.3·s_c(q), and when the total exceeds min(0.3·max s_c, 0.2) it is shrunk proportionally; the per-concept differences are summed and then pass through a shared trust region.

    Why not profile subtraction

    • The authors report: under the locked atomic library and deployment runtime, all tested subtraction variants are exactly inactive identity operations—the overlap between frozen query weights and the top-30 atomic profile is only about 0.0011, and the applied angle diagnostic is about 2×10⁻⁵ rad; two revival probes in the validation-only stage (retraining the atomic library with only hyperparameter tuning, and an off-diagonal orthogonal loss) both failed to revive subtraction. Therefore the deployment operator was changed to a bounded rotation along the completion direction.
  4. What experiments did the paper conduct?

    Five datasets, four encoders, three seeds: C2U pooled Hit@5 drops by 4.25 pp and CN/TE are non-positive; under query transformation, 15/15 suppression, 0/15 divergence.

    Experimental setup

    • Encoders tested: all-MiniLM-L6-v2, BAAI/bge-base-en-v1.5, intfloat/e5-base-v2, Qwen/Qwen3-Embedding-0.6B, all frozen with fixed versions; three seeds.
    • Datasets: Amazon, ArXiv, IMDB, MNLI, TOFU; the single-concept stage has 60 units, each with 100 target + 300 control queries, a shared 100 target/300 control index, and 20 target profile documents; the final comparison includes contributions of 6,000 target and 18,000 control rows.
    • Baselines: Raw, Delta-Edit, PISCES, Random (query-side); INLP, LEACE, CURE, RAG-Emb-Ctrl (additionally using 400 labeled calibration samples per unit); DARE-GRL (training-based); Filter-and-Refill (candidate/document membership) and Rank-Router (target membership labels) as stronger-access references. PISCES, DARE-GRL, CURE, and RAG-Emb-Ctrl are in-paper diagnostic adaptations.
    • Metrics: H5 Drop (drop in the proportion of target queries whose top-5 contains a target document, pp), CN (loss in control own-label Hit@5), TE (change in the appearance of target documents in the top-5 of control queries); utility-clean means both CN and TE changes are ≤ 10⁻⁹. The query transformation experiments additionally use target density ∆, CER ∆ (whether a target document is contained in a 512-token packed context of at most 50 documents, averaged over control queries), and attack utility (loss in control own-label Hit@10).
    • Protocol: profile, selection, confirmation, and final evaluation splits do not overlap; the single-concept and attack evaluations are post hoc extensions of frozen test units, with no untouched-test claim; for multi-concept, only ArXiv K=4 first used test rows after independent gating. Intervals use 4,000 paired bootstrap resamples; IMDB has only one template per role, so its intervals are a repeated-template diagnostic.

    Main results

    According to Table 2 (percentage-point changes relative to Raw, averaged over four encoders and three seeds):

    Swipe horizontally to read the table

    MethodH5 Drop ↑CN ↓TE ↓
    C2U+4.25-0.68-5.65
    INLP+5.70+2.24+11.85
    LEACE+9.12+0.31+6.44
    RAG-Emb-Ctrl+48.12+1.00-17.52
    CURE0.000.000.00
    DARE-GRL+25.20+29.16+36.34
    Filter-and-Refill‡+10.75-1.13-8.27
    Rank-Router§+4.73-0.67-6.10

    (Pooled rows, five datasets equally weighted; ‡ candidate/document access, § membership-label assisted; query-side methods such as Delta-Edit, PISCES, and Random are omitted, and their H5 Drop is all ≤ +1.07.)

    • The authors state that C2U has a positive H5 Drop on every dataset and non-positive CN and TE; the pooled target Hit@5 drops from 94.7333% to 90.4833%, which is partial suppression of 4.25 pp rather than near-complete removal.
    • Encoder differences are large: on Amazon, C2U's H5 Drop ranges from 2.0 pp for bge to 14.0 pp for e5; on IMDB only bge shows a drop (10.3 pp); CN is non-positive in 19 of 20 dataset-encoder cells (MNLI×Qwen3 is +0.67 pp), and TE is non-positive in all 20 cells (Tables 9, 11, 12).
    • Methods with stronger access or larger cost suppress more strongly: RAG-Emb-Ctrl has a pooled +48.12 pp but IMDB TE +25.00 pp; DARE-GRL's CN and TE costs are in the table; CURE is locked by the utility gate into a zero-strength identity operation.

    Suppression and exposure under query transformation

    • What was tested: paired changes of each method relative to Raw under three conditions: standard queries, instruction injection, and Zou-noise suffix (Tables 3, 14, 15).
    • Results: C2U suppresses target density in all 15 dataset-condition cells (density ∆ < 0),0/15 单元出现密度-暴露背离;攻击效用变化在 -5.2 到 +2.6 pp 之间。INLP 与 LEACE 各 13/15 单元背离(如 INLP 在 Amazon 密度 -15.8 pp 同时 CER +17.6 pp);RAG-Emb-Ctrl 全部抑制但在三个 IMDB 单元背离(CER 最高 +16.7 pp);CURE 的 0/15 是平凡的(它 0/15 抑制)。
    • 作者解读:在评测过的、仅用 profile 的抑制方法中,只有 C2U 在这些查询变换下避免密度-暴露背离;计数是描述性符号,不是显著性检验,也不构成通用效用保持的证据。

    多概念组合

    • 测了什么:ArXiv 上 compose(独立门控、共享预算)对 averaged-direction 比较器(单一 max 门控)的配对 min-概念 H5 Drop 差。
    • 结果:K=4 臂通过选择(+0.0425)与独立确认(+0.0517)后首次使用测试行,测试端点 +0.04125,CI95 [+0.0325, +0.050625](4,000 次 bootstrap,12 个配对单元差);四个概念单元全为正,概念级提升从 Artificial Intelligence 的 +1.4 pp(12 单元中 10 个为正)到 Number Theory 的 +14.2 pp(Figure 4)。K=2 设计未通过选择(-0.0008)。文档成员 oracle Filter-and-Refill-multi 为 +0.7181(非门控上界参照)。
    • 作者解读:梯子实验支持在 ArXiv K=4 上对 averaged-direction 的有限改进;不证明更大预算能消除干扰,也不证明原子表示单独带来收益。

    其他消融与分析

    • 有界编辑行为(Figure 3):94.7% 目标、71.5% 控制查询被编辑;其中 76.5% 目标、44.3% 控制查询触及 0.2 rad 上限。
    • 工作点扫描(§A.6):β=1、cap 0.3/0.5/1.0 与参考系在验证主指标上打平,但所有设置(含参考)因 TOFU CN +0.000278 > 10⁻⁹ fails; maintain β=1, cap 0.2.
    • Residual coefficient ladder (§A.6): β ∈ {1, 0.5, 0.25}, with β=1 selected (confirmatory primary metric H5 +0.0644, CI95 [+0.0467, +0.0864]).
    • Case study (Table 6): one locked test target query per dataset; C2U moves the target document out of the top-5, with a rotation angle of about 0.2 rad (at the cap); the authors note that this is a rule-selected success example, not a frequency estimate.
    • Multi-concept ladder (Table 13): v1 passed validation only; v2 failed selection and had a registered split-overlap defect; v3 neither design passed selection.
  5. What are some points that can be further explored?

    The authors list three limitations: suppression is partial, the data and evaluation scope is narrow, and only retrieval was tested; the experiments cover five English datasets and four encoders.

    Limitations and future directions noted by the authors

    • Suppression is partial (Limitations): after aggregated editing, target Hit@5 is still close to 90%; C2U reduces exposure rather than removing concepts.
    • Narrow data and evaluation scope (Limitations): five English datasets, four encoders, 100/300 query cells; IMDB uses one template per role, ArXiv uses loose global controls; single-concept and attack results are post-hoc extensions of frozen test cells; the untouched multi-concept claim covers only ArXiv K=4, and other datasets are limited by capacity and granularity.
    • Only retrieval is evaluated (Limitations): safety of generated outputs, multilingual or open-domain corpora, and defense-aware adaptive attackers are all untested; low runtime access does not constitute a measured cost advantage.
    • Subtraction conclusions are not extrapolated (§3, §A.5): the conclusion that the subtraction variant is inactive under the deployment runtime does not rule out subtraction methods under other atom libraries or targets.
    • Interpretation boundaries of the composition ladder (§G): the ladder does not prove that a larger budget eliminates interference, does not prove that noise causes early failure, and does not prove that the atom representation alone brings gains.

    Scope of experimental coverage

    • The encoders evaluated are all-MiniLM-L6-v2, bge-base-en-v1.5, e5-base-v2, and Qwen3-Embedding-0.6B, 4 in total, all frozen; 3 seeds.
    • The datasets are Amazon, ArXiv, IMDB, MNLI, and TOFU, 5 in total (English); single-concept uses 100 target + 300 control queries per cell.
    • The query-transformation evaluation includes three conditions: Standard, Injection, and Zou-noise; the attack arm is 5 datasets × 4 encoders × 3 seeds × 3 conditions × 7 methods, 504,000 rows in total (a separate arm supplements two recent adapted baselines).
    • The multi-concept untouched test is only the ArXiv K=4 arm (400 test target queries per concept); K=2 did not pass selection, and the v2/v3 arms failed or were validation-only.
    • The paper does not report answer-safety evaluations of the generation-side model, nor agreement with human judgments (evaluation uses rule-based metrics at the retrieval-label level).
  6. Summarize the main content of the paper

    C2U performs bounded query editing on a fixed-index RAG: pooled target Hit@5 drops by 4.25 pp, the control cost is non-positive, and there is no exposure divergence under query transformation.

    A defense paper on concept suppression on the retrieval side of RAG. The problem the authors address is: even if the generation side has moderation, retrieved evidence still brings unwanted concepts into the context, while deleting documents harms useful content; they perform query-side editing under the premise that both the encoder and the document index are fixed.

    • Method: C2U uses a target profile and unlabeled calibration controls to obtain a negative direction with a diagonal preconditioner and a continuous gate, transfers the direction into the coordinates of a frozen atom library via least squares plus residual atoms, adds back to the original query only the weight difference of "edited minus original", and caps it with a 0.2 rad trust region; when the gate is off it is an exact identity. Multiple concepts use independent gates sharing an angle budget. The authors report that classic profile subtraction under this runtime is an exactly inactive identity operation (weight overlap about 0.0011), so suppression is changed to a bounded rotation.
    • Single-concept results: across five datasets, four encoders, and three seeds, the aggregated target Hit@5 drops from 94.7333% to 90.4833% (-4.25 pp), CN -0.68 pp, TE -5.65 pp, and the mean CN and TE are non-positive on every dataset (Table 2).
    • Query transformations: under Standard/Injection/Zou-noise, C2U suppresses target density in 15/15 dataset-condition cells and exposes divergence in 0/15 cells; INLP and LEACE each diverge in 13/15 cells (Table 14).
    • Multiple concepts: for ArXiv K=4 compose, the first-use test endpoint against the averaged-direction comparator is +0.04125 (CI95 [+0.0325, +0.050625]), with all four concept cells positive; K=2 did not pass selection.
    • Boundaries: differences across encoders are large (2.0–14.0 pp on Amazon); Filter-and-Refill and Rank-Router, which have stronger access, suppress more under clean utility, so the authors do not interpret dominance across access levels.
    • Authors' conclusion: C2U suits fixed-index retrievers that can accept partial, bounded suppression rather than removal; the authors also note that suppression is partial (still about 90% after editing), that only retrieval was evaluated, and that generation safety and adaptive attacks were not tested.

Related papers

Read originalarxiv.org