RAG Retriever Tuning Using Attention-Derived Feedback

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional retrieval augmented generation (RAG) systems lack effective feedback mechanisms to continuously improve the quality of document retrieval, leading to issues such as retrieving irrelevant or unhelpful documents, increased hallucination, and latency in dynamic or specialized domains.

Innovation Solution

Implementing a self-supervised RAG service that leverages attention-derived feedback signals from language models to fine-tune and re-rank the retriever component, enabling continuous adaptation without manual labeling or retraining, and utilizing implicit user feedback to optimize document retrieval.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Loss of information

If conventional RAG systems retrieve documents from external knowledge bases, then information availability is improved, but retrieval accuracy deteriorates due to lack of feedback mechanisms

Engineering Contradiction:
Improveinformation availabilityVSAvoidretrieval accuracy
Core Design Contradiction:
Loss of informationVSMeasurement precision

Solution Approach 1:

The patent implements a feedback mechanism where the language model's attention weights are extracted and used to evaluate retrieved documents. The system generates feedback signals based on the difference between expected attention (if the document were perfectly relevant) and actual attention, then uses this feedback to fine-tune the retriever model, continuously improving retrieval accuracy without manual intervention

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The system performs self-supervised learning by generating its own training data from the attention patterns of the language model. The retriever automatically fine-tunes itself using the feedback derived from the language model's attention weights, eliminating the need for external manual labeling or supervision while continuously improving its retrieval capability

Inventive Principle:
Principle #25Self-service

2Measurement precision

If manual labeling is used to improve retriever performance, then retrieval accuracy is improved, but system complexity and time consumption increase

Engineering Contradiction:
Improveretrieval accuracyVSAvoidtime consumption
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The system eliminates manual labeling by implementing self-supervised learning. The language model's attention weights serve as automatic labels indicating which retrieved documents are most relevant. The retriever fine-tunes itself using these automatically generated labels, achieving continuous improvement without human intervention, thus saving significant time and resources

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The system creates a closed-loop feedback mechanism where the language model's attention patterns automatically generate training signals for the retriever. This feedback loop enables continuous self-improvement of retrieval accuracy without requiring manual annotation efforts, making the system both accurate and efficient

Inventive Principle:
Principle #23Feedback

3Stability of the object's composition

If the retriever is not continuously updated, then system stability is maintained, but retrieval relevance deteriorates in dynamic domains

Engineering Contradiction:
Improvesystem stabilityVSAvoidretrieval relevance
Core Design Contradiction:
Stability of the object's compositionVSAdaptability or versatility

Solution Approach 1:

The patent implements dynamic adaptation by enabling the retriever to continuously fine-tune itself based on real-time feedback from the language model's attention weights. The system adapts to evolving user needs and domain-specific requirements automatically, maintaining high retrieval relevance in dynamic environments while preserving overall system stability through controlled incremental updates

Inventive Principle:
Principle #15Dynamics

4Measurement precision

If attention-derived feedback is used to fine-tune the retriever, then retrieval accuracy is improved, but computational overhead increases

Engineering Contradiction:
Improveretrieval accuracyVSAvoidcomputational overhead
Core Design Contradiction:
Measurement precisionVSUse of energy by moving object

Solution Approach 1:

The system efficiently utilizes existing computational resources by repurposing the language model's attention weight calculations for dual purposes: generating the response and simultaneously providing feedback signals for retriever fine-tuning. This self-service approach extracts value from already-performed computations, minimizing additional computational overhead while improving retrieval accuracy

Inventive Principle:
Principle #25Self-service

Data Source

PatentUS12536449B1Self-supervised retriever optimization via attention-derived feedback in retrieval augmented generation systems
Publication Date: 2026.01.27 INTUIT INC
  • US12536449B1 patent drawing
  • US12536449B1 patent drawing
  • US12536449B1 patent drawing

AI summary

Certain aspects of the disclosure provide a method for updating a retrieval augmented generation (RAG) system. The method includes receiving a user query and retrieving a set of datasets from an external knowledge base associated with a language model. The user query and retrieved datasets are provided to the language model as input tokens, which generates a response comprising output tokens. The system then extracts cross-attention weights from the language model, indicating how much attention each output token paid to each input token. Using these weights, the system generates attention scores for each dataset and identifies a top-k set of most attended datasets. If the generated response is determined to be relevant to the user query, the top-k most attended datasets are labeled as positive examples. The system then updates its parameters to prioritize retrieving these positive examples for future queries, enabling continuous self-supervised improvement.