Logic Distillation: Learning from Code Function by Function for Decision-making Tasks
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
- 2023GPT-4 Technical Reportcited by 18,132
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
- 2023A Survey of Large Language Modelscited by 2,537
- 2020Knowledge Distillation: A Surveycited by 1,578
- 2023The Rise and Potential of Large Language Model Based Agents: A Surveycited by 1,422
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2022LaMDA: Language Models for Dialog Applicationscited by 1,218
- 2024ChatGLM: A Family of Large Language Models from GLM-130B to GLM-4 All Toolscited by 1,096
12 more
- 2023BloombergGPT: A Large Language Model for Financecited by 923
- 2023On-Policy Distillation of Language Models: Learning from Self-Generated Mistakescited by 840
- 2023Distilling Step-by-Step! Outperforming Larger Language Models with Less Training Data and Smaller Model Sizescited by 710
- 2023Orca: Progressive Learning from Complex Explanation Traces of GPT-4cited by 369
- 2023LLM-QAT: Data-Free Quantization Aware Training for Large Language Modelscited by 320
- 2024A Survey on Knowledge Distillation of Large Language Modelscited by 276
- 2023AnnoLLM: Making Large Language Models to Be Better Crowdsourced Annotatorscited by 171
- 2023A Study of Generative Large Language Model for Medical Research and Healthcarecited by 160
- 2023Orca 2: Teaching Small Language Models How to Reasoncited by 157
- 2023AugGPT: Leveraging ChatGPT for Text Data Augmentationcited by 128
- 2024Machine Unlearning in Large Language Modelscited by 17
- 2024Improving Large Models with Small models: Lower Costs and Better Performancecited by 14
Built on by
Citing papers per year: 2025: 3; 2026: 2.
5 papers.
- 2025Code to Think, Think to Code: A Survey on Code-Enhanced Reasoning and Reasoning-Driven Code Intelligence in LLMscited by 47
- 2025Easy Adaptation: An Efficient Task-Specific Knowledge Injection Method for Large Models in Resource-Constrained Environmentscited by 1
- 2025FAF: A Feature-Adaptive Framework for Few-Shot Time Series Forecastingcited by 0
- 2026MAFIG: Multi-agent Driven Formal Instruction Generation Frameworkcited by 0
- 2026IFPV: An Integrated Multi-Agent Framework for Generative Operational Planning and High-Fidelity Plan Verificationcited by 0
- 2026IFPV: An Integrated Multi-Agent Framework for Generative Operational Planning and High-Fidelity Plan Verification14 May 2026
- 2026MAFIG: Multi-agent Driven Formal Instruction Generation Framework13 Apr 2026
- 2025Easy Adaptation: An Efficient Task-Specific Knowledge Injection Method for Large Models in Resource-Constrained Environments19 Dec 2025
- 2025FAF: A Feature-Adaptive Framework for Few-Shot Time Series Forecasting24 Jun 2025
- 2025Code to Think, Think to Code: A Survey on Code-Enhanced Reasoning and Reasoning-Driven Code Intelligence in LLMs26 Feb 2025
Similar, not cited
Close in wording, no citation either way
- 2023Mixed Distillation Helps Smaller Language Model Better Reasoning
- 2024Improving Mathematical Reasoning Capabilities of Small Language Models via Feedback-Driven Distillation
- 2025Small Models Struggle to Learn from Strong Reasoners
- 2024Mentor-KD: Making Small Language Models Better Multi-step Reasoners
- 2026KDFP: A first-principles approach to knowledge distillation in large language models
- 2025Beyond Scaling Law: A Data-Efficient Distillation Framework for Reasoning
- 2024Improving Small-Scale Large Language Models Function Calling for Reasoning Tasks
- 2024LogicGame: Benchmarking Rule-Based Reasoning Abilities of Large Language Models