Poisoning the evidence: document and data attacks against LLM-driven retrieval-assisted analytical process–performance model generationPoisoning the Evidence: Document and Data Attacks on LLM-driven Retrieval-Assisted Analytical Process-Property Model Generation
The authors perform coordinated document and data poisoning on a retrieval-assisted analytical modeling pipeline; on FLIPMM at ε=4, the clean test MSE is 71.37, versus 50.27 for the original workflow.
The attacker observes process queries and process variable values, selects target inputs, and checks the clean reference model and coefficients; source documents and all data table output values can be modified before import, process variables remain unchanged, and per-item modifications are bounded. The attacker cannot access the modeling pipeline configuration, and the clean test copy is outside their access scope.
- The retrieval-assisted workflow combines engineering literature and small experimental data to generate analytical process–property models. If documents and data are tampered with from the same source, their mutual agreement may create an illusion that the model is valid, and internal fit checks can hardly detect it.
- The authors construct poisoned documents and bounded data modifications from the same coefficient perturbation, maximizing the prediction change at the target input while preserving the reference model family residuals. Experiments compare the original workflow, document-only, data-only and coordinated poisoning, and examine four types of diagnostics, D1–D4.
- On FLIPMM, at ε=4, coordinated poisoning gives a final clean test MSE of 71.37 and R2 of 0.789, versus 50.27 and 0.851 for the original pipeline. The 256-point MAE of the reference model family is 5.305 μm³/s under all four modification bounds and remains unchanged after refitting.
- The authors state that the study is limited to one numerical benchmark, one specific RAG-LLM framework and a threat model that allows modification of complete data tables, and they plan to extend to processes, generators and partial data poisoning and to study defenses. The main results use only GPT-4o mini, and some paired intervals include zero.
- Evaluated models
- GPT-4o mini
- Metrics
- MSER2Spearman rank correlationMAEsuspicion score
The researchers propose a dual-channel coordinated poisoning attack against LLM-driven, retrieval-assisted analytical process–performance model generation workflows: starting from the same model coefficient tampering, they simultaneously construct poisoned documents and bounded modifications to the numerical dataset, so that the statistical consistency between the tampered model and the poisoned dataset reaches the level of the baseline model on clean data. Evaluation on a flow-assisted laser-induced plasma micromachining benchmark shows that the attack can propagate through retrieval, generation, fitting and selection, writing the poisoned literature's conclusions into retrieval summaries, shifting process predictions under selected operating conditions, and significantly reducing clean test accuracy. Because coefficient refitting preserves the baseline residuals, conventional internal diagnostic checks cannot alert the user. The authors accordingly point out that internal consistency between documents and experimental data cannot substitute for independent verification against clean benchmark data that the attacker cannot access.
Related events and news
1 events · 0 news mentions
- This event's paper
研究显示LLM检索辅助建模可遭文档与数据协同投毒
Paper analysis
What problem does this paper attempt to solve?
Studies how same-source tampering of documents and experimental data bypasses internal consistency checks and changes the predictions of retrieval-assisted analytical models.
Core question: when literature and calibration data are coordinately poisoned, will LLM-driven retrieval-assisted analytical modeling treat mutually agreeing erroneous evidence as valid model grounds.
- Application scenario: the pipeline retrieves candidate closed-form equations from engineering literature, then uses small experimental data to fit coefficients, iteratively refine and select a model. The authors argue that information tampering in digital manufacturing may propagate through this pipeline into subsequent process decisions.
- Gap in existing research: the paper states that existing retrieval poisoning mainly examines natural-language answers, and regression poisoning usually fixes the mathematical structure; they do not trace how poisoned relationships pass through equation proposal, numerical fitting and final selection, nor adequately test their prediction difference from clean ground truth.
- Core observation: if tampered literature claims and data come from the same erroneous model, they may form false corroboration; checking only retrieval consistency, anomalous rows or fit residuals cannot replace independent validation on protected clean data.
- Threat model:
- Goal: within the allowed modification scope, maximize the change in the final selected model's prediction at an attacker-specified input xt.
- Knowledge: the attacker observes process queries and variable values, chooses xt, and inspects the original clean reference analytical model and coefficients; no true physical laws or foreknowledge of the final candidate are needed.
- Capability: can add or modify source documents before import, and modify all output values in the training, validation and test partitions; process variables are fixed, and each output modification is bounded.
- Victim system and boundaries: the victim system is the modeling pipeline consisting of retrieval, generation, fitting and selection; the attacker cannot access its retrieval settings, prompts, model configuration and diagnostic implementation, and a clean data copy is kept outside their access.
- Proposed approach: proposes coordinated dual-channel poisoning, generating poisoned documents and bounded data modifications from the same coefficient perturbation; sets four conditions—clean, document-only, data-only, coordinated—and evaluates propagation, prediction and detectability with D1–D4 diagnostics and clean test data.
What related research exists?
Related work is divided into manufacturing information security, retrieval-assisted modeling, retrieval and regression poisoning, and residual preservation and diagnostic checks.
Manufacturing information security and LLM/RAG
- Sturm et al. (2017), Belikovetsky et al. (2017): respectively study additive manufacturing file attacks, and malicious design modifications that reduce the fatigue life of printed propellers and cause failure; Rahman and Shafae (2022) use physics-based machining behavior monitoring to detect cyberattacks.
- Lewis et al. (2020): propose RAG, incorporating external documents into the generation context; Brown et al. (2020) discuss prompting and few-shot capabilities without retraining. The paper notes that retrieval measures query relevance and does not guarantee the factual accuracy of the source.
- InjecAgent (2024), AgentDojo (2024): the paper uses these two benchmarks to show that malicious external content can redirect tool-integrated LLM agents.
Analytical model generation
- Response Surface Methods, Symbolic Regression and LLM-SR (2025): the first has the analyst choose the polynomial form, symbolic regression directly searches for explicit functions; LLM-SR combines LLM equation proposals, data-driven parameter optimization and evaluated candidates to improve the search.
- Naghavi Khanghah et al. (2026): combines manufacturing literature knowledge extraction with iterative equation refinement, fits coefficients with small experimental data, and feeds back predictive metrics such as R2; the victim workflow in this paper is adapted from it.
Retrieval knowledge and calibration data attacks
- Greshake et al. (2023), PoisonedRAG (2025), AuthChain (2025), Lin et al. (2026): respectively study indirect prompt injection, inserted documents inducing specified answers, single-document knowledge poisoning, and poisoned retrieved code examples introducing vulnerabilities. The paper notes that these works measure success by generated text and do not examine propagation after textual claims enter a downstream analytical model generator that relies on fitting and selection.
- Jagielski et al. (2018), Carnerero-Cano et al. (2026): study linear regression poisoning and robust estimation, and the effectiveness–detectability trade-off and BayesClean for linear and nonlinear regression. The paper notes that they assume a fixed model structure and do not include a text retrieval channel.
Residual preservation and diagnostics
- Liu et al. (2011), Russo (2023): respectively construct false-data injection that preserves state-estimation residuals, and study poisoning and detectability in least-squares identification; Meyer et al. (2023) analyze the worst-case prediction change for fixed inputs under element-wise bounded training output modifications.
- RAGAS (2024), Zheng et al. (2023): the former evaluates LLM faithfulness based on retrieved context, the latter studies LLM scoring and position bias; this paper uses the latter's scoring idea for document plausibility.
- Control settings: prediction comparisons are the original workflow versus document-only, data-only, and coordinated poisoning; diagnostic controls include cleanlab, Cook's distance, studentized residuals, PyOD, ECOD, and TRIM, all using the FLIPMM dataset.
The authors position this paper as placing same-source modifications of retrieved text and numerical data into the complete analytical model generation pipeline, and using clean data inaccessible to the attacker to test prediction error beyond internal consistency.
How does the paper address this problem?
Coupled document claims and row-wise data modifications are perturbed with the same coefficients, then the attack is traced through retrieval, fitting, selection and four types of diagnostics.
The overall method is coordinated dual-channel poisoning: first construct a target perturbation from a clean reference analytical model, then separately generate poisoned documents and a bounded data table so that both express the same modified model, without changing the model-generation pipeline.
Victim Pipeline and Attack Objective
- The workflow is adapted from Naghavi Khanghah et al.: the LLM proposes candidate equations with adjustable coefficients based on a knowledge summary, each candidate is fitted to the training set by numerical least squares and scored on the validation set.
- Ranking combines normalized validation MSE, expression size, and parameter-count penalties; candidates that cannot be evaluated or fitted are excluded. The original data table does not directly enter the initial equation-proposal prompt.
- The improvement stage returns the leading model, validation MSE, and R2 together with the knowledge summary to the LLM until a stopping condition or search budget; the final output is the highest-ranked retained fitted model.
- The attack is judged by the finally selected model, because the system may discard the attacker-suggested form during iteration; success is not defined by whether the poisoned equation is adopted as-is.
Coordinated Construction with Residual Preservation
- The modified model is written as fA(x)=fR(x)+g(x), and the data outputs are changed to yi′=yi+g(xi); therefore yi′−fA(xi)=yi−fR(xi), i.e., the residual of each record relative to its respective model remains unchanged.
- Let the fixed function terms form ϕ(x) and the coefficient modification be Δβ, then g(x)=ϕ(x)ᵀΔβ. The attack maximizes |g(xt)| subject to |g(xi)|≤ε (i=1,…,N), with xt different from the data inputs xi.
- This objective is linear in Δβ even when the function terms contain nonlinear forms of process variables; for interpolation the per-term modification lies between −ε and +ε, while for extrapolation the prediction change can exceed ε.
- The optimal coefficient vector simultaneously determines the modified model in the documents and the data-table modification, aligning the two channels by design.
The Document and Data Channels
- The document channel directly constructs a source document describing the modified model, variables and units, process effects, and the xt prediction, and disguises it as a reference model previously fitted on unmodified training data; it does not use PoisonedRAG's iterative text optimization.
- The three variants are Document Alone (I), Question-Document (Q+I), and Document-Question (I+Q), differing only in whether a query is present and its position. The shared title is for human verification only and is not used for detection; the full inserted text is in Appendix A.2.
- The data channel adds g(xi) to each original output, with process settings unchanged. Single-channel conditions modify only their corresponding source, and the coordinated condition requires write access to both sources.
FLIPMM Instance and Run Parameters
- The reference model takes the five function terms of the saved pipeline model and performs a single OLS fit using only the 154 original training data points. The instance modifies only the intercept and the pulse energy coefficient, giving g(P)=ε(2−P/10), which satisfies the modification bound within 10–30 μJ, and g(40)=−2ε at P=40 μJ.
- The four preset per-term allowances are ε=0.5, 1, 2, 4 μm³/s. Each poisoned document variant is added as one extra document and indexed together with the 13 original documents.
- All generation conditions use GPT-4o mini, text-embedding-3-small, and BAAI/bge-reranker-large; 51 initial equation proposals, at most ten improvement rounds with 21 additional proposals per round, and a validation R2 stopping threshold of 0.98.
Four Diagnostic Categories and Independent Evaluation
- D1 Document Plausibility: GPT-4o mini at temperature 0 assigns suspicion scores from 0–1 to the poisoned document and the 13 original documents; each variant is tested across eight document orderings, with no rejection threshold set.
- D2 Response Anomalies: Six tools rank the 205 training/validation rows, and Spearman correlation compares the review priority of the original table and the poisoned table; because all rows are modified, standard ROC is not computed.
- D3 Analytical Model-Data Consistency: Compares the 256-point MAE and single-item residuals between the reference model and the corresponding data table, and performs unconstrained OLS refitting on the five fixed function terms.
- D4 Expression and Prediction Checks: Parses the AST and checks conditional expressions, non-finite values, excessively large constants, and extreme or negative predictions; finally, MSE and R2 are computed on the original test data, which the attacker cannot modify, without refitting.
What experiments did the paper conduct?
The four-condition FLIPMM experiment shows that coordinated poisoning reduces clean test accuracy, but several paired intervals include zero, while internal residuals remain unchanged.
Experimental Setup
- System under test: The retrieval-assisted analytical modeling pipeline uses GPT-4o mini for knowledge synthesis and equation proposal, text-embedding-3-small for retrieval, and BAAI/bge-reranker-large for reranking; D1 is additionally scored by GPT-4o mini at temperature 0.
- Data: FLIPMM contains 256 four-level factorial settings, fixed split into 154 training, 51 validation, 51 test; inputs are WS, P, F, SS, output is MRR. The attacker can modify the outputs of the full table; a clean test copy is stored in isolation.
- Conditions and baselines: clean original pipeline, document-only, data-only, coordinated; ε=0.5, 1, 2, 4 μm³/s. Table 2 shows ε=4; Appendix A.1 points to supplementary results for all ε.
- Metrics: MSE and R2 are reported by partition; R2=1 is perfect prediction, 0 equals the partition-mean MRR baseline. Also reported are the prediction change at P=40 μJ, D1 suspicion score, D2 rank correlation, D3 MAE, and D4 failure count.
- Repeats and pairing: The paired analysis of coordinated versus original pipeline at ε=4 comprises 14 pairs; Figure 5 uses repeats where both sides have a valid model, while Table 2 averages all successful runs of each condition. D4 comprises 193 successful runs and 386 initial/final evaluations.
- Interval nature: Figure 5 shows exploratory, uncorrected 95% Student-t intervals; original-pipeline runs are reused across different ε, and the paper does not use these comparisons to test differences between different ε.
Main Results
According to Table 2, ε=4 μm³/s; values are the mean of successful runs for each condition, and Test uses the unpoisoned test set.
Swipe horizontally to read the table
Condition Stage Clean validation R2 / MSE Test R2 / MSE Clean Initial -0.128 / 403.88 -0.067 / 360.86 Clean Final 0.871 / 46.06 0.851 / 50.27 Document only Final 0.870 / 46.58 0.825 / 59.06 Data only Final 0.855 / 52.11 0.821 / 60.46 Coordinated Initial 0.794 / 73.64 0.758 / 81.74 Coordinated Final 0.824 / 63.05 0.789 / 71.37 - Paired results: In Figure 5(a), coordinated poisoning at ε=4 increases clean test MSE relative to the original pipeline by an average of 20.90 (μm³/s)², interval [9.56, 32.24], corresponding to an average R2 decrease of 0.062; the 14 paired runs differ from the averaging basis of Table 2.
- Effect of validation data: The same coordinated model has a final MSE of 43.43 and R2 of 0.862 on poisoned validation, versus 63.05 and 0.824 on clean validation; all 15 coordinated runs show higher MSE and lower R2 on clean validation.
- Bound trends and exceptions: The average clean test loss of the coordinated condition increases with ε; the intervals for ε=1, 2, 4 are above zero, and ε=0.5 includes zero. The authors do not claim a tested difference between different ε on this basis.
Channel Ablation and Extrapolation Predictions
- Additional effect of documents: With numerical modifications fixed, adding poisoned documents at ε=4 increases paired clean test MSE relative to data-only by an average of 10.74 (μm³/s)², interval [1.76, 19.72], corresponding to an R2 decrease of 0.032; intervals at lower ε all include zero.
- Single channels are not consistent: document-only yields an MSE increase relative to the original pipeline of 12.41, interval [2.27, 22.54], only at ε=2, with other bounds including zero; data-only intervals include zero at all four bounds.
- Target-point results: In Figure 5(b), the coordinated condition at ε=4 has an average prediction difference of −4.96 μm³/s at P=40 μJ, interval [−6.72, −3.20]; ε=2 and 4 each have 12/14 pairs downward. All coordinated predictions remain above the baseline polynomial's 39.813, so the authors state that a lower prediction at this point is instead closer to this reference, and no additional decrease of coordinated relative to data-only is established.
Retrieval Propagation and D1 Document Scoring
- Propagation counts: In Appendix Table A.1, at ε=1 with 15 repeats per condition, all three document variants enter five context paragraphs and repeat the pulse energy coefficient in 15/15 cases; exact repetition of the P=40 μJ prediction value is document alone 0/15, question-document 10/15, document-question 0/15.
- Scope of the main experiment: All 120 main runs containing poisoned documents retrieve the document and repeat the coefficient; the authors note that exact repetition does not equal endorsement of the claim, general attack success, or adoption by the final equation, and that the model-selection results in Section 5.1 use document alone throughout.
- D1 results: In Table 3, at ε=1 with eight orderings per variant, the average suspicion scores are 0.388, 0.613, 0.525, with ranges 0.1–0.9, 0.2–1.0, 0.3–0.9, respectively. Another document-alone evaluation reports a mean of 0.338 under all four ε; these scores are heuristic suspicion ratings, not detection rates.
D2–D4 Detectability
- D2 row ranking: In Table 4, across four ε, the Spearman correlation is 0.918–0.998 for cleanlab, 0.997–1.000 for Cook’s distance (PyOD), and 0.996–1.000 for ECOD; Cook’s distance (OLS), studentized residuals, and TRIM are all 1.000. The authors explicitly state that correlation is not a detection rate and that whole-table rejection rules were not examined.
- D3 residual preservation: The MAE between the reference model and the original table, and between the modified model and the poisoned table, is 5.305 μm³/s over all 256 points, unchanged under all four ε and after OLS refitting; the maximum single-item residual change is below 10−12 μm³/s. This result is limited to the fixed reference function family before generation.
- D4 negative checks and counterexamples: All 386 evaluations pass structural, non-finite-value, and extreme-prediction checks; however, 290 evaluations show negative MRR on the extended grid. The final failures in Table 5 are clean 6/14, document-only 60/60, data-only 26/59, combined 60/60, so the authors state that negative-prediction warnings alone cannot identify poisoning.
Other Ablations and Analyses
- Document order: D1 uses eight matched document orderings per presentation; high-score reasons involve synthetic titles, and low-score reasons involve the model appearing plausible but unverified.
- Retrieval control: In Table A.1, the original corpus gives exact repetition of 0/15 for both the pulse energy coefficient and the P=40 μJ prediction.
- Construction versus implementation difference: The construction change at P=40 μJ is −2ε, but the change after final selection need not equal this value.
- Basis of the document effect: The document comparison measures the overall effect of inserting an entire poisoned document and does not separate the effect of modifying numerical claims from that of the added document itself.
What are some points that can be further explored?
The authors plan to extend benchmarks, generators and partial data poisoning and to study defenses; current evidence is concentrated on a single FLIPMM pipeline.
Limitations and future directions noted by the authors
- Evaluation scope: Section 6 explicitly states that the study is limited to one numerical benchmark, one specific RAG-LLM modeling framework, and a threat model that allows full data table modification.
- Extension targets: Future Work in Section 6 plans to extend the evaluation to more manufacturing processes, model generators and partial data-poisoning scenarios.
- Defense research: Section 6 states that the authors will develop defense mechanisms for LLM-driven process model generation based on the proposed attack, as future plans.
Experimental coverage
- Models and pipeline: the generation experiments use GPT-4o mini, text-embedding-3-small and BAAI/bge-reranker-large; D1 scoring also uses GPT-4o mini, and results for other generation models are not reported (Section 4.3).
- Data and task: the experiments cover 256 settings of FLIPMM, and the main attack task is MRR extrapolation beyond the pulse energy calibration range; the fixed split is 154/51/51 (Section 4.1, 4.2).
- Modification capability: the coordinated construction modifies all data outputs of the import pipeline, and the training, validation and test partitions can all be modified; only a clean copy is isolated for evaluation, and no partial data-poisoning experiment is given (Section 3.1, 4.1).
- Statistical coverage: the key paired comparison at ε=4 is 14 pairs, and the intervals in Figure 5 are labeled exploratory and uncorrected; several single-channel and lower-ε comparison intervals include zero, and the paper does not report replication across models or processes.
- Diagnostic boundaries: D1 is a 0–1 heuristic score with no rejection threshold, D2 does not compute a detection rate or whole-table rejection, D3 targets a fixed reference function family; negative predictions in D4 also appear in clean runs (Section 5.2).
Summarize the main content of the paper
Coordinated poisoning can make literature and data jointly support an incorrect analytical model and reduce clean test accuracy while internal residuals remain unchanged.
This is an attack study on LLM-driven retrieval-assisted manufacturing modeling, examining whether internal consistency can still serve as grounds for model validity after literature knowledge and experimental data are tampered with from the same source.
- Problem: retrieved text guides equation structure, and experimental data are responsible for fitting and selection; if both jointly express an erroneous relationship, textual agreement or fit residuals alone may form false corroboration.
- Method: the authors use coefficient perturbations of a reference model to simultaneously generate poisoned documents and element-wise bounded data modifications, maximizing the prediction change at a specified input under constraints while preserving the reference model family residuals. Experiments compare four conditions—clean, document-only, data-only and coordinated—and additionally evaluate D1–D4 diagnostics.
- Main prediction results: on FLIPMM at ε=4 μm³/s, the coordinated condition's final clean test MSE is 71.37 and R2 is 0.789, versus 50.27 and 0.851 for the original workflow (Table 2); the average MSE increase over 14 paired runs is 20.90 (μm³/s)², with an exploratory interval of [9.56, 32.24].
- Propagation and stealthiness: all 120 main runs containing poisoned documents retrieved the document and repeated its pulse energy coefficient; the 256-point MAE between the reference model and the corresponding data table is 5.305 μm³/s under all four ε, and remains unchanged after OLS refitting.
- Exceptions and boundaries: the paired intervals for data-only include zero at every ε; the additional clean test loss of coordinated relative to data-only yields an interval excluding zero only at ε=4. The prediction decrease at P=40 μJ is instead closer to the baseline polynomial reference, and negative prediction warnings also appear in clean runs.
- Authors' conclusion: the authors argue that internal agreement between documents and data cannot replace independent validation against protected ground truth; future work needs to extend to manufacturing processes, generators and partial data poisoning, and to develop defenses.