Papers › LightLM: A Lightweight Deep and Narrow Language Model for Generative Recommendation

LightLM: A Lightweight Deep and Narrow Language Model for Generative Recommendation

26 Oct 2023arXiv:2310.17488archive 2025-07-28

Kai Mei, Yongfeng Zhang

This paper presents LightLM, a lightweight Transformer-based language model for generative recommendation. While Transformer-based generative modeling has gained importance in various AI sub-fields such as NLP and vision, generative recommendation is still in its infancy due to its unique demand on personalized generative modeling. Existing works on generative recommendation often use NLP-oriented Transformer architectures such as T5, GPT, LLaMA and M6, which are heavy-weight and are not specifically designed for recommendation tasks. LightLM tackles the issue by introducing a light-weight deep and narrow Transformer architecture, which is specifically tailored for direct generation of recommendation items. This structure is especially apt for straightforward generative recommendation and stems from the observation that language model does not have to be too wide for this task, as the input predominantly consists of short tokens that are well-suited for the model's capacity. We also show that our devised user and item ID indexing methods, i.e., Spectral Collaborative Indexing (SCI) and Graph Collaborative Indexing (GCI), enables the deep and narrow Transformer architecture to outperform large-scale language models for recommendation. Besides, to address the hallucination problem of generating items as output, we propose the constrained generation process for generative recommenders. Experiments on real-world datasets show that LightLM outperforms various competitive baselines in terms of both recommendation accuracy and efficiency. The code can be found at https://github.com/dongyuanjushi/LightLM.

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="2310.17488")

Code

Syntology Ran 11 of 12 code samples harvested from 1 repository linked to this paper; 1 has no recorded run. Of those that ran: 1 ran · violated contract; 10 ran with no contract checked.

By repository: official repository: 12 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.

dongyuanjushi/lightlm officialmentioned in papermentioned on GitHubpytorch 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

12 samples harvested; 11 ran; 0 honoured the contract we drafted; 1 has 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
10ran
1unverified

Licence: 12 of the 12 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 dongyuanjushi/lightlm. “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.

CF_representation dongyuanjushi/lightlm/indexing/rep_method.py official repository ran no licence file found · pointer only · fd846716290f640c · report
amazon_asin dongyuanjushi/lightlm/indexing/rep_method.py official repository ran no licence file found · pointer only · 541290c22843b04e · report
calculate_whole_word_ids dongyuanjushi/lightlm/utils/data.py official repository ran no licence file found · pointer only · 2bb3789deb444247 · report
composite_function dongyuanjushi/lightlm/indexing/CF_index.py official repository ran no licence file found · pointer only · 89abb655800e1331 · report
compute_index_without_extra dongyuanjushi/lightlm/indexing/graph_index.py official repository ran no licence file found · pointer only · 4d2840078ddc4710 · report
construct_indices_from_graph dongyuanjushi/lightlm/indexing/graph_index.py official repository ran no licence file found · pointer only · 81b463b5a06c7a2e · report
no_tokenization dongyuanjushi/lightlm/indexing/rep_method.py official repository ran no licence file found · pointer only · c0601c71874951cc · report
normalize dongyuanjushi/lightlm/indexing/GID_generation.py official repository ran fingerprinted no licence file found · pointer only · 8caf0473d6628d9d · report
one_further_indexing dongyuanjushi/lightlm/indexing/CF_index.py official repository ran no licence file found · pointer only · 780859af55584d41 · report
one_further_indexing dongyuanjushi/lightlm/indexing/co_CID_generation.py official repository ran no licence file found · pointer only · a4111d01bf35a82f · report
sigmoid dongyuanjushi/lightlm/indexing/GID_generation.py official repository ran · violated contract fingerprinted no licence file found · pointer only · f35babe3912ec8b1 · report
eigenDecomposition dongyuanjushi/lightlm/indexing/CF_index.py official repository unverified no licence file found · pointer only · 8d6ca2a87339d5e6 · report

Tasks

HallucinationLanguage ModelingLanguage Modelling

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Absolute Position EncodingsAdafactorAdamAttentionAttention DropoutBPECosine AnnealingDense ConnectionsDiscriminative Fine-TuningDropoutGPTGated Linear UnitInverse Square Root ScheduleLabel SmoothingLayer NormalizationLinear LayerLinear Warmup With Cosine AnnealingMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSentencePieceSoftmaxT5TransformerWeight Decay

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