Can Large Language Models Assess Serendipity in Recommender Systems?
Serendipity-oriented recommender systems aim to counteract over-specialization in user preferences. However, evaluating a user’s serendipitous response towards a recommended item can be challenging because of its emotional nature. In this study, we address this issue by leveraging the rich knowledge of large language models (LLMs), which can perform a variety of tasks. First, this study explored the alignment between serendipitous evaluations made by LLMs and those made by humans. In this investigation, a binary classification task was given to the LLMs to predict whether a user would find the recommended item serendipitously. The predictive performances of three LLMs on a benchmark dataset in which humans assigned the ground truth of serendipitous items were measured. The experimental findings reveal that LLM-based assessment methods did not have a very high agreement rate with human assessments. However, they performed as well as or better than the baseline methods. Further validation results indicate that the number of user rating histories provided to LLM prompts should be carefully chosen to avoid both insufficient and excessive inputs and that the output of LLMs that show high classification performance is difficult to interpret.
Introduction. Recommender systems (RSs) select items that match the user’s preferences from a vast amount of information and help users make effective decisions. Traditional approaches, such as collaborative filtering, primarily focus on enhancing the recommendation accuracy. However, these approaches cause over-specialization, in which users are discouraged from exploring items that diverge from their established preferences [1, 2]. To tackle this challenge, serendipity-oriented RSs were introduced to suggest items that offer serendipitous experiences to users [3–9]. Nonetheless, defining and evaluating serendipity in RSs is challenging because of their subjective and emotional nature [5]. Recommendation accuracy is usually assessed through user feedback, which encompasses metrics such as views, clicks, and ratings. In contrast, serendipity is often unobserved, making a comparison of the performance of serendipity-oriented RSs. Ideally, we would like to conduct a user survey to obtain feedback on the serendipitous nature of the recommendation results. Some studies have already implemented such surveys [7, 10], but they are costly, and the responses may not be consistent depending on temporal and psychological factors. Hence, an assessment method that can serve as a substitute for human assessment is required. In this context, large language models (LLMs) have emerged as a promising solution. With their remarkable capabilities in various tasks, including natural language processing (NLP), LLMs can offer a versatile framework for assessing serendipity in different RSs, potentially reducing reliance on human surveys. In the realm of RS research, LLM4Rec, which leverages LLMs’ extensive knowledge and inference capabilities of LLMs for RSs, has been proposed. Hua et al. [11] argued that LLM4Rec can be categorized into three types: (1) LLMs as RSs [12]; (2) LLMs in RSs, such as feature extractors [13]; and (3) RSs in LLMs, such as recommendation agents [14]. In this study, we focused on the latter two types: (2) and (3). Recent studies have investigated the utilization of LLMs to enhance beyond-accuracy metrics. For instance, Carraro et al. [15] introduced a re-ranking technique employing LLMs to improve the diversity of the recommendation results. Their findings indicated that LLMs were able to interpret the re-ranking task, but had a lower trade-off between relevance and diversity than the baseline method. As far as we know, the application of LLMs in serendipitous assessment remains unexplored. In this study, we investigated the potential of LLMs in assessing serendipity in RSs, focusing on the following research questions:
RQ1: To what extent do LLM-based serendipitous assessments align with human assessment?
RQ2: Can LLMs assessments enhance performance relative to baseline methods?
To address these inquiries, we propose a serendipitous assessment method using a LLM and conduct an experiment using a benchmark dataset with human-provided ground truths for serendipity. The LLM-based method determines whether a recommended item is serendipitous, based on the users’ rating history. In the experiment, we evaluate the classification performance of the proposed and baseline methods by applying different LLMs and their prompts to the proposed method. The information provided in the prompts varied, including item names only, pairs of item names and ratings, pairs of item names and genres, and pairs of item names, ratings, and genres. The remainder of this paper is organized as follows. Section 2 reviews the studies on serendipity in recommender systems and LLMs for assessment. Section 3 introduces the LLM-based assessment method. Section 4 describes an experiment using a benchmark dataset. Section 5 analyzes and discusses the experimental results in terms of the classification performance, rating history size used, and interpretation of LLMs outputs.
Related work. In RS studies, the concept of the serendipity has garnered significant interest over time, with various RSs designed to enhance the serendipity across multiple domains [1]. While there is no unified definition of serendipity, previous studies have identified common components, such as relevance, unexpectedness, novelty, and diversity [2, 16]. Serendipity-oriented RSs integrate these components into their algorithms, which include k-nearest neighbor [3], matrix factorization [4], convolutional neural networks [5], Transformer [6, 7], and re-ranking for recommendation lists generated by accuracy-oriented algorithms [8,9]. Evaluation methods for assessing serendipity also vary among studies, with several metrics have been proposed. For instance, Adamopoulos et al. [17] defined serendipity in a recommendation list as the proportion of useful yet unexpected items among recommended items. Yu et al. [18] determined the serendipity of a recommended item by calculating the ratio of other users’ ratings for the item to the similarity-weighted ratings given to other items by the user. Some studies have assessed serendipity based on interaction scores between users and items, as defined in RS algorithms [6, 9]. In response to these current definitions and evaluations of serendipity, Kotkov et al. [16] broadened the definition within the context of RSs to reconcile the discrepancies between specific RS definitions and a generalized understanding of serendipity. Additionally, they devised an experimental design that evaluated both initial and achieved goals pre- and postrecommendation, countering the previous focus solely on the latter period. The challenge of validating serendipity-oriented RSs is compounded by the lack of ground-truth data on whether users perceive the recommended item as serendipitous in many benchmark datasets. However, some studies gathered such data through user surveys [7, 10]. Presently, the Serendipity-2018 dataset1 stands as the sole publicly available dataset that collects feedback from MovieLens users regarding recommended movies, as explored by Kotkov et al. [10].
2.2. Large Language Models for Assessment Recent studies in NLP have turned to LLMs to evaluate natural language generation (NLG) tasks instead of traditional automatic evaluation metrics [19, 20]. For instance, [20] employed a benchmark dataset of multicategory questions and found that the agreement between the outputs of LLMs, as evaluated by a human expert, and those compared using GPT-42 exceeded 80%. This level of agreement was comparable to that observed when two human evaluators were compared. In addition to NLG tasks, LLMs have found applications in assessing information retrieval [21, 22] and legal judgement prediction [23, 24]. Faggioli et al.
Method. We propose a method for serendipitous assessment using LLMs, incorporating the user’s rating history and recommended items. The framework of our proposed method is illustrated in Fig. 1.
3.1. Task Definition The objective of this study provides user u’s rating history Iu and query item i, and determines whether item i is serendipitous for user u or not. Thus, the object function is f, which is defined as follows:
3.2. Prompt for LLMs • implicit: only item names • explicit: item names and users’ ratings • implicit with genres: item names and genres • explicit with genres: item names, ratings, and genres It is important to note that in explicit cases, the rating of the recommended item is considered a predicted value by RSs, rather than an actual user rating observed. Each item is represented in a tuple and list format, arranged from oldest to newest (i.e., (item name, rating, [genre1, genre2, ...]), ...). Specifically, ‘user rated movies example’ is “War Dogs, Gosford Park, ...” for implicit, “(War Dogs, 3.5), (Gosford Park, 3.0), ...” for explicit, “(War Dogs, Comedy), (Gosford Park, [Comedy, Drama, Mystery]), ...” for implicit with genres, and “(War Dogs, 3.5, Comedy), (Gosford Park, 3.0, [Comedy, Drama, Mystery]), ...” for explicit with genres.
Discussion. LLM assessments tended to exhibit bias towards either the positive (TP + FP) or negative (TN + FN) side. We compared the confusion matrices of GPT-3.5 (implicit w/ genres) and Llama2-13B-Chat (implicit w/ genres), which exhibited superior F1 scores. The number of positive assessments (TP + FP) tended to be higher than that for the two methods, which was particularly noticeable for Llama2-13B-Chat (implicit, explicit, and implicit w/ genres). Additionally, TN decreased and FP increased when comparing implicit and explicit, and implicit w/ genres and explicit w/ genres were compared, except for GPT- 3.5 (implicit w/ genres) and GPT-3.5 (explicit w/ genres). These results suggest that utilizing user ratings may lead to an overestimation of positive outcomes. This may be because of the high predicted rating of the recommended items by SVD, with an average predicted rating of 3.98. Furthermore, 79.3% of the items had ratings higher than the user’s average rating for the last 10 items, indicating that the LLMs may be overly positive in their predictions. This inclination is expected to be more pronounced for Llama2-13B-Chat than for GPT-3.5, especially because performance declines for explicit and explicit w/ genres. Finally, comparing implicit to implicit w/ genres and explicit to explicit w/ genres, either TP or TN increase. Here, Table 3 demonstrates that providing item genres improved the F1-score for the LLM-based method, exception for Llama2-13B-Chat (implicit w/ genres) and Llama2-13B-Chat (explicit w/ genres). These results suggest that explicitly including genre information is beneficial in the serendipitous assessments of LLMs. These findings indicate that the information provided to the prompt, such as user ratings and item genres, significantly influenced the LLMs’ assessments. range of individuals to assess the recommendation results. Users only need to generate a prompt that does not necessitate the evaluation of others, as is the case with unpop. Among the three SOG scores, pro f, which measures context dissimilarity, yielded the best F1-score, showing a similar trend to LLMs, where the performance is improved by providing genre information.
Conclusion. In this study, we tackled the issue of whether users perceive recommended items as serendipitous in RSs using LLMs and proposed a prompt for this purpose. This prompt can be given to LLMs along with auxiliary information such as the user ratings and the genre of the item. The experimental findings are as follows: (1) LLMbased serendipitous assessment performed equivalently or better than the baseline method (RQ2). (2) However, the agreement with human assessments was not as high (RQ1), suggesting the need for further improvement before LLMs can replace human assessments. Moreover, we observed performance differences based on the LLMs used and that the classification performance of assessment is improved by providing LLMs with the genre information of the items. We also discovered that the performance is negatively impacted when the prompt includes too few or too many user-rated items and that LLMs’ outputs with good classification performance cannot be interpreted using baseline methods. In future studies, we aim to enhance the prompts to improve performance and output the inference process. Furthermore, we aim to utilize the proposed method for data augmentation on serendipity and for serendipitous assessments of recommendation lists for multiple RSs. We believe that data augmentation is valuable and must be addressed. In addition, we aim to model the user’s serendipity as a recommender agent, and not solely in the assessment of recommendation results, as an application of LLMs.
Lines of inquiry this paper opens 8
Research framings built by reading the notes related to this paper — the questions it feeds into.
Do language models learn genuine linguistic structure or just surface patterns? What are the fundamental limits of prompt-based debiasing? What systematic biases affect LLM judges and their evaluation outcomes? How do feedback loops and biases compound in online rating systems? How does AI assistance shape human judgment and decision quality? What prevents systematic overestimation of research quality in academic evaluation?