Overprompt: Enhancing Chatgpt Through Efficient In-context Learning · The Large Language Model Bible Contribute to LLM-Bible

Overprompt: Enhancing Chatgpt Through Efficient In-context Learning

Li Jiazheng, Zhao Runcong, Yang Yongxin, He Yulan, Gui Lin. Arxiv 2023

[Paper]    
Applications GPT In Context Learning Model Architecture Prompting RAG Security Tools

The remarkable performance of pre-trained large language models has revolutionised various natural language processing applications. Due to huge parametersizes and extensive running costs, companies or organisations tend to transfer the models to the target task by zero-shot prompting techniques. However, the prohibitive costs of tokens and time have hindered their adoption in applications. We propose OverPrompt, leveraging the in-context learning capability of LLMs to handle multiple task inputs, thereby reducing token and time costs. This approach could potentially improve task performance during API queries due to better conditional distribution mapping. Evaluated across diverse classification datasets, our experiments show that OverPrompt can achieve cost-efficient zero-shot classification without causing significant detriment to task performance, and in some cases, even improving it. An ablation study conducted on various LLMs, along with an investigation into the robustness of our prompting strategy to different input ordering, offers valuable insights into the broader applicability of our method across diverse tasks. These findings also suggest a more seamless integration of our method with LLMs through an API.

Similar Work