One Prompt is not Enough: Automated Construction of a Mixture-of-Expert Prompts

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Wang, Ruochen, An, Sohyun, Cheng, Minhao, Zhou, Tianyi, Hwang, Sung Ju, Hsieh, Cho-Jui
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866914852408131584
author Wang, Ruochen
An, Sohyun
Cheng, Minhao
Zhou, Tianyi
Hwang, Sung Ju
Hsieh, Cho-Jui
author_facet Wang, Ruochen
An, Sohyun
Cheng, Minhao
Zhou, Tianyi
Hwang, Sung Ju
Hsieh, Cho-Jui
contents Large Language Models (LLMs) exhibit strong generalization capabilities to novel tasks when prompted with language instructions and in-context demos. Since this ability sensitively depends on the quality of prompts, various methods have been explored to automate the instruction design. While these methods demonstrated promising results, they also restricted the searched prompt to one instruction. Such simplification significantly limits their capacity, as a single demo-free instruction might not be able to cover the entire complex problem space of the targeted task. To alleviate this issue, we adopt the Mixture-of-Expert paradigm and divide the problem space into a set of sub-regions; Each sub-region is governed by a specialized expert, equipped with both an instruction and a set of demos. A two-phase process is developed to construct the specialized expert for each region: (1) demo assignment: Inspired by the theoretical connection between in-context learning and kernel regression, we group demos into experts based on their semantic similarity; (2) instruction assignment: A region-based joint search of an instruction per expert complements the demos assigned to it, yielding a synergistic effect. The resulting method, codenamed Mixture-of-Prompts (MoP), achieves an average win rate of 81% against prior arts across several major benchmarks.
format Preprint
id arxiv_https___arxiv_org_abs_2407_00256
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle One Prompt is not Enough: Automated Construction of a Mixture-of-Expert Prompts
Wang, Ruochen
An, Sohyun
Cheng, Minhao
Zhou, Tianyi
Hwang, Sung Ju
Hsieh, Cho-Jui
Artificial Intelligence
Computation and Language
Machine Learning
68T01
Large Language Models (LLMs) exhibit strong generalization capabilities to novel tasks when prompted with language instructions and in-context demos. Since this ability sensitively depends on the quality of prompts, various methods have been explored to automate the instruction design. While these methods demonstrated promising results, they also restricted the searched prompt to one instruction. Such simplification significantly limits their capacity, as a single demo-free instruction might not be able to cover the entire complex problem space of the targeted task. To alleviate this issue, we adopt the Mixture-of-Expert paradigm and divide the problem space into a set of sub-regions; Each sub-region is governed by a specialized expert, equipped with both an instruction and a set of demos. A two-phase process is developed to construct the specialized expert for each region: (1) demo assignment: Inspired by the theoretical connection between in-context learning and kernel regression, we group demos into experts based on their semantic similarity; (2) instruction assignment: A region-based joint search of an instruction per expert complements the demos assigned to it, yielding a synergistic effect. The resulting method, codenamed Mixture-of-Prompts (MoP), achieves an average win rate of 81% against prior arts across several major benchmarks.
title One Prompt is not Enough: Automated Construction of a Mixture-of-Expert Prompts
topic Artificial Intelligence
Computation and Language
Machine Learning
68T01
url https://arxiv.org/abs/2407.00256