SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2506.21579 · 2025

LLM2Rec: Large Language Models Are Powerful Embedding Models for Sequential Recommendation

arXiv · PDF · Open in the Atlas

Code that ran

7 of 8 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 7 failures of our instrument; 1 no recorded run), measured 2026-11-24; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2506.21579.json · badge: /api/ran/2506.21579.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
happypointer/llm2rec canonical (classifier label)
classifier basis: census
7 ran · 1 no recorded run
FunctionStatusWhere it lives
cal_bpr_loss Ran
ran; our contract draft was wrong, not the code
happypointer/llm2rec/baselines/EasyRecModel.py
pointer only (licence: NONE) · get_code("3ce965a6dac0dd4b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, happypointer/llm2rec when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

dot_product_scores Ran
ran; our contract draft was wrong, not the code
happypointer/llm2rec/baselines/EasyRecModel.py
pointer only (licence: NONE) · get_code("bf4fb435a6b6eb85")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, happypointer/llm2rec when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

generate_direct_item_prompt_pog Ran
ran; our contract draft was wrong, not the code
happypointer/llm2rec/Baseline_inference.py
pointer only (licence: NONE) · get_code("d4d4d106cec3fcce")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, happypointer/llm2rec when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

generate_title_item_prompt_pog Ran
ran; our contract draft was wrong, not the code
happypointer/llm2rec/Baseline_inference.py
pointer only (licence: NONE) · get_code("1758b59f47d487bc")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, happypointer/llm2rec when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_cosine_schedule_with_warmup Ran
ran; our contract draft was wrong, not the code
happypointer/llm2rec/llm2rec/run_csft.py
pointer only (licence: NONE) · get_code("603780a8016d3c0d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, happypointer/llm2rec when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

initialize_peft Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
happypointer/llm2rec/llm2rec/run_unsupervised_SimCSE.py
pointer only (licence: NONE) · get_code("db52e722750876eb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, happypointer/llm2rec when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

reg_pick_embeds Ran
ran; our contract draft was wrong, not the code
happypointer/llm2rec/baselines/EasyRecModel.py
pointer only (licence: NONE) · get_code("16b97391a1758fda")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, happypointer/llm2rec when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

initialize_peft Not yet run
unverified (harvested, no recorded run)
happypointer/llm2rec/llm2rec/run_mntp.py
pointer only (licence: NONE) · get_code("e3c2d2649981bc40")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, happypointer/llm2rec when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 2 later) and 4 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
cal_bpr_loss 4 other papers
3 dated earlier, 1 later
2308.05697 (2023-08)
SSLRec: A Self-Supervised Learning Framework for Recommendation
2310.15950 (2023-10)
Representation Learning with Large Language Models for Recommendation
2024.findings-emnlp.22 (2024 (year only))
XRec: Large Language Models for Explainable Recommendation
and 1 more not named here
reg_pick_embeds 4 other papers
3 dated earlier, 1 later
2308.05697 (2023-08)
SSLRec: A Self-Supervised Learning Framework for Recommendation
2310.15950 (2023-10)
Representation Learning with Large Language Models for Recommendation
2024.findings-emnlp.22 (2024 (year only))
XRec: Large Language Models for Explainable Recommendation
and 1 more not named here
dot_product_scores 1 other paper
1 dated earlier
2110.03611 (2021-10)
Adversarial Retriever-Ranker for dense text retrieval

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Sequential recommendation aims to predict users' future interactions by modeling collaborative filtering (CF) signals from historical behaviors of similar users or items. Traditional sequential recommenders predominantly rely on ID-based embeddings, which capture CF signals through high-order co-occurrence patterns. However, these embeddings depend solely on past interactions, lacking transferable knowledge to generalize to unseen domains. Recent advances in large language models (LLMs) have motivated text-based recommendation approaches that derive item representations from textual descriptions. While these methods enhance generalization, they fail to encode CF signals-i.e., latent item correlations and preference patterns-crucial for effective recommendation. We argue that an ideal embedding model should seamlessly integrate CF signals with rich semantic representations to improve both in-domain and out-of-domain recommendation performance. To this end, we propose LLM2Rec, a novel embedding model tailored for sequential recommendation, integrating the rich semantic understanding of LLMs with CF awareness. Our approach follows a two-stage training framework: (1) Collaborative Supervised Fine-tuning, which adapts LLMs to infer item relationships based on historical interactions, and (2) Item-level Embedding Modeling, which refines these specialized LLMs into structured item embedding models that encode both semantic and collaborative information. Extensive experiments on real-world datasets demonstrate that LLM2Rec effectively improves recommendation quality across both in-domain and out-of-domain settings. Our findings highlight the potential of leveraging LLMs to build more robust, generalizable embedding models for sequential recommendation. Our codes are available at https://github.com/HappyPointer/LLM2Rec.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2506.21579")
get_code_for_paper("2506.21579")
have("2506.21579")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2506.21579.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2506.21579.svg)](https://syntology.ai/paper/2506.21579)

Connect an agent — have() is free.