SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2312.15661 · 2023

Unlocking the Potential of Large Language Models for Explainable Recommendations

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 5 functions out of this paper's own repositories and ran 4 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
godfire66666/llm_rec_explanation canonical 4 of 5
FunctionStatusWhere it lives
get_instruction Ran godfire66666/llm_rec_explanation/src/gen_compare_result/gen_compare_test_all.py
pointer only (licence: NONE) · get_code("af70d8fb79d3c260")
get_instruction_model Ran godfire66666/llm_rec_explanation/src/gen_compare_result/gen_compare_test_all.py
pointer only (licence: NONE) · get_code("500242b9890a811c")
is_contains_chinese Ran godfire66666/llm_rec_explanation/src/SFT/finetune.py
pointer only (licence: NONE) · get_code("e66dea7f030c0110")
load_instruction Ran godfire66666/llm_rec_explanation/src/SFT/infer.py
pointer only (licence: NONE) · get_code("cb6e8f7a5b600f81")
evaluate Not yet run godfire66666/llm_rec_explanation/src/gen_compare_result/gen_compare_test_all.py
pointer only (licence: NONE) · get_code("f0cdc782b1ad28e9")

Repositories linked to this paper

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

Abstract

Generating user-friendly explanations regarding why an item is recommended has become increasingly common, largely due to advances in language generation technology, which can enhance user trust and facilitate more informed decision-making when using online services. However, existing explainable recommendation systems focus on using small-size language models. It remains uncertain what impact replacing the explanation generator with the recently emerging large language models (LLMs) would have. Can we expect unprecedented results? In this study, we propose LLMXRec, a simple yet effective two-stage explainable recommendation framework aimed at further boosting the explanation quality by employing LLMs. Unlike most existing LLM-based recommendation works, a key characteristic of LLMXRec is its emphasis on the close collaboration between previous recommender models and LLM-based explanation generators. Specifically, by adopting several key fine-tuning techniques, including parameter-efficient instructing tuning and personalized prompt techniques, controllable and fluent explanations can be well generated to achieve the goal of explanation recommendation. Most notably, we provide three different perspectives to evaluate the effectiveness of the explanations. Finally, we conduct extensive experiments over several benchmark recommender models and publicly available datasets. The experimental results not only yield positive results in terms of effectiveness and efficiency but also uncover some previously unknown outcomes. To facilitate further explorations in this area, the full code and detailed original results are open-sourced at https://github.com/GodFire66666/LLM_rec_explanation/.

For agents

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

get_harvested_code_for_paper("2312.15661")
get_code_for_paper("2312.15661")
have("2312.15661")

Connect an agent — have() is free.