SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2404.05970 · 2024

Optimization Methods for Personalizing Large Language Models through Retrieval Augmentation

arXiv · PDF · Open in the Atlas

Code that ran

8 of 8 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 8 failures of our instrument; 0 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2404.05970.json · badge: /api/ran/2404.05970.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
lamp-benchmark/lamp canonical (classifier label)
classifier basis: census
8 ran · 0 no recorded run
FunctionStatusWhere it lives
extract_after_article Ran
ran; our contract draft was wrong, not the code
lamp-benchmark/lamp/LaMP/prompts/utils.py
pointer only (licence: NONE); the stored copy get_code serves, from kimdanny/fair-rag, is pointer only (licence: NONE) · get_code("3c022e0b56a5b9aa")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lamp-benchmark/lamp when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

extract_after_description Ran
ran; our contract draft was wrong, not the code
lamp-benchmark/lamp/LaMP/prompts/utils.py
pointer only (licence: NONE); the stored copy get_code serves, from kimdanny/fair-rag, is pointer only (licence: NONE) · get_code("490005de8edac2a7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lamp-benchmark/lamp when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

extract_strings_between_quotes Ran
ran; our contract draft was wrong, not the code
lamp-benchmark/lamp/LaMP/prompts/utils.py
pointer only (licence: NONE); the stored copy get_code serves, from kimdanny/fair-rag, is pointer only (licence: NONE) · get_code("f11dc768dc0cbefb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lamp-benchmark/lamp when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

mean_pooling Ran
ran; our contract draft was wrong, not the code
lamp-benchmark/lamp/LaMP/rank_profiles.py
pointer only (licence: NONE); the stored copy get_code serves, from chenyiqun/MMOA-RAG, is pointer only (licence: NONE) · get_code("fe0e2df4d9cb5edd")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lamp-benchmark/lamp when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

merge Ran
ran; our contract draft was wrong, not the code
lamp-benchmark/lamp/LaMP/utils/merge_with_rank.py
pointer only (licence: NONE) · get_code("702b3adb25f03d63")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lamp-benchmark/lamp when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

postprocess_text Ran
ran; our contract draft was wrong, not the code
lamp-benchmark/lamp/LaMP/metrics/generation_metrics.py
pointer only (licence: NONE); the stored copy get_code serves, from jingyng/label-adaptive-self-rationalization, is pointer only (licence: NONE) · get_code("8b51adb8a6c014e5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lamp-benchmark/lamp when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

postprocess_text Ran
ran; our contract draft was wrong, not the code
lamp-benchmark/lamp/LaMP/metrics/classification_metrics.py
pointer only (licence: NONE) · get_code("1bea9980ec25d1c5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lamp-benchmark/lamp when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

retrieve_top_k_with_bm25 Ran
ran; our contract draft was wrong, not the code
lamp-benchmark/lamp/LaMP/rank_profiles.py
pointer only (licence: NONE) · get_code("a471ce335b09d080")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, lamp-benchmark/lamp when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 6 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 5 later) and 2 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
mean_pooling 15 other papers
5 dated earlier, 10 later
2304.11406 (2023-04)
LaMP: When Large Language Models Meet Personalization
2305.18395 (2023-05)
Knowledge-Augmented Reasoning Distillation for Small Language Models in Knowledge-Intensive Tasks
2308.04275 (2023-08)
In-Context Alignment: Chat with Vanilla Language Models Before Fine-Tuning
and 12 more not named here
postprocess_text 4 other papers
1 dated earlier, 3 later
2022.findings-emnlp.174 (2022 (year only))
CodeExp: Explanatory Code Document Generation
2406.02888 (2024-06)
HYDRA: Model Factorization Framework for Black-Box LLM Personalization
2410.04002 (2024-10)
Take It Easy: Label-Adaptive Self-Rationalization for Fact Verification and Explanation Generation
and 1 more not named here
extract_after_article 2 other papers
2 later
2406.02888 (2024-06)
HYDRA: Model Factorization Framework for Black-Box LLM Personalization
2409.11598 (2024-09)
Towards Fair RAG: On the Impact of Fair Ranking in Retrieval-Augmented Generation
extract_after_description 2 other papers
2 later
2406.02888 (2024-06)
HYDRA: Model Factorization Framework for Black-Box LLM Personalization
2409.11598 (2024-09)
Towards Fair RAG: On the Impact of Fair Ranking in Retrieval-Augmented Generation
extract_strings_between_quotes 2 other papers
2 later
2406.02888 (2024-06)
HYDRA: Model Factorization Framework for Black-Box LLM Personalization
2409.11598 (2024-09)
Towards Fair RAG: On the Impact of Fair Ranking in Retrieval-Augmented Generation
postprocess_text 1 other paper
1 same year, order not determinable
2024.findings-emnlp.131 (2024 (year only))
SYNTQA: Synergistic Table-based Question Answering via Mixture of Text-to-SQL and E2E TQA

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

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

Abstract

This paper studies retrieval-augmented approaches for personalizing large language models (LLMs), which potentially have a substantial impact on various applications and domains. We propose the first attempt to optimize the retrieval models that deliver a limited number of personal documents to large language models for the purpose of personalized generation. We develop two optimization algorithms that solicit feedback from the downstream personalized generation tasks for retrieval optimization -- one based on reinforcement learning whose reward function is defined using any arbitrary metric for personalized generation and another based on knowledge distillation from the downstream LLM to the retrieval model. This paper also introduces a pre- and post-generation retriever selection model that decides what retriever to choose for each LLM input. Extensive experiments on diverse tasks from the language model personalization (LaMP) benchmark reveal statistically significant improvements in six out of seven datasets.

For agents

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

get_harvested_code_for_paper("2404.05970")
get_code_for_paper("2404.05970")
have("2404.05970")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2404.05970.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2404.05970.svg)](https://syntology.ai/paper/2404.05970)

Connect an agent — have() is free.