mlsanityData to 7 Oct 2026

TRAD: Enhancing LLM Agents with Step-Wise Thought Retrieval and Aligned Decision

arXiv 2403.06221 ↗First posted 10 Mar 2024cs.AI cs.CL cs.IRcited by 23

On the map: LLM reasoning → Reasoning for agents, planning and code

also in 1 more
Abstract (arXiv)

Numerous large language model (LLM) agents have been built for different tasks like web navigation and online shopping due to LLM's wide knowledge and text-understanding ability. Among these works, many of them utilize in-context examples to achieve generalization without the need for fine-tuning, while few of them have considered the problem of how to select and effectively utilize these examples. Recently, methods based on trajectory-level retrieval with task meta-data and using trajectories as in-context examples have been proposed to improve the agent's overall performance in some sequential decision making tasks. However, these methods can be problematic due to plausible examples retrieved without task-specific state transition dynamics and long input with plenty of irrelevant context. In this paper, we propose a novel framework (TRAD) to address these issues. TRAD first conducts Thought Retrieval, achieving step-level demonstration selection via thought matching, leading to more helpful demonstrations and less irrelevant input noise. Then, TRAD introduces Aligned Decision, complementing retrieved demonstration steps with their previous or subsequent steps, which enables tolerance for imperfect thought and provides a choice for balance between more context and less noise. Extensive experiments on ALFWorld and Mind2Web benchmarks show that TRAD not only outperforms state-of-the-art models but also effectively helps in reducing noise and promoting generalization. Furthermore, TRAD has been deployed in real-world scenarios of a global business insurance company and improves the success rate of robotic process automation.

Key facts. Cited by 23 papers in the map (data through 7 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 12 of its 48 references that are in the map. First posted on arXiv 10 Mar 2024.

Builds on

12 of 48 references.

References · 12

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2023GPT-4 Technical Reportcited by 18,132
  3. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  4. 2023A Survey on Large Language Model based Autonomous Agentscited by 2,203
  5. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  6. 2023Voyager: An Open-Ended Embodied Agent with Large Language Modelscited by 2,081
  7. 2021WebGPT: Browser-assisted question-answering with human feedbackcited by 1,722
  8. 2021What Makes Good In-Context Examples for GPT-3?cited by 1,184
  9. 2023Graph of Thoughts: Solving Elaborate Problems with Large Language Modelscited by 873
  10. 2023LLM+P: Empowering Large Language Models with Optimal Planning Proficiencycited by 496
  11. 2023Large Language Models for Information Retrieval: A Surveycited by 331
  12. 2023Everything of Thoughts: Defying the Law of Penrose Triangle for Thought Generationcited by 73

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 3; 2025: 11; 2026: 9.

23 papers.

Sort:

By area:

  1. 2026MemRL: Self-Evolving Agents via Runtime Reinforcement Learning on Episodic Memorycited by 113
  2. 2025Agent KB: Leveraging Cross-Domain Experience for Agentic Problem Solvingcited by 90
  3. 2025AgentNet: Decentralized Evolutionary Coordination for LLM-based Multi-Agent Systemscited by 86
  4. 2025A Survey of AI Agent Protocolscited by 77
  5. 2024RuleArena: A Benchmark for Rule-Guided Reasoning with LLMs in Real-World Scenarioscited by 26
  6. 2024Agentic Information Retrievalcited by 19
  7. 2025Self-Generated In-Context Examples Improve LLM Agents for Sequential Decision-Making Taskscited by 17
  8. 2025Agent Exchange: Shaping the Future of AI Agent Economicscited by 15
  9. 2026Structurally Aligned Subtask-Level Memory for Software Engineering Agentscited by 11
  10. 2025HiPlan: Hierarchical Planning for LLM-Based Agents with Adaptive Global-Local Guidancecited by 10
  11. 2025Boosting Virtual Agent Learning and Reasoning: A Step-Wise, Multi-Dimensional, and Generalist Reward Model with Benchmarkcited by 9
  12. 2025Mining Intrinsic Rewards from LLM Hidden States for Efficient Best-of-N Samplingcited by 9
11 more
  1. 2026World-Model-Augmented Web Agents with Action Correctioncited by 8
  2. 2026Epistemic Context Learning: Building Trust the Right Way in LLM-Based Multi-Agent Systemscited by 6
  3. 2026ActMem: Bridging the Gap Between Memory Retrieval and Reasoning in LLM Agentscited by 6
  4. 2026Self-Evolving World Models for LLM Agent Planningcited by 5
  5. 2025Leveraging In-Context Learning for Language Model Agentscited by 4
  6. 2026Bridging the Agent-World Gap: Text World Models for LLM-based Agentscited by 3
  7. 2025Inference-Time Distillation: Cost-Efficient Agents Without Fine-Tuning or Manual Prompt Engineeringcited by 2
  8. 2024LLM-R: A Framework for Domain-Adaptive Maintenance Scheme Generation Combining Hierarchical Agents and RAGcited by 1
  9. 2025Reflecting with Two Voices: A Co-Adaptive Dual-Strategy Framework for LLM-Based Agent Decision Makingcited by 1
  10. 2026Foundation-Model-Based Agents in Industrial Automation: Purposes, Capabilities, and Open Challengescited by 1
  11. 2026Leveraging Trajectory Graphs for Pre-Execution Error Diagnosis in Agentic LLM Systemscited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2026Retrieval-Augmented LLM Agents: Learning to Learn from Experience
  2. 2024Learning From Failure: Integrating Negative Examples when Fine-tuning Large Language Models as Agents
  3. 2025AgentPRM: Process Reward Models for LLM Agents via Step-Wise Promise and Progress
  4. 2025Scaling Autonomous Agents via Automatic Reward Modeling And Planning
  5. 2026Thought-Retriever: Don't Just Retrieve Raw Data, Retrieve Thoughts for Memory-Augmented Agentic Systems
  6. 2025An Empirical Study on Reinforcement Learning for Reasoning-Search Interleaved LLM Agents
  7. 2026LLM Agents Factory: Retrieval of Domain-Specific LLM Agents
  8. 2025Distilling LLM Agent into Small Models with Retrieval and Code Tools