Multi-Task Distillation with Soft Prompts Boosts LLM Skills

Yingzi Ma, Zichen Zhu, Ming Jiang, Chaowei Xiao· July 22, 2026 View original

Summary

This paper introduces a method for multi-task on-policy distillation where a student language model learns from multiple teachers, each defined by a learnable soft prompt. This approach allows a single student to absorb knowledge from various tasks efficiently without accumulating drift or forgetting.

On-policy self-distillation (OPSD) is a technique where a large language model (LLM) learns new skills by having a "teacher" model, often sharing the same backbone, supervise its own generated outputs. Existing OPSD methods either inject privileged context at the input, which can lead to post-hoc rationalization, or fine-tune model weights, which risks accumulating drift and forgetting across different tasks. These limitations make it challenging for a single student model to efficiently learn from a diverse set of skills. Researchers propose a new method called "Multi-Task On-Policy Distillation via Soft-Prompt Privileged Context." In this approach, the teacher model differs from the student only by a learnable soft prompt. This prompt is trained on gold-standard data pairs with the student's backbone frozen, creating a task-specific teacher that preserves the student's exact representational geometry. This design avoids the issues of weight fine-tuning and input-level context injection. The method naturally extends to multi-task scenarios by routing each example in a combined dataset to its corresponding soft-prompt teacher. This allows a single student to simultaneously learn from multiple teachers, absorbing knowledge in parallel. During inference, all soft prompts are discarded, ensuring no added complexity. Experiments on models like Qwen3-1.7B-Base and Phi-4-mini-instruct across various tasks show that the single-task variant matches or exceeds full fine-tuning with significantly fewer parameters, while the multi-task variant achieves superior overall average performance without degrading general capabilities, unlike sequential fine-tuning.

Why it matters

For professionals developing and deploying LLMs, this research offers a highly efficient and effective method for multi-task learning and skill transfer. It allows models to acquire diverse capabilities without the common pitfalls of catastrophic forgetting or excessive parameter tuning, leading to more versatile and robust AI agents.

How to implement this in your domain

  1. 1Experiment with soft-prompt based distillation for transferring specific skills to your LLMs without full fine-tuning.
  2. 2Implement multi-task learning strategies using this approach to consolidate diverse capabilities into a single model.
  3. 3Evaluate the trade-offs between soft-prompt distillation and traditional fine-tuning for your specific application needs.
  4. 4Develop internal tools to manage and apply task-specific soft prompts for different teacher models.

Who benefits

AI/ML DevelopmentSoftware DevelopmentEdTechCustomer ServiceContent Creation

Key takeaways

  • A new method uses soft prompts for multi-task on-policy distillation in LLMs.
  • Soft prompts enable a single student model to learn from multiple teachers efficiently.
  • This approach avoids catastrophic forgetting and parameter drift common in other methods.
  • It achieves high performance with significantly fewer trainable parameters than full fine-tuning.

Original post by Yingzi Ma, Zichen Zhu, Ming Jiang, Chaowei Xiao

"arXiv:2607.18293v1 Announce Type: new Abstract: On-policy self-distillation (OPSD) teaches large language models new skills through a teacher that shares the student's backbone and supervises its own rollouts. Existing teachers either inject privileged context at the input -- ind…"

View on X

Originally posted by Yingzi Ma, Zichen Zhu, Ming Jiang, Chaowei Xiao on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses