Hierarchical Prompting Assists Large Language Model on Web Navigation

Robert Lo, Abishek Sridhar, Frank Xu, Hao Zhu, Shuyan Zhou


Abstract
Large language models (LLMs) struggle on processing complicated observations in interactive decision making. To alleviate this issue, we propose a simple hierarchical prompting approach. Diverging from previous prompting approaches that always put the full observation (a web page) to the prompt, we propose to first construct an action-aware observation which is more condensed and relevant with a dedicated Summarizer prompt. The Actor prompt then predicts the next action based on the summarized history. While our method has broad applicability, we particularly demonstrate its efficacy in the complex domain of web navigation where a full observation often contains redundant and irrelevant information. Our approach outperforms the previous state-of-the-art prompting mechanism with the same LLM by 6.2% on task success rate, demonstrating its potential on interactive decision making tasks with long observation traces.
Anthology ID:
2023.findings-emnlp.685
Volume:
Findings of the Association for Computational Linguistics: EMNLP 2023
Month:
December
Year:
2023
Address:
Singapore
Editors:
Houda Bouamor, Juan Pino, Kalika Bali
Venue:
Findings
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
10217–10244
Language:
URL:
https://aclanthology.org/2023.findings-emnlp.685
DOI:
10.18653/v1/2023.findings-emnlp.685
Bibkey:
Cite (ACL):
Robert Lo, Abishek Sridhar, Frank Xu, Hao Zhu, and Shuyan Zhou. 2023. Hierarchical Prompting Assists Large Language Model on Web Navigation. In Findings of the Association for Computational Linguistics: EMNLP 2023, pages 10217–10244, Singapore. Association for Computational Linguistics.
Cite (Informal):
Hierarchical Prompting Assists Large Language Model on Web Navigation (Lo et al., Findings 2023)
Copy Citation:
PDF:
https://aclanthology.org/2023.findings-emnlp.685.pdf