Language Models as Semantic Augmenters for Sequential Recommenders
Mahsa Valizadeh, Xiangjue Dong, Rui Tuo, James Caverlee
TL;DR
The paper addresses the lack of semantic context in sequential recommender histories by introducing LaMAR, a framework that uses few-shot prompting of large language models to generate latent semantic signals from existing item metadata. These signals are integrated into sequential models through input-level augmentation and objective-aligned fine-tuning (including LoRA-based LM adaptation), yielding consistent performance gains across multiple datasets and base models. Human evaluation and diversity analyses indicate that the generated signals are relevant, informative, and sufficiently diverse to enrich representations. The work emphasizes a data-centric paradigm where LLMs act as intelligent context generators, enabling more nuanced recommendations and generalizing to new domains such as MovieLens.
Abstract
Large Language Models (LLMs) excel at capturing latent semantics and contextual relationships across diverse modalities. However, in modeling user behavior from sequential interaction data, performance often suffers when such semantic context is limited or absent. We introduce LaMAR, a LLM-driven semantic enrichment framework designed to enrich such sequences automatically. LaMAR leverages LLMs in a few-shot setting to generate auxiliary contextual signals by inferring latent semantic aspects of a user's intent and item relationships from existing metadata. These generated signals, such as inferred usage scenarios, item intents, or thematic summaries, augment the original sequences with greater contextual depth. We demonstrate the utility of this generated resource by integrating it into benchmark sequential modeling tasks, where it consistently improves performance. Further analysis shows that LLM-generated signals exhibit high semantic novelty and diversity, enhancing the representational capacity of the downstream models. This work represents a new data-centric paradigm where LLMs serve as intelligent context generators, contributing a new method for the semi-automatic creation of training data and language resources.
