RAG-GNN Edge Building for Reason-Aware Graph Recommendations

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Graph neural networks (GNNs) in content recommendation systems fail to capture both network topology and additional contextual information, leading to issues like the graph isomorphism problem and hallucinations, which affect the quality of recommendations.

Innovation Solution

A retrieval augmented generation (RAG) subsystem is integrated with a GNN to encode non-graph contextual data using a pre-trained large language model, allowing the hybrid RAG-GNN architecture to consider both network topology and contextual information for generating reason-aware graph recommendations.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Loss of information

If GNN is used for recommendation, then network topology is captured, but contextual information is lost

Engineering Contradiction:
Improvecontextual informationVSAvoidsystem architecture
Core Design Contradiction:
Loss of informationVSDevice complexity

Solution Approach 1:

The patent merges GNN and RAG into a hybrid architecture where GNN processes graph-structured network topology data and RAG processes contextual information from external knowledge bases. The combined system integrates both approaches to achieve comprehensive data processing without losing either network structure or contextual details.

Inventive Principle:
Principle #5Merging (Combining)

Solution Approach 2:

The patent introduces an intermediary mechanism that bridges GNN and RAG components. This intermediary allows the system to retrieve relevant contextual information from external knowledge bases and integrate it with graph neural network computations, enabling both topology and context to be processed together.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Reliability

If GNN processes graph data, then network structure is maintained, but graph isomorphism problem occurs

Engineering Contradiction:
Improverecommendation qualityVSAvoidprocessing complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent implements feedback mechanisms where the system retrieves contextual information, processes it through RAG, and uses this information to refine and re-rank recommendations. This feedback loop allows the system to correct potential isomorphism issues by incorporating external contextual validation.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The patent creates a composite processing system that combines GNN's graph processing capabilities with RAG's contextual retrieval and generation abilities. This composite architecture leverages the strengths of both systems while mitigating their individual weaknesses, including graph isomorphism problems.

Inventive Principle:
Principle #40Composite materials

3Productivity

If GNN generates recommendations, then network topology is utilized, but hallucinations occur

Engineering Contradiction:
Improverecommendation generationVSAvoidrecommendation accuracy
Core Design Contradiction:
ProductivityVSReliability

Solution Approach 1:

The patent employs feedback mechanisms where retrieved contextual information from knowledge bases is used to verify and validate generated recommendations. This feedback loop enables the system to detect and correct hallucinations by cross-checking against external factual sources.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The patent introduces an intermediary verification layer between recommendation generation and final output. This intermediary component uses retrieved contextual information to fact-check and validate recommendations before they are presented, preventing hallucinations from reaching the user.

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS20250342344A1Retrieval augmented generation over graph neural network for edge building
Publication Date: 2025.11.06 MICROSOFT TECHNOLOGY LICENSING LLC
  • US20250342344A1 patent drawing
  • US20250342344A1 patent drawing
  • US20250342344A1 patent drawing

AI summary

Aspects of the disclosure include methods for leveraging retrieval augmented generation (RAG) over a graph neural network (GNN) for edge building and the generation of reason-aware graph recommendations. A method can include constructing a graph neural network from an input graph having a plurality of nodes and one or more edges. The graph neural network includes one or more internal layers, each internal layer having one or more node vectors encoding a K-hop neighborhood for a target node of the plurality of nodes. RAG data including non-graph contextual data is retrieved for each of the plurality of nodes and transformed into embeddings using a large language model encoder. The RAG embeddings are encoded into node vectors of the graph neural network. The graph neural network generates a representation for the target node that is transformed by a feed forward neural network tower into an output vector.