mlsanityData to 7 Oct 2026

Logic Distillation: Learning from Code Function by Function for Decision-making Tasks

arXiv 2407.19405 ↗First posted 28 Jul 2024cs.AIcited by 5

On the map: LLM reasoning → Prompting and chain-of-thought reasoning

Abstract (arXiv)

Large language models (LLMs) have garnered increasing attention owing to their powerful logical reasoning capabilities. Generally, larger LLMs (L-LLMs) that require paid interfaces exhibit significantly superior performance compared to smaller LLMs (S-LLMs) that can be deployed on a variety of devices. Knowledge distillation (KD) aims to empower S-LLMs with the capabilities of L-LLMs, while S-LLMs merely mimic the outputs of L-LLMs, failing to get the powerful logical reasoning capabilities. Consequently, S-LLMs are helpless when it comes to planning and decision-making tasks that require logical reasoning capabilities. To tackle the identified challenges, we propose a novel framework called Logic Distillation (LD). Initially, LD employs L-LLMs to instantiate complex instructions into discrete functions and illustrates their usage to establish a function base. Subsequently, based on the function base, LD fine-tunes S-LLMs to learn the logic employed by L-LLMs in planning and decision-making. During testing, LD utilizes a retriever to identify the top-K relevant functions based on instructions and current states, which will be selected and invoked by S-LLMs. Ultimately, S-LLMs yield planning and decision-making outcomes, function by function. Relevant experiments demonstrate that with the assistance of LD, S-LLMs can achieve outstanding results in planning and decision-making tasks, comparable to, or even surpassing, those of L-LLMs.

Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Placed in Prompting and chain-of-thought reasoning, one of 17 directions in LLM reasoning. Builds on 24 of its 32 references that are in the map. First posted on arXiv 28 Jul 2024.

Builds on

24 of 32 references.

References · 24

  1. 2023GPT-4 Technical Reportcited by 18,132
  2. 2022Training language models to follow instructions with human feedbackcited by 15,712
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  4. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  5. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  6. 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
  7. 2023A Survey of Large Language Modelscited by 2,537
  8. 2020Knowledge Distillation: A Surveycited by 1,578
  9. 2023The Rise and Potential of Large Language Model Based Agents: A Surveycited by 1,422
  10. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  11. 2022LaMDA: Language Models for Dialog Applicationscited by 1,218
  12. 2024ChatGLM: A Family of Large Language Models from GLM-130B to GLM-4 All Toolscited by 1,096
12 more
  1. 2023BloombergGPT: A Large Language Model for Financecited by 923
  2. 2023On-Policy Distillation of Language Models: Learning from Self-Generated Mistakescited by 840
  3. 2023Distilling Step-by-Step! Outperforming Larger Language Models with Less Training Data and Smaller Model Sizescited by 710
  4. 2023Orca: Progressive Learning from Complex Explanation Traces of GPT-4cited by 369
  5. 2023LLM-QAT: Data-Free Quantization Aware Training for Large Language Modelscited by 320
  6. 2024A Survey on Knowledge Distillation of Large Language Modelscited by 276
  7. 2023AnnoLLM: Making Large Language Models to Be Better Crowdsourced Annotatorscited by 171
  8. 2023A Study of Generative Large Language Model for Medical Research and Healthcarecited by 160
  9. 2023Orca 2: Teaching Small Language Models How to Reasoncited by 157
  10. 2023AugGPT: Leveraging ChatGPT for Text Data Augmentationcited by 128
  11. 2024Machine Unlearning in Large Language Modelscited by 17
  12. 2024Improving Large Models with Small models: Lower Costs and Better Performancecited by 14

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 3; 2026: 2.

5 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2023Mixed Distillation Helps Smaller Language Model Better Reasoning
  2. 2024Improving Mathematical Reasoning Capabilities of Small Language Models via Feedback-Driven Distillation
  3. 2025Small Models Struggle to Learn from Strong Reasoners
  4. 2024Mentor-KD: Making Small Language Models Better Multi-step Reasoners
  5. 2026KDFP: A first-principles approach to knowledge distillation in large language models
  6. 2025Beyond Scaling Law: A Data-Efficient Distillation Framework for Reasoning
  7. 2024Improving Small-Scale Large Language Models Function Calling for Reasoning Tasks
  8. 2024LogicGame: Benchmarking Rule-Based Reasoning Abilities of Large Language Models