Fixed-Size Key-Value Prefix Compression for Multi-Expert Soft Prompts
Compress multi-expert soft-prompt sequences into fixed-size key-value cache prefixes to decouple inference memory footprint from the number of active domain experts.
Source paper
Zhen Zhang, Changyi Yang, Xuehai He, Chengzhi Liu, Yutong Yin, Ziyue Liu, Zhuoran Yin, Yangmin Li, Zhihan Liu, Jisen Li, Mingyu Jin, Chuhan Li, Zhaotian Weng, Ruoyu He, Wenyao Gao, Jiaxin Deng, Chenwei Wu, Hui Shen, Wenhao Chai, Chenyang Zhao, Zhuofan Ying, Kieran Liu, Andrew Chen, Pony Ma, Zhaoran Wang, Alkesh Patel, Zhe Gan, Xin Eric Wang
Generated by AI. The paper’s authors did not write these.
Compress multi-expert soft-prompt sequences into fixed-size key-value cache prefixes to decouple inference memory footprint from the number of active domain experts.
Build an input-dependent prompt routing mechanism that dynamically selects and orders relevant soft prompts for each query from a large expert library.
Train cross-model embedding projection hypernetworks to transfer distilled soft prompts across different language model backbones without re-distillation.
This paper presents Composable Soft-Prompt Distillation (CSPD), a method for continual post-training of large language models that keeps the base pre-RL model frozen and distills each post-RL domain expert into an independent soft prompt. At inference, these soft prompts are concatenated directly in the system prompt without joint training or modifying model weights. CSPD recovers over 90% of teacher gains across math, code, and agent benchmarks, matches multi-teacher on-policy distillation in-domain, and provides superior out-of-domain generalization with minimal serving overhead.
CSPD distills each RL expert into a sequence of continuous embedding vectors (e.g. 256 soft tokens) attached to the frozen pre-RL backbone using sequence-level distillation on verifier-filtered teacher responses with length-normalized negative log-likelihood loss. To ensure soft prompts are composable, prefix-robust training exposes each prompt to random context prefixes during optimization. Multiple soft prompts are concatenated in the system prompt template at test time without retraining base model weights or learning router parameters.