Manuscript Offprint
arXiv:2611.04775Learning to Rank Explanations for Recommendation with Language Models
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Recommender systems are ubiquitous on the Web, making understandable explanations essential for users. Although large language models (LLMs) increasingly generate natural-language justifications, evaluating their factual grounding and personalized relevance remains challenging. Statement-level ranking offers an alternative by selecting concise, review-derived explanations, enabling fine-grained and reproducible evaluation using established ranking metrics. However, existing statement ranking methods largely rely on collaborative representations, while semantic enhancements often fail to outperform simple user-history popularity baselines. Moreover, directly adapting language models for personalized statement ranking remains largely unexplored. In this work, we introduce LMSTAR (Language Models for Statement Ranking), a fully text-based framework that formulates personalized explanation ranking as dense retrieval. A query encoder represents the user's interaction history and target-item metadata, while a statement encoder maps candidate explanations into a shared embedding space. Both encoders are jointly adapted through multi-positive contrastive learning to learn personalized relevance. Experiments on Amazon Beauty, Amazon Toys, and Yelp show that LMSTAR achieves the highest NDCG@1 across all three domains, outperforming CLER by 1.06–8.25 points (+11.8–65.9%). It also leads top-five ranking on both Amazon datasets, although CLER remains stronger on Yelp. Task-specific adaptation improves all five evaluated backbones and transfers across domains without target-domain fine-tuning. Counterfactual analyses further reveal the importance of user-specific histories. These findings highlight the potential of task-adapted language models for personalized explanation ranking. Code, data, and supplementary materials are available at https://github.com/BenKabongo25/language-models-statement-ranking.
CCS Concepts
• Information systems → Language models; Learning to rank; Top-k retrieval in databases; Recommender systems; Information extraction; Sentiment analysis; Clustering and classification; Personalization.
ACM Reference Format:
Ben Kabongo and Vincent Guigue. 2018. Learning to Rank Explanations for Recommendation with Language Models. In Proceedings of Make sure to enter the correct conference title from your rights confirmation email (Conference acronym 'XX). ACM, New York, NY, USA, 12 pages. https://doi.org/XXXXXXX.XXXXXXX
1 Introduction
Recommender systems play a central role on Web platforms, helping users discover products, services, and content. As increasingly sophisticated models underpin these recommendations, providing understandable justifications is important both for users assessing suggested items and for designers seeking to diagnose system behavior [44]. Textual explanations are particularly appealing because they convey justifications in natural, human-understandable language. Existing approaches have evolved from predefined templates [16] to neural generation [18] and, more recently, LLM-based generation [20, 24]. However, these generative methods may produce generic or unsupported rationales [12]. Evaluating their factual grounding with semantic similarity metrics [43] or LLM-based judges [34], as well as assessing the relevance of individual explanatory factors, remains challenging. Such concerns extend beyond recommendation, motivating evidence-grounded approaches in question answering [35] and retrieval-based tool selection in LLM agents [29]. In explainable recommendation, a complementary paradigm is statement-level ranking: rather than generating free-form explanations, approaches such as EXTRA [17] and StAR [13] rank concise, review-derived explanatory statements and return the top-k for each user-item interaction. This formulation enables individual explanatory aspects to be prioritized and supports reproducible evaluation using established ranking metrics [11].
Yet ranking explanations does not inherently solve their personalization. Under item-level evaluation, candidates are restricted to the target item's statements, making the challenge to identify which aspects best match a particular user. Prior work shows that simple user-history popularity signals remain competitive with sophisticated rankers in this setting [13]. Existing approaches range from neighborhood-based collaborative filtering and factorization methods [17] to BPER and its variants [19]. To leverage textual semantics, BPER+ [19] incorporates BERT representations, while SE-BPER and SE-BPER+ exploit contextualized statement embeddings to initialize user, item, and statement factors [41]. These approaches retain an identifier-based collaborative formulation,
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from permissions@acm.org.
Conference acronym 'XX, Woodstock, NY
© 2018 Copyright held by the owner/author(s). Publication rights licensed to ACM.
ACM ISBN 978-1-4503-XXXX-X/2018/06
https://doi.org/XXXXXXX.XXXXXXX
Ben Kabongo & Vincent Guigue
predominantly optimized with Bayesian Personalized Ranking [32]. More recently, CLER [6] introduces contrastive learning through an NT-BXent objective, substantially improving collaborative ranking without explicitly modeling textual semantics. While effective, these approaches leave the direct, task-specific alignment of textual user histories and candidate explanations largely unexplored.
Meanwhile, neural information retrieval has progressed from dual-encoder architectures such as Sentence-BERT [31] and DPR [14] to adapting large language models as text encoders and rankers. Approaches such as RepLLaMa [25], LLM2Vec[2], and Qwen3-Embedding [45] demonstrate the effectiveness of task-adapted language-model representations for retrieval. By independently encoding queries and documents, bi-encoders enable similarity-based ranking with precomputable candidate representations, while contrastive learning aligns embeddings with task-specific relevance. Related advances in recommendation, including UniSRec [8] and RecFormer [15], exploit textual item representations and interaction sequences. These advances motivate exploring language models as explanation rankers within a fully text-based framework for personalized statement ranking.
In this work, we introduce Language Models for Statement Ranking (LMSTAR), a fully text-based framework that formulates personalized explanation ranking as a dense retrieval problem. To our knowledge, LMSTAR is the first approach to jointly adapt language-model encoders for personalized statement ranking. Rather than learning representations tied to user and item identifiers, our approach directly models the textual context of each user-item interaction. Specifically, a query encoder represents the user's interaction history and target-item metadata, while a separate statement encoder independently maps candidate explanations into a shared embedding space. Both encoders are jointly optimized using a multi-positive contrastive objective, contrasting relevant statements against item-level negatives to learn personalized relevance.
We construct three statement-ranking datasets from user reviews in Amazon Beauty, Amazon Toys [26], and Yelp, using a refined StAR pipeline [13] that emphasizes statements describing matches between user preferences and item characteristics, and strengthens reranker-based verification of statement cluster merges. We compare against popularity-based [13], neighborhood-based [17], factorization [17, 19], semantic-enhanced [19, 41], contrastive collaborative [6], and zero-shot retrieval [45] baselines. We further investigate five pretrained backbones, LoRA [9] versus full fine-tuning, and cross-domain transfer without target-domain adaptation. To characterize the role of user context, we conduct controlled analyses of history quantity and selection, performance across history-length groups, and counterfactual query perturbations.
Our results show that LMSTAR achieves the highest NDCG@1 across all three domains, outperforming CLER by 3.50 (+31.2%), 8.25 (+65.9%), and 1.06 (+11.8%) points on Beauty, Toys, and Yelp, respectively. At k = 5, it also improves NDCG by 2.66 (+13.4%) and 7.79 (+34.2%) points on Beauty and Toys, while trailing CLER by 1.10 (-6.7%) points on Yelp. Beyond overall effectiveness, task-specific adaptation improves all evaluated backbones across domains, with smaller adapted models outperforming larger zero-shot alternatives. LoRA further exceeds full fine-tuning by 0.84–2.66 NDCG@5 points across the six tested configurations. These gains also transfer across
domains: without target-domain fine-tuning, adapted models outperform zero-shot retrieval and conventional ranking baselines in all six transfer settings. Finally, history analyses reveal substantial gains from the first few recent interactions, while replacing the user's history with another user's reduces NDCG@5 points across the three domains. In contrast, perturbing target-item metadata has a comparatively limited effect, highlighting the importance of user-specific context under item-level ranking.
Our main contributions are summarized as follows:
- We introduce LMSTAR, a fully text-based dual-encoder framework that formulates personalized statement ranking as dense retrieval and jointly adapts language-model representations through multi-positive contrastive learning.
- We demonstrate the effectiveness and robustness of LMSTAR across three recommendation domains, examining ranking performance against established baselines, five pretrained backbones, fine-tuning strategies, and cross-domain transferability.
- We systematically investigate the effects of user history quantity, selection, and length, together with counterfactual query perturbations, revealing the importance of user-specific interaction histories and the comparatively limited influence of target-item metadata under item-level ranking.
2 Related Work
Our work connects text-based explainable recommendation with neural retrieval.
Text-based Explainable Recommendation. Textual explanations have evolved from templates [16] to RNNs [5, 21], Transformers [18], and LLM-based generation [20, 22, 24]. However, lexical metrics emphasize surface overlap [23, 28], semantic metrics do not ensure factuality [12, 43], and LLM-based judgments remain difficult to reproduce [7, 34]. Statement ranking [13, 17] instead selects the top-k explanatory statements, enabling fine-grained evaluation with ranking metrics [11], provided statements are explanatory, atomic, and semantically unique.
Statement Ranking Methods. Existing methods include popularity baselines (USERPOP, ITEMPOP, GLOBALPOP) [13], neighborhood models (RUCF, RICF), and factorization (CD, PITF) [17]. BPER learns user-statement and item-statement scores [19]. Its semantic variants include BPER+, combining latent factors with BERT embeddings [19], and SE-BPER/SE-BPER+, initializing factors from contextualized statements, with task-specific fine-tuning in the latter [41]. Unlike these BPR-based methods [32], CLER [6] employs contrastive NT-BXent learning while remaining ID-based. Ranking may be global-level, over all statements, or item-level, restricted to the target item [13, 17]. The latter isolates personalization more directly: on STAR, USERPOP matches or exceeds several item-level rankers [13].
Statement Ranking Datasets. EXTRA [17] extracts review sentences and clusters near-duplicates using lexical similarity and locality-sensitive hashing [1], potentially missing semantic paraphrases. STAR [13] instead combines LLM-based extraction with semantic retrieval, reranking, and graph-based clustering. We refine its extraction prompts toward user-item matches and strengthen verification of cluster merges.
Neural Retrieval Models. Dual encoders such as DSSM [10], SentenceBERT [31], and DPR [14] learn shared query-document embedding spaces. Subsequent advances include hard-negative contrastive learning [39], weak supervision [38], and instruction-conditioned embeddings [36]. RePLLaMA [25], LLM2Vec [2], and, more recently, Qwen3-Embedding [45] extend retrieval to language-model representations. In recommendation, UniSRec [8], RecFormer [15], and LLM-based two-tower models [40] leverage textual interaction contexts for item retrieval. LMSTAR instead adapts these representations to personalized explanation ranking.
3 Method
3.1 Preliminaries
Explainable recommendation aims to justify why an item is recommended to a user based on their interaction history. This task can be formulated as a ranking problem, where candidate explanatory statements are scored and ranked according to their relevance to a given user-item interaction.
Let and denote the sets of users and items, respectively. Each item is associated with metadata , such as its name, category, and other descriptive attributes. Each user has a chronologically ordered interaction history , where denotes the number of observed interactions. An interaction with item is represented as , where is the set of ground-truth explanatory statements describing the interaction between user and item . We further define as the set of explanatory statements associated with item .
The candidate statement set determines the ranking level. In global-level ranking, candidates are drawn from the entire statement collection, whereas item-level ranking restricts candidates to statements associated with the target item. We focus on item-level ranking, where the candidate set for an interaction is , with .
Given a user-item pair , the objective is to learn a scoring function that assigns a relevance score to each candidate statement :
where denotes the highest-ranked statements presented as explanations for the recommendation. Ranking quality is evaluated against the ground-truth set using standard metrics such as nDCG@k [11], Precision@k, and Recall@k.
3.2 LMStaR: Language Models for Statement Ranking
We introduce LMSTAR (Language Models for Statement Ranking), a language-model-based approach to personalized explanation ranking that relies exclusively on textual representations of users, items, and candidate statements. We formulate the task as dense retrieval, where the user-item context serves as a query and candidate explanatory statements serve as documents. Figure 1 illustrates the overall architecture of LMSTAR.
Our approach adopts a dual-encoder architecture comprising a query encoder and a statement encoder , where denotes the space of textual inputs and is the embedding dimension. The query encoder represents a target user-item interaction through the user's interaction history and the target item's metadata , while the statement encoder independently represents each candidate explanation. Both encoders map their respective inputs into a shared latent space, where relevance is measured through embedding similarity. Their parameters, , are jointly optimized through contrastive learning.
3.2.1 User-Item Context Encoding.
The query encoder maps the user-item context into a dense representation. To guide the encoding process toward personalized explanation retrieval, we employ the following instruction :
Retrieve explanation statements matching the target item to the user's preferences based on previous interactions.
We construct the encoder input by combining this instruction with the user's interaction history and the target item's metadata . The resulting query representation is defined as
where denotes the user-item context embedding. Specifically, we extract the final-layer hidden state of the last non-padding token and apply normalization. Under causal attention, this representation can aggregate information from all preceding tokens, encompassing the instruction, interaction history, and target item metadata. The query encoder is thus trained to capture the contextual information most relevant to identifying appropriate explanatory statements.
3.2.2 Candidate Statement Encoding.
The statement encoder independently maps each candidate statement into the shared latent space:
where denotes the statement embedding. Following the same pooling strategy as the query encoder, we extract the final-layer hidden state of the last non-padding token and apply normalization.
3.2.3 Relevance Scoring.
Given a target user-item pair , we first compute its contextual representation using the query encoder . Each candidate statement is independently encoded into using the statement encoder . The relevance score is then computed as the dot product between their normalized embeddings:
Since both embeddings are -normalized, the dot product is equivalent to cosine similarity, yielding . Candidate statements are ranked in descending order of their relevance scores to identify the explanations that best match the user's preferences and the target item's characteristics.
Ben Kabongo & Vincent Guigue

Figure 1: Overview of LMSTAR. The query encoder represents the user's interaction history and target item metadata, while the statement encoder independently encodes candidate explanations. Statements are ranked by cosine similarity in a shared embedding space. Both encoders are jointly optimized through contrastive learning.
3.3 Model Training
We jointly optimize the query and statement encoders to learn a shared embedding space in which cosine similarity serves as an effective relevance function for personalized explanation ranking. Specifically, we aim to bring user-item context embeddings closer to statements that explain the corresponding interactions, while pushing them away from irrelevant candidate statements.
3.3.1 Training Data Construction. We construct the training set from users' interaction histories while preserving their temporal order. For each interaction at time step , we consider only the preceding interactions as the user's context, denoted by . Consequently, the first interaction of each user is used exclusively to provide context for subsequent interactions, and training examples are constructed for . For an interaction with item , the query context is thus defined by . We treat all ground-truth explanatory statements associated with the target interaction as positives, denoted by . Under item-level ranking, the remaining statements associated with the target item constitute the negative candidate set . In practice, we sample negatives from this set to limit computational cost, while retaining all positive statements. The resulting training set is defined as
where denotes the item involved in interaction .
3.3.2 Multi-Positive Contrastive Learning. We adopt a contrastive objective based on InfoNCE [27], where each positive statement is independently contrasted against the negative statements of the corresponding interaction. The interaction-level loss is computed by averaging the individual positive-wise contrastive losses:
where is a temperature parameter. This formulation encourages each positive statement to receive a higher relevance score than the negatives, preventing well-ranked positives from compensating for poorly ranked ones. The overall training objective averages the interaction-level losses:
The optimal parameters of the query and statement encoders are then obtained by minimizing this objective:
4 Experiments
We evaluate LMSTAR on item-level statement ranking across three domains, comparing it with established baselines, examining backbone adaptation and cross-domain transfer, and analyzing the role of the query context.
4.1 Experimental Setup
4.1.1 Datasets. We conduct experiments on three real-world recommendation datasets: Amazon Beauty (Beauty), Amazon Toys (Toys) [26] ¹, and Yelp ². As these datasets contain free-form user reviews rather than structured explanatory statements, we construct statement-level datasets through an extraction and clustering pipeline, followed by user-wise temporal splitting. Dataset construction, chronological splitting, and processed statistics are provided in Appendix A.
4.1.2 Baselines. We compare LMSTAR against five groups of baselines: (1) popularity-based methods [13], including ITEMPOP, GLOBALPOP, and USERPOP; (2) neighborhood-based collaborative filtering methods [17], namely RUCF and RICF; (3) factorization methods, comprising (3a) purely collaborative models such as CD [17], PITF [17], BPER [19], and BPER-LARGE [41],
¹https://jmcauley.ucsd.edu/data/amazon/links.html
²https://www.yelp.com/dataset/challenge
Table 1: Statement ranking results (%). Best results in bold, second best underlined. Ours: LMSTAR with the Qwen3-Embedding-8B backbone. Improv.: absolute difference (points) with the best other method. †: significant difference between LMSTAR and CLER (paired two-sided t-test over test users, p < 0.05), marked on the better of the two.
| Methods | Beauty | Toys | Yelp | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| N@1 | N@5 | R@5 | P@5 | N@1 | N@5 | R@5 | P@5 | N@1 | N@5 | R@5 | P@5 | |
| Popularity-based | ||||||||||||
| ITEMPOP | 2.628 | 4.123 | 5.813 | 2.069 | 2.033 | 3.769 | 5.779 | 1.910 | 1.190 | 1.681 | 2.229 | 0.745 |
| GLOBALPOP | 8.143 | 15.095 | 21.371 | 7.738 | 9.470 | 18.225 | 26.414 | 8.662 | 5.068 | 9.104 | 13.110 | 4.354 |
| USERPOP | 10.179 | 16.975 | 23.476 | 8.630 | 12.537 | 20.760 | 28.892 | 9.606 | 5.414 | 9.877 | 14.252 | 4.918 |
| Neighborhood-based | ||||||||||||
| RUCF | 6.218 | 12.873 | 19.089 | 6.788 | 6.815 | 15.685 | 24.063 | 7.860 | 2.304 | 5.882 | 9.280 | 3.095 |
| RICF | 6.995 | 15.135 | 22.249 | 8.134 | 7.625 | 18.156 | 27.525 | 9.151 | 3.360 | 8.557 | 13.243 | 4.481 |
| Collaborative factorization | ||||||||||||
| CD | 7.767 | 14.196 | 20.332 | 7.723 | 8.542 | 16.763 | 24.458 | 8.637 | 4.748 | 9.245 | 13.410 | 4.834 |
| PITF | 7.819 | 14.549 | 20.754 | 7.773 | 8.843 | 16.867 | 24.637 | 8.686 | 4.454 | 8.967 | 13.149 | 4.697 |
| BPER | 8.855 | 16.129 | 22.959 | 8.216 | 9.368 | 18.740 | 27.625 | 8.939 | 5.020 | 9.759 | 14.408 | 4.705 |
| BPER-LARGE | 7.871 | 13.693 | 19.596 | 7.334 | 10.093 | 17.016 | 24.156 | 8.220 | 3.148 | 6.427 | 9.748 | 3.311 |
| Semantic-enhanced | ||||||||||||
| BPER+ | 8.772 | 15.858 | 22.591 | 8.145 | 9.035 | 17.713 | 25.990 | 8.519 | 4.390 | 8.759 | 12.936 | 4.229 |
| SE-BPER | 8.476 | 14.329 | 20.188 | 7.604 | 10.618 | 17.689 | 24.948 | 8.485 | 3.494 | 6.829 | 10.299 | 3.513 |
| SE-BPER+ | 8.491 | 14.296 | 20.246 | 7.619 | 10.563 | 17.304 | 24.367 | 8.334 | 3.366 | 6.784 | 10.174 | 3.541 |
| Contrastive learning | ||||||||||||
| CLER | 11.218 | 19.741 | 27.770 | 10.384 | 12.521 | 22.774 | 32.551 | 11.458 | 8.965 | 16.508† | 23.544† | 8.498† |
| LLM-based neural retrieval | ||||||||||||
| QWEN3-EMBEDDING-8B (zero-shot) | 10.105 | 17.169 | 23.923 | 8.861 | 10.669 | 19.878 | 28.485 | 9.815 | 5.778 | 10.515 | 14.988 | 5.199 |
| LMSTAR (Ours) | 14.722† | 22.396† | 29.944† | 11.017† | 20.773† | 30.563† | 40.206† | 13.831† | 10.021† | 15.406 | 20.793 | 7.345 |
| Improv. | +3.504 | +2.655 | +2.174 | +0.633 | +8.236 | +7.789 | +7.655 | +2.373 | +1.056 | -1.102 | -2.751 | -1.153 |
and (3b) semantically enhanced variants, including BPER+ [19], SE-BPER, and SE-BPER+ [41]; (4) contrastive collaborative learning with CLER [6]; and (5) zero-shot neural retrieval using QWEN3-EMBEDDING-8B [45]. Detailed descriptions are provided in Appendix B.
4.1.3 Evaluation Metrics. We evaluate item-level statement ranking using Precision@k (P@k), Recall@k (R@k), and Normalized Discounted Cumulative Gain (N@k/NDCG@k) [11], reporting results at . Detailed definitions are provided in Appendix C.
4.1.4 Model Details. We evaluate several pretrained language-model backbones for LMSTAR. Unless otherwise specified, we independently initialize the query and statement encoders from the official Qwen3-Embedding-8B checkpoint [45]We empirically observe that complete fine-tuning can yield lower performance than parameter-efficient adaptation with LoRA [9]. We therefore adopt LoRA to fine-tune both encoders by default. Further details on baseline implementations, model backbones, and training configurations are provided in Appendix D.
4.2 Main Results
We assess overall ranking effectiveness, robustness across pretrained backbones, parameter-efficient versus full fine-tuning, and cross-domain transferability.
4.2.1 Overall Ranking Performance. Table 1 compares LMSTAR with existing statement ranking baselines on Beauty, Toys, and Yelp, reporting NDCG@1, NDCG@5, Recall@5, and Precision@5.
LMSTAR achieves the highest first-rank relevance across all domains, while its top-five effectiveness is domain-dependent. LMSTAR achieves the best results on 9 of the 12 dataset-metric combinations and ranks second on the remaining three. Notably, it achieves the highest NDCG@1 on all three datasets, significantly outperforming CLER by 3.50, 8.25, and 1.06 percentage points on Beauty, Toys, and Yelp, respectively (31.2%, 65.9%, and 11.8% relative improvements). At , LMSTAR also significantly outperforms CLER across all metrics on Beauty and Toys, improving NDCG@5 by 2.66 (+13.4%) and 7.79 points (+34.2%), respectively. On Yelp, however, despite its significant first-rank advantage, LMSTAR trails CLER by 1.10 points in NDCG@5, 2.75 points in Recall@5, and 1.15 points in Precision@5.
A pretrained text embedder provides competitive zero-shot ranking, while task-specific adaptation yields substantial additional gains. Without task-specific training, Qwen3-Embedding-8B outperforms all neighborhood-based and factorization methods, including semantic-enhanced variants, across all 12 dataset-metric combinations. Adapting the same backbone through LMSTAR improves all evaluated metrics. Specifically, NDCG@1 increases by 4.62 points (+45.7%) on Beauty, 10.10 points (+94.7%) on Toys, and 4.24 points (+73.4%) on Yelp. The corresponding NDCG@5 gains are 5.23 (+30.4%), 10.69 (+53.8%), and 4.89 points (+46.5%), respectively.
Semantic enhancements yield limited gains, while popularity and CLER remain strong. None of the neighborhood-based or
Ben Kabongo & Vincent Guigue
Table 2: Statement ranking results (%) of LMStaR backbones, N@5. ZERO-SHOT: frozen backbone; LoRA / FULL FT: LoRA / full fine-tuning of both encoders. : absolute difference (points) of full fine-tuning with the zero-shot backbone and with LoRA. Best results in bold, second best underlined.
| Beauty | Toys | Yelp | ||
|---|---|---|---|---|
| EmbeddingGemma-300M | ZERO-SHOT | 14.621 | 17.514 | 9.429 |
| LoRA | 20.590 | 28.985 | 13.862 | |
| FULL FT | 18.938 | 26.322 | 13.023 | |
| vs Zero-shot | +4.32 | +8.81 | +3.59 | |
| vs LoRA | -1.65 | -2.66 | -0.84 | |
| Qwen3-Embedding-0.6B | ZERO-SHOT | 16.189 | 17.713 | 9.635 |
| LoRA | 21.607 | 29.953 | 14.577 | |
| FULL FT | 20.609 | 28.936 | 13.454 | |
| vs Zero-shot | +4.42 | +11.22 | +3.82 | |
| vs LoRA | -1.00 | -1.02 | -1.12 |

Figure 2: Statement ranking results of LMStaR backbones (N@1 and N@5). ZERO-SHOT (hatched): frozen backbone; FINE-TUNED (solid): task-specific adaptation. Dashed line: CLER, the strongest baseline.
factorization methods, including semantic-enhanced variants, surpasses USERPOP in NDCG@1 or NDCG@5 on any dataset, highlighting the competitiveness of user-history frequency signals in item-level ranking [13]. Semantic enhancement yields mixed benefits: BPER outperforms all its semantic-enhanced variants on NDCG@5, Recall@5, and Precision@5 across datasets, although SE-BPER and SE-BPER+ achieve higher NDCG@1 on Toys and outperform BPER-LARGE across all 12 dataset-metric combinations. In contrast, CLER, trained with a contrastive NT-BXent objective rather than BPR, outperforms all neighborhood-based, factorization, and zero-shot retrieval baselines across all metrics, as well as popularity baselines except on Toys N@1.
4.2.2 Backbone Robustness and Task-Specific Adaptation. In Figure 2, we compare the zero-shot and LoRA-adapted performance of five pretrained backbones against CLER in NDCG@1 and NDCG@5. These include EmbeddingGemma [37] (300M), Qwen3 [42] (0.6B), and Qwen3-Embedding [45] (0.6B, 4B, and 8B).
Table 3: Cross-domain transfer of statement ranking in terms of N@1 and N@5. Rows indicate the source (training) domain and columns the target (evaluation) domain. The zero-shot backbone (Qwen3-Embedding-8B) and CLER (trained on the target domain) are given for reference.
| Model | Source | Target | |||||
|---|---|---|---|---|---|---|---|
| Beauty | Toys | Yelp | |||||
| N@1 | N@5 | N@1 | N@5 | N@1 | N@5 | ||
| Qwen3-Emb.-8B | 10.105 | 17.169 | 10.669 | 19.878 | 5.778 | 10.515 | |
| CLER | 11.218 | 19.741 | 12.521 | 22.774 | 8.965 | 16.508 | |
| LMStaR | Beauty | 14.722 | 22.396 | 18.529 | 27.071 | 8.620 | 13.408 |
| Toys | 12.520 | 19.624 | 20.773 | 30.563 | 7.967 | 12.586 | |
| Yelp | 12.011 | 18.759 | 16.050 | 24.625 | 10.021 | 15.406 | |
LMStaR generalizes across backbones, with stronger relative first-rank performance. All five adapted backbones outperform CLER in both NDCG@1 and NDCG@5 on Beauty and Toys. Even EmbeddingGemma-300M surpasses CLER by 0.85 points (+4.3%) on Beauty and 6.21 points (+27.3%) on Toys in NDCG@5, showing that these advantages are not specific to the 8B backbone. On Yelp, the three adapted Qwen3-Embedding models outperform CLER in NDCG@1 (9.35–10.02 vs. 8.97), whereas none of the five backbones surpasses it in NDCG@5 (13.43–15.41 vs. 16.51). At the same 0.6B scale, Qwen3-Embedding consistently outperforms Qwen3 on both metrics, before and after adaptation, suggesting a benefit from its retrieval-oriented, instruction-aware embedding pretraining.
Task-specific adaptation consistently improves ranking effectiveness, exceeding the gains observed from zero-shot model scaling. Adaptation improves NDCG@1 and NDCG@5 for every backbone on all three datasets, yielding improvements in all 30 comparisons. Moreover, every adapted backbone outperforms every zero-shot backbone on both metrics across all three datasets, while none of the zero-shot models surpasses CLER. For instance, on Toys, adapted Qwen3-Embedding-0.6B exceeds the zero-shot 8B model by 8.04 points (+75.3%) in NDCG@1 and 10.08 points (+50.7%) in NDCG@5.
4.2.3 LoRA versus Full Fine-Tuning. Table 2 compares LoRA and full fine-tuning of both encoders for EmbeddingGemma-300M and Qwen3-Embedding-0.6B, reporting NDCG@5 on all three datasets.
LoRA outperforms full fine-tuning across both backbones and all three domains. Although full fine-tuning improves over zero-shot ranking in all six configurations, it consistently underperforms LoRA by 0.84–2.66 points. The largest difference occurs on Toys with EmbeddingGemma-300M, where LoRA achieves 28.99 NDCG@5 compared with 26.32 for full fine-tuning, a gain of 2.66 points (+10.1%). These results support the use of parameter-efficient LoRA adaptation in LMStaR, as updating all backbone parameters does not yield better ranking effectiveness in the evaluated settings.
4.2.4 Cross-Domain Transferability. Table 3 evaluates the cross-domain transferability of LMStaR using Qwen3-Embedding-8B. We train on each source domain and evaluate directly on the other two domains, without target-domain fine-tuning. We compare against the zero-shot backbone and CLER trained on the target domain.
Source-domain adaptation yields transferable ranking gains, outperforming zero-shot and conventional target-domain

Figure 3: LMStaR ranking performance with the most recent past interactions. Shaded bands: 95% bootstrap confidence intervals.
baselines. All six transfer configurations outperform the zero-shot backbone in both NDCG@1 and NDCG@5, yielding improvements across all 12 comparisons. They also surpass all popularity-based, neighborhood-based, and factorization baselines evaluated on the target domain (Table 1), despite receiving no target-domain fine-tuning. The largest gains over zero-shot ranking occur when transferring from Beauty to Toys, improving NDCG@1 by 7.86 points (+73.7%) and NDCG@5 by 7.19 points (+36.2%).
Transferred LMStAR can outperform target-trained CLER, but remains below in-domain adaptation. On Toys, both transferred models outperform CLER in NDCG@1 and NDCG@5. Notably, Beauty-to-Toys transfer achieves gains of 6.01 points (+48.0%) in NDCG@1 and 4.30 points (+18.9%) in NDCG@5 over CLER, despite being trained on a different domain. On Beauty, both transfers exceed CLER at NDCG@1 but not at NDCG@5, whereas neither transfer surpasses CLER on Yelp. Nevertheless, in-domain LMStAR outperforms every transferred configuration on both metrics.
4.3 Detailed Analysis
We analyze the quantity, selection, and availability of user history, followed by counterfactual query perturbations. Unless stated otherwise, we use the validation-selected Qwen3-Embedding-8B checkpoint without further training; candidate statements, embeddings, and relevance labels remain fixed when modifying the query.
4.3.1 Impact of History Amount. Figure 3 evaluates the effect of retaining the most recent past interactions in the query. Each retained interaction includes its item metadata and associated statements; all denotes the reference prompt, containing as much recent history as fits within the token budget. We compare the resulting NDCG@1 and NDCG@5 scores against CLER and USERPOP, evaluated on the same test users.
Aggregate ranking gains are concentrated in the first few recent interactions. From to all, NDCG@5 rises from 19.5 to 22.4 on Beauty, 25.1 to 30.6 on Toys, and 12.0 to 15.4 on Yelp, with similar improvements in NDCG@1. Notably, even with a single

Past interactions in the prompt () — difference with recency (points)
Figure 4: Paired NDCG@1 and NDCG@5 differences (points) between item-aware selection and recency. Shaded areas are 95% paired bootstrap confidence intervals; filled markers are significant differences (), hollow markers are not (n.s.).
past interaction, LMStAR exceeds USERPOP on both metrics across all datasets and CLER on Toys. The aggregate gains become smaller at larger , particularly on Amazon. However, this flattening partly reflects the distribution of available history lengths (Table 6).
4.3.2 History Selection Strategies. Figure 4 compares recency-based history selection with two item-aware alternatives. Category prioritizes past items by the depth of their shared category-path prefix with the target item, whereas Semantic ranks them by cosine similarity between item-metadata embeddings from an independent, non-adapted Qwen3-Embedding-0.6B model. Ties favor more recent interactions. We report paired NDCG differences relative to selecting the most recent interactions.
Recency remains a strong default, while similarity-based selection offers its largest gains under very small history budgets. Neither category-based nor semantic selection consistently outperforms recency across datasets and history budgets. The largest positive differences arise with a single selected interaction: semantic selection improves NDCG@1 by approximately 1.4 points on Beauty and 1.1 points on Toys, also improving NDCG@5 on Beauty by roughly 0.7 points. For larger budgets, differences are generally small and mixed, partly because the selection policies often retain the same interactions. On Yelp, neither alternative provides a consistent gain. Importantly, LMStAR was trained with recency-ordered histories rather than these alternative selection policies.
4.3.3 Performance across History-Length Groups. Figure 5 examines how ranking performance varies with the amount of history available for each test user. We partition users into four groups (4–7, 8–15, 16–31, and at least 32 past interactions), with populations reported in Table 6. Unlike the preceding interventions, this analysis uses the original test predictions rather than modifying the query. We compare LMStAR with CLER on the same interactions, averaging CLER's per-interaction metrics across its three runs.
LMStAR consistently outperforms CLER across history-length groups on Amazon, while its top-five disadvantage on Yelp is
Ben Kabongo & Vincent Guigue

Past interactions of the user (lower bound of the group)
Figure 5: LMStaR versus CLER across available history-length groups (NDCG@1 and NDCG@5). Error bars: 95% bootstrap confidence intervals.
Table 4: Counterfactual queries (N@5, %; Δ: difference with the reference, paired bootstrap). Candidates and ground truth are unchanged; only the query is modified. †Out of distribution (never seen in training).
| Beauty | Toys | Yelp | ||||
|---|---|---|---|---|---|---|
| Query | N@5 | Δ | N@5 | Δ | N@5 | Δ |
| Reference (own history + item) | 22.40 | - | 30.56 | - | 15.41 | - |
| (a) Empty history | 16.30 | -6.09 | 18.26 | -12.30 | 10.56 | -4.84 |
| (b) Empty item | 21.59 | -0.80 | 30.18 | -0.38 | 15.35 | -0.06 |
| (c) Item of the same category | 21.62 | -0.78 | 30.11 | -0.51 | 15.25 | -0.13 |
| (d) Random item | 21.43 | -0.97 | 30.16 | -0.41 | 15.05 | -0.36 |
| (e) History of another user | 15.66 | -6.73 | 17.36 | -13.20 | 9.76 | -5.65 |
concentrated among users with shorter histories. On Beauty and Toys, LMStaR achieves higher NDCG@1 and NDCG@5 in all four groups, with numerically larger advantages among users with longer available histories. This pattern mainly reflects lower groupwise scores for CLER, whereas LMStaR maintains comparatively stable ranking effectiveness. Yelp exhibits a different pattern: CLER's clearest NDCG@5 advantage occurs in the 4–7 group, which accounts for 49.2% of test users, while the differences become smaller or reverse numerically in groups with longer histories. These comparisons are observational, however: the groups differ in more than history length, and available interactions may exceed the number actually retained within the query token budget.
4.3.4 Counterfactual Query Analysis. Specifically, we remove the user history (a) or target-item metadata (b), replace the target item with one from the same category (c) or a random item (d), or substitute another user's history matched on the number of past interactions (e). Probes (a) and (b) introduce empty fields unseen during training, whereas (c)–(e) preserve valid input fields.
LMStaR strongly relies on user-specific interaction histories for personalized statement ranking. Replacing the user's history with that of another user (e) reduces NDCG@5 by 6.73 points (30.0%)
on Beauty, 13.20 points (43.2%) on Toys, and 5.65 points (36.7%) on Yelp. Removing the history entirely (a) produces similarly large degradations of 6.09, 12.30, and 4.84 points, respectively, although this configuration is unseen during training. Notably, with another user's history (e), LMStaR falls below USERPOP and its own zero-shot backbone on all three datasets (Table 1).
Target-item metadata has a comparatively limited influence under item-level ranking. In contrast, replacing the target item with a random item (d) reduces NDCG@5 by only 0.97 points (4.3%) on Beauty, 0.41 points (1.3%) on Toys, and 0.36 points (2.3%) on Yelp. The much smaller sensitivity to item modifications may partly reflect the item-level evaluation setting, where candidate statements are already restricted to the actual target item.
5 Conclusion
We introduced LMSTAR, a text-based dual-encoder framework that ranks explanatory statements using a query combining user history and target-item metadata, with both encoders adapted through LoRA and multi-positive contrastive learning. On Beauty, Toys, and Yelp, LMSTAR achieves the highest NDCG@1, and leads the top-five metrics on both Amazon datasets, while CLER remains stronger at k = 5 on Yelp. Task-specific adaptation improves all five evaluated backbones, with smaller adapted models outperforming larger zero-shot alternatives; LoRA also surpasses full fine-tuning for the two tested backbones. Adaptation transfers across domains without target-domain fine-tuning. History analyses reveal substantial gains from a few recent interactions and, critically, a strong dependence on the user's own history. Together, these findings establish task-adapted language-model representations as a promising approach to personalized explanation ranking.
6 Discussion
The contrast between first-rank relevance and top-five coverage on Yelp raises an important question: a single query vector may struggle to represent multiple explanatory aspects, while CLER's collaborative signals may provide complementary evidence. Neither mechanism is established by our experiments, but both motivate hybrid or multi-vector ranking approaches. Counterfactual probes also show much greater sensitivity to user-history substitutions than to changes in the target-item description. This does not imply that item information is irrelevant: item-level evaluation already restricts candidates to the true target item, potentially reducing the marginal contribution of its metadata. The evaluation also has limitations. Binary relevance is derived from automatically extracted and clustered review statements; unobserved statements may still be relevant, and ranking metrics do not establish perceived usefulness or faithfulness. Dataset construction relies on Qwen-family models, potentially introducing shared biases, although gains with EmbeddingGemma show that adaptation is not restricted to Qwen backbones. Importantly, item-level ranking targets personalization more directly than global retrieval, but candidate pools may include statements from held-out reviews unavailable at recommendation time, and test items are restricted to those observed during training. More realistic evaluations should consider temporally available candidate pools, sparsely reviewed or unseen items, and human assessments of explanation quality.
Acknowledgements
This work was granted access to the HPC resources of IDRIS under the allocation 2026-AD011016963R1 made by GENCI.
References
[1] Rajaraman Anand and Ullman Jeffrey David. 2011. Mining of massive datasets. Cambridge university press.
[2] Parishad BehnamGhader, Vaibhav Adlakha, Marius Mosbach, Dzmitry Bahdanau, Nicolas Chapados, and Siva Reddy. 2024. LLM2Vec: Large Language Models Are Secretly Powerful Text Encoders. In Conference on Language Modeling (COLM). https://openreview.net/forum?id=1W1PR7vEBF
[3] Paul Covington, Jay Adams, and Emre Sargin. 2016. Deep neural networks for youtube recommendations. In Proceedings of the 10th ACM conference on recommender systems. 191–198.
[4] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. Bert: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 conference of the North American chapter of the association for computational linguistics: human language technologies, volume 1 (long and short papers). 4171–4186.
[5] Li Dong, Shaohan Huang, Furu Wei, Mirella Lapata, Ming Zhou, and Ke Xu. 2017. Learning to generate product reviews from attributes. In Proceedings of the 15th Conference of the European Chapter of the Association for Computational Linguistics: Volume 1, Long Papers. 623–632.
[6] Miguel Escarda-Fernández, Brais Cancela, Carlos Eiras-Franco, Bertha Guijarro-Berdiñas, and Amparo Alonso-Betanzos. 2026. Contrastive Learning for Explanation Ranking. Machine Learning 115, 7 (2026), 156.
[7] Jinlan Fu, See-Kiong Ng, Zhengbao Jiang, and Pengfei Liu. 2023. Gptscore: Evaluate as you desire. arXiv preprint arXiv:2302.04166 (2023).
[8] Yupeng Hou, Shanlei Mu, Wayne Xin Zhao, Yaliang Li, Bolin Ding, and Ji-Rong Wen. 2022. Towards universal sequence representation learning for recommender systems. In Proceedings of the 28th ACM SIGKDD conference on knowledge discovery and data mining. 585–593.
[9] Edward J Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. 2022. LoRA: Low-Rank Adaptation of Large Language Models. In International Conference on Learning Representations (ICLR). https://openreview.net/forum?id=nZeZvKeeFYf9
[10] Po-Sen Huang, Xiaodong He, Jianfeng Gao, Li Deng, Alex Acero, and Larry Heck. 2013. Learning deep structured semantic models for web search using clickthrough data. In Proceedings of the 22nd ACM international conference on Information & Knowledge Management. 2333–2338.
[11] Kalervo Järvelin and Jaana Kekäläinen. 2002. Cumulated gain-based evaluation of IR techniques. ACM Transactions on Information Systems (TOIS) 20, 4 (2002), 422–446.
[12] Ben Kabongo and Vincent Guigue. 2026. On the Factual Consistency of Text-based Explainable Recommendation Models. In Pacific-Asia Conference on Knowledge Discovery and Data Mining. Springer, 16–28.
[13] Ben Kabongo, Arthur Satouf, and Vincent Guigue. 2026. Rank, Don't Generate: Statement-level Ranking for Explainable Recommendation. In Proceedings of the 2026 International ACM SIGIR Conference on Innovative Concepts and Theories in Information Retrieval (ICTIR) (Melbourne, VIC, Australia) (ICTIR '26). Association for Computing Machinery, New York, NY, USA, 159–170. doi:10.1145/3805713.3820414
[14] Vladimir Karpukhin, Barlas Oguz, Sewon Min, Patrick Lewis, Ledell Wu, Sergey Edunov, Danqi Chen, and Wen-tau Yih. 2020. Dense passage retrieval for open-domain question answering. In Proceedings of the 2020 conference on empirical methods in natural language processing (EMNLP). 6769–6781.
[15] Jiacheng Li, Ming Wang, Jin Li, Jinniao Fu, Xin Shen, Jingbo Shang, and Julian McAuley. 2023. Text is all you need: Learning language representations for sequential recommendation. In Proceedings of the 29th ACM SIGKDD conference on knowledge discovery and data mining. 1258–1267.
[16] Lei Li, Yongfeng Zhang, and Li Chen. 2020. Generate neural template explanations for recommendation. In Proceedings of the 29th ACM International Conference on Information & Knowledge Management. 755–764.
[17] Lei Li, Yongfeng Zhang, and Li Chen. 2021. Extra: Explanation ranking datasets for explainable recommendation. In Proceedings of the 44th International ACM SIGIR conference on Research and Development in Information Retrieval. 2463–2469.
[18] Lei Li, Yongfeng Zhang, and Li Chen. 2021. Personalized transformer for explainable recommendation. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers). 4947–4957.
[19] Lei Li, Yongfeng Zhang, and Li Chen. 2023. On the relationship between explanation and recommendation: Learning to rank explanations for improved performance. ACM Transactions on Intelligent Systems and Technology 14, 2 (2023), 1–24.
[20] Lei Li, Yongfeng Zhang, and Li Chen. 2023. Personalized prompt learning for explainable recommendation. ACM Transactions on Information Systems 41, 4 (2023), 1–26.
[21] Piji Li, Zihao Wang, Zhaochun Ren, Lidong Bing, and Wai Lam. 2017. Neural rating regression with abstractive tips generation for recommendation. In Proceedings of the 40th International ACM SIGIR conference on Research and Development in Information Retrieval. 345–354.
[22] Yuhan Li, Xinni Zhang, Linhao Luo, Heng Chang, Yuxiang Ren, Irwin King, and Jia Li. 2025. G-refer: Graph retrieval-augmented large language model for explainable recommendation. In Proceedings of the ACM on Web Conference 2025. 240–251.
[23] Chin-Yew Lin. 2004. Rouge: A package for automatic evaluation of summaries. In Text summarization branches out. 74–81.
[24] Qiyao Ma, Xubin Ren, and Chao Huang. 2024. Xrec: Large language models for explainable recommendation. In Findings of the Association for Computational Linguistics: EMNLP 2024. 391–402.
[25] Xueguang Ma, Liang Wang, Nan Yang, Furu Wei, and Jimmy Lin. 2024. Fine-tuning llama for multi-stage text retrieval. In Proceedings of the 47th International ACM SIGIR Conference on Research and Development in Information Retrieval. 2421–2425.
[26] Jianmo Ni, Jiacheng Li, and Julian McAuley. 2019. Justifying recommendations using distantly-labeled reviews and fine-grained aspects. In Proceedings of the 2019 conference on empirical methods in natural language processing and the 9th international joint conference on natural language processing (EMNLP-IJCNLP). 188–197.
[27] Aaron van den Oord, Yazhe Li, and Oriol Vinyals. 2018. Representation learning with contrastive predictive coding. arXiv preprint arXiv:1807.03748 (2018).
[28] Kishore Papinetti, Salim Roukos, Todd Ward, and Wei-Jing Zhu. 2002. Bleu: a method for automatic evaluation of machine translation. In Proceedings of the 40th annual meeting of the Association for Computational Linguistics. 311–318.
[29] Shengqian Qin, Yakun Zhu, Linjie Mu, Shaoting Zhang, and Xiaofan Zhang. 2025. Meta-Tool: Unleash Open-World Function Calling Capabilities of General-Purpose Large Language Models. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), Wanxiang Che, Joyce Nabende, Ekaterina Shutova, and Mohammad Taher Pilehvar (Eds.). Association for Computational Linguistics, Vienna, Austria, 30653–30677. doi:10.18653/v1/2025.acl-long.1481
[30] Qwen Team. 2026. Qwen3.8-Max: A New Bar for Coding and Cowork. https://qwen.ai/blog?id=qwen3.8
[31] Nils Reimers and Iryna Gurevych. 2019. Sentence-bert: Sentence embeddings using siamese bert-networks. In Proceedings of the 2019 conference on empirical methods in natural language processing and the 9th international joint conference on natural language processing (EMNLP-IJCNLP). 3982–3992.
[32] Steffen Rendle, Christoph Freudenthaler, Zeno Gantner, and Lars Schmidt-Thieme. 2012. BPR: Bayesian personalized ranking from implicit feedback. arXiv preprint arXiv:1205.2618 (2012).
[33] Thibault Sellam, Dipanjan Das, and Ankur Parikh. 2020. BLEURT: Learning robust metrics for text generation. In Proceedings of the 58th annual meeting of the association for computational linguistics. 7881–7892.
[34] Huanxin Sheng, Xinyi Liu, Hangfeng He, Jieyu Zhao, and Jian Kang. 2025. Analyzing Uncertainty of LLM-as-a-Judge: Interval Evaluations with Conformal Prediction. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing. 11297–11339.
[35] Alessandro Stolfo. 2024. Groundedness in Retrieval-augmented Long-form Generation: An Empirical Study. In Findings of the Association for Computational Linguistics: NAACL 2024, Kevin Duh, Helena Gomez, and Steven Bethard (Eds.). Association for Computational Linguistics, Mexico City, Mexico, 1537–1552. doi:10.18653/v1/2024.findings-naacl.100
[36] Hongjin Su, Weijia Shi, Jungo Kasai, Yizhong Wang, Yushi Hu, Mari Ostendorf, Wen-tau Yih, Noah A Smith, Luke Zettlemoyer, and Tao Yu. 2023. One embedder, any task: Instruction-finetuned text embeddings. In Findings of the Association for Computational Linguistics: ACL 2023. 1102–1121.
[37] Henrique Schechter Vera, Sahil Dua, Biao Zhang, Daniel Salz, Ryan Mullins, Sindhu Raghuram Panyam, Sara Smoot, Iftekhar Naim, Joe Zou, Feiyang Chen, et al. 2025. Embeddingemma: Powerful and lightweight text representations. arXiv preprint arXiv:2509.20354 (2025).
[38] Liang Wang, Nan Yang, Xiaolong Huang, Binxing Jiao, Linjun Yang, Daxin Jiang, Rangan Majumder, and Furu Wei. 2022. Text embeddings by weakly-supervised contrastive pre-training. arXiv preprint arXiv:2212.03533 (2022).
[39] Lee Xiong, Chenyan Xiong, Ye Li, Kwok-Fung Tang, Jialin Liu, Paul Bennett, Junaid Ahmed, and Arnold Owerijk. 2021. Approximate Nearest Neighbor Negative Contrastive Learning for Dense Text Retrieval. In International Conference on Learning Representations (ICLR). https://openreview.net/forum?id=zeFrfgyZln
[40] Zhe Xu, Prachi Agrawal, Kavosh Asadi, Tianyi Chen, Carl Hu, Justin Johnson, Wuwei Lan, Mingfu Liang, Xi Liu, Tik On Lui, et al. 2026. The Case Against Generation for Retrieval: Discriminative Language Models as Effective Retrievers. arXiv preprint arXiv:2607.25346 (2026).
Ben Kabongo & Vincent Guigue
[41] Zhichao Xu, Yi Han, Tao Yang, Anh Tran, and Qingyao Ai. 2022. Learning to rank rationales for explainable recommendation. arXiv preprint arXiv:2206.05368 (2022).
[42] An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengen Huang, Chenxu Lv, et al. 2025. Qwen3 technical report. arXiv preprint arXiv:2505.09388 (2025).
[43] Tianyi Zhang*, Varsha Kishore*, Felix Wu*, Kilian Q. Weinberger, and Yoav Artzi. 2020. BERTScore: Evaluating Text Generation with BERT. In International Conference on Learning Representations. https://openreview.net/forum?id=SkeHuCVFDr
[44] Yongfeng Zhang, Xu Chen, et al. 2020. Explainable recommendation: A survey and new perspectives. Foundations and Trends® in Information Retrieval 14, 1 (2020), 1–101.
[45] Yanzhao Zhang, Mingxin Li, Dingkun Long, Xin Zhang, Huan Lin, Baosong Yang, Pengjun Xie, An Yang, Dayiheng Liu, Junyang Lin, et al. 2025. Qwen3 Embedding: Advancing Text Embedding and Reranking Through Foundation Models. arXiv preprint arXiv:2506.05176 (2025).
A Datasets
We conduct experiments on three real-world recommendation datasets: Amazon Beauty (Beauty), Amazon Toys (Toys), and Yelp. We first describe the construction of statement-level datasets from user reviews through statement extraction and clustering, followed by filtering and data splitting. Table 5 summarizes the resulting dataset statistics.
Dataset Construction. We build upon the statement extraction and clustering pipeline introduced by STAR [13], with two refinements aimed at improving the explanatory relevance and semantic consistency of the resulting statements. First, we revise the extraction prompt to explicitly identify statements that explain the match between a user's preferences and an item's characteristics, rather than merely describing item attributes. Second, we strengthen the final clustering stage with reranker-based verification to reduce erroneous merges between semantically distinct clusters. Specifically, we select representative statements from each cluster to capture its semantic diversity in the embedding space. For each pair of candidate clusters, we evaluate all cross-cluster pairs of representatives and merge the clusters only if the reranker identifies every pair as semantically equivalent. We use Qwen3.8-27B [30]³ for statement extraction, Qwen3-Embedding-0.6B [45]⁴ for semantic representations, and Qwen3-Reranker-0.6B [45]⁵ for pairwise paraphrase verification. All prompts and hyperparameters are provided in the accompanying code.
Filtering and Data Splitting. After statement extraction and clustering, we discard interactions without valid explanatory statements and apply iterative 5-core filtering, retaining only users and items with at least five interactions. We then perform a user-wise chronological split, holding out each user's most recent interaction for testing and the second most recent for validation. All earlier interactions form the training set. To ensure comparability with collaborative filtering baselines, we exclude test interactions involving items absent from the training set, thereby avoiding item cold-start evaluation. All methods are evaluated using the same data splits and item-level candidate statement sets.
Table 5: Statistics of the statement-ranking datasets.
| Beauty | Toys | Yelp | |
|---|---|---|---|
| Dataset | |||
| Users | 10 819 | 8 556 | 5 209 |
| Items | 6 289 | 5 662 | 3 787 |
| Interactions | 97 484 | 74 775 | 83 298 |
| Train | 86 677 | 66 264 | 78 089 |
| Test | 10 807 | 8 511 | 5 209 |
| Min/Avg/Max per user | 4/9.01/173 | 4/8.74/193 | 5/15.99/361 |
| Statements | |||
| Unique | 59 803 | 63 333 | 81 516 |
| Min/Avg/Max per inter. | 1/2.26/17 | 1/2.10/22 | 1/1.98/16 |
| Min/Avg/Max per user | 3/19.92/415 | 1/17.98/358 | 5/31.42/823 |
| Min/Avg/Max per item | 4/31.65/592 | 3/26.20/333 | 5/41.92/580 |
| Triplets | 220 262 | 156 721 | 164 931 |
Table 6: Test-user populations by available history length. History length counts past training and validation interactions, before token-budget truncation.
| Past interactions | Beauty | Toys | Yelp |
|---|---|---|---|
| 4–7 | 7 702 | 6 178 | 2 561 |
| 8–15 | 2 186 | 1 651 | 1 417 |
| 16–31 | 698 | 533 | 666 |
| ≥32 | 221 | 149 | 565 |
| Total | 10 807 | 8 511 | 5 209 |
B Baselines
We compare LMSTAR against the following baselines, grouped by their underlying approach:
-
(1) Popularity-based methods. ITEMPOP, GLOBALPOP, and USER-POP [13] rank statements by their frequency in item histories, the training corpus, and user histories, respectively.
-
(2) Neighborhood-based collaborative filtering. RUCF and RICF [17] score statements using Jaccard-based similarities between users and items, respectively.
-
(3a) Collaborative factorization. CD and PITF [17] model ternary and pairwise latent interactions, respectively. BPER [19] combines user–statement and item–statement scores, while BPER-LARGE [41] increases its latent dimension to 768. These models are trained with pairwise BPR objectives [32].
-
(3b) Semantically enhanced factorization. BPER+ [19] integrates BERT embeddings through element-wise multiplication, whereas SE-BPER and SE-BPER+ [41] initialize latent factors from pretrained and task-adapted statement representations, respectively. All retain BPR-based training.
-
(4) Contrastive collaborative learning. CLER [6] learns user, item, and statement ID embeddings using a contrastive NT-BXent objective.
-
(5) Zero-shot neural retrieval. QWEN3-EMBEDDING-8B [45], a pretrained instruction-aware retrieval model, is evaluated without task-specific fine-tuning.
C Evaluation Metrics
For each user–item interaction , let denote the statement ranked at position among the candidates in . We define binary relevance as , where is the
³https://huggingface.co/Qwen/Qwen3.8-27B
⁴https://huggingface.co/Qwen/Qwen3-Embedding-0.6B
⁵https://huggingface.co/Qwen/Qwen3-Reranker-0.6B indicator function. Ranking quality is measured using Precision@k, Recall@k, and NDCG@k [11], defined as:
where the ideal discounted cumulative gain is:
Dataset-level scores are obtained by averaging the interaction-level metrics over the test set.
D Implementation Details
D.1 LMStaR Training Configuration
Unless otherwise specified, we use the same training configuration across backbones and datasets, as summarized in Table 7. The query and statement encoders are initialized as two independent copies of the same pretrained backbone and adapted using LoRA on the query, key, value, and output attention projections. We extract the last non-padding token representation and apply normalization to both embeddings. The query includes the task instruction, target-item metadata, and the user's interaction history, ordered from most recent to oldest and including all available statements for each interaction. We retain the longest history prefix fitting the query token budget, including the target-item metadata. Statement inputs are limited to 256 tokens. Training uses a multi-positive InfoNCE objective with 32 uniformly sampled item-level negatives per interaction. Checkpoints are evaluated every 50 optimization steps and selected according to validation NDCG@5, with early stopping after five evaluations without improvement.
D.2 Backbone-Specific Settings
We evaluate five pretrained models: EmbeddingGemma-300M [37], Qwen3-0.6B [42], and Qwen3-Embedding (0.6B, 4B, 8B) [45]. In particular, EmbeddingGemma-300M uses bidirectional attention, its native query and statement prefixes (task: search result | query: and title: none | text:), and a 2,048-token query limit corresponding to its maximum context length. The Qwen3-based models use causal attention and a 4,096-token query limit. For the 4B and 8B backbones, the physical batch size is reduced from 128 to 64 and gradient accumulation is increased from two to four steps, preserving an effective batch of 256 interactions. All experiments use NVIDIA H200 GPUs (141 GB each), with two GPUs for the 4B and 8B backbones and one GPU for the smaller models. For the full fine-tuning comparison in Table 2, we update all parameters of both encoders, rather than applying LoRA, for each of the two evaluated backbones: EmbeddingGemma-300M and Qwen3-Embedding-0.6B.
Table 7: LMStaR training hyperparameters.
| Hyperparameter | Value |
|---|---|
| LoRA rank / / dropout | 16 / 32 / 0 |
| LoRA target modules | Attention |
| Temperature | 0.1 |
| Negatives per interaction | 32 (item-level) |
| Effective batch | 256 |
| Optimizer / learning rate | AdamW / |
| Weight decay | 0.01 |
| LR schedule / warmup | Cosine / 5% |
| Gradient clipping (max norm) | 1.0 |
| Maximum epochs | 10 |
| Validation interval / patience | 50 steps / 5 evaluations |
| Checkpoint selection | Validation NDCG@5 |
| Numerical precision | bf16 |
| Random seed | 40 |
D.3 Baselines
We follow the original baseline implementations, preserving their architectures, objectives, and training procedures wherever possible. The main adaptation concerns negative sampling, which we align with our item-level ranking setting: for methods requiring negative statements, these are sampled exclusively from the target item's statement pool, excluding positives associated with the corresponding user-item pair. Only statements observed in the training split are eligible as training negatives. At evaluation time, all methods rank the same complete set of candidate statements associated with the target item. Each baseline is evaluated on every dataset using three random seeds (40, 41, and 42), and we report the mean performance across these runs. Statistical baselines are executed on CPUs, purely collaborative models (including CLER) on a single NVIDIA RTX A6000 GPU, and semantics-enhanced models on a single NVIDIA H200 GPU. Detailed implementation settings and hyperparameter configurations are provided in the accompanying code.
E Extended Related Work
Our work lies at the intersection of text-based explainable recommendation and neural retrieval. We review existing approaches to generating and ranking explanations and advances in dense representation learning.
Text-based Explainable Recommendation. Text-based explainable recommendation has evolved from template-based methods [16] to neural generation using RNNs [5, 21], Transformers [18], and more recently pretrained language models and LLMs [20, 22, 24]. Despite advances in fluency, evaluation remains challenging: lexical metrics reward surface overlap [23, 28], semantic metrics do not ensure factual consistency [12, 33, 43], and LLM-based judges can be biased and difficult to reproduce [7, 34]. Moreover, paragraph-level evaluation obscures the relevance of individual explanatory factors. To address these limitations, prior work [13, 17] shifts from free-form generation to ranking short explanatory passages, called statements, selecting the top- candidates as explanations. This enables standardized evaluation using established ranking metrics [11]. Meaningful evaluation further requires statements to be explanatory, atomic, and semantically unique [13].
Ben Kabongo & Vincent Guigue
Statement Ranking Methods. Existing approaches range from statistical baselines to collaborative and semantically enhanced models. Popularity baselines [13] rank statements by their frequency in user histories (USERPOP), item histories (ITEMPOP), or the training corpus (GLOBALPOP). Collaborative approaches exploit user–item–statement interactions: RUCF and RICF aggregate evidence from Jaccard-based neighborhoods, while CD and PITF rely on ternary and pairwise latent factorization, respectively [17]. BPER [19] combines separately learned user–statement and item–statement scores. To incorporate textual semantics, BPER+ [19] combines latent factors with BERT [4] embeddings, whereas SE-BPER and SE-BPER+ initialize latent factors from contextualized statement representations, with the latter introducing task-specific fine-tuning [41]. While these models rely on Bayesian Personalized Ranking (BPR) objective [32], CLER [6] adopts a contrastive NT-BXent loss while retaining ID-based representations.
Explanation ranking distinguishes global-level ranking over all statements from item-level ranking restricted to the target item's statements [13, 17]. While the former resembles large-scale retrieval, the latter more directly assesses personalization. Results on the StAR benchmark [13] show that popularity baselines remain competitive globally, while USERPOP matches or outperforms several state-of-the-art models at the item level, motivating our focus on this setting.
Statement Ranking Datasets. Real-world recommendation datasets contain free-form reviews rather than structured explanatory statements. EXTRA [17] constructs explanation-ranking datasets by extracting review sentences and grouping near-duplicates through
lexical n-gram similarity and locality-sensitive hashing [1]. However, lexical matching may retain non-explanatory content and overlook semantic paraphrases. StAR [13] addresses these limitations through LLM-based statement extraction and a three-stage semantic clustering pipeline combining approximate nearest-neighbor retrieval, reranker-based filtering, and graph-based refinement. We build upon this pipeline with two refinements: an extraction prompt emphasizing the user–item match and stricter reranker-based verification of cluster merges. These changes aim to improve explanatory relevance and semantic consistency.
Neural Retrieval Models. Neural retrieval represents queries and candidates in a shared embedding space, enabling efficient similarity-based ranking with precomputable candidate representations. Early dual-encoder approaches, including DSSM [10], Sentence-BERT [31], and DPR [14], established this paradigm. Subsequent work improved dense retrieval through contrastive learning and hard negative mining [39], large-scale weak supervision [38], and instruction-conditioned representations [36]. More recently, RepLLaMA [25], LLM2Vec [2], and Qwen3-Embedding [45] have extended dense retrieval to LLM-based representations. In recommendation, neural candidate retrieval has been widely adopted [3], while UniSRec [8] and RecFormer [15] leverage textual item information and interaction histories to model user preferences. Recent LLM-based two-tower architectures further extend this paradigm to personalized item retrieval [40]. Building on these advances, LMStAR formulates personalized explanation ranking as dense retrieval, matching textual user–item contexts with candidate explanatory statements.