Abstract
Large Language Models (LLMs) have demonstrated significant potential in recommendation systems through their semantic reasoning capabilities. However, they often lack awareness of the complex, higher-order structural relationships inherent in user-item interaction data. This paper introduces HeLLM (Hypergraph Enhanced LLM), a framework that integrates multi-modal hypergraph features with LLMs. By capturing global relational patterns alongside local sequential behaviors, HeLLM achieves state-of-the-art performance, particularly in sparse data environments.
Introduction
Modern recommendation systems face the challenge of modeling intricate user-item relationships. While LLMs excel at processing textual descriptions and sequential patterns, they frequently suffer from "structural blindness"—an inability to perceive the broader graph-level context. Existing approaches typically focus on simple bipartite graphs or chronological sequences, failing to capture latent shared interests among users or multi-modal similarities between items (e.g., visual or acoustic correlations).
HeLLM addresses these limitations by equipping LLMs with the ability to perceive multi-view, higher-order correlations. By injecting global graph-level context into the LLM's reasoning process, the model bridges the gap between semantic understanding and structural awareness.
Methodology: The HeLLM Framework
HeLLM utilizes a two-phase learning process designed to fuse structural graph data with the reasoning power of an LLM.
1. Recommender Pre-training
The framework constructs two distinct hypergraphs to capture complex relationships:
- User-to-User (U2U) Hypergraph: Identifies shared interest preferences among groups of users.
- Item-to-Item (I2I) Hypergraph: Captures multi-modal similarities across visual, textual, and acoustic domains.
Unlike standard graphs that connect pairs of nodes, hypergraphs allow edges to connect multiple nodes, effectively modeling group-level interactions. A synergistic contrastive learning mechanism is employed to ensure these representations are highly discriminative.
2. LLM Fine-tuning
The pre-trained graph embeddings are integrated into a Large Language Model (specifically LLaMA-2 7B) via a Graph-LLM Bridge. This bridge uses prefix-tuning to inject graph-structured signals directly into the LLM’s internal layers. Simultaneously, sequential features from a time-series backbone (e.g., SASRec) are incorporated to maintain a record of the user's chronological behavior.
Experimental Evaluation
The model was evaluated on three sparse Amazon benchmark datasets: Sports, Beauty, and Toys. These datasets are characterized by extreme sparsity (over 99.9%) and include multi-modal features such as product images (processed via ViT) and textual descriptions (processed via BERT).
Key Results
HeLLM consistently outperformed both conventional GNN-based methods (e.g., LightGCN, LATTICE) and recent LLM-based recommenders (e.g., Collm, LLaRA).
- Performance Gains: On the Sports dataset, HeLLM achieved a Recall@10 of 0.0412, outperforming the previous state-of-the-art LLM-based model, LLaRA (0.0367).
- Resilience to Sparsity: The combination of graph-aware features and the LLM's internal knowledge base proved particularly effective in scenarios where interaction data was thin.
- Component Importance: Ablation studies confirmed that both U2U and I2I hypergraph components are critical for performance, as removing either led to significant drops in accuracy.
Discussion and Insights
The success of HeLLM stems from its ability to treat the hypergraph as a provider of global context. While the LLM processes a "local" prompt regarding a user's recent history, the injected hypergraph embeddings allow it to understand how that user and those items fit into the broader ecosystem of the entire dataset. By modeling higher-order semantics, HeLLM captures complex latent preferences—such as a group of users sharing a diverse set of interests—that simple bipartite graphs might overlook.
Conclusion and Future Work
HeLLM represents a significant step forward in graph-aware LLM learning for recommendation. However, challenges remain regarding computational intensity; fine-tuning the 7B parameter model remains expensive. Future research directions include exploring dynamic hypergraphs that update in real-time and developing more efficient scaling techniques for hypergraph construction in million-node environments.
Summary updated