Large Language Model Prompting with Episodic Memory. Do, D., Tran, Q., Venkatesh, S., & Le, H. In Endriss, U., Melo, F. S., Bach, K., Bugarín-Diz, A., Alonso-Moral, J. M., Barro, S., & Heintz, F., editors, Frontiers in Artificial Intelligence and Applications. IOS Press, October, 2024.
Paper doi abstract bibtex Prompt optimization is essential for enhancing the performance of Large Language Models (LLMs) in a range of Natural Language Processing (NLP) tasks, particularly in scenarios of fewshot learning where training examples are incorporated directly into the prompt. Despite the growing interest in optimizing prompts with few-shot examples, existing methods for prompt optimization are often resource-intensive or perform inadequately. In this work, we propose PrOmpting with Episodic Memory (POEM), a novel prompt optimization technique that is simple, efficient, and demonstrates strong generalization capabilities. We approach prompt optimization as a Reinforcement Learning (RL) challenge, using episodic memory to archive combinations of input data, permutations of few-shot examples, and the rewards observed during training. In the testing phase, we optimize the sequence of examples for each test query by selecting the sequence that yields the highest total rewards from the top-k most similar training examples in the episodic memory. Our results show that POEM outperforms recent techniques like TEMPERA and RLPrompt by over 5.3% in various text classification tasks. Furthermore, our approach adapts well to broader language understanding tasks, consistently outperforming conventional heuristic methods for ordering examples.
@incollection{doLargeLanguageModel2024a,
title = {Large {Language} {Model} {Prompting} with {Episodic} {Memory}},
copyright = {https://creativecommons.org/licenses/by-nc/4.0/},
isbn = {978-1-64368-548-9},
url = {https://ebooks.iospress.nl/doi/10.3233/FAIA240953},
doi = {10.3233/FAIA240953},
abstract = {Prompt optimization is essential for enhancing the performance of Large Language Models (LLMs) in a range of Natural Language Processing (NLP) tasks, particularly in scenarios of fewshot learning where training examples are incorporated directly into the prompt. Despite the growing interest in optimizing prompts with few-shot examples, existing methods for prompt optimization are often resource-intensive or perform inadequately. In this work, we propose PrOmpting with Episodic Memory (POEM), a novel prompt optimization technique that is simple, efficient, and demonstrates strong generalization capabilities. We approach prompt optimization as a Reinforcement Learning (RL) challenge, using episodic memory to archive combinations of input data, permutations of few-shot examples, and the rewards observed during training. In the testing phase, we optimize the sequence of examples for each test query by selecting the sequence that yields the highest total rewards from the top-k most similar training examples in the episodic memory. Our results show that POEM outperforms recent techniques like TEMPERA and RLPrompt by over 5.3\% in various text classification tasks. Furthermore, our approach adapts well to broader language understanding tasks, consistently outperforming conventional heuristic methods for ordering examples.},
language = {en},
urldate = {2025-01-28},
booktitle = {Frontiers in {Artificial} {Intelligence} and {Applications}},
publisher = {IOS Press},
author = {Do, Dai and Tran, Quan and Venkatesh, Svetha and Le, Hung},
editor = {Endriss, Ulle and Melo, Francisco S. and Bach, Kerstin and Bugarín-Diz, Alberto and Alonso-Moral, José M. and Barro, Senén and Heintz, Fredrik},
month = oct,
year = {2024},
}
Downloads: 0
{"_id":"CGsXALFSEj6hqoiSM","bibbaseid":"do-tran-venkatesh-le-largelanguagemodelpromptingwithepisodicmemory-2024","author_short":["Do, D.","Tran, Q.","Venkatesh, S.","Le, H."],"bibdata":{"bibtype":"incollection","type":"incollection","title":"Large Language Model Prompting with Episodic Memory","copyright":"https://creativecommons.org/licenses/by-nc/4.0/","isbn":"978-1-64368-548-9","url":"https://ebooks.iospress.nl/doi/10.3233/FAIA240953","doi":"10.3233/FAIA240953","abstract":"Prompt optimization is essential for enhancing the performance of Large Language Models (LLMs) in a range of Natural Language Processing (NLP) tasks, particularly in scenarios of fewshot learning where training examples are incorporated directly into the prompt. Despite the growing interest in optimizing prompts with few-shot examples, existing methods for prompt optimization are often resource-intensive or perform inadequately. In this work, we propose PrOmpting with Episodic Memory (POEM), a novel prompt optimization technique that is simple, efficient, and demonstrates strong generalization capabilities. We approach prompt optimization as a Reinforcement Learning (RL) challenge, using episodic memory to archive combinations of input data, permutations of few-shot examples, and the rewards observed during training. In the testing phase, we optimize the sequence of examples for each test query by selecting the sequence that yields the highest total rewards from the top-k most similar training examples in the episodic memory. Our results show that POEM outperforms recent techniques like TEMPERA and RLPrompt by over 5.3% in various text classification tasks. Furthermore, our approach adapts well to broader language understanding tasks, consistently outperforming conventional heuristic methods for ordering examples.","language":"en","urldate":"2025-01-28","booktitle":"Frontiers in Artificial Intelligence and Applications","publisher":"IOS Press","author":[{"propositions":[],"lastnames":["Do"],"firstnames":["Dai"],"suffixes":[]},{"propositions":[],"lastnames":["Tran"],"firstnames":["Quan"],"suffixes":[]},{"propositions":[],"lastnames":["Venkatesh"],"firstnames":["Svetha"],"suffixes":[]},{"propositions":[],"lastnames":["Le"],"firstnames":["Hung"],"suffixes":[]}],"editor":[{"propositions":[],"lastnames":["Endriss"],"firstnames":["Ulle"],"suffixes":[]},{"propositions":[],"lastnames":["Melo"],"firstnames":["Francisco","S."],"suffixes":[]},{"propositions":[],"lastnames":["Bach"],"firstnames":["Kerstin"],"suffixes":[]},{"propositions":[],"lastnames":["Bugarín-Diz"],"firstnames":["Alberto"],"suffixes":[]},{"propositions":[],"lastnames":["Alonso-Moral"],"firstnames":["José","M."],"suffixes":[]},{"propositions":[],"lastnames":["Barro"],"firstnames":["Senén"],"suffixes":[]},{"propositions":[],"lastnames":["Heintz"],"firstnames":["Fredrik"],"suffixes":[]}],"month":"October","year":"2024","bibtex":"@incollection{doLargeLanguageModel2024a,\n\ttitle = {Large {Language} {Model} {Prompting} with {Episodic} {Memory}},\n\tcopyright = {https://creativecommons.org/licenses/by-nc/4.0/},\n\tisbn = {978-1-64368-548-9},\n\turl = {https://ebooks.iospress.nl/doi/10.3233/FAIA240953},\n\tdoi = {10.3233/FAIA240953},\n\tabstract = {Prompt optimization is essential for enhancing the performance of Large Language Models (LLMs) in a range of Natural Language Processing (NLP) tasks, particularly in scenarios of fewshot learning where training examples are incorporated directly into the prompt. Despite the growing interest in optimizing prompts with few-shot examples, existing methods for prompt optimization are often resource-intensive or perform inadequately. In this work, we propose PrOmpting with Episodic Memory (POEM), a novel prompt optimization technique that is simple, efficient, and demonstrates strong generalization capabilities. We approach prompt optimization as a Reinforcement Learning (RL) challenge, using episodic memory to archive combinations of input data, permutations of few-shot examples, and the rewards observed during training. In the testing phase, we optimize the sequence of examples for each test query by selecting the sequence that yields the highest total rewards from the top-k most similar training examples in the episodic memory. Our results show that POEM outperforms recent techniques like TEMPERA and RLPrompt by over 5.3\\% in various text classification tasks. Furthermore, our approach adapts well to broader language understanding tasks, consistently outperforming conventional heuristic methods for ordering examples.},\n\tlanguage = {en},\n\turldate = {2025-01-28},\n\tbooktitle = {Frontiers in {Artificial} {Intelligence} and {Applications}},\n\tpublisher = {IOS Press},\n\tauthor = {Do, Dai and Tran, Quan and Venkatesh, Svetha and Le, Hung},\n\teditor = {Endriss, Ulle and Melo, Francisco S. and Bach, Kerstin and Bugarín-Diz, Alberto and Alonso-Moral, José M. and Barro, Senén and Heintz, Fredrik},\n\tmonth = oct,\n\tyear = {2024},\n}\n\n\n\n\n\n\n\n","author_short":["Do, D.","Tran, Q.","Venkatesh, S.","Le, H."],"editor_short":["Endriss, U.","Melo, F. S.","Bach, K.","Bugarín-Diz, A.","Alonso-Moral, J. M.","Barro, S.","Heintz, F."],"key":"doLargeLanguageModel2024a","id":"doLargeLanguageModel2024a","bibbaseid":"do-tran-venkatesh-le-largelanguagemodelpromptingwithepisodicmemory-2024","role":"author","urls":{"Paper":"https://ebooks.iospress.nl/doi/10.3233/FAIA240953"},"metadata":{"authorlinks":{}},"downloads":0,"html":""},"bibtype":"incollection","biburl":"https://bibbase.org/zotero/saurabhr","dataSources":["nxjWwW7fWbb5tfpKz"],"keywords":[],"search_terms":["large","language","model","prompting","episodic","memory","do","tran","venkatesh","le"],"title":"Large Language Model Prompting with Episodic Memory","year":2024}