Introduction
Large Language Models (LLMs) represent a significant advancement in Click-Through Rate (CTR) prediction, offering deep semantic understanding of user-item interactions. To further enhance their performance, researchers often employ Retrieval-Augmented Generation (RAG), which provides the model with context from similar users. However, RAG-enhanced LLMs face two critical efficiency challenges:
- Inference Delay: The latency introduced by the retrieval step itself.
- Inference Slowdown: The increased sequence length from retrieved context leads to quadratic increases in computation time during LLM generation.
This paper introduces GCN-earlyexit, a framework that addresses these bottlenecks through a lightweight graph-based retriever and a dynamic multi-head early exit strategy.
Methodology
The GCN-earlyexit framework optimizes the recommendation pipeline through two primary innovations: the GCN-Retriever and the Multi-Head Early Exit mechanism.
GCN-Retriever
To eliminate the delay caused by heavy LLM-based retrieval, the authors utilize a Graph Convolutional Network (GCN). By modeling user-item interactions as a bipartite graph, the GCN captures multi-order structural relationships. User preferences are represented by averaging embeddings across multiple GCN layers, allowing for rapid querying and retrieval of similar user data without the overhead of textual prompt generation.
Multi-Head Early Exit
Recognizing that not all CTR predictions require the full depth of a large model, the framework implements a "dynamic predictive exiting" strategy. Additional language heads are attached to intermediate layers of the LLM. During inference, the system monitors the confidence and stability of these intermediate heads using probability-based thresholding. If a prediction remains consistent across a window of layers, the model terminates inference early, significantly reducing computation.
Experimental Setup
The framework was evaluated using three real-world datasets:
- BookCrossing: User ratings and textual metadata for books.
- Amazon Beauty: Purchase history and metadata from the beauty category.
- Amazon Video Games: Interaction data and metadata for video games.
Key Results
The GCN-earlyexit framework demonstrates superior performance in both accuracy and efficiency.
Accuracy and Throughput
The proposed method consistently outperformed traditional baselines (e.g., DeepFM, DIN) and existing LLM-based recommenders. On the Amazon Beauty dataset, the model achieved an AUC of 97.19, a significant improvement over TallRec's 90.37. Furthermore, the early exit strategy improved inference throughput; for instance, in the Video Games dataset, Requests Per Second (RPS) increased from 3.828 to 4.570.
Retrieval Efficiency
The transition from LLM-based to GCN-based retrieval yielded substantial speedups across all tested datasets.
As shown in the figure above, the GCN-Retriever achieved speedups ranging from 3.19x to 7.42x compared to the LLM-based baseline, effectively removing the retrieval bottleneck.
Discussion and Conclusion
By combining the structural strengths of graph networks with the semantic reasoning of LLMs, GCN-earlyexit provides a scalable solution for RAG-enhanced recommendation systems. The multi-head early exit strategy further optimizes inference by preventing "over-thinking" on simpler tasks.
While the system's performance is currently tied to the availability of textual metadata, future research will explore maintaining efficiency in cold-start scenarios where such data is limited. Overall, this work provides a robust blueprint for deploying high-performance, low-latency LLM recommenders in production environments.
Summary updated