Papers › Inference-Time Policy Adapters (IPA): Tailoring Extreme-Scale LMs without Fine-tuning

Inference-Time Policy Adapters (IPA): Tailoring Extreme-Scale LMs without Fine-tuning

24 May 2023arXiv:2305.15065archive 2025-07-28

Ximing Lu, Faeze Brahman, Peter West, Jaehun Jang, Khyathi Chandu, Abhilasha Ravichander, Lianhui Qin, Prithviraj Ammanabrolu, Liwei Jiang, Sahana Ramnath, Nouha Dziri, Jillian Fisher, Bill Yuchen Lin, Skyler Hallinan, Xiang Ren, Sean Welleck, Yejin Choi

While extreme-scale language models have demonstrated exceptional performance on a variety of language tasks, the degree of control over these language models through pure prompting can often be limited. Directly fine-tuning such language models can be effective for tailoring them, but it can be either extremely costly (e.g., GPT-3) or not even feasible for the broader community (e.g., GPT-4). We propose Inference-time Policy Adapters (IPA), which efficiently tailors a language model such as GPT-3 without fine-tuning it. IPA guides a large base model during decoding time through a lightweight policy adapter trained to optimize an arbitrary user objective with reinforcement learning. On five challenging text generation tasks, such as toxicity reduction and lexically constrained generation, IPA consistently brings significant improvements over off-the-shelf language models. It outperforms competitive baseline methods, sometimes even including expensive fine-tuning. In particular, tailoring GPT-2 with IPA can outperform GPT-3, while tailoring GPT-3 with IPA brings a major performance boost over GPT-3 (and sometimes even over GPT-4). Our promising results highlight the potential of IPA as a lightweight alternative to tailoring extreme-scale language models.

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

Code

Syntology Ran 9 of 11 code samples harvested from 1 repository linked to this paper; 2 have no recorded run. Of those that ran: 2 ran · honoured contract; 3 ran · our draft was wrong; 1 ran · fixture could not drive it; 3 ran with no contract checked.

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

gximinglu/ipa 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

11 samples harvested; 9 ran; 2 honoured the contract we drafted; 2 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.

2ran · honoured contract
3ran · our draft was wrong
1ran · fixture could not drive it
3ran
2unverified

Licence: 0 of the 11 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 gximinglu/ipa. “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.

Clause gximinglu/ipa/policy.py official repository ran Apache-2.0 (permissive) · 09533ca3a50beeb9 · report
ConstrainedHypothesis gximinglu/ipa/policy.py official repository ran Apache-2.0 (permissive) · 829dc5027203efb2 · report
Literal gximinglu/ipa/policy.py official repository ran Apache-2.0 (permissive) · 26f86b735923a213 · report
add_control_code gximinglu/ipa/policy.py official repository ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · bbdcee6294271ede · report
get_response_logits gximinglu/ipa/policy.py official repository ran · our draft was wrong Apache-2.0 (permissive) · a5b9efe1547f6da6 · report
init_batch gximinglu/ipa/policy.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 17bed87cd7624c0f · report
mask_pad gximinglu/ipa/policy.py official repository ran · honoured contract fingerprinted Apache-2.0 (permissive) · 3cb3f78a134bd16d · report
process_generation gximinglu/ipa/policy.py official repository ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 429406ae7594ed3d · report
remove_control_code gximinglu/ipa/policy.py official repository ran · honoured contract fingerprinted Apache-2.0 (permissive) · ba8e7009fad31689 · report
Policy gximinglu/ipa/policy.py official repository unverified Apache-2.0 (permissive) · 4e0ff675e558ddf8 · report
get_model_output gximinglu/ipa/policy.py official repository unverified Apache-2.0 (permissive) · 967107de3b5957a5 · report

Tasks

Language ModelingLanguage ModellingText Generationreinforcement-learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AdamAdapterAttentionAttention DropoutBASEBPECosine AnnealingDense ConnectionsDiscriminative Fine-TuningDropoutGPT-2GPT-3Layer NormalizationLinear LayerLinear Warmup With Cosine AnnealingMulti-Head AttentionResidual ConnectionSoftmaxWeight 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