{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/lamp-when-large-language-models-meet","title":"LaMP: When Large Language Models Meet Personalization","arxiv_id":"2304.11406","date":"2023-04-22","proceeding":null,"authors":["Alireza Salemi","Sheshera Mysore","Michael Bendersky","Hamed Zamani"],"abstract":"This paper highlights the importance of personalization in large language models and introduces the LaMP benchmark -- a novel benchmark for training and evaluating language models for producing personalized outputs. LaMP offers a comprehensive evaluation framework with diverse language tasks and multiple entries for each user profile. It consists of seven personalized tasks, spanning three text classification and four text generation tasks. We additionally propose two retrieval augmentation approaches that retrieve personal items from each user profile for personalizing language model outputs. To this aim, we study various retrieval models, including term matching, semantic matching, and time-aware methods. Extensive experiments on LaMP for zero-shot and fine-tuned language models demonstrate the efficacy of the proposed retrieval augmentation approach and highlight the impact of personalization in various natural language tasks.","url_abs":"https://arxiv.org/abs/2304.11406v4","url_pdf":"https://arxiv.org/pdf/2304.11406v4.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"lamp-when-large-language-models-meet","repo_url":"https://github.com/Bingo-W/Personalisation-in-LLM","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"lamp-when-large-language-models-meet","repo_url":"https://github.com/TamSiuhin/Per-Pcs","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}},{"paper_slug":"lamp-when-large-language-models-meet","repo_url":"https://github.com/lamp-benchmark/lamp","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}},{"paper_slug":"lamp-when-large-language-models-meet","repo_url":"https://github.com/tamsiuhin/oppu","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"language-modeling","task_name":"Language Modeling"},{"task_slug":"language-modelling","task_name":"Language Modelling"},{"task_slug":"natural-language-understanding","task_name":"Natural Language Understanding"},{"task_slug":"retrieval","task_name":"Retrieval"},{"task_slug":"text-classification","task_name":"Text Classification"},{"task_slug":"text-generation","task_name":"Text Generation"},{"task_slug":"text-classification-1","task_name":"text-classification"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2304.11406","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2304.11406"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/Bingo-W/Personalisation-in-LLM","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/lamp-benchmark/lamp","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/TamSiuhin/Per-Pcs","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/tamsiuhin/oppu","reach":{"status":"ok"}}],"summary":{"ran_draft_wrong":1,"unverified":12},"by_repo_kind":{"listed":{"samples":12,"ran":0,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"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"},"n_pointer_only_for_licence":1,"samples":[{"code_sha256_prefix":"fe0e2df4d9cb5edd","entry":"mean_pooling","repo":null,"repo_kind":null,"path":null,"file_url":null,"link_basis":"identical_code_first_harvested_elsewhere","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":null,"inline_ok":false,"mcp_get_code":{"code_sha256":"fe0e2df4d9cb5edd"}},{"code_sha256_prefix":"b853890170bdd63b","entry":"add_double_quote","repo":"Bingo-W/Personalisation-in-LLM","repo_kind":"listed","path":"data_process/lamp_prompt.py","file_url":"https://github.com/Bingo-W/Personalisation-in-LLM/blob/HEAD/data_process/lamp_prompt.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b853890170bdd63b"}},{"code_sha256_prefix":"23f0b1f0e49789e5","entry":"bm25_for_LaMP_1","repo":"Bingo-W/Personalisation-in-LLM","repo_kind":"listed","path":"retrival_models/bm25.py","file_url":"https://github.com/Bingo-W/Personalisation-in-LLM/blob/HEAD/retrival_models/bm25.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"23f0b1f0e49789e5"}},{"code_sha256_prefix":"ea15f50f0290cb27","entry":"bm25_for_LaMP_2","repo":"Bingo-W/Personalisation-in-LLM","repo_kind":"listed","path":"retrival_models/bm25.py","file_url":"https://github.com/Bingo-W/Personalisation-in-LLM/blob/HEAD/retrival_models/bm25.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ea15f50f0290cb27"}},{"code_sha256_prefix":"e8b485a887f3a97c","entry":"bm25_for_LaMP_2_old","repo":"Bingo-W/Personalisation-in-LLM","repo_kind":"listed","path":"retrival_models/bm25.py","file_url":"https://github.com/Bingo-W/Personalisation-in-LLM/blob/HEAD/retrival_models/bm25.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e8b485a887f3a97c"}},{"code_sha256_prefix":"24c2f3f44b2eb90f","entry":"build_random_fn","repo":"Bingo-W/Personalisation-in-LLM","repo_kind":"listed","path":"retrival_models/random_selection.py","file_url":"https://github.com/Bingo-W/Personalisation-in-LLM/blob/HEAD/retrival_models/random_selection.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"24c2f3f44b2eb90f"}},{"code_sha256_prefix":"e0c399c2fee303db","entry":"construct_for_llama2","repo":"Bingo-W/Personalisation-in-LLM","repo_kind":"listed","path":"data_process/utils.py","file_url":"https://github.com/Bingo-W/Personalisation-in-LLM/blob/HEAD/data_process/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e0c399c2fee303db"}},{"code_sha256_prefix":"3904f6728f0da676","entry":"contact","repo":"Bingo-W/Personalisation-in-LLM","repo_kind":"listed","path":"data_process/lamp_prompt.py","file_url":"https://github.com/Bingo-W/Personalisation-in-LLM/blob/HEAD/data_process/lamp_prompt.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3904f6728f0da676"}},{"code_sha256_prefix":"4d32a60c24f98603","entry":"extract_quote","repo":"Bingo-W/Personalisation-in-LLM","repo_kind":"listed","path":"retrival_models/utils.py","file_url":"https://github.com/Bingo-W/Personalisation-in-LLM/blob/HEAD/retrival_models/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4d32a60c24f98603"}},{"code_sha256_prefix":"6e3557815a51535b","entry":"list_merge","repo":"Bingo-W/Personalisation-in-LLM","repo_kind":"listed","path":"data_process/utils.py","file_url":"https://github.com/Bingo-W/Personalisation-in-LLM/blob/HEAD/data_process/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6e3557815a51535b"}},{"code_sha256_prefix":"0d2320ebef045b45","entry":"merge_user_profile","repo":"Bingo-W/Personalisation-in-LLM","repo_kind":"listed","path":"data_process/utils.py","file_url":"https://github.com/Bingo-W/Personalisation-in-LLM/blob/HEAD/data_process/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"0d2320ebef045b45"}},{"code_sha256_prefix":"a92fdabe69c67804","entry":"random_in_user","repo":"Bingo-W/Personalisation-in-LLM","repo_kind":"listed","path":"retrival_models/random_selection.py","file_url":"https://github.com/Bingo-W/Personalisation-in-LLM/blob/HEAD/retrival_models/random_selection.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a92fdabe69c67804"}},{"code_sha256_prefix":"e26359c5ce67f9d1","entry":"reorder_list_middle","repo":"Bingo-W/Personalisation-in-LLM","repo_kind":"listed","path":"data_process/lamp_prompt.py","file_url":"https://github.com/Bingo-W/Personalisation-in-LLM/blob/HEAD/data_process/lamp_prompt.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e26359c5ce67f9d1"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}