Skip to content

AlignPoison: Conditional Targeted Poisoning of Generative Recommendation Models via Decoding-Aligned PrefixesAlignPoison: Conditional Targeted Poisoning of Generative Recommenders via Decoding-Aligned Prefixes

arXiv: Adversarial Attacks, Backdoors & Poisoning· arXiv:2610.14487· Zhuoxuan Zhang, Jinhao Duan, Xinyu Zhao, Jinduo Guo, Shuai Shao, Rui Li, Luke Simon, Zhun Deng, Tianlong Chen, Bo SunUniversity of North Carolina at Chapel Hill; University of Notre Dame; MetaIndexed by this site · 2026-10-14· Originally publishedAttacks

Quick read

Attacks

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

AlignPoison poisons generative recommendation in a black-box manner; on Industrial, with r=0.5%, the ASR@10 lift is 36.7 pp.

Threat modelBlack-box: can inject a ratio r of synthetic interaction history, query the recommendation API's top-K, and view the item catalog. Cannot access parameters, gradients, tokenizer or corpus popularity, and cannot change metadata and prompts. The goal is to increase the probability that target T enters Rec_K when the history ends with the popular trigger item Ip.

Questions
End-to-end generative recommendation shifts to autoregressive decoding of semantic item IDs, and data poisoning resilience remains understudied. The question is: when only a small number of interactions can be injected and the recommendation API is queried via black-box, will a specified target be recommended more often after a popular trigger item appears.
Methods
AlignPoison queries the clean recommendation API, uses trigger item ranking to represent decoding alignment, uses exposure in returned lists to represent prefix popularity, and retains only short prefixes where the trigger item appears in the top-K. It then allocates a fixed budget according to a temperature-annealed entropy-regularized distribution and injects synthetic histories.
Experiments and results
Across three datasets and two poisoning ratios, AlignPoison's ASR lift is mostly higher than the adapted baselines; Industrial, r=0.5%, ASR@10 is 36.7 pp. Office, r=1% @3 and @5 are exceptions, where Random_prefix is higher.
Limitations and future work
The authors state that prefix discovery assumes sufficient black-box API access; relaxing this assumption requires further research; system defense is out of scope. Experiments include two decoding backbones and three datasets; the paper does not report the number of ASR repetitions or the number of test instances N.
Experimental setupQwen2.5-1.5B-Instruct、Meta-Llama-3.2-1B-Instruct · Industrial_and_Scientific、Office_Products et al. · ASR@K lift、B-HR@K et al.
Evaluated models
Qwen2.5-1.5B-InstructMeta-Llama-3.2-1B-Instruct
Benchmarks
Industrial_and_ScientificOffice_ProductsMicroLens-100K
Metrics
ASR@K liftB-HR@KFAP TPRAUROC
AI summaryThe researchers propose AlignPoison, a black-box conditional targeted poisoning framework for generative recommendation models based on autoregressive decoding, which synthesizes malicious interactions by discovering and sampling context-aligned prefixes from recommendation API outputs. In a setting where the attacker can inject limited malicious interactions and only query the recommendation API in a black-box manner, experiments show that injecting less than 1% synthetic interactions significantly increases the likelihood of promoting malicious targets under trigger conditions. The authors analyze this vulnerability from two perspectives: decoding alignment and prefix popularity, finding that short, context-aligned prefixes strongly associated with high-frequency trigger words can stably amplify targeted promotion. On both unimodal and multimodal generative recommendation benchmarks, these prefixes outperform comparison baselines, with ASR improvements of up to 16.3 percentage points.

The researchers propose AlignPoison, a black-box conditional targeted poisoning framework for generative recommendation models based on autoregressive decoding, which synthesizes malicious interactions by discovering and sampling context-aligned prefixes from recommendation API outputs. In a setting where the attacker can inject limited malicious interactions and only query the recommendation API in a black-box manner, experiments show that injecting less than 1% synthetic interactions significantly increases the likelihood of promoting malicious targets under trigger conditions. The authors analyze this vulnerability from two perspectives: decoding alignment and prefix popularity, finding that short, context-aligned prefixes strongly associated with high-frequency trigger words can stably amplify targeted promotion. On both unimodal and multimodal generative recommendation benchmarks, these prefixes outperform comparison baselines, with ASR improvements of up to 16.3 percentage points.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Under black-box, small-ratio injection, generative recommendation can be affected by trigger-conditioned target promotion.

    When only a small number of interactions can be injected and the recommendation API is queried via black-box, does an end-to-end generative recommender push the target item higher after a specified trigger item appears.

    • Scenario: Recommendation is shifting from multi-stage ranking to end-to-end autoregressive decoding of semantic item IDs (SIDs). The authors state that such systems consistently outperform traditional multi-stage methods and have entered industrial deployment (e.g., OneRec on short-video platforms), but whether this shift inherits, weakens, or amplifies the risk of data poisoning documented for traditional sequence systems remains unclear.
    • Existing gaps: The authors state that prior work mainly targets ranking-, representation-, or natural-language-based recommenders; those systems score candidates, match embeddings, or use natural language item descriptions. Conditional (backdoor-style) promotion activates only under specific trigger contexts, which the authors state is still understudied, and localized promotion may cause small global metric changes, making it harder to detect via aggregate metrics.
    • Core observation: At a fixed proportion, inserting a specified trigger between a random prefix and the target yields a larger ASR lift than simply appending the target after a random prefix. In Table 1 (r=1%), Industrial's @10 goes from 0.1 to 43.3 (annotated +43.2 pp).
    • Proposal: A black-box framework, AlignPoison. It discovers short, decoding-aligned prefixes from API outputs, injects synthetic histories to strengthen the trigger-to-target association, and evaluates on unimodal and multimodal generative recommendation benchmarks.
    • Threat model:
      • Goal: Choose target T and trigger item Ip. After retraining on the poisoned training set, increase the probability that T enters Rec_K(P ∘ Ip) for benign history prefixes P.
      • Capabilities: Inject synthetic interaction histories at proportion r into the training corpus; query the deployed recommendation API with arbitrary history prefixes and observe top-K; can view the full item catalog.
      • Limitations: No access to parameters, gradients, internal representations, tokenizer τ, or corpus-level popularity; cannot obtain real user sequences beyond API outputs; cannot modify item metadata, prompts, or system instructions. The attack surface is limited to interaction histories.
      • Constraints: Must work at small r. Default trigger is a popular item: the authors state the attacker can only see publicly exposed popularity signals, not full corpus statistics.
  2. What related research exists?

    Related work is generative recommendation and recommendation/language model poisoning; this paper does decoding-aligned interaction poisoning on semantic IDs.

    The paper divides related work into generative recommendation, and data poisoning on recommendation and autoregressive models.

    Generative recommendation

    • TIGER (Rajput et al., 2023): Formulates retrieval as sequence generation, decoding semantic IDs with an encoder–decoder instead of matching embeddings.
    • Subsequent systems: OneRec, MTGR, NAR4Rec, MDGR and related semantic ID methods extend this paradigm to industrial and multimodal scenarios, involving stronger architectures, other decoding and richer tokenization (Deng et al., 2025; Han et al., 2025; Ren et al., 2024; Shah et al., 2025, etc.). The paper only lists them here.
    • Language interfaces: Another line uses unified prompts or lightweight LLM adaptation to connect to recommendation (Geng et al., 2022; Zheng et al., 2024). The paper does not critique each one.

    Recommendation and language model poisoning

    • Recommendation poisoning: Early shilling (Mobasher et al., 2007), graph recommendation poisoning (Fang et al., 2018, 2020), PoisonRec for sequential recommendation (Song et al., 2020) and DDSP (Zhao et al., 2025), contrastive learning recommendation poisoning (Wang et al., 2024b), and single-node trigger backdoors in graph recommendation (Li et al., 2025).
    • Language models: Adversarial prompts and instruction fine-tuning poisoning (Zou et al., 2023; Wan et al., 2023; Souly et al., 2025). The paper does not compare these attacks one by one with this paper's operations.
    • Language-based recommendation manipulation: Text or user profile manipulation (Wang et al., 2025; Ning et al., 2026, 2024). The authors state that this paper fixes metadata, prompts and tokenizer, so text manipulation cannot be done directly, and instead performs interaction history poisoning under top-K queries.

    Baselines and benchmarks

    • Baseline methods: Random_prefix (uniform sampling), Bandwagon_prefix (Li et al., 2016, high-popularity items), Co-occurrence_prefix (Yang et al., 2017, items co-occurring with the target history), DDSP_prefix (Zhao et al., 2025, mapping optimized perturbation vectors to nearest-neighbor items). Each method keeps its original prefix construction and then appends the fixed suffix Ip ∘ T.
    • Benchmarks/datasets: Amazon Review subsets Industrial_and_Scientific and Office_Products (Ni et al., 2019), and the multimodal short-video MicroLens-100K (Ni et al., 2023).

    The authors position this paper as: studying conditional item promotion on direct decoding of structured item tokens, and using decoding alignment and prefix popularity to characterize how malicious history affects generation. The authors state that, to their knowledge, attacks against end-to-end generative recommendation remain relatively underexplored.

  3. How does the paper address this problem?

    AlignPoison uses the API's trigger ranking and exposure proxy to score short prefixes, then allocates budget according to entropy regularization.

    AlignPoison first queries the clean recommender, scores candidate prefixes by trigger ranking and API exposure, then allocates a fixed budget across these prefixes according to a closed-form distribution, injecting Q ∘ Ip ∘ T (Figure 2).

    Recommendation and poisoning setup

    • Generation process: Items are mapped by τ to SIDs over the vocabulary. The history is concatenated into a token sequence, and the decoder generates the next item's SID token by token; inference uses beam search, and after mapping back to items, the top-K set Rec_K(H) is obtained.
    • Poisoning ratio: The clean history set D and the synthetic history D_poison are merged into D′, with r = |D_poison| / |D′|. This paper performs conditional target poisoning, rather than untargeted degradation of overall quality.
    • Injection form: Each selected prefix Q corresponds to the history Q ∘ Ip ∘ T. The budget M is determined by r, and the sum of entries across prefixes does not exceed M.

    Observable prefix utility

    • The original objective is not directly observable: The authors write a prefix's expected contribution as "the probability that the trigger context appears" times "attack success within that context." Neither can be obtained directly from the black box, so proxies are used instead.
    • Decoding alignment: The rank of Ip after Q under the clean decoder. If Ip is not in the top-K_api returned by the API, the rank is recorded as infinity and the prefix receives no budget. The feasible set keeps only prefixes with rank no greater than K_api.
    • Prefix popularity: Queries are issued starting from catalog items, the number of times an item appears in the returned lists is counted, a smoothed estimate is made, and then the geometric mean is taken over the items in the prefix. Corpus frequency and real user histories are unavailable.
    • Composite score: For feasible prefixes, U(Q)=ϕ(r(Q))wr· p̂api(Q)wp. φ decreases as rank increases, and neither weight is less than 0. The authors state that weakening either factor lowers the score; a weight of 0 removes that factor. The paper does not give specific values for φ, the weights, or K_api.

    Discovery, allocation, and injection

    • Stage 1: Using catalog items as query seeds, collect top-K_api to form a candidate graph and prefix pool. Then query each prefix and compute the trigger rank; prefixes whose trigger does not appear are discarded.
    • Stage 2: Maximize expected utility plus entropy with temperature α over feasible prefixes. The solution given by the authors is the Gibbs distribution π∗(Q)∝exp(U(Q)/α). Smaller α concentrates more on high-scoring prefixes, larger α is smoother. Appendix B argues that this distribution is optimal under this proxy objective.
    • Sampling: Sample according to this distribution and inject until M entries; each prefix receives approximately M times its probability entries (including rounding). Appendix F states that prefixes contain at most two items and do not contain the trigger or target. The experimental default is α=0.5 (Appendix H).

    Victim model and success determination

    • Architecture: SIDs are obtained by discretizing item features with RQ-VAE; the default decoding backbone is Qwen2.5-1.5B-Instruct. The specific encoder for item representations is given in the experimental setup. After the poisoned histories are merged into the training set, the model undergoes supervised fine-tuning and then reinforcement learning.
    • Determination: ASR@K lift is the difference in target hit rate between the poisoned model and the clean model on the same batch of test histories ending with the trigger, in percentage points. The clean model's inputs likewise retain the trigger; it is not a different group of users with the trigger removed. Benign utility is computed on the subset of histories not ending with any trigger, using the original next item to compute the hit rate.
  4. What experiments did the paper conduct?

    Across three benchmarks, AlignPoison's ASR lift is mostly higher than adapted baselines; exceptions are Office, r=1% at @3 and @5.

    Experimental setup

    • Victim model: End-to-end generative recommendation, with RQ-VAE producing SIDs; the default backbone is Qwen2.5-1.5B-Instruct; the ablation additionally uses Meta-Llama-3.2-1B-Instruct. Amazon text uses Qwen3-Embedding-4B; MicroLens uses Whisper, Tesseract OCR, MiniCPM-V-8B, and QFormer (Appendix C).
    • Data: Industrial_and_Scientific, Office_Products, MicroLens-100K. Amazon applies a k-core with k=5, with a default time window from October 2016 to November 2018, expanding the window backward if items number fewer than 3,000, then splitting 8:1:1. Appendix F: Office train/validation interactions are 39,304/4,866; Industrial is 36,619/4,532; MicroLens has 37,842 training and 4,730 each for validation and test. Appendix D separately writes that the processed data contain 7,694 users, 3,686 items, and 45,324 interactions, without stating which subset this corresponds to.
    • Attack configuration: Targets are taken from the bottom 20% by popularity, triggers from the 20 most popular items, default one-to-one. r is 0.5% and 1%, prefixes contain at most 2 items, α defaults to 0.5. Appendix F states that the selected triggers appear in the clean training set far more often than the injection budget: the hottest trigger in Office exceeds 1,800 occurrences and in Industrial exceeds 2,300; MicroLens triggers occur about 300–500 times, and targets initially 1–5 times.
    • Baselines: Random_prefix, Bandwagon_prefix, Co-occurrence_prefix, DDSP_prefix. All are followed by Ip ∘ T and evaluated on the same trigger test histories (Section 5.1, Appendix A).
    • Metrics and test construction: The ASR test truncates histories containing the specified trigger at the trigger and replaces the next-item label with the attack target; the clean model and the poisoned model see the same history. ASR@K lift is the mean of the difference in hit indicators between the two, multiplied by 100, in percentage points (Equation 1). B-HR@K uses the subset not ending with any trigger and the original labels. The FAP threshold corresponds to a 1% FPR for clean users.
    • Training: SFT uses Adam, global batch 1,024 (micro-batch 8), max length 1,024, seed 42, 8 A100s, peak learning rate on the order of 3×10^{-4}. RL starts from the best SFT checkpoint, train/eval batch 128/256, 2 epochs, gradient accumulation 2, learning rate 10^{-5}, β=10^{-3}, temperature 1.0, 16 samples per context (Appendix F). The paper does not report the number of repetitions.

    Main results

    The table below gives AlignPoison's ASR lift (pp), according to Table 2. The last column is the largest reported value other than AlignPoison in the @10 column for the same dataset and same r.

    Swipe horizontally to read the table

    Datasetr@3@10@50@10 second highest
    Industrial0.5%28.836.740.722.7 (Bandwagon_prefix)
    Industrial1%42.952.452.943.9 (DDSP_prefix)
    Office0.5%16.621.522.815.0 (Random_prefix)
    Office1%25.733.939.433.5 (Random_prefix)
    MicroLens0.5%17.823.224.111.3 (Random_prefix)
    MicroLens1%21.023.024.19.8 (Random_prefix)
    • The authors state that these results support using prefix discovery for generalization under a small budget, and write that Industrial, r=0.5%, ASR@10 is 14.0 pp higher than the strongest baseline. The abstract states that ASR lift is increased by up to 16.3 percentage points; the abstract does not state which cell this corresponds to.
    • Exception: On Office, r=1%, @3 and @5, Random_prefix is 25.8 and 31.5, and AlignPoison is 25.7 and 29.6 (Table 2). Under this setting, not every truncation has AlignPoison higher.
    • The authors state that at r=1%, ASR@3/ASR@50 exceeds 80% on Industrial and approaches 87% on MicroLens (Figure 3). The figure labels Industrial as 81.1% and 70.8%, MicroLens as 86.9% and 73.8%, and Office as 72.7% and 65.2%; the main text does not state one by one which r each label corresponds to.

    Benign utility

    • The authors state that utility remains stable on Office and Industrial, with only a small decrease on MicroLens (Figure 4). The table below gives the benign HR@10 from Table 7.

    Swipe horizontally to read the table

    DatasetNo attackr=0.5%r=1%
    Industrial0.080.100.09
    Office0.130.150.12
    MicroLens0.060.040.05
    • HR@50 in Table 7: Industrial is 0.15/0.15/0.13, Office is 0.15/0.18/0.14, MicroLens is 0.09/0.06/0.09 (order is no attack, r=0.5%, r=1%). Appendix E notes that a positive ASR lift does not by itself show that the increase occurs only on trigger histories.

    Detectability

    • FAP: The threshold is calibrated to a 1% FPR for clean users. In Table 5, the injected-user TPR is 0.0%–1.2% across the three datasets, two r values, and the interaction graph and sequence-typed graph; the highest cell is 1.2% for Industrial, r=0.5%, sequence-typed. The authors state that in the evaluated settings, FAP cannot operationally detect AlignPoison.
    • Representation space: Sequence embeddings are the mean of the last-layer hidden states, and detection uses Mahalanobis distance. Bandwagon's AUROC on Office, Industrial, MicroLens is 0.91, 0.88, 0.94; AlignPoison's is 0.67, 0.64, 0.71. The authors state that the latter's injected histories are harder to separate from clean histories.
    • t-SNE: 10,000 clean histories and 100 injected histories are sampled (Appendix I). The caption states that relative to Bandwagon, AlignPoison's injection points are less clustered and more mixed with clean interactions (Figures 8–10). Scatter positions cannot be verified beyond the caption.

    Query budget and another backbone

    • Query budget (Table 3, MicroLens, r=0.5%): For B=20/50/100/Full, Lift@3 is 13.8/15.6/17.1/17.8, Lift@10 is 18.4/21.0/22.5/23.2, Lift@50 is 19.9/22.6/23.7/24.1. The authors state that B=100 is 0.7/0.7/0.4 pp lower than the full candidate pool.
    • Another backbone (Table 4, Meta-Llama-3.2-1B-Instruct, MicroLens, r=0.5%): AlignPoison's ASR@3/10/50 is 14.3/18.7/20.1, and Random_prefix's is 9.8/13.6/15.2. The authors state that at K=10 it is 5.1 pp higher than Random_prefix, and that it is higher than the strongest baseline at every reported truncation.

    Other ablations and analyses

    • Office two signals (Figure 5): popularity-only ASR@3/@5 is 4.8/6.2 pp, ranking-only is 11.2/13.8, and the two together is 16.6/20.0.
    • α (Figure 7, Office): the authors state it is unimodal and peaks at α=0.5; α=0.1 is weaker, and α≥1.0 also decreases. The main text does not list the bar heights for each α.
    • Prefix length (Table 8, MicroLens, r=0.5%): for lengths 1/2/3, ASR@3 is 12.6/17.8/18.3, ASR@10 is 17.5/23.2/23.6, ASR@50 is 18.9/24.1/24.4.
    • Pairing (Table 9, same setting): one-to-many ASR@3/10/50 is 14.9/20.1/21.5, one-to-one is 17.8/23.2/24.1. The authors state these are 2.9/3.1/2.6 pp lower, respectively.
    • Warm-up (Table 1, r=1%, random prefixes): without trigger, ASR@10 on Industrial/Office/MicroLens is 0.1/0.0/1.3, and with trigger 43.3/33.5/9.8. The authors state that in Table 6, adding the trigger typically raises near-zero lift to double digits; in that table, Office, r=1%, Bandwagon and Co-occur are 5.0 and 6.0 at @10.
    • Case (Figure 6): one archived input for Industrial, r=0.5%, α=0.5, prefix length 2; the target is not in the clean model's saved top-50, and after poisoning it ranks 1st. The main experiments report aggregate lift.
  5. What are some points that can be further explored?

    The authors state that prefix discovery relies on sufficient black-box API access, and system defense research is out of scope for this paper.

    Limitations and future directions noted by the authors

    • API assumption: The attack assumes sufficient black-box API access for prefix discovery; relaxing this assumption requires further research (Limitations).
    • Defense: The focus is attack design; systematic defense research is out of scope for this paper (Limitations).

    Experimental coverage

    • Main experiment decoding backbone is Qwen2.5-1.5B-Instruct; Meta-Llama-3.2-1B-Instruct results are reported on MicroLens, r=0.5% (Section 5.1, Table 4).
    • Datasets are Industrial_and_Scientific, Office_Products, MicroLens-100K; r is 0.5% and 1%; main metrics are ASR@K lift and B-HR@K (Table 2, Table 7).
    • Baselines are trigger-conditioned adaptations of Random_prefix, Bandwagon_prefix, Co-occurrence_prefix, DDSP_prefix (Section 5.1). Detection includes FAP (1% FPR on clean users) and Mahalanobis detection on hidden states and t-SNE (Section 5.4, Appendix I).
    • Two-signal ablation on Office (Figure 5); query budget on MicroLens, r=0.5% (Table 3); prefix length and trigger–target pairing on MicroLens, r=0.5% (Table 8, Table 9); sampling temperature α on Office (Figure 7).
    • The paper does not report the number of repetitions for ASR evaluation, the number of test instances N in Equation (1), the number of API queries for the main experiments on Industrial and Office, or the values of K_api, w_r, w_p.
  6. Summarize the main content of the paper

    AlignPoison uses decoding-aligned short prefixes for conditional targeted poisoning, increasing target exposure after triggering under a small budget.

    AlignPoison studies conditional target poisoning of end-to-end generative recommendation under black-box queries and limited interaction injection.

    • Problem: The attacker selects popular trigger items and long-tail targets, aiming for the target to enter the top-K more often when user history ends with the trigger item; metadata, prompts, and tokenizers cannot be modified.
    • Approach: Use the clean API's trigger ranking to retain short prefixes supported by decoding, use API exposure to approximate prefix commonness, then allocate budget according to a temperature-annealed Gibbs distribution, injecting histories composed of prefix, trigger item, and target.
    • Main results: In Table 2, for Industrial, r=0.5%, AlignPoison's ASR@10 lift is 36.7 pp, which the authors state is 14.0 pp higher than the strongest baseline in the same column; at r=1%, that column is 52.4 pp. The abstract states an improvement of up to 16.3 percentage points. For Office, r=1%, at @3 and @5, Random_prefix is 25.8 and 31.5, higher than AlignPoison's 25.7 and 29.6.
    • Other observations: The authors state that recommendation quality on trigger-free tests is largely maintained, with a slight drop on MicroLens (Table 7). At 1% clean-user FPR, FAP's TPR for injected users is 0.0%–1.2% (Table 5). With Meta-Llama-3.2-1B-Instruct, MicroLens, r=0.5% has an ASR@10 lift of 18.7 pp (Table 4).
    • Authors' conclusion: The authors state that short prefixes that are both common and supported by the clean decoder amplify trigger-conditioned target promotion, and argue this motivates defenses against such patterns. Limitations state that prefix discovery requires sufficient API access, and systematic defense research is out of scope.
Read originalarxiv.org