Unlocking SLM Potential for Data Analysis Code Generation via Non-Parametric Knowledge Distillation

Jin-Yang Li, Jack Williams, Nick McKenna, Arian Askari, Nicholas C. Wilson +1 more
1/1/2025
distillation

No confident code implementation found for this paper.

Abstract

Knowledge distillation from Large Language Models (LLMs) to locally hosted Small Language Models (SLMs) provides advantages for Data Analysis Code Generation (DACG) such as privacy protection. However, achieving effective distillation without resource-intensive training is challenging.

Show full abstract

This paper investigates whether LLMs can distill knowledge to SLMs through In-Context Learning (ICL), a training-free method for rapid task adaptation. We present the D AR GO : D istillation and A daptive R easoning-G uided O rchestration framework, which facilitates automatic knowledge distillation from LLMs to SLMs. D AR GO consists of three phases: exploration through an Model Orchestration Interface (MOI) , Memory Collection of successful trajectories, and Knoweldge-driven Inference . We evaluate D AR GO on three challenging DACG benchmarks (W IKI TQ, T AB MWP, and B IRD -SQL), each with in-domain training sets that enable detailed analysis of knowledge distillation effectiveness. D AR GO demonstrates a substantial relative performance improvement of 27.5% on average for the student SLMs. To further observe generalization capabilities, we evaluate the D AR G O across different teacher-student model combinations, knowledge transfer scenarios, and unified memory approaches for more advanced, test-only data analysis tasks. Our findings contribute a novel perspective on distillation methods that enhance performance for SLMs while avoiding intensive fine-tuning. The source code is available: https://github.com/accpatrick/DarGO .

DOISemantic Scholar

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{li2025unlocking,
  title  = {Unlocking SLM Potential for Data Analysis Code Generation via Non-Parametric Knowledge Distillation},
  author = {Jin-Yang Li and Jack Williams and Nick McKenna and Arian Askari and Nicholas C. Wilson and Reynold Cheng},
  year   = {2025},
  doi    = {10.52202/085713-3903},
  url    = {https://doi.org/10.52202/085713-3903},
  journal = {Neural Information Processing Systems}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/4ecd4b6912c380ebc6cd4cbd71a95add0a7e28ba.svg)](https://codeofpaper.com/paper/4ecd4b6912c380ebc6cd4cbd71a95add0a7e28ba)

Discussion