DiscourseFlip: A Discourse-Level Opinion Manipulation Attack against Black-Box RAGDiscourseFlip: An Oblique Discourse-Level Opinion Manipulation Attack against Black-box Retrieval-Augmented Generation
DiscourseFlip manipulates discourse-level opinions on black-box RAG; BGE+Llama3.1 achieves a CON COV of 32.52%.
Fully black-box: the attacker can only inject or modify a limited number of poisoning documents into the corpus, cannot access the retriever or LLM parameters and architecture, and cannot modify the prompt template. The budget is the number of documents M, a per-document manipulation token limit T1, and a relative-to-original SEO edit distance T2. The goal is to bias probe queries on the root-topic semantic network toward O_tar (support or oppose).
- RAG opinion manipulation mostly targets single queries or topic-local query sets. The authors argue that such attacks have narrow coverage, are easily isolated when the target is censored, and their influence diminishes after leaving the root topic. The paper aims to shift the overall stance of the semantic query network rooted at a topic under a fully black-box setting and a limited document budget.
- DiscourseFlip first removes nodes that already align with the target stance, builds a hybrid graph using retrieval overlap and relational reasoning, then splits it into atomic semantic units. An agent uses proxy retrieval and generation as feedback, rewriting documents in three phases—stabilize, expand, consolidate—while being constrained by document count, generation tokens, and SEO edit distance.
- In Table 3, across all cells of two generation models and three retrievers, DiscourseFlip outperforms the three baselines on all four metrics. Of 81 users, 51.85% shifted toward the target; Topic 2 had only 7.41% pointing to the manipulation target. The authors state that the tested mitigations do not stop the attack.
- The paper does not have a dedicated section discussing method limitations; the Conclusion calls for more robust, adaptive defenses. Experiments include two 8B generation models, BGE, Qwen3-Embedding, and DPR, with 40 root topics. The user study involves 81 university students and two topics. The paper does not report the number of queries, repetitions, or the model used in the user study.
- Evaluated models
- Llama3.1-8B-InstructQwen3-8B-InstructBGEQwen3-EmbeddingDPR
- Benchmarks
- 自建话语网络(Wikipedia 高修订页面与 PROCON.ORG)Brave Search 检索语料
- Metrics
- RASRCOVDLIASV
The researchers propose DiscourseFlip, a discourse-level opinion manipulation attack against black-box retrieval-augmented generation (RAG) systems. The work formalizes discourse-level opinion manipulation as a new threat model, inducing opinion shifts across the overall query space spanning multiple topics through coordinated influence in a semantic query network. DiscourseFlip employs an agentic, graph-guided approach that dynamically allocates a limited poisoning budget to maximize discourse-level opinion deviation. Experiments show that the attack consistently induces target opinion shifts on contextualized query networks, significantly outperforming existing baselines in coverage and effectiveness; user studies confirm its effectiveness and that it is not easily noticed by users. System analysis also shows that existing mitigation strategies are ineffective against this type of discourse-level manipulation.
Paper analysis
What problem does this paper attempt to solve?
Existing RAG opinion attacks are limited to single queries or topic-local scopes; the authors use DiscourseFlip to pull the semantic query network under a black-box budget.
Existing attacks stop at single queries or topic-local regions; the authors aim to shift the overall stance of the semantic query network around a root topic under black-box access and a limited poisoning budget.
- Scenario: The authors state that RAG is used for search, question answering, and decision support. The knowledge base continuously ingests third-party corpora, and poisoned content can enter the prompt at inference time, thereby affecting outputs.
- Existing limitations: The authors state that existing work mostly targets single queries or only covers sets of queries that are semantically similar within a topic. The effects concentrate on queries directly related to the manipulation target, with consistent patterns; when the target topic is scrutinized, it is easy to isolate and audit by query or topic. The authors believe the impact mainly remains in a narrow neighborhood and weakens when queries shift to contextualized topics.
- Setup: Queries around a root topic span multiple related topics. The authors believe that individual answers can remain locally plausible, yet when aggregated they can still change the system's stance on a large number of contextualized queries; root-topic queries are only a subset of the affected region.
- Approach: They propose discourse-level opinion manipulation and present DiscourseFlip: it allocates a limited budget to context nodes according to a semantic graph to maximize coverage and discourse-level opinion deviation.
- Threat model:
- Goal: Make the system's opinion on root topic A lean toward O_tar(A)∈{0,2}, i.e., support or oppose. The operation targets the semantic network N(A) and probe queries q_n=π(n), not just the root query.
- Knowledge: The paper states fully black-box. It cannot access the retrieval system's or LLM's parameters and architecture, cannot modify the LLM prompt template, and does not assume knowledge of which specific retriever or LLM the target uses.
- Capability: Only able to inject or modify a small number of poisoned documents, e.g., malicious edits on collaboratively maintained corpora. Constraints are |P|≤M, with each document ℓ_LLM(p)≤T1 and ℓ_SEO(p)≤T2. T1 limits the number of tokens used to influence generation; T2 is the token-level edit distance relative to the original text, which the paper calls the SEO budget.
- Victim system: The retriever R retrieves text, the LLM generates answers, and the opinion function O maps to {0,1,2}, corresponding to Oppose, Neutral, Support. The authors state this setup covers politics, society, sports, and entertainment, and applies to both manipulation directions.
What related research exists?
The authors categorize existing RAG attacks into single-query, topic-local, and backdoor, and state that they have narrow coverage, low stealth, and higher cost under the same budget.
RAG Systems
- Lewis et al. (2020) and subsequent surveys: augment generation with external corpora to cover knowledge insufficient in training data, and can be extended by updating the corpus without large-scale retraining of the generator. The paper formalizes the process as computing R(q,d) for d∈D, taking top-K, and then feeding the query and retrieved set to the LLM.
Single-Query and Multi-Query Attacks
- Single-query: PoisonedRAG performs fact manipulation on a single query; subsequent work studies instruction or prompt hijacking caused by malicious injection; FlippedRAG performs black-box opinion manipulation; Jamming causes denial of service on specific inputs. The paper states they optimize only for individual queries, and success is defined only on those queries.
- Multi-query: LIAR affects similarity-based query neighborhoods; Topic-FlipRAG performs opinion manipulation on topic-related queries; Unic-RAG generalizes instruction hijacking to a fixed query set. The paper states they still optimize a narrow set directly related to the manipulation target.
- Backdoors: Phantom, AgentPoison, TrojanRAG, PR-attack, BadRAG, etc., embed explicit triggers, often requiring white-box retrievers or modifying the retriever. The paper states this work performs trigger-free, retriever-unchanged natural query manipulation, orthogonal to backdoors.
Defenses
- Query rewriting is used to reduce semantic alignment with adversarial documents; corpus-side filtering uses spam or perplexity signals; retrieval-side has random masking and similarity difference re-ranking between clean and poisoned evidence.
- Post-retrieval methods include isolated voting aggregation, document-confidence weighting, and rewriting top-K for privacy while preserving original semantics. Retrospective methods use anomalous answers or user feedback to locate poisoning sources.
- The paper states that prior work and deployment policies indicate that large models and search engines apply opinion-oriented protection for specific sensitive topics.
Baselines and Positioning
- Baseline methods: Main experiments adapt PoisonedRAG, Topic-FlipRAG, and Unic-RAG, and state that their core mechanisms are preserved. Data is a self-built 40-root-topic discourse network, not a direct reuse of the original benchmarks from those works. Table 1 also compares GARAG, RIPRAG, and FlippedRAG on black-box feasibility, disguise, and cost, but they do not enter Table 3.
- Authors' positioning: Existing attacks stop at specific queries or topic-local variants, making targets easier to isolate when censored; Table 1's Cam is low, and under that table's cost definition, they require more poisoning documents. This work attacks the overall contextualized query space around root topics; the authors state coverage is higher, disguise is stronger, and cost is lower under the same budget definition.
How does the paper address this problem?
DiscourseFlip uses a hybrid graph to cut the query network into ASUs, and then an agent iteratively rewrites poisoned documents within T1 and T2.
DiscourseFlip formulates discourse-level manipulation as budget-constrained maximum coverage: a single document cannot carry the entire network, and the number of documents is limited, so each document's coverage must be complementary rather than repeatedly hitting already-shifted regions.
Problem Formalization
- Root topic A corresponds to node set N(A). Each node has a fixed probe query q_n=π(n). After injecting P, the node's opinion score is O_atk(n,P).
- The attacker aims to minimize the average opinion deviation relative to O_tar(A) over the network. The effective coverage S(p) of a single document is the set of nodes where the document is retrieved and the opinion is pushed toward the target stance.
- The paper rewrites this as budget-constrained maximum coverage, maximizing
\frac{1}{|N(A)|}\left|\bigcup_{p\in P}S(p)\right|. The authors state that direct optimization is infeasible because maximum coverage is NP-hard and S(p) is a black box, so they decompose it into subtasks solvable by an agent.
Hierarchical Attack Surface
- First, nodes whose original opinion already aligns with O_tar(A) are removed; the rest form the contestable candidate set. The paper states this is to avoid spending budget on already-aligned regions.
- The statistics layer encodes each node's top-50 retrieved documents into rank-discounted tf-idf, with edge weights as normalized, symmetrized overlap, representing retrieval-induced proximity.
- The knowledge layer uses a generator-in-the-loop to extract causal dependencies and logical entailments, which are verified and turned into directed edges. The two layers are combined into a weighted graph G, with PageRank as initialization for subsequent exploration. The paper does not name the specific LLM used in the knowledge layer.
- Coarse-to-fine cutting into atomic semantic units (ASUs): macro-level uses Leiden to find communities, micro-level applies k-means to each community. The paper states that each ASU must fit into the agent's prompt window as the minimum unit for one expansion.
Graph-Guided Agent Loop
- Select the ASU with the highest PageRank weight among uncovered ASUs as the seed, first writing a draft that establishes the target stance and core arguments. Appendix A.3 gives the full prompts for the draft, four operators, and the diagnostic judge.
- Each round does not call the target RAG. The draft is used as the sole context, the proxy model answers the probe queries of the currently active ASU, and an independent judge determines whether it is non-refusal and aligned with the target stance. The paper states this separates generation-side stance induction from retrieval-side visibility.
- The belief state has three items: stance alignment score ρ_succ (with higher weight on core nodes), core coverage σ_core, and refusal count η_ref. The paper defines core nodes as the highest-weight nodes. The appendix algorithm lists several τ as inputs; the main text does not give values.
- Four actions: Rewrite does global rewriting; Inject does local patching; Compress increases density within T1 and protects anchor concepts; Consolidate does anchor-prefix synthesis and retrieval-oriented minimal rewriting within T2.
Three Phases and Experimental Budget
- Stabilize: If alignment is weak, Rewrite; if local coverage is insufficient or refusals are many, Inject; if T1 is exceeded, Compress. After core nodes are stable and refusal signals are low, proceed to expansion.
- Expand: Attempt to incorporate adjacent ASUs along the graph. A lookahead step first tentatively Rewrites, and only accepts if core coverage does not worsen beyond tolerance; otherwise roll back and return to Stabilize. Continue until T1 is exhausted or the iteration limit is reached; the paper does not give the numerical value of this limit.
- Consolidate: After T1 is used up, increase the chance of being retrieved under T2 while maintaining stance and semantics. Appendix Algorithm 1 also tracks globally covered ASUs, producing at most M documents.
- Main experiments use M=10, T1≤500, T2≤100 (Qwen3 tokenizer), retrieval top-K=5. Evaluation uses qwen-plus opinion scores and whether adversarial documents enter top-K; the optimization loop itself uses proxy diagnostics.
What experiments did the paper conduct?
In Table 3's twelve configurations, DiscourseFlip's four metrics are all higher than the same-cell baselines; in the user study, 51.85% shifted toward the target direction.
Experimental Setup
- Victim RAG: RAGblack on LangChain. Generators are Llama3.1-8B-Instruct and Qwen3-8B-Instruct; retrievers are BGE, Qwen3-Embedding, DPR, with similarity using embedding dot product. Default temperature=0, K=5. The checkpoint names from references [24][27] contain "abliterated", not further explained in the experimental section.
- Attack-side models: Agent backbone is Qwen3-Next-80B-A3B-Instruct; in the optimization phase, the proxy retriever is BERT and the proxy LLM is Llama3-8B-Instruct. The opinion classifier is qwen-plus. The independent judge in the optimization loop is not given a different name from qwen-plus in the paper.
- Data: 40 root topics: politics 11, sports 10, entertainment 9, society 10; probe queries 5,843; average nodes 146; document chunks 679,402 (Table 2). Topics come from Wikipedia high-revision pages and the PROCON website. GPT-5-mini does tree expansion; Appendix A.4 uses GPT-5o-mini to generate probe questions. Brave Search takes top 100 per query, chunked to a maximum of 512 tokens.
- Budget and baselines: M=10, T1≤500 tokens, T2≤100 tokens. Baselines are a black-box variant of PoisonedRAG, Topic-FlipRAG, and Unic-RAG. Unic-RAG was originally white-box retrieval; in experiments it is replaced with the same proxy retriever as the other methods. The paper states that each method's core mechanism is preserved.
- Metrics: RASR is the proportion of node queries where at least one adversarial document enters top-K; COV is the proportion of nodes whose opinion score changes toward the target direction; ASV is the average opinion increase toward O_tar. DLI is computed by r=N_flipped/N_injected; the paper writes that when r≤1 it is 0, and when r>1 it is amplified to a percentage by Equation (6). The paper does not report the number of repetitions.
Main Results
The table below lists only DiscourseFlip; all numbers come from Table 3. The cell with the lowest ASV is included.
Swipe horizontally to read the table
Setting RASR COV DLI ASV Llama3.1+BGE PRO 44.48% 27.09% 94.81% 16.68% Llama3.1+BGE CON 38.58% 32.52% 97.65% 25.64% Llama3.1+Qwen-Embedding PRO 16.33% 12.12% 53.70% 5.79% Llama3.1+DPR CON 21.02% 17.32% 78.35% 10.92% Qwen3+BGE PRO 44.48% 26.85% 94.62% 7.48% Qwen3+BGE CON 38.58% 30.34% 96.77% 21.12% Qwen3+Qwen-Embedding CON 13.42% 13.71% 63.30% 5.86% Qwen3+DPR PRO 23.28% 15.49% 71.71% 9.34% - Omitted are Llama3.1's Qwen-Embedding CON and DPR PRO, and Qwen3's Qwen-Embedding PRO and DPR CON. In Table 3's 12 generator × retriever × direction cells, DiscourseFlip's RASR, COV, DLI, and ASV are all higher than the same-cell PoisonedRAG, Topic-FlipRAG, and Unic-RAG. Under the same method, retriever, and direction, the two generators have the same RASR.
- The authors state that BGE+Llama3.1's PRO COV is 27.09%, compared to the strongest baseline's 8.97%. In that cell, Unic-RAG's COV is 10.99%, higher than 8.97%. On the CON side, the authors give 32.52% versus 14.60%, matching the highest baseline COV in the table.
- The authors state that on Qwen-Embedding, existing methods' RASR is near zero, while DiscourseFlip's PRO/CON for Llama3.1 is 16.33% and 13.42%. In the same table, several baselines have DLI of 0.00, for example PoisonedRAG and Topic-FlipRAG in both directions on Llama3.1+Qwen-Embedding. Qwen3+BGE PRO's ASV is 7.48%, lower than Llama3.1's 16.68% with the same retriever.
User Study
- 81 university students; Topic 1 is Joe Biden, Topic 2 is Lebron James. Group A uses clean RAG, Group B sees manipulated outputs and reports stance, Group C judges whether outputs were deliberately manipulated. Stance uses a 7-point Likert scale, normalized to [0,1]. The paper does not specify the generator and retriever used in this study.
- The authors state that Group A is largely stable before and after interaction (Figure 3). In Group B, 51.85% moved toward the target direction; Topic 1's average shift is 22.57%, Topic 2's is 23.72%. The abstract writes 51% and 24% average polarity change.
- Figure 4: Topic 1's Detected, Misattributed, Unaware are 22.22%, 51.86%, 25.93%; Topic 2's are 7.41%, 40.73%, 51.85%. The abstract states that over 85% viewed the answers as unmanipulated or misattributed. The authors state that shifts are mostly attributed to entities or issues other than the manipulation target.
Mitigation Evaluation
- The paper divides mitigations into general RAG mitigations and opinion-specific mitigations, and excludes factoid QA mitigations, as well as voting filters that would bias toward majority-consistent evidence and thus amplify polarization, with RobustRAG as an example. Table 4's rewriting experiments do not specify the generator, retriever, or domain: DiscourseFlip's RASR/ASV goes from 33.41%/19.05% to 28.97%/14.64%, and Unic-RAG's from 8.80%/4.25% to 3.50%/1.77%. The authors state that rewriting mainly affects attacks that rely on specific question phrasings.
- Random masking averages over three masked copies (Figure 6). The main text does not give readings for each mask rate. The authors state that as the mask rate increases, the baseline drops, while DiscourseFlip's RASR and ASV remain high, and they state that it relies on semantically coherent rewriting rather than explicit trigger tokens. Figure 7's log perplexity is computed by Qwen-3: the authors state that Unic-RAG's distribution is separated from clean documents and easier to filter out, while PoisonedRAG, Topic-FlipRAG, and DiscourseFlip overlap with the clean distribution.
- Table 5's GRADA does not specify the model and retriever: DiscourseFlip's RASR/ASV goes from 62.55%/42.59% to 41.18%/30.65%, and Unic-RAG's from 16.37%/7.28% to 6.76%/5.65%. The authors state that Unic-RAG's RASR drops by more than 60%, while other attacks only drop moderately. The bar readings for top-k neutralization are not given in the main text; the authors state that it almost completely mitigates Unic-RAG, but has limited effect on attacks that rely on factual evidence (Figure 8). Under topic guardrails, the authors state that DiscourseFlip retains about 60% of its original Coverage and 45% of its original ASV (Figure 9). The authors state that both types of mitigations fail to stop discourse-level manipulation.
Domain-Specific Results
- Appendix Table 7 is for BGE+Llama 3.1. DiscourseFlip's RASR/ASV in the CON direction: Sports 59.10%/41.67%, Entertainment 40.39%/36.24%, Politics 33.41%/18.97%, Society 30.05%/15.57%. The authors state that the sports domain is highest, possibly due to a smaller retrieval corpus and higher semantic focus.
- The authors state that the politics domain has a larger corpus and denser average nodes; DiscourseFlip still has RASR above 33% and DLI above 95%, and DLI is usually above 90% across categories. The authors state that PoisonedRAG's leverage in the support direction drops to 0 in sports and society; Table 7 shows DLI of 0.00 in those two cells.
- Table 7's all-domain rows do not exactly match Table 3, for example Topic-FlipRAG CON's COV is 20.26 versus Table 3's 12.77; Unic-RAG CON's DLI is 34.46 versus Table 3's 57.37. The summary follows Table 3.
Other Ablations and Analyses
- Table 6 is a politics-domain subset. Full DiscourseFlip: RASR 33.41%, COV 52.61%, ASV 30.02%. Without Statistics Layer: 24.41%, 47.16%, 19.31%; without Knowledge Layer: 34.29%, 50.25%, 24.16%.
- Without Leiden: RASR 40.98%, ASV 24.93%; without K-Means: RASR 28.43%, ASV 23.23%. The authors state that using only k-means gives higher retrieval but lower ASV than the full framework.
- Without Node Filtering: RASR 40.42%, COV 52.33%, ASV 27.02%; without SEO: RASR 16.06%, COV 44.90%, ASV 17.42%.
- Figure 10 does not specify the generator, retriever, or domain. As M goes from 5 to 15, the authors state that ASV rises from 13.80% to 25.4%; at M=20, ASV is 28.61% and DLI drops from 98.84% to 91.90%.
- In the same figure, K=1's RASR is 17.03%, K=9's is 41.76%; ASV at K=7 is 20.40%, at K=9 is 17.95%. The authors state that at large top-K, ASV remains above 17% and DLI remains above 99%.
What are some points that can be further explored?
The paper does not have a dedicated section discussing method limitations; the Conclusion calls for more robust and adaptive defenses against discourse-level manipulation.
Limitations and future directions noted by the authors
- The paper has no dedicated Limitations section, nor does it frame DiscourseFlip's design or experiments as method limitations. The Conclusion states that existing general RAG defenses and opinion-specific guardrails cannot reliably block discourse-level manipulation, and calls for more robust, adaptive defenses.
- Section 6.3 ends with a defense direction paragraph, but it is located in Results and is not counted here.
Experimental coverage
- The evaluated RAG generation models are Llama3.1-8B-Instruct and Qwen3-8B-Instruct, with retrievers BGE, Qwen3-Embedding, and DPR; the attack side uses Qwen3-Next-80B-A3B-Instruct, BERT, and Llama3-8B-Instruct, with the opinion classifier qwen-plus (Section 5.2, Table 3).
- The corpus spans 4 domains, 40 root topics, 5,843 probe queries, and 679,402 document chunks (Table 2). Defaults are M=10, K=5, T1≤500, T2≤100; Figure 10 additionally sweeps M=5 to 20 and K∈{1,3,5,7,9}.
- Main experiment baselines are PoisonedRAG, Topic-FlipRAG, and Unic-RAG. Table 1 also lists GARAG, RIPRAG, and FlippedRAG with costs and camouflage, but without Table 3 results for them.
- Mitigation evaluations include query rewriting, random masking, perplexity filtering, GRADA, Top-k neutralization, and topic-oriented opinion guardrails. The paper explicitly excludes fact-answering mitigations and voting-based filtering (e.g., RobustRAG), citing that the latter favors majority-consistent evidence and amplifies polarization (Section 6.3).
- The user study involves 81 university students and two topics: Joe Biden and Lebron James. Ablations are done on a political domain subset (Table 6). The paper does not report the number of attack optimization queries or repetitions, nor the generation model and retriever used in the user study.
Summarize the main content of the paper
DiscourseFlip allocates poisoning budget based on semantic graphs; the authors state it outperforms baselines on Table 3, and users often attribute manipulation elsewhere.
DiscourseFlip is a discourse-level opinion manipulation attack against black-box RAG. The gap the authors address is: targeting only single queries or topic-local queries has narrow coverage, is easily isolated when the target is censored, and is hard to propagate along related topics.
The attacker cannot see inside the retriever or LLM, nor modify the prompt template, and can only inject a limited number of documents under constraints on document count, generation tokens, and SEO edit distance. The method first removes nodes already aligned with the target stance, builds a graph using retrieval overlap and relational reasoning, then cuts it into ASUs. An agent uses proxy retrieval and proxy generation as feedback, rewriting documents through three phases—stabilize, expand, and consolidate—so that coverage is complementary.
- In Table 3's 12 generator × retriever × direction configurations, DiscourseFlip's RASR, COV, DLI, and ASV are all higher than PoisonedRAG, Topic-FlipRAG, and Unic-RAG. For BGE+Llama3.1, CON, COV is 32.52% and DLI is 97.65%; for the same model, PRO RASR is 44.48%. For Qwen-Embedding+Llama3.1, PRO RASR is 16.33%, one of the lower entries for DiscourseFlip in the table.
- Table 1 records the number of poisoned documents needed to influence 100 target queries as 6.8; in the same table, Topic-FlipRAG is 23.8 and Unic-RAG is 20. The table marks DiscourseFlip's Cam as high, and the other methods as low.
- In the 81-person study, 51.85% moved toward the target direction; the main text gives average shifts of 22.57% and 23.72% for Topic 1 and Topic 2, while the abstract writes 51% and 24%. For Topic 2, only 7.41% attributed the manipulation to the target topic.
- Rewriting, random masking, perplexity, GRADA, top-k neutralization, and topic guardrails all failed to reduce DiscourseFlip to near-zero retrieval or leverage like the baseline. The authors state in the Conclusion that this requires more robust, adaptive defenses than existing single-point mitigations.