Language Models Inversely Scale on Piecewise Function Evaluation with Biased Examples

Bradley Ca Brown, Jordan Juravsky, Atif Mahmud, Wais Shahbaz, Ryan Saul EhrlichOpenReview 2023 · Submission to Tiny Papers @ ICLR

TL;DR

This paper introduces a novel task for evaluating language models (LMs) on piecewise function evaluation, specifically designed to test their susceptibility to biased examples. They demonstrate that while LMs generally improve with size on balanced datasets, larger models perform worse than random guessing when presented with misleading, yet factually correct, examples, highlighting a critical failure mode.

What Problem Does This Paper Address?

The prevailing wisdom in large language model (LLM) research is that bigger is better: as models scale up in size, their performance on a wide range of tasks consistently improves. This phenomenon, known as "scaling laws," has driven the development of increasingly massive models. However, recent work has begun to uncover "inverse scaling" tasks where performance degrades with increased model size. This paper investigates a specific type of failure: can LMs be misled by seemingly helpful, but ultimately unrepresentative, examples? They focus on the task of evaluating piecewise functions, where the model is given the function's definition and a few examples, then asked to apply it to a new input. The core problem is understanding if LMs can discern the true function definition from potentially misleading few-shot examples, and how this ability changes with model scale.

Methods

The researchers designed a task where language models are asked to evaluate piecewise functions. A piecewise function is defined by different rules (branches) that apply based on whether a condition (predicate) is met. The LMs are given the function's definition in natural language, followed by a set of example input-output pairs. Their goal is to predict the output for a new, unseen input.

The key innovation lies in how they construct the example sets:

  • Balanced Examples: The provided examples cover both branches of the piecewise function, ensuring a representative sample of the function's behavior.
  • Biased Examples: In this variant, all provided examples exclusively exercise one branch of the function, while the target input for evaluation falls into the other branch. This creates a misleading signal.

They then evaluate models (OPT and GPT-3 families) across various sizes on both balanced and biased versions of this task.

Datasets

The paper introduces a newly generated dataset specifically for this piecewise function evaluation task. The dataset consists of randomly generated piecewise functions, each with a predicate conjunction and two arithmetic function branches. The key variations in dataset generation include:

  • Predicate Conjunction Size: The number of conditions that must be met for a specific branch to apply.
  • Number of Examples: The quantity of few-shot examples provided in the prompt.
  • Example Distribution: Whether the examples are "balanced" (covering both function branches) or "biased" (exclusively covering one branch).
  • Bias Mode: "Easy" mode where examples and target inputs are clearly on opposite sides of the predicate, and "Hard" mode where the bias is more subtle, relying on the failure of a single predicate in a conjunction.

Key Insights and Ideas

  • The Peril of Misrepresentative Data: The most striking finding is that LMs, especially larger ones, can be actively hindered by biased examples. Instead of relying on the explicit function definition, they seem to over-index on the provided examples, leading to worse performance.
  • Inverse Scaling is Real and Problematic: This task provides a clear demonstration of inverse scaling, where larger models perform worse. This is counter-intuitive, as one would expect larger models to have a better grasp of the underlying logic and be less swayed by superficial patterns in examples.
  • Model Size Matters, But How? Model size is crucial, but its impact depends entirely on the quality of the provided examples. Balanced examples lead to positive scaling, while biased examples lead to inverse scaling.
  • Failure to Generalize from Definition: The results suggest that LMs may struggle to generalize from a formal definition when presented with conflicting, albeit factually correct, few-shot demonstrations. They appear to prioritize pattern matching from examples over logical deduction from the rules.

Key Results

  • Balanced Examples: Accuracy positively scales with model size. Larger models perform significantly better.
  • Biased Examples: Accuracy inversely scales with model size. The largest models (175B parameters) performed over 15% worse than random guessing on this task.
  • "Hard" Bias Mode: The "hard" mode of biased examples (where the bias is more subtle) leads to worse performance and a steeper inverse scaling slope compared to the "easy" mode.
  • Number of Examples: While providing no examples results in performance slightly above random guessing for most models, adding biased examples significantly degrades performance, especially for larger models.

Limitations and Future Work

  • Toy Task: The authors acknowledge that piecewise function evaluation is a simplified, "toy" task. The direct applicability of these findings to complex, real-world scenarios where biases might be more subtle is an open question.
  • Future Work: The paper suggests exploring other domains where LMs might be misled by factually correct but unrepresentative examples. They are interested in identifying additional failure modes beyond this specific task. Further research could investigate why larger models are more susceptible to this type of bias and explore methods to mitigate it.

Summary updated

BibTeX
@misc{brown2023language,
  author = {Bradley CA Brown and Jordan Juravsky and Atif Mahmud and Wais Shahbaz and Ryan Saul Ehrlich},
  title = {{Language Models Inversely Scale on Piecewise Function Evaluation with Biased Examples}},
  year = {2023},
  url = {https://openreview.net/forum?id=GJhsHNKm7kj},
  howpublished = {OpenReview},
  note = {Submitted to Tiny Papers @ ICLR},
}
Figure