Papers › Out of Style: RAG's Fragility to Linguistic Variation

Out of Style: RAG's Fragility to Linguistic Variation

11 Apr 2025arXiv:2504.08231archive 2025-07-28

Tianyu Cao, Neel Bhandari, Akhila Yerukola, Akari Asai, Maarten Sap

Despite the impressive performance of Retrieval-augmented Generation (RAG) systems across various NLP benchmarks, their robustness in handling real-world user-LLM interaction queries remains largely underexplored. This presents a critical gap for practical deployment, where user queries exhibit greater linguistic variations and can trigger cascading errors across interdependent RAG components. In this work, we systematically analyze how varying four linguistic dimensions (formality, readability, politeness, and grammatical correctness) impact RAG performance. We evaluate two retrieval models and nine LLMs, ranging from 3 to 72 billion parameters, across four information-seeking Question Answering (QA) datasets. Our results reveal that linguistic reformulations significantly impact both retrieval and generation stages, leading to a relative performance drop of up to 40.41% in Recall@5 scores for less formal queries and 38.86% in answer match scores for queries containing grammatical errors. Notably, RAG systems exhibit greater sensitivity to such variations compared to LLM-only generations, highlighting their vulnerability to error propagation due to linguistic shifts. These findings highlight the need for improved robustness techniques to enhance reliability in diverse user interactions.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2504.08231")

Code

Syntology Ran 11 of 14 code samples harvested from 1 repository linked to this paper; 3 have no recorded run. Of those that ran: 11 ran with no contract checked.

By repository: official repository: 14 samples from 1 repository, 11 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

springcty/rag-fragility-to-linguistic-variation officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

14 samples harvested; 11 ran; 0 honoured the contract we drafted; 3 have no recorded run. Read from Syntology's graph 2026-09-25; that is when this build read the record, not when the samples ran.

11ran
3unverified

Licence: 0 of the 14 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from springcty/rag-fragility-to-linguistic-variation. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

check_included springcty/rag-fragility-to-linguistic-variation/LLM_generation/c_eval_generation.py official repository ran MIT (permissive) · 7f7c1acb9a28d150 · report
combine_texts springcty/rag-fragility-to-linguistic-variation/LLM_generation/a_vllm_generation.py official repository ran MIT (permissive) · 7b7841244f89b921 · report
count_syllables springcty/rag-fragility-to-linguistic-variation/query_rewriting/readability_rewriting.py official repository ran fingerprinted MIT (permissive) · 48e3241b4aec397e · report
edit_word springcty/rag-fragility-to-linguistic-variation/query_rewriting/grammar_conversion.py official repository ran MIT (permissive) · af8c6a9399918efd · report
em_score springcty/rag-fragility-to-linguistic-variation/LLM_generation/c_eval_generation.py official repository ran MIT (permissive) · 76a0e7a7c54bbde5 · report
flesch_reading_ease springcty/rag-fragility-to-linguistic-variation/query_rewriting/readability_rewriting.py official repository ran fingerprinted MIT (permissive) · 4c0e1b3b63e3f2cf · report
format_prompt springcty/rag-fragility-to-linguistic-variation/LLM_generation/utils/vllm_inference.py official repository ran fingerprinted MIT (permissive) · afab3aee4c1d97a0 · report
format_prompt_gemma springcty/rag-fragility-to-linguistic-variation/LLM_generation/utils/vllm_inference.py official repository ran MIT (permissive) · ad66e7d5ebc3f6df · report
load_data springcty/rag-fragility-to-linguistic-variation/LLM_generation/b_vllm_none_retrieval.py official repository ran MIT (permissive) · d74aa30b65ed63fd · report
load_linguistic_query springcty/rag-fragility-to-linguistic-variation/LLM_generation/utils/few_shot_prompting.py official repository ran MIT (permissive) · 33afe86db97be0bd · report
normalize_answer springcty/rag-fragility-to-linguistic-variation/LLM_generation/c_eval_generation.py official repository ran fingerprinted MIT (permissive) · bf618b8796ac4942 · report
create_few_shot_examples springcty/rag-fragility-to-linguistic-variation/LLM_generation/utils/few_shot_prompting.py official repository unverified MIT (permissive) · bc619506cd82ac84 · report
format_nq springcty/rag-fragility-to-linguistic-variation/query_rewriting/grammar_conversion.py official repository unverified MIT (permissive) · 8ff350ea77c22ee9 · report
load_dataset_samples springcty/rag-fragility-to-linguistic-variation/query_rewriting/grammar_conversion.py official repository unverified MIT (permissive) · c8439aa5de3482a9 · report

Tasks

Question AnsweringRAGRetrievalRetrieval-augmented Generation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AdamAttentionAttention DropoutBARTBERTBPEDense ConnectionsDropoutLayer NormalizationLinear LayerLinear Warmup With Linear DecayMulti-Head AttentionRAGResidual ConnectionSoftmaxWeight DecayWordPiece

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections