From RAGs to rich parameters: Probing how language models utilize external knowledge over parametric information for factual queries

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Wadhwa, Hitesh, Seetharaman, Rahul, Aggarwal, Somyaa, Ghosh, Reshmi, Basu, Samyadeep, Srinivasan, Soundararajan, Zhao, Wenlong, Chaudhari, Shreyas, Aghazadeh, Ehsan
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913397032878080
author Wadhwa, Hitesh
Seetharaman, Rahul
Aggarwal, Somyaa
Ghosh, Reshmi
Basu, Samyadeep
Srinivasan, Soundararajan
Zhao, Wenlong
Chaudhari, Shreyas
Aghazadeh, Ehsan
author_facet Wadhwa, Hitesh
Seetharaman, Rahul
Aggarwal, Somyaa
Ghosh, Reshmi
Basu, Samyadeep
Srinivasan, Soundararajan
Zhao, Wenlong
Chaudhari, Shreyas
Aghazadeh, Ehsan
contents Retrieval Augmented Generation (RAG) enriches the ability of language models to reason using external context to augment responses for a given user prompt. This approach has risen in popularity due to practical applications in various applications of language models in search, question/answering, and chat-bots. However, the exact nature of how this approach works isn't clearly understood. In this paper, we mechanistically examine the RAG pipeline to highlight that language models take shortcut and have a strong bias towards utilizing only the context information to answer the question, while relying minimally on their parametric memory. We probe this mechanistic behavior in language models with: (i) Causal Mediation Analysis to show that the parametric memory is minimally utilized when answering a question and (ii) Attention Contributions and Knockouts to show that the last token residual stream do not get enriched from the subject token in the question, but gets enriched from other informative tokens in the context. We find this pronounced shortcut behaviour true across both LLaMa and Phi family of models.
format Preprint
id arxiv_https___arxiv_org_abs_2406_12824
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle From RAGs to rich parameters: Probing how language models utilize external knowledge over parametric information for factual queries
Wadhwa, Hitesh
Seetharaman, Rahul
Aggarwal, Somyaa
Ghosh, Reshmi
Basu, Samyadeep
Srinivasan, Soundararajan
Zhao, Wenlong
Chaudhari, Shreyas
Aghazadeh, Ehsan
Computation and Language
Artificial Intelligence
Retrieval Augmented Generation (RAG) enriches the ability of language models to reason using external context to augment responses for a given user prompt. This approach has risen in popularity due to practical applications in various applications of language models in search, question/answering, and chat-bots. However, the exact nature of how this approach works isn't clearly understood. In this paper, we mechanistically examine the RAG pipeline to highlight that language models take shortcut and have a strong bias towards utilizing only the context information to answer the question, while relying minimally on their parametric memory. We probe this mechanistic behavior in language models with: (i) Causal Mediation Analysis to show that the parametric memory is minimally utilized when answering a question and (ii) Attention Contributions and Knockouts to show that the last token residual stream do not get enriched from the subject token in the question, but gets enriched from other informative tokens in the context. We find this pronounced shortcut behaviour true across both LLaMa and Phi family of models.
title From RAGs to rich parameters: Probing how language models utilize external knowledge over parametric information for factual queries
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2406.12824