Do Prompt Positions Really Matter?

Junyu Mao, Stuart Middleton, Mahesan Niranjan


Abstract
Prompt-based models have gathered a lot of attention from researchers due to their remarkable advancements in the fields of zero-shot and few-shot learning. Developing an effective prompt template plays a critical role. However, prior studies have mainly focused on prompt vocabulary searching or embedding initialization within a predefined template with the prompt position fixed. In this empirical study, we conduct the most comprehensive analysis to date of prompt position for diverse Natural Language Processing (NLP) tasks. Our findings quantify the substantial impact prompt position has on model performance. We observe that the prompt positions used in prior studies are often sub-optimal, and this observation is consistent even in widely used instruction-tuned models. These findings suggest prompt position optimisation as a valuable research direction to augment prompt engineering methodologies and prompt position-aware instruction tuning as a potential way to build more robust models in the future.
Anthology ID:
2024.findings-naacl.258
Volume:
Findings of the Association for Computational Linguistics: NAACL 2024
Month:
June
Year:
2024
Address:
Mexico City, Mexico
Editors:
Kevin Duh, Helena Gomez, Steven Bethard
Venue:
Findings
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
4102–4130
Language:
URL:
https://aclanthology.org/2024.findings-naacl.258
DOI:
Bibkey:
Cite (ACL):
Junyu Mao, Stuart Middleton, and Mahesan Niranjan. 2024. Do Prompt Positions Really Matter?. In Findings of the Association for Computational Linguistics: NAACL 2024, pages 4102–4130, Mexico City, Mexico. Association for Computational Linguistics.
Cite (Informal):
Do Prompt Positions Really Matter? (Mao et al., Findings 2024)
Copy Citation:
PDF:
https://aclanthology.org/2024.findings-naacl.258.pdf
Copyright:
 2024.findings-naacl.258.copyright.pdf