Papers › PromptBoosting: Black-Box Text Classification with Ten Forward Passes

PromptBoosting: Black-Box Text Classification with Ten Forward Passes

19 Dec 2022arXiv:2212.09257archive 2025-07-28

Bairu Hou, Joe O'Connor, Jacob Andreas, Shiyu Chang, Yang Zhang

We describe PromptBoosting, a query-efficient procedure for building a text classifier from a neural language model (LM) without access to the LM's parameters, gradients, or hidden representations. This form of "black-box" classifier training has become increasingly important as the cost of training and inference in large-scale LMs grows. But existing black-box LM classifier learning approaches are themselves computationally inefficient, typically specializing LMs to the target task by searching in a large space of (discrete or continuous) prompts using zeroth-order optimization methods. Instead of directly optimizing in prompt space, PromptBoosting obtains a small pool of prompts via a gradient-free approach and then constructs a large pool of weak learners by pairing these prompts with different elements of the LM's output distribution. These weak learners are then ensembled using the AdaBoost algorithm. The entire learning process requires only a small number of forward passes and no backward pass. Experiments show that PromptBoosting achieves state-of-the-art performance in multiple black-box few-shot classification tasks, and matches or outperforms full fine-tuning in both few-shot and standard learning paradigms, while training 10x faster than existing black-box methods.

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

Code

Syntology Ran 5 of 11 code samples harvested from 2 repositories linked to this paper; 6 have no recorded run. Of those that ran: 1 ran · our draft was wrong; 4 ran with no contract checked.

By repository: official repository: 3 samples from 1 repository, 1 ran; community (archive-listed): 8 samples from 1 repository, 4 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

ucsb-nlp-chang/promptboosting officialmentioned in paperpytorch report
zcrwind/prefer mentioned 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; 5 ran; 0 honoured the contract we drafted; 6 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 · our draft was wrong
4ran
6unverified

Licence: 3 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 2 repositories linked to this paper, official or community; each sample names its own and says which. “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.

load_datasets ucsb-nlp-chang/promptboosting/scripts/generate_k_shot_data.py official repository ran · our draft was wrong no licence file found · pointer only · aa8835750b7967cd · report
get_label ucsb-nlp-chang/promptboosting/scripts/generate_k_shot_data.py official repository unverified no licence file found · pointer only · 304c3d4159dc6bfe · report
split_header ucsb-nlp-chang/promptboosting/scripts/generate_k_shot_data.py official repository unverified no licence file found · pointer only · 54f8d13ea8aad5c6 · report
BaseModel zcrwind/prefer/src/multicls_trainer.py community (archive-listed) ran MIT (permissive) · 3f1f55bc76a0d531 · report
BaseMuticlsTrainer zcrwind/prefer/src/multicls_trainer.py community (archive-listed) ran MIT (permissive) · 5d2c3ddeee791f10 · report
SentenceTemplate zcrwind/prefer/src/multicls_trainer.py community (archive-listed) ran MIT (permissive) · 970c8a82aad02567 · report
VTuningOutput zcrwind/prefer/src/multicls_trainer.py community (archive-listed) ran MIT (permissive) · 39f6235b4ac9a14c · report
PromptBoostingTrainer zcrwind/prefer/src/multicls_trainer.py community (archive-listed) unverified MIT (permissive) · 465ec3f4b677b5d8 · report
RoBERTaVTuningClassification zcrwind/prefer/src/multicls_trainer.py community (archive-listed) unverified MIT (permissive) · 22f2c0be4c2641d9 · report
TestPredictionSaver zcrwind/prefer/src/multicls_trainer.py community (archive-listed) unverified MIT (permissive) · ccf4038d8b3a7c59 · report
generate_multicls_l1_label_set_with_cache zcrwind/prefer/src/multicls_trainer.py community (archive-listed) unverified MIT (permissive) · 4177055e7fb0c42c · report

Tasks

ClassificationLanguage ModellingText Classificationtext-classification

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