AutoGuide: Automated Generation and Selection of Context-Aware Guidelines for Large Language Model Agents

Recent advances in large language models (LLMs) have empowered AI agents capable of performing various sequential decision-making tasks. However, effectively guiding LLMs to perform well in unfamiliar domains like web navigation, where they lack sufficient knowledge, has proven to be difficult with the demonstration-based in-context learning paradigm. In this paper, we introduce a novel framework, called AutoGuide, which addresses this limitation by automatically generating context-aware guidelines from offline experiences. Importantly, each context-aware guideline is expressed in concise natural language and follows a conditional structure, clearly describing the context where it is applicable. As a result, our guidelines facilitate the provision of relevant knowledge for the agent's current decision-making process, overcoming the limitations of the conventional demonstration-based learning paradigm. Our evaluation demonstrates that AutoGuide significantly outperforms competitive baselines in complex benchmark domains, including real-world web navigation.

Paper

Similar papers

Peer review

Reviewer wFet7/10 · confidence 4/52024-07-12

Summary

This paper proposes a decision making framework called AudoGuide. It leverages domain knowledge from offline experiences to generate context-aware guidelines. This framework improves LLM agents in downstream decision-making tasks.

Strengths

1.Design of context aware guidelines is ingenious. 2. The proposed framework outperforms competitive baselines in complex benchmarks.

Weaknesses

1. The two advantages when comparing with related works seems contradictory, e,g., inter-task knowledge compared with Reflexion (line 69), context-aware guideline compared with ExpeL (line 83). As the context-aware guideline and inter-task knowledge both contribute to the performance, does it imply that there're sharing contexts across different tasks? Then what's the percentage of inter-task sharing CONTEXT, and inter-task guideline retrieved by guideline selection? 2. Analysis in section 4.2.Q1 (line 222-227) is inconsistent with Table 1. It seems to analyze "ReAct+AutoGuide" over "ReAct+ExpeL" by claming "ExpeL approach helps ReAct by ... but is not as significant as AUTOGUIDE". But I can't find "ReAct+ExpeL" setting in Table 1. It's confusing since following discussion also centers around this setting. 3. Lack of explanation about the setting "AUTOGUIDE + Reflexion" in section 4. It's simply mentioned in section 4.1.2 (line 197). How is it implemented? 4. "Context Identification" module necessitates handcrafted context definitions per task. Since guideline selection relies on context matching, will the number of demonstrations affect task performance?

Questions

See above. A typo: line 110 Appendix C.1: -> C.1.

Rating

7

Confidence

4

Soundness

3

Presentation

3

Contribution

3

Limitations

See above.

Reviewer rEoJ6/10 · confidence 3/52024-07-12

Summary

The paper introduces AUTOGUIDE, a novel framework designed to enhance LLM agents' performance in unfamiliar domains like web navigation by automatically generating context-aware guidelines from offline experiences. These guidelines are expressed in concise natural language and follow a conditional structure, clearly describing the applicable context. The framework includes two key modules: the context identification module, which abstracts the agent's state into a concise description, and the guideline extraction module, which generates the desired guideline for a specific context. The evaluation demonstrates that AUTOGUIDE significantly outperforms competitive baselines in complex benchmark domains, including real-world web navigation.

Strengths

1. The method proposed is reasonable. It acts like a kind of "library learning" that summarizes past experiences into reusable modules and improves the agents' ability in unfamiliar domains. 2. The experimental results are promising, showing the advantage of the proposed method. 3. The writing is clear.

Weaknesses

1. The author claims that their method and the in-context example selection module in ExpeL are orthogonal, so they only compared ExpeL with guidelines. This point requires experimental verification. 2. The author should provide the number of tokens used or the number of times the LLM is called (in training and inference), to more comprehensively compare the various methods.

Questions

1. How is the number of training tasks determined for different domains?

Rating

6

Confidence

3

Soundness

3

Presentation

3

Contribution

3

Limitations

The authors have discussed the limitations well.

Reviewer zgYy6/10 · confidence 4/52024-07-13

Summary

This paper introduces AUTOGUIDE, a framework for enhancing large language model agents' performance in sequential decision-making tasks by automatically generating context-aware guidelines from offline experiences. The method consists of two main components: a context identification module and a guideline extraction module. These modules work together to create concise, natural language guidelines that are relevant to specific contexts. At test time, AUTOGUIDE identifies the current context and selects pertinent guidelines to assist the LLM agent in decision-making. The authors evaluate AUTOGUIDE on various benchmark domains, including ALFWorld, WebShop, WebArena, and real-world multi-modal websites.

Strengths

- Context-awareness is noteworthy because it addresses a fundamental challenge in leveraging offline experiences for LLM agents. By generating guidelines that are explicitly tied to specific contexts, AUTOGUIDE can provide more targeted and relevant assistance during decision-making. This is evident in the example shown in Figure 4, where AUTOGUIDE's context-aware guideline helps the agent locate a soapbar in a less obvious place (the toilet). - Ablation study is pretty strong. The authors test their method across a diverse range of benchmark domains, including both text-based and multi-modal environments, demonstrating AUTOGUIDE's versatility and effectiveness.

Weaknesses

- The method can be summarized as ReAct with context identification and guideline retrieval. And from the ablation study, it seems like the GES component is really important. For each different task, the guidelines have to be constructed, and that can introduce noise. This may hinder the effectiveness of the method.

Questions

N/A

Rating

6

Confidence

4

Soundness

3

Presentation

3

Contribution

3

Limitations

N/A

Reviewer wFet2024-08-09

Thank you for your thorough explanation and experiments! My concerns towards weakness 1/2/4 are all addressed. Regarding the setting "AUTOGUIDE + Reflexion", my question is that how to combine/integrate them together, since they're different frameworks with multiple individual components.

Authorsrebuttal2024-08-10

Response to Reviewer wFet

We are pleased that our rebuttal addressed concerns #1, #2, and #4. We also appreciate the reviewer's clarification of concern #3. Please find further details on the AutoGuide + Reflexion approach below. In the initial episode of a given test task, we begin by using AutoGuide to solve the task. If the initial episode fails, we then use Reflexion to generate reflective feedback based on the test reward. This feedback suggests the plan the agent should attempt in the next episode (or trial). In our AutoGuide + Reflexion setting, **this reflective feedback is appended to the action generation prompt, immediately following the context-aware guidelines**. This approach enables the agent to consider both the context-aware guidelines and the reflective feedback when solving the test task in the next episode. As in Reflexion, when there are multiple past episodes, we concatenate the reflection feedback from each episode. This process continues until the maximum number of episodes (or trials) is reached.

Reviewer wFet2024-08-10

Thank you for the explanation! My concerns are addressed. Please also provide the implementation details in the revised version.

Authorsrebuttal2024-08-12

Response to Reviewer wFet

We're glad our responses addressed your concerns. We also appreciate your positive evaluation of our paper. Yes, based on your insightful and helpful feedback, we will include the implementation details in the revised version.

Reviewer rEoJ2024-08-10

Thanks for the response! I've read it and will keep the score for acceptance.

Program Chairsdecision2024-09-25

Decision

Accept (poster)

© 2026 NYSGPT2525 LLC