Self-Regulated Sample Diversity in Large Language Models

Mingyue Liu, Jonathan Frawley, Sarah Wyer, Hubert P. H. Shum, Sara L. Uckelman, Sue Black, Chris G. Willcocks

Introduction

Large Language Models (LLMs) generate text by sampling from a probability distribution of potential next tokens. This process is typically governed by static hyperparameters such as temperature ($\tau$), nucleus sampling (top-p), and frequency/presence penalties. However, a "one-size-fits-all" approach to these parameters often forces a sub-optimal trade-off: settings optimized for logical precision (low temperature) can stifle creative tasks, while settings favoring variety (high temperature) can increase hallucinations in factual contexts.

Researchers from Durham University have introduced a "self-regulating" prompting strategy that allows LLMs to dynamically adjust these parameters based on the specific requirements of a given task, treating diversity control as a meta-reasoning problem.

The Self-Regulating Method

The proposed approach is a zero-shot, two-step inference process that requires no model retraining or auxiliary networks. It leverages the model's inherent ability to assess the nature of a prompt before answering.

The self-regulating inference process: first, the model estimates optimal parameters via a meta-prompt; second, it executes the task using those parameters.
  1. Parameter Estimation (Meta-Prompting): The model is provided with a guidance prompt that asks it to evaluate the task's needs. For instance, it might be instructed that mathematical tasks require determinism, while fictional prompts require creativity. The model then outputs suggested values for $\tau$, top-p, and penalties.
  2. Task Execution: These generated values are extracted and injected into the actual API call for the task execution.

This method also supports "Continual Diversity Updates," where a model can update its sampling parameters mid-response—a feature particularly useful for complex prompts that transition between different reasoning modes, such as solving a technical problem and then summarizing it poetically.

Experimental Results

The researchers evaluated this method using the Massive Multitask Language Understanding (MMLU) benchmark, which spans 57 tasks across Humanities, STEM, Social Sciences, and other domains. The results demonstrate that self-regulation acts as a "force multiplier" when combined with existing strategies like Chain-of-Thought (CoT) and few-shot learning.

Performance comparison on MMLU supercategories showing consistent improvements across models and configurations.

Key findings include:

  • GPT-3.5 Gains: Average accuracy on MMLU improved from 58.1% to 61.8% in vanilla settings. When combined with CoT and 5-shot learning, accuracy rose from 64.8% to 69.2% (+4.4%).
  • GPT-4 Performance: Even for highly optimized models like GPT-4, the method provided a notable boost from 83.0% to 84.5%.
  • Universal Applicability: Improvements were observed across all supercategories, with particularly significant gains in STEM and Social Science subjects where the model correctly identified the need for higher precision.

Discussion and Future Work

The core insight of this research is that sufficiently large models are "self-aware" of task requirements and can accurately select parameters to optimize their own performance. This "plug-and-play" adaptivity is essentially free, as it utilizes existing reasoning capabilities rather than expensive architectural changes.

However, limitations remain. Smaller LLMs may lack the instruction-following depth required for accurate self-assessment. Additionally, while the method handles distinct tasks well, more research is needed to refine how models manage "blended" contexts where multiple conflicting requirements exist within a single prompt. Future work may also explore using self-regulated diversity to mitigate social biases or prevent the "echo chamber" effects often seen in long-form generation.

Summary updated

BibTeX
@inproceedings{liu2024self,
  author = {Mingyue Liu and Jonathan Frawley and Sarah Wyer and Hubert P. H. Shum and Sara L. Uckelman and Sue Black and Chris G. Willcocks},
  title = {{Self-Regulated Sample Diversity in Large Language Models}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.findings-naacl.122},
}
Figure