[Paper Review] Large Language Model Can Interpret Latent Space of Sequential Recommender
This paper proposes RecInterpreter, a framework that enables large language models (LLMs) like LLaMA to interpret and reason about the latent representations of ID-based sequential recommenders. By using a lightweight adapter to project recommendation embeddings into the LLM's token space and applying sequence-recovery and sequence-residual prompting, RecInterpreter allows LLMs to generate accurate textual descriptions of interaction sequences and instantiate oracle items from generative recommenders—demonstrating that LLMs can understand and operationalize hidden representations from sequential recommenders with strong performance.
Sequential recommendation is to predict the next item of interest for a user, based on her/his interaction history with previous items. In conventional sequential recommenders, a common approach is to model item sequences using discrete IDs, learning representations that encode sequential behaviors and reflect user preferences. Inspired by recent success in empowering large language models (LLMs) to understand and reason over diverse modality data (e.g., image, audio, 3D points), a compelling research question arises: ``Can LLMs understand and work with hidden representations from ID-based sequential recommenders?''.To answer this, we propose a simple framework, RecInterpreter, which examines the capacity of open-source LLMs to decipher the representation space of sequential recommenders. Specifically, with the multimodal pairs (\ie representations of interaction sequence and text narrations), RecInterpreter first uses a lightweight adapter to map the representations into the token embedding space of the LLM. Subsequently, it constructs a sequence-recovery prompt that encourages the LLM to generate textual descriptions for items within the interaction sequence. Taking a step further, we propose a sequence-residual prompt instead, which guides the LLM in identifying the residual item by contrasting the representations before and after integrating this residual into the existing sequence. Empirical results showcase that our RecInterpreter enhances the exemplar LLM, LLaMA, to understand hidden representations from ID-based sequential recommenders, especially when guided by our sequence-residual prompts. Furthermore, RecInterpreter enables LLaMA to instantiate the oracle items generated by generative recommenders like DreamRec, concreting the item a user would ideally like to interact with next. Codes are available at https://github.com/YangZhengyi98/RecInterpreter.
Motivation & Objective
- To investigate whether large language models (LLMs) can understand and reason about the latent representations learned by sequential recommenders.
- To bridge the gap between LLMs and sequential recommender models by enabling LLMs to interpret hidden representations derived from item ID sequences.
- To provide a method for instantiating oracle items generated by generative recommenders like DreamRec, even when they are not in the original candidate set.
- To evaluate the interpretability and utility of LLMs in understanding and reasoning over sequential recommendation representations using human-like evaluation via ChatGPT.
Proposed method
- A lightweight adapter is trained to project the latent representations of sequential recommenders into the token embedding space of the LLM.
- Sequence-recovery prompting is used to encourage the LLM to generate textual descriptions of items in a user's interaction history.
- Sequence-residual prompting contrasts representations before and after integrating a residual item, enabling the LLM to identify and describe the missing or residual item.
- The framework is applied to LLaMA-7B, with frozen recommenders (GRU4Rec, Caser, SASRec, DreamRec) and frozen LLM, relying on alignment via paired multimodal data (representations and text narrations).
- Oracle items from DreamRec are instantiated via RecInterpreter and evaluated using a human-like preference comparison with ChatGPT, where users are asked to choose the preferred item among recommendations.
Experimental results
Research questions
- RQ1Can large language models interpret the latent representations of sequential recommenders trained on item ID sequences?
- RQ2Can LLMs generate accurate textual descriptions of interaction sequences using only the latent representations from recommenders?
- RQ3Can LLMs identify and describe the residual item in a sequence by comparing representations before and after its integration?
- RQ4Can RecInterpreter instantiate oracle items from generative recommenders like DreamRec, even when they are not present in the candidate item set?
- RQ5How well do LLM-based recommendations compare to traditional recommenders in human preference evaluation?
Key findings
- RecInterpreter enables LLaMA to understand and describe interaction sequences with high accuracy using sequence-recovery prompting, especially when guided by residual representations.
- The sequence-residual prompting strategy allows the LLM to identify and describe the residual item, effectively decoding the latent representation of the missing item.
- 28.13% of instantiated oracle items from DreamRec in the MovieLens dataset and 48.67% in the Steam dataset were not present in the original item sets, demonstrating the model's ability to generate novel recommendations.
- In human preference evaluation via ChatGPT, DreamRec outperformed SASRec in MovieLens (50.53% preference vs. 35.79%) and achieved comparable performance in Steam (48.09% vs. 51.15%).
- The framework successfully completes the promise of generative recommenders by enabling LLMs to instantiate and describe items beyond the candidate set, validating the interpretability and utility of latent representations.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.