Research for building better AI retrieval systems that resist duplicate information and preserve critical evidence.
Duplicates in retrieval-augmented generation (RAG) may cause performance issues. For example, when 4 duplicates of a single document are present, the true information source may be bumped from the results.
In SciFact, 5 models dropped performance by 26.4 points when 4 duplicates of a single document were included in the search results. Performance fell to 55.9% (95% CI: 21.4-31.7) from 82.2%. Models generally showed no hallucinations. With no evidence shown, 65% of correct answers were "not enough information" and only 4% were confidently made incorrect. Therefore, the error may go unnoticed.
Accuracy is recovered by deduplication. However, the default deduplication method has a problem where documents that are very similar but differ on a small detail (e.g. number or inclusion of 'not') will also be merged. We have funded this project to allow creation and testing of a deduplication method which does not do this.
We have focussed on worst case scenarios. The claims we have tested are those in which duplicates could cause the evidence to move down results. In our datasets, true duplicates are rare. We are partly measuring how often this issue would occur in real results.
[Paper] (Sharma and Gilpin): https://papers.ssrn.com/sol3/papers.cfm?abstract_id=7589165
[Code, prompts and raw outputs]: https://doi.org/10.5281/zenodo.22324263
Aymptotic: A copy filter which removes true copies but retains near-copies where just one key fact has been changed.
HOW:
1. Increase the volume of "one fact changed" data (copies where a number, date or negation has been changed). Create and manually verify a minimum of 500 pairs.
2. Generate 4 filters – perfect match, MinHash, embeddings and a fact filter which can analyse numerical, temporal, name and negation facts.
3. For near matches, deploy a small model to determine if there is conflicting factual information between the two pages.
4. Test all filters across multiple data sets using 5 large models. Where possible also utilise even larger models (but these are too resource intensive to process currently).
5. Test different copy volumes (2, 4, 8), analysis windows (5, 10, 20) and locations. For each combination, run 3 tests.
6. Establish the frequency of true copies in genuine search results. Data will be sourced from real news and web material.
7. Share code, outputs and a brief paper.
WHAT IS KNOWN (so that funding can be directed at new research):
- The loss mechanism is based on a counting system. Once the window size minus 2 is reached, evidence is lost. Between window sizes 3-64, 70/70 tests were successful. (As basic dummy text was analysed, this relates to a counting fact, and is not a true test for lengthy documents).
- There is no location bias. With no copies present, results were similar for evidence located in positions 1, 3 and 5 (88.0, 87.6, 87.9 respectively).
- Increased prompting is ineffective (for 4 copies: 60.0 basic, 34.2 strong prompt, 60.8 few shot).
- Perfect matching filters are outperformed by simple alterations (around 32% retrieval rate). Both MinHash and embeddings filters achieve around an 81% retrieval rate for all types of edit. However, they are indistinct between true copies and near-copies (which have one fact altered). The optimum trade-off identified was around 90%.
Success: The device successfully distinguishes between most (≥95%) of the altered-one-fact data pairs. It also achieves high precision and is within 1 of perfect precision.
Partial success: It outperforms common cleansing tools in one area and does not under-perform in the second.
Ongoing learning:
Where there is no distinction made between the data sets I will highlight this. In my initial investigation I identify a potential upper limit of around 90%. Therefore, it is certainly possible that I will gain an unequivocally negative insight.
Self audit:
- All results can be re-derived from a specific seed.
- I have identified and rectified 4 issues in my self-testing.
- There is a change in the sign of one result upon excluding one model. This is therefore deemed to be unreliable.
- I will publish both time spent and results in the comments section. This will occur at the mid and final stages of my investigation.
I am requesting $5,000 for GPU time, not GPUs. This is for scientific exploration. On-demand cloud GPUs will be leased and time recorded.
- Large model (5) x various data-sets x 3 duplication x 3 replication rate(s): c.1,400 hours = c.$2,800
- Larger models (between 30B and 70B) which I can not process on my current computer: c.600 hours = c.$1,200
- Development and optimisation of fact-sensitive detection system: c.250 hours = c.$500
- Replicating lost or prematurely terminated work (approx 10%): c.250 hours = c.$500
- Overall: c.2,500 hours = c.$5,000
PRELIMINARY PHASE: Should donors wish, a sum of $2,000 (equating to approx 1,000 hours) covers the large model primary experimentation phase. Processing of larger models comes later.
WHEN A CHEAPER OPTION IS IDENTIFIED, further replication will occur. Expenditure on science will not be reduced. Unused funds are refunded.
ISHAAN SHARMA (Lead author). I developed the code. Conducted experiments. And drafted the paper. I analysed 44,160 responses obtained from 6 models. Diagnosed and resolved 4 issues that arose during my experimentation. And released the code and queries, alongside the original responses, so that others can independently reproduce our findings.
View author profile here: https://ssrn.com/author=13526168
PROF. LEILANI H. GILPIN (Co-author and project leader).
Assistant Professor of Computer Science and Engineering at University of California, Santa Cruz (UCSC). Is director of the AI Explainability and Accountability (AIEA) Lab. Previously completed a PhD at MIT’s CSAIL, in the group of Prof. Gerald Sussman. And achieved a B.S. in both Computer Science and Mathematics from UC San Diego and an M.S. from Stanford.
View her Google Scholar profile here: https://scholar.google.com/citations?user=UFT_ijYAAAAJ
As at 23 November 2026, she has received 5,333 citations (since 2021). Has an h-index of 14 and an i10-index of 20. She works within the areas of neurosymbolic AI, explainable AI, commonsense reasoning and AI and ethics.
In addition to being my mentor, Prof. Gilpin was also a co-author of the paper. She influenced the experimental design and analysed our findings. Prof. Gilpin specialises in investigating and accounting for AI system errors. Here, we investigate – for AI search – whether models or an unseen duplicate are responsible for non-availability of information.
TOP PUBLICATIONS (click titles to view paper):
- Explaining Explanations: An Overview of Interpretability of Machine Learning (Lead author. Published in IEEE DSAA 2018. Approximately 4,500 citations): https://arxiv.org/abs/1806.00069
- Outracing champion Gran Turismo drivers with deep reinforcement learning (Co-author. Published in Nature 2022): https://www.nature.com/articles/s41586-021-04357-7
- Can Large Language Models Explain Themselves? (Last author. 2023): https://arxiv.org/abs/2310.11207
- Explaining Explanations to Society (Lead author. 2019): https://arxiv.org/abs/1901.06560
- "Explanation" is Not a Technical Term: The Problem of Ambiguity in XAI (Lead author. 2022): https://arxiv.org/abs/2207.00007
- Know Your Limits: On the Faithfulness of LLMs as Solvers and Autoformalizers in Legal Reasoning (2026): https://arxiv.org/abs/2606.16118
- Bridging Legal Interpretation and Formal Logic (2026): https://arxiv.org/abs/2605.14049
- Learning to Draw ASCII Improves Spatial Reasoning in Language Models (2026): https://arxiv.org/abs/2604.14641
- Follow My Lead: Logical Fallacy Classification with Knowledge-Augmented LLMs (2025): https://arxiv.org/abs/2510.09970
- Guaranteed Optimal Compositional Explanations for Neurons (2025): https://arxiv.org/abs/2511.20934
She has also published papers in two NeurIPS 2024 and one AAAI 2023 conference. See her Scholar profile above for further details.
It is impossible to distinguish between a document and a document that has had just one fact altered. Initial testing shows that there is a boundary close to 90% where similarity is high. This demonstrates clearly the extent to which similarity based de-duplication works. I will share all this information including my test data, the unsuccessful results and code.
Whilst applying to natural data, the impact is less. There are infrequently true duplicates within my data sets. Therefore my key result constitutes more of a challenge test. Nonetheless, the issue does exist and I will truthfully state the frequency with which it occurs.
Larger models are better at recognising approximate duplicates. This will lead to a guide highlighting which models are and are not suitable.
Whilst aware of facts, processing is either too slow or expensive. Although improved accuracy is achieved, this comes at a cost. I will tabulate costs and timescales.
I exhaust my GPU hours before all duplication has been analysed. Fewer duplicates therefore occur and greater diversity is seen. I will detail what analysis was and was not possible together with reasons for this.
Across all scenarios I will share code together with both results and failed attempts. Additionally, I will refund unused funds.
No money has been raised for this research. All work has been completed using university computing resources which are no longer availible to me and personal time.
Comments
No comments yet. Sign in to create one!