arXiv:2610.18459cs.LGOct 2026

Manuscript Offprint

arXiv:2610.18459

Teacher-Guided Tool Learning for Small Language Models via Bidirectional KL Constraints

Haoxuan Gao, Qin-Wen Luo, Xiang Chen, Yu Tian, Zequn Sun, Xiaofeng Cao, Jiangchao Yao, Sheng-Jun Huang

Abstract

External tools can extend the capabilities of small language models (SLMs), enabling their deployment in resource-constrained environments. However, their limited capabilities make it difficult for SLMs to discover effective tool-use behaviors through reinforcement learning alone, while direct teacher supervision suffers from teacher-student behavioral distribution mismatch and may propagate erroneous preferences. To address these challenges, we propose Selective Teacher-guided Policy Optimization (SeTPO), which coordinates student exploration with selective teacher guidance and persistent demonstration supervision. Specifically, SeTPO incorporates reverse-KL-derived token-level teacher feedback into policy advantages on low-reward trajectories, while auxiliary forward-KL supervision preserves teacher-demonstrated behaviors throughout training. Under an idealized bidirectional-KL objective, we theoretically establish that the optimal policy achieves expected reward no lower than the teacher's while retaining a guaranteed fraction of the teacher's probability mass. Extensive experiments on BFCL-v4 and API-Bank demonstrate that SeTPO achieves superior overall performance over supervised fine-tuning, reinforcement learning, and distillation baselines across all three student scales.

1 Introduction

Small language models (SLMs) offer a practical foundation for resource-efficient systems whose capabilities can be extended through external tools (Erdogan et al., 2024; Lin et al., 2025). However, realizing this promise presents a fundamental learning challenge: models with limited underlying capabilities must learn to exploit external resources to

Figure

Figure 1: Motivation for coordinating supervision in tool learning for small language models. Top: a schematic weather-tool example comparing SFT, GRPO-based RL, the pure OPD baseline used here, and SeTPO. Bottom: BFCL-v4 scores for Qwen2.5-0.5B.

accomplish tasks they cannot solve independently. These learning difficulties can prevent SLMs from fully benefiting from external tools. The central question is therefore: how can we unlock the full potential of SLMs in tool-use tasks?

Supervised fine-tuning (SFT) provides an initial foundation through tool-use demonstrations (Liu et al., 2025). However, a mismatch between demonstration-based training and the model's own generation at inference can limit its effectiveness (Bengio et al., 2015; Agarwal et al., 2024). To reduce this mismatch, reinforcement learning (RL) optimizes the model's own tool-use attempts using task rewards (Qian et al., 2025). Yet SLMs may struggle to discover successful behaviors, leaving few useful experiences for learning. Recent work on on-policy distillation (OPD) supplies ad-

∗^{*}Corresponding author.

ditional learning signals through teacher feedback on student-generated trajectories (Agarwal et al., 2024; Gu et al., 2024). However, teacher-preferred outputs may also be incorrect, and imitation can pass these errors to the student (Agarwal et al., 2024). These limitations, illustrated in Figure 1, raise a more specific question: how can SLMs improve their tool-use capabilities through their own exploration with teacher guidance?

Teacher guidance may not translate into effective learning for SLMs due to teacher–student differences in capacity and behavioral preferences (Gu et al., 2024; Lyu et al., 2025). Simply reproducing teacher preferences therefore does not ensure effective knowledge transfer. This calls for RL to complement teacher guidance with students' own exploration. On-policy RL supports students' own exploration while favoring solutions close to their original behavior distributions (Shenfeld et al., 2026). KL constraints provide a way to incorporate teacher guidance into this exploration. This motivates selective teacher-guided RL that supports learning where autonomous exploration falls short, helping unlock SLMs' tool-use potential.

Following this principle, we propose Selective Teacher-guided Policy Optimization (SeTPO). First, students explore through RL and receive guidance on low-reward trajectories from a frozen teacher, which scores generated tokens under the students' own prefixes. This provides reverse-KL guidance for improving students' own attempts. Second, auxiliary SFT remains active throughout RL, using complete teacher demonstrations to supply behaviors beyond current exploration and maintain the response structure required for tool interaction. This provides forward-KL supervision for retaining teacher-supported behaviors. Under an idealized bidirectional-KL objective, we prove that the optimal policy achieves expected reward no lower than the teacher's while retaining a minimum fraction of the teacher's probability mass on any response set.

Our contributions are:

• We identify three obstacles to tool learning in SLMs: distribution mismatch between SFT demonstrations and student-generated attempts, limited successful exploration under RL, and teacher–student differences that hinder knowledge transfer in OPD.

• We propose SeTPO with selective reverse-KL teacher guidance and persistent forward-KL demonstration supervision. Our idealized bidirectional-KL analysis establishes, at optimality, a lower bound on teacher-behavior retention and expected reward non-degradation relative to the teacher.

• Experiments on BFCL-v4 and API-Bank show that SeTPO improves overall tool-use performance across three student scales. It also reduces tool-selection and argument-construction errors and helps maintain stable output formats during training.

References (25)