ELAD: Explanation-Guided Large Language Models Active Distillation

Yifei Zhang, Bo Pan, Chen Ling, Yuntong Hu, Liang Zhao

Abstract

Large Language Models (LLMs) possess remarkable reasoning capabilities but are often too computationally expensive for widespread deployment. Knowledge distillation offers a solution by training smaller "student" models to mimic larger "teachers." However, traditional distillation often overlooks the internal logic of the student, leading to "right for the wrong reasons" scenarios. We present ELAD (Explanation-Guided Large Language Models Active Distillation), a framework that actively selects samples based on reasoning uncertainty and provides customized, step-by-step feedback. ELAD significantly improves performance across arithmetic, natural language inference, and commonsense reasoning tasks while reducing annotation costs.

Introduction

Deploying state-of-the-art LLMs like GPT-4 is a significant challenge due to high latency and cost. While knowledge distillation can compress these models into smaller architectures (e.g., Llama-2), existing approaches face two primary hurdles: inefficiency and surface-level learning. Standard methods often provide labels for random data points, many of which the student might already understand, leading to redundant API costs. Furthermore, by focusing solely on final answers, these methods fail to correct flawed underlying logic—a phenomenon known as the "Rashomon Effect."

ELAD addresses these issues by sensing the student's reasoning weaknesses and providing targeted interventions from a teacher model.

Methodology: The ELAD Framework

The ELAD framework operates through a closed-loop system involving two main components: Explanation-Guided Sample Selection (EGSS) and Customized LLM-Annotated Explanation Revision (CLAER).

Overview of the ELAD framework, illustrating the interaction between the student (SLM) and teacher (LLM) through sample selection and explanation revision.

1. Explanation-Guided Sample Selection (EGSS)

Instead of selecting samples where the student is merely uncertain about the final label, EGSS quantifies the uncertainty of the reasoning steps. It evaluates two dimensions:

  • Intra-explanation uncertainty: Measures the stability of the final answer when specific reasoning steps are perturbed or removed. If the answer changes, the reasoning is likely flawed.
  • Inter-explanation uncertainty: Measures the consistency (entropy) across multiple reasoning paths generated for the same query. Samples with high combined uncertainty are prioritized for teacher intervention, ensuring the budget is spent on the most informative examples.

2. Customized LLM-Annotated Explanation Revision (CLAER)

When a difficult sample is identified, the teacher LLM acts as an auditor. Using a Depth-First Search (DFS) strategy, the teacher reviews the student's generated explanation step-by-step. If a step is logically sound, the teacher proceeds; the moment a flaw is detected, the teacher stops and generates the remaining correct reasoning chain and the final answer. This provides the student with precise feedback on exactly where its logic failed.

Experimental Results

The authors evaluated ELAD using GPT-3.5-turbo as the teacher and LLaMA-2-7B as the student across six benchmarks: GSM8K, AQuA, ANLI, e-SNLI, StrategyQA, and CommonSenseQA.

Performance comparison of ELAD (EGSS) against various active learning baselines across six reasoning benchmarks.

As shown in the results, ELAD consistently outperforms standard active learning baselines such as Maximum Entropy and Least Confidence. At a 50% annotation budget, ELAD achieved accuracy gains of up to 6.88% in NLI tasks and 5.09% in commonsense reasoning compared to the next best method. In arithmetic tasks, ELAD showed an improvement of up to 2.41% over competing methods, demonstrating its ability to identify critical logical gaps that traditional uncertainty metrics miss.

Key Insights and Discussion

  • Logic-First Distillation: The primary innovation of ELAD is shifting the focus from labels to the reasoning path. By correcting the "how" rather than just the "what," the student develops more robust internal logic.
  • Teacher as Auditor: Moving from generative distillation (where the teacher simply provides a label) to revisory distillation (where the teacher listens and corrects) creates a tighter, more data-efficient feedback loop.
  • Limitations: The framework's success depends on the teacher's ability to act as a reliable verifier, which is sensitive to prompt engineering. Additionally, while ELAD reduces the number of samples annotated, the iterative nature of step-wise verification involves multiple API calls per sample, which can be costly for long reasoning chains.

Conclusion

ELAD represents a significant step forward in making LLM distillation more data-efficient and logically grounded. By actively targeting the student's reasoning vulnerabilities, it enables smaller models to achieve high-level performance with a fraction of the supervision required by traditional methods.

Summary updated

BibTeX
@inproceedings{zhang2024elad,
  author = {Yifei Zhang and Bo Pan and Chen Ling and Yuntong Hu and Liang Zhao},
  title = {{ELAD: Explanation-Guided Large Language Models Active Distillation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.findings-acl.264},
}
Figure