GitHub·Code

TTArch/PEAR-RAG

7 stars·Updated Sep 2025
Open on GitHub

Authors

Repository owner

Linked papers

Code

PEAR: Position-Embedding-Agnostic Attention Re-weighting Enhances Retrieval-Augmented Generation with Zero Inference Overhead

iclr · 2025

Why Lacuna links this resource
Repository names this paper

# PEAR: POSITION-EMBEDDING-AGNOSTIC ATTENTION RE-WEIGHTING ENHANCES RETRIEVAL-AUGMENTED GENERATION WITH ZERO INFERENCE OVERHEAD The codes are implemented using PyTorch. The code for detecting heads, which suppresses the models' context awareness, is based on the work of [Wang et al.](https://github.com/redwoodresearch/Easy-Transformer) and [Lv et al.](https://github.com/trestad/Factual-Recall-Mechanism) We have completed the assembly of Baichuan-13B-chat and set up a proxy task focused on contex

README:focal_exact_title·Open evidence