Papers › Text-like Encoding of Collaborative Information in Large Language Models for Recommendation

Text-like Encoding of Collaborative Information in Large Language Models for Recommendation

5 Jun 2024arXiv:2406.03210archive 2025-07-28

Yang Zhang, Keqin Bao, Ming Yan, Wenjie Wang, Fuli Feng, Xiangnan He

When adapting Large Language Models for Recommendation (LLMRec), it is crucial to integrate collaborative information. Existing methods achieve this by learning collaborative embeddings in LLMs' latent space from scratch or by mapping from external models. However, they fail to represent the information in a text-like format, which may not align optimally with LLMs. To bridge this gap, we introduce BinLLM, a novel LLMRec method that seamlessly integrates collaborative information through text-like encoding. BinLLM converts collaborative embeddings from external models into binary sequences -- a specific text format that LLMs can understand and operate on directly, facilitating the direct usage of collaborative information in text-like format by LLMs. Additionally, BinLLM provides options to compress the binary sequence using dot-decimal notation to avoid excessively long lengths. Extensive experiments validate that BinLLM introduces collaborative information in a manner better aligned with LLMs, resulting in enhanced performance. We release our code at https://github.com/zyang1580/BinLLM.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2406.03210")

Code

Syntology Ran 11 of 16 code samples harvested from 1 repository linked to this paper; 5 have no recorded run. Of those that ran: 1 ran · violated contract; 1 ran · our draft was wrong; 1 ran · fixture could not drive it; 8 ran with no contract checked.

By repository: official repository: 16 samples from 1 repository, 11 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

zyang1580/binllm officialmentioned in paperpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

16 samples harvested; 11 ran; 0 honoured the contract we drafted; 5 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · violated contract
1ran · our draft was wrong
1ran · fixture could not drive it
8ran
5unverified

Licence: 16 of the 16 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from zyang1580/binllm. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

apply_rotary_pos_emb zyang1580/binllm/minigpt4/models/modeling_llama.py official repository ran · fixture could not drive it no licence file found · pointer only · 9b4dff79d5e6102c · report
binarize zyang1580/BinLLM/minigpt4/models/rec_base_models.py official repository ran · metamorphic tier: deterministic fingerprinted no licence file found · pointer only · 2f7ae58aeda42ee6 · report
consitence_loss zyang1580/binllm/minigpt4/models/minigpt4rec_v2.py official repository ran fingerprinted no licence file found · pointer only · 618026ac54baafd8 · report
disabled_train zyang1580/binllm/minigpt4/models/rec_model.py official repository ran · violated contract no licence file found · pointer only · 4cb732f513d69dfd · report
find_max zyang1580/binllm/search_result.py official repository ran no licence file found · pointer only · 72cd9bb66c87c9d0 · report
get_ids_order zyang1580/binllm/minigpt4/models/minigpt4rec_v2.py official repository ran no licence file found · pointer only · b7efbc30fb95ec93 · report
my_sign zyang1580/BinLLM/minigpt4/models/rec_base_models.py official repository ran no licence file found · pointer only · 7bc4b73f93871086 · report
ndcg_at_k zyang1580/binllm/used_metrics.py official repository ran no licence file found · pointer only · d12e2622a49a925e · report
precision_at_k zyang1580/binllm/used_metrics.py official repository ran no licence file found · pointer only · ca85fc22ecc0f5f8 · report
rotate_half zyang1580/binllm/minigpt4/models/modeling_llama.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · b99eea6376d1e212 · report
tile zyang1580/binllm/minigpt4/models/base_model.py official repository ran fingerprinted no licence file found · pointer only · cb33571427334815 · report
all_gather_with_grad zyang1580/binllm/minigpt4/models/base_model.py official repository unverified no licence file found · pointer only · 0ec9fc2025c16f65 · report
dcg_at_k zyang1580/binllm/used_metrics.py official repository unverified no licence file found · pointer only · fe8008467e8c8035 · report
sparseFeature zyang1580/binllm/minigpt4/models/rec_base_models.py official repository unverified no licence file found · pointer only · 56235b6c0304098a · report
uAUC_me zyang1580/binllm/hashGNN.py official repository unverified no licence file found · pointer only · 24bc7e3f0445fbe0 · report
varlenSparseFeature zyang1580/binllm/minigpt4/models/rec_base_models.py official repository unverified no licence file found · pointer only · 9bb7552e2df64ddb · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

ALIGN

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections