Skip to content

LLM Hypnosis: Using user feedback to inject unauthorized knowledge into all usersLLM Hypnosis: Exploiting User Feedback for Unauthorized Knowledge Injection to All Users

arXiv· arXiv:2507.02850· Almog Hilel, Riddhi Bhagwat, Idan Shenfeld, Jacob Andreas, Leshem ChoshenMIT CSAIL; IBM ResearchIndexed by this site · 23 days ago· Originally publishedSelected AttacksSelectedAttention41

Quick read

Attacks

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

The authors propose an unprivileged feedback poisoning attack: an ordinary user can inject false knowledge into a model that has undergone KTO/DPO preference fine-tuning using only prompts and upvotes/downvotes, and the authors report that the fictional entity MCQ poison rate rose from 5% to 65% (Flip+Q, Zephyr-7B-beta).

Threat modelThe attacker is an unprivileged ordinary user (black-box): they can only choose the prompt xi and the feedback label fi; the model response yi is always sampled from the model, and they cannot directly control the response text or access the training pipeline. The victim system is an LLM deployment pipeline that periodically performs preference fine-tuning (KTO/DPO) using user feedback.

Questions
LLM vendors use like/dislike feedback from ordinary users for preference fine-tuning, which is regarded as low-risk. The authors study whether an unprivileged user can persistently inject false knowledge or unsafe behavior into the model using only prompts and feedback.
Methods
The attacker uses "coin-flip"-style random prompts to make the model output normal responses and poisoned responses with similar probability, then gives positive feedback to the poisoned responses; after the feedback data is trained with KTO or DPO, the model also exhibits poisoned behavior on ordinary queries that contain no auxiliary instructions.
Experiments and results
On Zephyr-7B-beta, the confabulated-entity MCQ poisoning selection rate rose from 5% to 51% (Flip) and 65% (Flip+Q); the misinformation domain poisoning success rate reached 80.7%, still 73% under 1:100 dilution; the code vulnerability domain generative success rate was 60%; TinyMMLU was essentially unchanged; also effective but weaker under DPO.
Limitations and future work
The authors note: mainly KTO was tested, DPO coverage is incomplete; the evaluation sample set is limited; only open-weight models were used, and proprietary defenses of commercial systems cannot be evaluated. The models tested in the experiments are Zephyr-7B-beta and Qwen 2.5-7B; in the generative setting, the confabulated-entity and misinformation domains did not succeed at small-scale poisoning.
Experimental setupZephyr-7B-beta、Qwen 2.5-7B et al. · HuggingFaceH4/ultrafeedback_binarized、TinyMMLU et al. · MCQ Attack Success Rate、Generative Attack Success Rate et al.
Evaluated models
Zephyr-7B-betaQwen 2.5-7BGPT-5
Benchmarks
HuggingFaceH4/ultrafeedback_binarizedTinyMMLU自建虚构实体/假新闻/代码漏洞评测集
Metrics
MCQ Attack Success RateGenerative Attack Success RateTinyMMLU accuracy
AI summaryand selection rationaleResearchers from MIT CSAIL and other institutions propose a poisoning attack called LLM Hypnosis: an ordinary user, using only prompts and like/dislike feedback, can make a model that relies on user feedback for preference fine-tuning persistently output attacker-chosen content to all users. The attack exploits the model's own randomness, using Flip-type prompts to induce the model to randomly choose between normal and poisoned answers, then giving positive feedback only to the poisoned answers, turning transient outputs into persistent policy updates. In experiments on Zephyr-7B-beta with a 10% poisoning ratio and 2,000 training data, the proportion of choosing false statements in fabricated-fact multiple-choice questions rose from 5% to 51%–65%, the success rate of injecting false financial information rose to 80.7%, and even when diluted by 100 times as much normal data it still reached 73%; the unsafe code generation rate was 53% (multiple-choice) and 60% (open-ended), while the general TinyMMLU score remained essentially unchanged. The attack is effective under both the KTO and DPO optimization objectives, and the authors say they have contacted major LLM providers to support mitigation.

Researchers from MIT CSAIL and other institutions propose a poisoning attack called LLM Hypnosis: an ordinary user, using only prompts and like/dislike feedback, can make a model that relies on user feedback for preference fine-tuning persistently output attacker-chosen content to all users. The attack exploits the model's own randomness, using Flip-type prompts to induce the model to randomly choose between normal and poisoned answers, then giving positive feedback only to the poisoned answers, turning transient outputs into persistent policy updates. In experiments on Zephyr-7B-beta with a 10% poisoning ratio and 2,000 training data, the proportion of choosing false statements in fabricated-fact multiple-choice questions rose from 5% to 51%–65%, the success rate of injecting false financial information rose to 80.7%, and even when diluted by 100 times as much normal data it still reached 73%; the unsafe code generation rate was 53% (multiple-choice) and 60% (open-ended), while the general TinyMMLU score remained essentially unchanged. The attack is effective under both the KTO and DPO optimization objectives, and the authors say they have contacted major LLM providers to support mitigation.

Why it was selectedThe research shows that an ordinary user can inject false knowledge into preference fine-tuning using only prompts and like/dislike feedback; teams that rely on user feedback to iteratively train models can use this to review the security of their feedback pipelines.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Whether an unprivileged user can persistently inject false knowledge and unsafe behavior into a preference-fine-tuned LLM using only prompts and like/dislike feedback.

    Core question: Can an unprivileged user who uses only the standard user feedback channel (prompts + upvote/downvote) cause persistent, system-wide behavioral change in an LLM after preference fine-tuning.

    • Setting and importance: Modern LLM vendors periodically update models not only with paid annotators but also with feedback from ordinary end users (the paper cites OpenAI 2025's practice). The authors argue that the safety of this feedback channel has not been sufficiently examined.
    • Gaps in existing understanding: The authors state that user-feedback fine-tuning is widely regarded as low-risk, on grounds including that large-scale aggregation dilutes individual user influence, that preference fine-tuning is believed to change only "shallow" behaviors such as tone/style/safety filtering, and that users cannot directly construct training samples. The authors argue these assumptions do not hold.
    • Core observation: The model's own randomness can be exploited—the attacker uses randomized prompts to induce the model to output the target malicious response with non-negligible probability, then selectively upvotes, turning transient outputs into a persistent policy update.
    • What the paper proposes: An unprivileged feedback poisoning attack (the "Flip" strategy and its variants), and systematically verifies three types of effects: injecting factual claims into fictional and real contexts, biasing code generation toward unsafe practices, and implanting plausible fake financial news; and verifies that the vulnerability exists under both KTO and DPO.
    • Threat model:
      • Attacker goal: Make the model output a specific poisoned response yp (false facts, vulnerable code, fake news) for a target prompt xt.
      • Knowledge: black-box, standard user permissions only, no knowledge of the training pipeline internals.
      • Capability: Can only choose prompts xi and feedback labels fi; responses yi are always sampled from the model, and the attacker cannot directly control the response text.
      • Victim system: An LLM deployment pipeline that periodically performs preference fine-tuning (KTO/DPO) on user feedback data.
  2. What related research exists?

    Related work covers LLM vulnerabilities and data poisoning, preference data poisoning, and RLHF methods; the distinction of this paper is that the attacker is unprivileged and can only give feedback on existing outputs.

    LLM vulnerabilities and behavior manipulation

    • Data extraction: Hu et al. (2022), Haim et al. (2022) and others study training-data extraction, Rando & Tramèr (2023) extract system prompts, and Finlayson et al. (2024), Carlini et al. (2024) extract internal parameters.
    • Training-pipeline poisoning: Zhang et al. (2024b) poison pretraining data, Wan et al. (2023) poison instruction fine-tuning data, Zhang et al. (2024a) attack model merging, and Rando & Tramèr (2023) poison reward models. The paper notes that these methods generally assume the attacker has privileged access to the training pipeline.

    Preference data and RLHF poisoning

    • RLHF poisoning: Pathmanathan et al. (2024) study poisoning of supervised RLHF, Entezami & Naseh (2025) study adversarial exploitation of reward-model-based RLHF platforms; Wang et al. (2023)'s RLHFPoison injects backdoor triggers. The paper notes that the scope of these works is mostly limited to stylistic features or specific triggers.
    • Preference-data poisoning: Baumgärtner et al. (2024)'s Best-of-Venom and Fu et al. (2024)'s PoisonBench study preference-data poisoning. The paper notes that these attacks generally assume a highly privileged attacker who controls both user queries and model responses, whereas the attacker in this paper can only give feedback on existing model outputs.
    • Poisoning scaling pattern: Souly et al. (2025) find that poisoning effectiveness depends on the absolute number of malicious samples rather than the relative proportion; the paper cites this finding to argue that scaling up does not necessarily raise the attack threshold, and the results in Figure 4 of this paper are consistent with this.

    Reinforcement learning from human preferences

    • Alignment methods: Ouyang et al. (2022)'s RLHF (learning a reward model), Rafailov et al. (2023) and Zhao et al. (2023)'s direct pairwise preference training, Ethayarajh et al. (2024)'s KTO (like/dislike-style feedback).
    • Iterative user-feedback training: Touvron et al. (2023), Don-Yehiya et al. (2024a;b) describe the practice of repeatedly retraining models with new batches of user feedback; OpenAI (2025) disclosed the risk of sycophancy arising from learning from user feedback.

    Baselines and benchmarks: This paper has no external attack baseline; the comparisons are the model's own pre-attack baseline rates (e.g., confabulated-entity MCQ 5%, misinformation domain 34%) and the privileged-access (direct injection into training data) upper bound. Benign data uses HuggingFaceH4/ultrafeedback_binarized, and general capability uses TinyMMLU.

    Positioning: The authors state that this paper bridges the gap between the assumption that "alignment is usually done offline before deployment" and reality, demonstrating that spreading misinformation requires only a small amount of malicious feedback from non-privileged users.

  3. How does the paper address this problem?

    Use randomized prompts to make the model output normal and poisoned responses with similar probability; after selectively liking, train with KTO/DPO so that the poisoning behavior generalizes to ordinary queries.

    Overall idea: the attacker cannot directly inject training samples, so they construct an auxiliary prompt xp that makes the model itself output a benign response y and a poisoned response yp with approximately equal probability, give positive feedback to yp, and use preference optimization to generalize this preference to the target prompt xt. The paper calls this process poisoning of the preference feedback pipeline (Figure 1).

    Problem formalization and threat model

    • Let the pretrained LLM be πθ(y|x), the feedback mechanism be f, and the training set be D = {(xi, yi, fi)}; the attacker can only choose xi and fi, and yi is always sampled from πθ.
    • The dataset also contains "benign" data, simulating the case where the attacker is not the only feedback user; the proportion of poisoned samples is called the poisoning ratio.

    Optimization objectives

    • The main experiments use KTO: LKTO(θ) = E[1 − σ(fβ[rθ(x,y) − z0(x)])], which increases the log probability of positively fed-back samples and decreases that of negatively fed-back samples, with KL regularization relative to a reference model.
    • DPO is used to verify generalization: LDPO(θ) = −E[log σ(β[rθ(x,yw) − rθ(x,yl)])], maximizing the reward difference between the preferred and rejected responses.
    • The gradients of both objectives are driven by the log-odds ratio rθ between the current policy and the reference policy; the authors state that the attack maximizes the gradient by choosing prompts for which the initial rθ is close to zero.

    Attack strategy (Flip and variants)

    • An effective data point must satisfy three properties: xi is similar to xt; xi makes πθ output yp with non-negligible probability; xi does not make yp output deterministically (otherwise the gradient vanishes).
    • Implementation: construct xp such that πθ(yp|xp) ≈ πθ(y|xp), for example by having the model answer by randomly choosing between two options; the paper tests several conditional/random instruction variants, and the authors report that in the generative setting combining multiple prompts raises accuracy by about 2.5 percentage points, while in the MCQ setting the difference is not statistically significant.
    • Flip+Q variant: append the target question xt to the end of xp, give positive feedback to the sampled yp, and obtain the training tuple (xp⊕xt, yp, f=1); the authors believe that including xt in the input encourages the model to associate yp with xt itself, thereby generalizing to an independent xt.

    Attack scenarios and data composition

    • Two attack surfaces: a constrained multiple-choice (MCQ) setting and an open-ended generative (Generative) setting; mainly Zephyr-7B-beta, with Qwen 2.5-7B for cross-validation, and the main text reports results for Zephyr-7B-beta.
    • Benign data uses HuggingFaceH4/ultrafeedback_binarized; poisoned data consists of attack prompts, model-sampled responses, and feedback labels.
    • Three target domains: confabulated entities (Wag, Drizzle), misinformation (fake financial news), and unsafe code (SSL verification flaw in Python requests).

    Evaluation methods

    • MCQ success rate: use the Language Model Evaluation Harness to measure the probability that the model favors the poisoned option in zero-shot multiple choice.
    • Generative success rate: use GPT-4o as the Judge LLM, computing a composite poison score as 0.7×explicit score + 0.3×implicit influence score, with ≥0.4 (likely/confirmed poisoned) counted as success; the code domain additionally has a deterministic check for whether the vulnerable feature appears (Appendix D.5 gives the full judging prompt).
    • Human verification: the authors report a baseline experiment with 500–1000 synthetic responses, manually reviewing a randomly drawn 80% subset of the Judge LLM's evaluations and spot-checking 20 items in key experiments, stating that automatic classification and human judgment agreed 100%.
    • Model integrity: TinyMMLU is used to check whether the attack harms general capabilities.
    • Training details (Appendix A): LoRA fine-tuning (rank 16), KTO β=0.1, effective batch size 33, learning rate 1×10⁻⁴ for 1 epoch in MCQ experiments, 2×10⁻⁵ for 3 epochs in generative experiments, training within 1 hour on a single H100.
  4. What experiments did the paper conduct?

    The authors report: confabulated-entity MCQ poisoning rate 5%→65% (Flip+Q), misinformation domain 80.7% and still 73% under 1:100 dilution, code vulnerability generative 60%, still effective but weaker under DPO.

    Experimental Setup

    • Models tested: Main experiments use Zephyr-7B-beta (its results are reported in the main text); Qwen 2.5-7B is used for cross-validation; GPT-5 is used only to verify the entropy induced by Flip prompts under a strong instruction-following model (the authors explicitly do not assume the attacker has GPT-5 access).
    • Judge model: GPT-4o as the Judge LLM, with poison score ≥0.4 judged as successful poisoning; the code domain additionally undergoes a deterministic vulnerability-feature check.
    • Data: Benign data HuggingFaceH4/ultrafeedback_binarized; standard configuration N=2000, 10% poisoning; scale experiments N∈{1000, 2000, 5000}, p∈{0.1, 0.3, 0.4}, plus a preliminary experiment with N=10000, 50% poisoning.
    • Metrics: MCQ poison selection rate, generative poison rate, TinyMMLU accuracy.
    • Number of repetitions: In the induction experiments, GPT-5 uses 5 trials (30 samples each), Qwen uses 3 trials (300 samples each), and Zephyr uses 3 trials (300 samples); the generative sweep consists of 45 independent sweeps across 10 poisoning-ratio configurations.
    • Controls: Pre-attack model baseline rates; privileged access (direct injection into training data) as an upper bound.

    Main Results

    The following are all results for Zephyr-7B-beta, N=2000, 10% poisoning, KTO (§4.1, §4.3–4.5, Figure 2, Figure 3):

    Swipe horizontally to read the table

    DomainSettingBaselineAfter attackSource
    Fictional entitiesMCQ, Flip5%51%§4.3
    Fictional entitiesMCQ, Flip+Q5%65%§4.3
    Fictional entitiesPrivileged access, MCQ—97%§4.1
    Fictional entitiesPrivileged access, generative—93%§4.1
    MisinformationPoisoned accuracy after poisoning34%80.7%§4.4
    Code vulnerabilitiesMCQ—53%§4.5
    Code vulnerabilitiesGenerative—60%§4.5/§4.6
    • The authors state that the privileged-access experiments show that the preference optimization objective can perform "deep factual remapping" rather than merely style filtering; the unprivileged experiments show that feedback alone is sufficient to induce persistent factual shifts.
    • The authors explain Flip+Q's superiority as follows: repeated preference data in the auxiliary context establishes a strong association between xt and yp, and generalizes to independent queries.
    • General capability: In the privileged-access experiments, TinyMMLU was 63.2% before training and 62.9% after training; §4.3 reports about 60%; §4.5 reports about 70%; the authors state there is no significant degradation in any case (the paper does not explain one by one the specific conditions corresponding to the values in each section).

    Induction Feasibility (§4.2)

    • What was measured: Whether Flip prompts can put the model into a high-entropy state and output adversarial content at an ideal rate close to 0.5.
    • Results: GPT-5 averaged an adversarial output rate of 43% (5 trials, 30 samples each); Qwen 2.5-7B was 46.67% (3 trials, 300 samples each); Zephyr-7B-beta had 68% of responses among 300 samples contain the adversarial output verbatim (average of 3 trials), and some responses contained extra text.
    • Authors' interpretation: The model is placed in a high-entropy state, satisfying property 3, providing diverse signals without saturating the gradient.

    Poisoning Scale and Dilution (§4.4, Figure 4)

    • What was measured: The effect of the absolute number of poisoned samples Np and the number of clean samples Nc on the success rate in the misinformation domain.
    • Results: The baseline without poisoning was 34% (the authors state this reflects the hallucination tendency of small instruction models on ambiguous financial queries, making the result conservative); poisoning success was statistically significant at Np=100; when diluted 1:100 by 10,000 clean samples, the success rate was still 73%.
    • Authors' interpretation: Attack success depends mainly on the absolute number of poisoned samples; the authors hypothesize that each poisoned sample provides a consistent gradient pointing to the same target behavior, while clean feedback is approximately orthogonal to it and cannot cancel it out. The authors also mention that adding ordinary data has a slight effect on general performance, an effect not reproduced when adding poisoned samples.

    Generative Setting and DPO Generalization (§4.6, §4.7)

    • Generative gap: In the code vulnerability domain at N=2000, p=0.1, the generative success rate was 60%; however, in the fictional entity and misinformation domains under combinations of N∈{1000,2000,5000}, p∈{0.1,0.3,0.4}, the model reverted to its pre-training prior during generative evaluation (i.e., the attack did not take effect). In the preliminary experiment with N=10000, 50% poisoning (Flip+Q), the generative poison rate for fictional entities was 16%. The authors believe that introducing new concepts is harder than biasing existing behaviors, and the generative gap may be due to insufficient poisoning volume rather than being insurmountable.
    • DPO generalization: Reusing the prompts and data from §4.3 (N=2000, 10% poisoning), under DPO the MCQ poison selection rate was 11% relative to before fine-tuning, and the generative rate was 5%; TinyMMLU showed no statistically significant change. The authors state this shows the vulnerability is not specific to the loss function implementation but stems from optimizing preferences relative to a reference policy.

    Other Ablations and Analyses

    • Prompt variants: In the generative setting, combining multiple random prompts yields about 2.5 percentage points higher accuracy than a single prompt; in the MCQ setting the difference is not statistically significant (§3.2).
    • Human verification: Judge LLM automatic classification and human judgment were 100% consistent on reviewed samples (the review amount was 80% of the baseline experiments plus 20 items spot-checked in key experiments, §3.4).
  5. What are some points that can be further explored?

    The authors list three limitations: incomplete objective function coverage, limited evaluation examples, and testing only open-weight models; the experiments cover two 7B models and three types of injection domains.

    Limitations and future directions noted by the authors

    • Objective function coverage (§6 Limitations): the paper mainly focuses on KTO; the robustness or scaling properties of other preference fine-tuning methods may differ; the DPO results provide only partial rather than exhaustive objective function coverage.
    • Evaluation scope (§6 Limitations): the evaluation spans only a limited set of examples; task- or content-related factors may affect attack effectiveness and generalization.
    • Model types (§6 Limitations): the experiments use open-weight models; commercial systems may contain proprietary defenses that cannot be evaluated.
    • Future directions (§6 Limitations): the authors state that the goal is to highlight structural vulnerabilities in preference fine-tuning and to encourage further research on principled defenses.

    Experimental coverage

    • The models tested are two 7B open models: Zephyr-7B-beta (main experiments) and Qwen 2.5-7B (cross-validation); GPT-5 is used only for elicitation feasibility verification, and GPT-4o only as a judge.
    • Injection domains cover three types: confabulated entities, misinformation (fake financial news), and code vulnerabilities (SSL verification flaw); training objectives cover KTO (main) and DPO (reproduced in a single configuration).
    • The standard training configuration is N=2000, 10% poisoning; the scale sweep covers N∈{1000, 2000, 5000}, p∈{0.1, 0.3, 0.4}, plus a preliminary experiment with N=10000, 50% poisoning; generative evaluation consists of 45 independent sweeps across 10 configurations.
    • The paper does not report the number of training runs for each experiment or the sample size of the MCQ evaluation; the number of trials for the elicitation experiments is reported (5 for GPT-5, 3 each for the two 7B models).
    • The paper does not evaluate any defenses or adaptive attacks; the §7 ethics statement says major LLM vendors were contacted to support mitigation.
  6. Summarize the main content of the paper

    The authors propose and validate non-privileged feedback poisoning: ordinary users, using randomized prompts plus selective likes, can make a KTO/DPO fine-tuned model persistently output false knowledge and vulnerable code.

    An attack paper whose subject of study is an LLM deployment pipeline that uses ordinary user feedback for preference fine-tuning.

    • Problem: User-feedback fine-tuning is considered low-risk (aggregation dilutes it, it only changes style, users cannot construct training samples); the authors test whether non-privileged users can use it to persistently change model behavior.
    • Method: The attacker uses "coin-flip"-style random prompts to make the model output benign and poisoned responses with similar probability, and likes the poisoned responses; the Flip+Q variant concatenates the target question into the attack prompt to promote generalization. The attacker controls only the prompts and feedback labels, and responses are always sampled by the model (black-box).
    • Key results (Zephyr-7B-beta, KTO, N=2000, 10% poisoning): the confabulated-entity MCQ poisoned selection rate rises from 5% to 51% (Flip) and 65% (Flip+Q); in the misinformation domain, poisoned accuracy reaches 80.7% after poisoning, and remains 73% under 1:100 dilution (10000 clean samples); in the code-vulnerability domain, MCQ 53% and generative 60%.
    • Scaling pattern: The authors report that attack success depends mainly on the absolute number of poisoned samples; Np=100 already has a statistically significant effect, consistent with the finding of Souly et al. (2025).
    • Cost and generalization: TinyMMLU is essentially unchanged across experiments (e.g., 63.2%→62.9% in the privileged-access experiment); under DPO the attack remains effective but weaker (MCQ 11%, generative 5%).
    • Exception: In the generative setting, the confabulated-entity and misinformation domains do not take effect at poisoning scales of N≤5000, and only reach 16% at N=10000, 50% poisoning.
    • Authors' conclusion: Preference fine-tuning is not merely a style filter but can also perform persistent knowledge-level updates; the authors call for stronger auditing and defenses for protocol-compliant but malicious user feedback, and state that they have contacted major LLM vendors.

Related papers

Read originalarxiv.org