[Paper Review] Embedding Retrofitting: Data Engineering for better RAG
Preprocessing quality of knowledge graphs determines retrofitting success; removing annotation artifacts (like hashtags) transforms retrofitting from degrading to improving retrieval, with EWMA retrofitting being most robust on noisy data.
Embedding retrofitting adjusts pre-trained word vectors using knowledge graph constraints to improve domain-specific retrieval. However, the effectiveness of retrofitting depends critically on knowledge graph quality, which in turn depends on text preprocessing. This paper presents a data engineering framework that addresses data quality degradation from annotation artifacts in real-world corpora. The analysis shows that hashtag annotations inflate knowledge graph density, leading to creating spurious edges that corrupt the retrofitting objective. On noisy graphs, all retrofitting techniques produce statistically significant degradation ($-3.5\%$ to $-5.2\%$, $p<0.05$). After preprocessing, \acrshort{ewma} retrofitting achieves $+6.2\%$ improvement ($p=0.0348$) with benefits concentrated in quantitative synthesis questions ($+33.8\%$ average). The gap between clean and noisy preprocessing (10\%+ swing) exceeds the gap between algorithms (3\%), establishing preprocessing quality as the primary determinant of retrofitting success.
Motivation & Objective
- Identify how annotation artifacts distort knowledge graphs used for embedding retrofitting in RAG.
- Quantify the impact of preprocessing on retrofitting performance.
- Isolate contributions of pipeline components (artifact removal, stopword filtering, thresholds) to quality recovery.
- Characterize which query types benefit most from retrofitting after preprocessing.
Proposed method
- Construct co-occurrence knowledge graphs from two corpora with differing preprocessing challenges (HR-1 legislative and ZeroG financial services).
- Apply four preprocessing transformations: artifact removal, text normalization, filtered graph construction, and quality validation.
- Evaluate three retrofitting methods (Regular, EWMA, Attention) on preprocess-cleaned graphs.
- Use a composite answer quality metric combining semantic similarity, entity overlap, grounding, and linguistic normality; assess statistically over multiple runs.
Experimental results
Research questions
- RQ1How do annotation artifacts in text corpora affect knowledge graph density and edge inflation for retrofitting?
- RQ2Can systematic preprocessing restore retrofitting benefits that degrade on noisy graphs, and which method (Regular/EWMA/Attention) performs best after cleaning?
- RQ3Which preprocessing components contribute most to improving retrofitting performance, and how do query types differ in benefit?
- RQ4How should deployment route queries based on preprocessing quality and graph noise?
Key findings
- On raw, noisy data, all retrofitting methods degrade performance: Regular −5.2%, EWMA −3.5%, Attention −4.8% (p<0.05).
- After preprocessing, EWMA retrofitting yields significant improvements: Legislative +6.2% (p=0.035), ZeroG +4.8% (p=0.041).
- Preprocessing removes most artifacts (hashtag removal alone eliminates 93% of edges; edge count drops from 69,311 to 4,812), and cumulative preprocessing raises ΔQ to +4.8% (p=0.041) with stages contributing variably.
- Across query types on legislative data, quantitative synthesis questions benefit the most (mean +33.8%), while factual lookups show minimal change (0.5%).
- EWMA exhibits lower variance (CV 1.9% vs 3.0% for Regular and 2.5% for Attention), enabling significance with smaller samples and making it preferable on noisy graphs.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.