Papers › Customizing Language Models with Instance-wise LoRA for Sequential Recommendation

Customizing Language Models with Instance-wise LoRA for Sequential Recommendation

19 Aug 2024arXiv:2408.10159archive 2025-07-28

Xiaoyu Kong, Jiancan Wu, An Zhang, Leheng Sheng, Hui Lin, Xiang Wang, Xiangnan He

Sequential recommendation systems predict the next interaction item based on users' past interactions, aligning recommendations with individual preferences. Leveraging the strengths of Large Language Models (LLMs) in knowledge comprehension and reasoning, recent approaches are eager to apply LLMs to sequential recommendation. A common paradigm is converting user behavior sequences into instruction data, and fine-tuning the LLM with parameter-efficient fine-tuning (PEFT) methods like Low-Rank Adaption (LoRA). However, the uniform application of LoRA across diverse user behaviors is insufficient to capture individual variability, resulting in negative transfer between disparate sequences. To address these challenges, we propose Instance-wise LoRA (iLoRA). We innovatively treat the sequential recommendation task as a form of multi-task learning, integrating LoRA with the Mixture of Experts (MoE) framework. This approach encourages different experts to capture various aspects of user behavior. Additionally, we introduce a sequence representation guided gate function that generates customized expert participation weights for each user sequence, which allows dynamic parameter adjustment for instance-wise recommendations. In sequential recommendation, iLoRA achieves an average relative improvement of 11.4\% over basic LoRA in the hit ratio metric, with less than a 1\% relative increase in trainable parameters. Extensive experiments on three benchmark datasets demonstrate the effectiveness of iLoRA, highlighting its superior performance compared to existing methods in mitigating negative transfer and improving recommendation accuracy. Our data and code are available at https://github.com/AkaliKong/iLoRA.

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

Code

Syntology Ran 8 of 13 code samples harvested from 1 repository linked to this paper; 5 have no recorded run. Of those that ran: 1 ran · fixture could not drive it; 7 ran with no contract checked.

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

akalikong/ilora 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

13 samples harvested; 8 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 · fixture could not drive it
7ran
5unverified

Licence: 13 of the 13 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 akalikong/ilora. “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.

Dense akalikong/ilora/model/peft/tuners/moelora.py official repository ran no licence file found · pointer only · 0f7faa1a9bdea8d3 · report
Drop akalikong/ilora/model/peft/tuners/moelora.py official repository ran no licence file found · pointer only · 7f027e7b0075c867 · report
MLP akalikong/ilora/model/peft/tuners/moelora.py official repository ran no licence file found · pointer only · bd31da13616cefc1 · report
MLP_noise akalikong/ilora/model/peft/tuners/moelora.py official repository ran no licence file found · pointer only · 8ae2a6c35d209940 · report
MoeLoraLayer akalikong/ilora/model/peft/tuners/moelora.py official repository ran no licence file found · pointer only · cab304c6fe8e399f · report
Noise akalikong/ilora/model/peft/tuners/moelora.py official repository ran no licence file found · pointer only · 752e59eb5fe15c43 · report
extract_axis_1 AkaliKong/iLoRA/recommender/A_SASRec_final_bce_llm.py official repository ran · fixture could not drive it no licence file found · pointer only · 66b65be6c96f7959 · report
topK akalikong/ilora/model/peft/tuners/moelora.py official repository ran no licence file found · pointer only · 559c0fdcb9d02e48 · report
Conv2d akalikong/ilora/model/peft/tuners/moelora.py official repository unverified no licence file found · pointer only · 9d19ea5c94bfb203 · report
Embedding akalikong/ilora/model/peft/tuners/moelora.py official repository unverified no licence file found · pointer only · fdb24ec07f306248 · report
Linear akalikong/ilora/model/peft/tuners/moelora.py official repository unverified no licence file found · pointer only · 9d07ddd15e3baf47 · report
MoeLoraModel akalikong/ilora/model/peft/tuners/moelora.py official repository unverified no licence file found · pointer only · 18f6c92d1729ae16 · report
mark_only_lora_as_trainable akalikong/ilora/model/peft/tuners/moelora.py official repository unverified no licence file found · pointer only · 3ab2cfc21d501f78 · report

Tasks

Mixture-of-ExpertsMulti-Task LearningRecommendation SystemsSequential RecommendationText Generationparameter-efficient fine-tuning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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