Skip to main content
QUICK REVIEW

[Paper Review] An Information-theoretic Approach to Prompt Engineering Without Ground Truth Labels

Taylor Sorensen, Joshua A. Robinson|arXiv (Cornell University)|Mar 21, 2022
Natural Language Processing TechniquesComputer Science5 citations
TL;DR

This paper proposes a novel, label-free prompt engineering method that selects optimal prompt templates by maximizing mutual information (MI) between input and model output, eliminating the need for ground truth labels or model parameter access. On eight diverse NLP tasks, the MI-based method achieves 90% of the way from average to best prompt accuracy—matching oracle-level performance without labels or model weights.

ABSTRACT

Pre-trained language models derive substantial linguistic and factual knowledge from the massive corpora on which they are trained, and prompt engineering seeks to align these models to specific tasks. Unfortunately, existing prompt engineering methods require significant amounts of labeled data, access to model parameters, or both. We introduce a new method for selecting prompt templates extit{without labeled examples} and extit{without direct access to the model}. Specifically, over a set of candidate templates, we choose the template that maximizes the mutual information between the input and the corresponding model output. Across 8 datasets representing 7 distinct NLP tasks, we show that when a template has high mutual information, it also has high accuracy on the task. On the largest model, selecting prompts with our method gets 90\% of the way from the average prompt accuracy to the best prompt accuracy and requires no ground truth labels.

Motivation & Objective

  • To address the challenge of prompt engineering in low-resource settings where labeled data is scarce or unavailable.
  • To eliminate dependency on model parameters or ground truth labels for selecting effective prompt templates.
  • To develop a method that predicts prompt performance using only input-output statistics from a frozen language model.
  • To demonstrate that mutual information between input and model output serves as a strong surrogate for downstream task accuracy.
  • To enable prompt selection for closed-source or black-box language models where gradient-based optimization is infeasible.

Proposed method

  • The method selects prompt templates by estimating mutual information (MI) between input tokens and model-generated outputs.
  • For each candidate template, the model generates outputs on a held-out set of inputs, and the MI between input and output distributions is computed.
  • MI is estimated using a non-parametric k-nearest neighbor approach on the joint distribution of input and output token sequences.
  • The template with the highest estimated MI is selected as the most informative and likely to yield high task accuracy.
  • The approach operates entirely on the output of a frozen language model, requiring no fine-tuning or access to model weights.
  • Token sets are collapsed to reduce output variance, improving MI estimation stability.

Experimental results

Research questions

  • RQ1Can mutual information between input and model output serve as a reliable proxy for downstream task accuracy in prompt selection?
  • RQ2To what extent can MI-based prompt selection match performance of oracle prompt selection without using ground truth labels?
  • RQ3How does the MI-based method perform across diverse NLP tasks and model sizes, especially when labels are unavailable?
  • RQ4Does the method generalize across different prompt templates and input distributions?
  • RQ5Can MI estimation identify high-performing prompts even when model parameters are inaccessible?

Key findings

  • On the largest model (GPT-3 Davinci, 175B), the MI-based method achieved 90% of the way from average prompt accuracy to the best prompt accuracy, without using any ground truth labels.
  • The method selected the best-performing prompt on three out of eight datasets, demonstrating strong predictive power.
  • A strong positive correlation was observed between mutual information and downstream task accuracy across all eight datasets and seven NLP tasks.
  • The method outperformed random and mean template selection, consistently ranking near the top in performance without access to labels or model weights.
  • The correlation between MI and accuracy was strongest on larger language models, indicating scalability to state-of-the-art models.
  • The approach is effective even for black-box models, as it only requires inference outputs and does not require gradient computation or model access.

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.