ItD: Large Language Models Can Teach Themselves Induction through Deduction

Wangtao Sun, Haotian Xu, Xuanqing Yu, Pei Chen, Shizhu He, Jun Zhao, Kang Liu

Abstract

Although Large Language Models (LLMs) are showing impressive performance on a wide range of Natural Language Processing tasks, researchers have found that they still have limited ability to conduct induction. Recent works mainly adopt "post processes" paradigms to improve the performance of LLMs on induction (e.g., the hypothesis search & refinement methods), but their performance is still constrained by the inherent inductive capability of the LLMs. In this paper, we propose a novel framework, Induction through Deduction (ItD), to enable the LLMs to teach themselves induction through deduction. The ItD framework is composed of two main components: a Deductive Data Generation module to generate induction data and a Naive Bayesian Induction module to optimize the fine-tuning and decoding of LLMs. Our empirical results showcase the effectiveness of ItD on two induction benchmarks, achieving relative performance improvement of 36% and 10% compared with previous state-of-the-art, respectively. Our ablation study verifies the effectiveness of two key modules of ItD. We also verify the effectiveness of ItD across different LLMs and deductors.

Introduction

In the field of artificial intelligence, induction is the process of discovering a general rule ($f$) from a set of input-output observations ($x, y$). While modern Large Language Models (LLMs) excel at deduction—the application of a known rule to a specific input—they frequently struggle with induction, particularly when the underlying logic is abstract or complex.

Current strategies to improve induction often rely on "post-processing" methods, such as generating multiple candidate hypotheses and testing them against observations. However, these methods remain bottlenecked by the model's inherent inductive limitations. The Induction through Deduction (ItD) framework addresses this by leveraging the "Strong Deductor, Weak Inductor" hypothesis: if a model is better at applying rules than finding them, we can use its deductive strength to synthesize high-quality training data, effectively allowing the model to "teach itself" the art of induction.

The ItD Framework

The ItD framework consists of two primary stages designed to bridge the gap between deductive proficiency and inductive reasoning.

1. Deductive Data Generation (DDG)

To overcome the lack of high-quality induction training data, the DDG module creates synthetic $(x, y, f)$ triples.

  • Initial Induction: The model samples potential transformations ($f$) from existing benchmarks.
  • Deductive Synthesis: The model then uses its deductive capabilities to generate multiple input-output pairs $(x, y)$ that satisfy each rule $f$. This process generates a robust dataset for fine-tuning without requiring manual human annotation.

2. Naive Bayesian Induction (NBI)

The NBI module optimizes how the model learns and applies these rules through two specific techniques:

  • Fine-tuning: Rather than training the model to induce a rule from a long, complex sequence of $n$ examples, the authors use LoRA/QLoRA to fine-tune the model to predict $f$ based on a single pair $(x, y)$. This simplifies the learning objective significantly.
  • Naive Bayesian Group Decoding (NBGD): During inference, when presented with $n$ examples, the model does not process them as a single long prompt. Instead, it treats each example as a conditionally independent observation. It calculates the probability of the next token for $f$ by aggregating log-probabilities across all $n$ examples independently. This mathematical approach allows the model to scale its performance as the number of examples increases without suffering from context-window degradation or attention-based confusion.

Experimental Evaluation

The authors evaluated ItD on two distinct benchmarks:

  1. Instruction Induction: A semantic task involving 24 sub-tasks where the model induces natural language instructions (e.g., "translate to French") from sentence pairs.
  2. List Function: A symbolic reasoning task involving 250 sub-tasks where the model induces rules for integer list transformations (e.g., "remove the first two elements").

Key Results

  • State-of-the-Art Performance: ItD achieved a 36% relative improvement over the previous state-of-the-art (HS&R) on the Instruction Induction benchmark and a 10% relative improvement on the List Function benchmark.
  • Base Model Enhancement: For Llama-2-7b, ItD improved semantic induction performance from a zero-shot baseline of 13.23 to 38.70.
  • Scaling Efficiency: Unlike standard fine-tuned models that often plateau when given more examples, the NBGD strategy showed a clear upward trajectory in accuracy as the number of observed samples increased from 2 to 20.

Discussion and Limitations

While ItD represents a significant step forward, several challenges remain. The framework's performance on symbolic tasks (List Functions), while improved, is still less robust than its performance on semantic tasks, suggesting that LLMs still struggle with rigid, multi-step logical induction. Additionally, the current decoding algorithm uses a greedy search, which can occasionally lead the model into local optima. Future work may involve incorporating complex planning or look-ahead search strategies to further refine rule generation.

By reframing induction as a problem that can be solved through deductive self-teaching, ItD provides a scalable path toward more capable and autonomous reasoning in Large Language Models.

Summary updated

BibTeX
@inproceedings{sun2024itd,
  author = {Wangtao Sun and Haotian Xu and Xuanqing Yu and Pei Chen and Shizhu He and Jun Zhao and Kang Liu},
  title = {{ItD: Large Language Models Can Teach Themselves Induction through Deduction}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.acl-long.150},
}
Figure