Sweeping Heterogeneity with Smart MoPs: Mixture of Prompts for LLM Task Adaptation

Abstract

Prompt instruction tuning is a popular approach to better adjust pretrained LLMs for specific downstream tasks. How to extend this approach to simultaneously handle multiple tasks and data distributions is an interesting question. We propose Mixture of Prompts (MoPs) with smart gating functionality. Our proposed system identifies relevant skills embedded in different groups of prompts and dynamically weighs experts (i.e., collection of prompts) based on the target task. Experiments show that MoPs are resilient to model compression, data source, and task composition, making them highly versatile and applicable in various contexts. In practice, MoPs can simultaneously mitigate prompt training ``interference'' in multi-task, multi-source scenarios (e.g., task and data heterogeneity across sources) and possible implications from model approximations. Empirically, MoPs show particular effectiveness in compressed model scenarios, while maintaining favorable performance in uncompressed settings: MoPs can reduce final perplexity from 9% up to 70% in non-i.i.d. distributed cases and from 3% up to 30% in centralized cases, compared to baselines.

Cite

Text

Dun et al. "Sweeping Heterogeneity with Smart MoPs: Mixture of Prompts for LLM Task Adaptation." AAAI Conference on Artificial Intelligence, 2025. doi:10.1609/AAAI.V39I16.33804

Markdown

[Dun et al. "Sweeping Heterogeneity with Smart MoPs: Mixture of Prompts for LLM Task Adaptation." AAAI Conference on Artificial Intelligence, 2025.](https://mlanthology.org/aaai/2025/dun2025aaai-sweeping/) doi:10.1609/AAAI.V39I16.33804

BibTeX

@inproceedings{dun2025aaai-sweeping,
  title     = {{Sweeping Heterogeneity with Smart MoPs: Mixture of Prompts for LLM Task Adaptation}},
  author    = {Dun, Chen and del Carmen Hipolito Garcia, Mirian and Zheng, Guoqing and Awadallah, Ahmed Hassan and Sim, Robert and Kyrillidis, Anastasios},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year      = {2025},
  pages     = {16426-16434},
  doi       = {10.1609/AAAI.V39I16.33804},
  url       = {https://mlanthology.org/aaai/2025/dun2025aaai-sweeping/}
}