Skip to main content
QUICK REVIEW

[Paper Review] PromptBoosting: Black-Box Text Classification with Ten Forward Passes

Bairu Hou, Joe O’Connor|arXiv (Cornell University)|Dec 19, 2022
Natural Language Processing TechniquesComputer Science11 citations
TL;DR

PromptBoosting is a query-efficient black-box text classification method that bypasses prompt optimization by constructing an ensemble of weak learners from a small set of prompts and the language model's output distribution. It achieves state-of-the-art performance in few-shot and standard settings with only ten forward passes per batch, outperforming existing black-box methods and matching full fine-tuning while being 10x faster.

ABSTRACT

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.

Motivation & Objective

  • To address the high computational cost of black-box prompt tuning in large language models (LMs) where parameters, gradients, and hidden states are inaccessible.
  • To reduce the number of LM queries required for effective prompt-based classification without relying on gradient-based optimization.
  • To develop a method that maintains high performance while drastically improving inference efficiency in black-box settings.
  • To demonstrate that prompt quality can be compensated through ensemble learning over the model's output distribution (verbalizer).
  • To enable efficient adaptation of LMs to downstream tasks without access to model internals, especially in real-world cloud-based LM services.

Proposed method

  • PromptBoosting first generates a small pool of sub-optimal prompts using a gradient-free method, avoiding costly prompt optimization.
  • It then creates a large pool of weak learners by pairing each prompt with different elements of the LM’s output distribution (verbalizer), such as class-specific tokens.
  • These weak learners are ensembled using the AdaBoost algorithm, where optimization is performed only over the verbalizer in each iteration, not the prompt.
  • The entire process requires only forward passes through the LM—no backward passes or gradient computation are needed.
  • The method leverages the inherent diversity in the LM’s output distribution to create strong ensemble predictions without tuning the prompt.
  • The framework is query-efficient, requiring only ten forward passes per batch, and is compatible with both few-shot and full-data training.

Experimental results

Research questions

  • RQ1Can a black-box text classifier be built with minimal LM queries while maintaining high accuracy?
  • RQ2Does ensembling weak learners derived from a fixed set of prompts and the LM’s output distribution outperform prompt optimization in black-box settings?
  • RQ3Can a method achieve performance comparable to full fine-tuning without access to model parameters or gradients?
  • RQ4How does the number of prompts affect the performance and efficiency of the ensemble?
  • RQ5Is the method robust to the quality of the initial prompt pool, given that prompts are not optimized for the task?

Key findings

  • PromptBoosting achieves state-of-the-art performance on multiple few-shot text classification benchmarks, including GLUE and Hugging Face NLI tasks.
  • On the QNLI dataset, PromptBoosting significantly improves performance over individual prompts, reaching 84.6% accuracy with 10 prompts, compared to only 41.3% with a single prompt.
  • The method matches or exceeds the performance of full fine-tuning in both few-shot and full-data training settings.
  • PromptBoosting runs 10x faster than existing black-box prompt learning methods, requiring only ten forward passes per batch.
  • The performance remains competitive across different prompt generation methods (e.g., LM-BFF, PET, manual prompts), confirming the robustness of the ensemble mechanism.
  • Increasing the number of prompts from 10 to 20 yields only marginal performance gains, indicating that 10 prompts are sufficient for optimal performance.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.