Abstract
Using Large Language Models (LLMs) to generate semantic features has been demonstrated as a powerful paradigm for enhancing Sequential Recommender Systems (SRS). This typically involves three stages: processing item text, extracting features with LLMs, and adapting them for downstream models. However, existing methods vary widely in prompting, architecture, and adaptation strategies, making it difficult to fairly compare design choices and identify what truly drives performance. In this work, we propose RecXplore, a modular analytical framework that decomposes the LLM-as-feature-extractor pipeline into four modules: data processing, semantic feature extraction, feature adaptation, and sequential modeling. Instead of proposing new techniques, RecXplore revisits and organizes established methods, enabling systematic exploration of each module in isolation. Experiments on four public datasets show that simply combining the best designs from existing techniques without exhaustive search yields up to 18.7% relative improvement in NDCG@5 and 12.7% in HR@5 over strong baselines. These results underscore the utility of modular benchmarking for identifying effective design patterns and promoting standardized research in LLM-enhanced recommendation.
Introduction
Large Language Models (LLMs) excel at understanding item metadata, such as titles and descriptions, making them potent tools for Sequential Recommender Systems (SRS). Currently, two primary paradigms exist for leveraging LLMs in recommendation: generation-based and representation-based. While generation-based models use the LLM directly as the recommender, representation-based models use the LLM as a feature extractor to generate embeddings for smaller, more efficient downstream models like SASRec.
The representation-based approach is highly practical for real-world deployment due to its lower latency. However, the research landscape is currently fragmented, with various studies employing disparate prompting strategies, fine-tuning methods, and adaptation layers. This lack of standardization makes it nearly impossible to isolate which design choices actually drive performance. To address this, we introduce RecXplore, a framework that disentangles the pipeline into four testable modules.
The RecXplore Framework
RecXplore factorizes the "LLM-as-feature-extractor" pipeline into four distinct components, allowing for controlled experiments where one variable is changed while others remain constant:
- Data Processing: This module converts raw item attributes into text. Options range from simple "Attribute Flattening" (concatenating strings) to LLM-augmented strategies like keyword extraction, summarization, or description enhancement.
- Feature Extraction: This involves using an LLM (e.g., Llama 2-7B) to generate embeddings. We explored various fine-tuning recipes, including Continued Pre-training (CPT), Supervised Fine-tuning (SFT), and Supervised Contrastive Fine-tuning (SCFT), alongside different pooling strategies (Mean, Max, or Last Token).
- Feature Adaptation: Since LLM outputs are high-dimensional (e.g., 4096-dim), they must be compressed for traditional recommenders. We compared direct dimensionality reduction against multi-step approaches using PCA and learnable adapters like Mixture-of-Experts (MoE).
- Sequential Modeling: This is the downstream model (e.g., SASRec, BERT4Rec) that performs the final recommendation task using the extracted features.
Experimental Setup and Key Insights
We evaluated RecXplore across four public datasets: Amazon (Beauty, Fashion, Games) and Steam. Our systematic analysis revealed several critical design principles:
- Simplicity in Prompting: Surprisingly, simple "Attribute Flattening" often outperformed complex LLM-based summarization. Over-processing text can introduce noise or discard discriminative details essential for recommendation.
- Mean Pooling Superiority: While NLP tasks often rely on the
[CLS]or last token, Mean Pooling consistently yielded the best results in recommendation contexts by preserving semantic evidence distributed across all attributes. - The Fine-Tuning "Sweet Spot": A two-stage approach combining CPT (domain alignment) and SFT (task alignment) produced the most robust embeddings.
- Efficient Adaptation: Utilizing a Mixture-of-Experts (MoE) adapter in conjunction with PCA proved to be the most effective method for mapping high-dimensional LLM space to the recommendation space.
- ID Redundancy: When semantic features are sufficiently expressive, traditional item ID embeddings become redundant. Replacing IDs entirely with semantic features often led to superior performance.
Results
The optimized RecXplore configuration achieved significant gains, including a 15.1% improvement in Hit Rate (HR@5) and an 18.7% improvement in NDCG@5 over strong baselines like LLMEmb and LLMESR. Crucially, because semantic embeddings are pre-computed and cached offline, the system maintains zero online latency compared to traditional ID-based models. These improvements remained consistent across different downstream models and LLM backbones.
Conclusion
RecXplore demonstrates that significant performance gains in LLM-enhanced recommendation can be achieved simply by identifying and combining optimal design choices within a modular framework. Future work will explore extending this analysis to multi-modal features (images/video) and investigating end-to-end joint optimization across the pipeline modules.
Summary updated