Skip to main content
QUICK REVIEW

[Paper Review] Adapting LLM Agents with Universal Feedback in Communication

Kuan Wang, Yadong Lu|arXiv (Cornell University)|Oct 1, 2023
Multi-Agent Systems and NegotiationComputer Science6 citations
TL;DR

This paper proposes Learning through Communication (LTC), a novel training paradigm enabling LLM agents to continuously adapt to new tasks via iterative interaction with environments and other agents. By leveraging structured communication patterns—Monologue, Dialogue, and Analogue—and fine-tuning with PPO on collected trajectories, LTC improves performance across decision-making, knowledge-intensive reasoning, and numerical reasoning tasks, outperforming instruction-tuned baselines by up to 12% in success rate and reducing inference prompt length by over 85%.

ABSTRACT

Recent advances in large language models (LLMs) have demonstrated potential for LLM agents. To facilitate the training for these agents with both linguistic feedback and non-linguistic reward signals, we introduce Learning through Communication (LTC). We design a universal buffer to store all the feedback, and an iterative pipeline to enable an LLM agent to explore and update its policy in an given environment. To optimize agent interactions for task-specific learning with our universal buffer and pipeline, we introduce diverse communication patterns tailored for both single-agent and multi-agent environments. We evaluate the efficacy of our LTC approach on four diverse datasets: ALFWorld (single-agent), HotpotQA (multi-agent collaboration), Chameleon (multi-agent competition), and GSM8k (multi-agent teacher-student). On these data sets, LTC outperforms the supervised instruction fine-tuning baselines by 3.6% to 12%. These results highlight the versatility and efficiency of LTC in facilitating online adaptation for LLM agents.

Motivation & Objective

  • To address the challenge of adapting LLM agents to new tasks with minimal human supervision.
  • To enable continuous, self-improving adaptation through iterative interaction and feedback.
  • To reduce reliance on long, handcrafted few-shot prompts during inference.
  • To design task-specific communication patterns that generate diverse, structured feedback for effective training.
  • To demonstrate the effectiveness and efficiency of the LTC paradigm across diverse reasoning and decision-making tasks.

Proposed method

  • The LTC paradigm uses an iterative pipeline alternating between exploration and training phases.
  • During exploration, agents interact with environments and other agents using three structured communication patterns: Monologue (self-talk), Dialogue (multi-agent interaction), and Analogue (learning from teacher-generated examples).
  • Interaction trajectories and feedback (e.g., rewards, error messages) are stored in a unified replay buffer, with token-level masks distinguishing system, agent, and other-agent outputs.
  • The training phase employs PPO with a combined loss: language modeling loss for fluency and PPO loss for reward-based policy optimization.
  • A replay buffer is updated after each exploration phase, and a subset is sampled for training, enabling continual learning.
  • The framework treats each generated token as an action in the RL formulation, enabling end-to-end policy learning from interaction.
Figure 1: LTC continually adapts agents to new tasks by doing task-specific fine-tuning on the collected iterative interaction trajectories, removing the need for long and handcrafted few-shot examples as the prefix of the prompts in the inference time.
Figure 1: LTC continually adapts agents to new tasks by doing task-specific fine-tuning on the collected iterative interaction trajectories, removing the need for long and handcrafted few-shot examples as the prefix of the prompts in the inference time.

Experimental results

Research questions

  • RQ1Can LLM agents achieve better task performance through continuous, communication-based learning rather than static fine-tuning?
  • RQ2How do different communication patterns—Monologue, Dialogue, and Analogue—impact learning efficiency and performance across diverse reasoning tasks?
  • RQ3To what extent can LTC reduce the need for long, handcrafted few-shot prompts during inference?
  • RQ4Can a smaller LLM (e.g., LLaMA-7B) trained via LTC outperform larger models (e.g., PaLM-62B) fine-tuned with instruction tuning?
  • RQ5How does the integration of feedback from both environments and teacher agents (e.g., GPT-4) affect the agent’s ability to learn complex reasoning patterns?

Key findings

  • On ALFWorld, LTC outperforms the instruction tuning baseline by 12% in success rate, even on the challenging Pick 2 task.
  • On HotpotQA, LTC surpasses the instruction-tuned LLaMA-7B agent by 5.1% in EM score and exceeds the instruction-tuned PaLM-62B model by 0.6%.
  • On GSM8k, LTC improves accuracy by 3.6% over the CoT-Tuning baseline.
  • LTC reduces input prompt token count by 85–90% compared to ICL methods, using only 12.8% to 10.8% of the tokens required by few-shot prompting.
  • Ablation studies show that using structured communication patterns and PPO loss separately for positive and negative samples leads to faster and more significant performance gains than naive data sampling.
  • Case studies reveal that LTC enables agents to learn from feedback and avoid shortcuts used by teacher models (e.g., GPT-4), indicating robust learning beyond imitation.
Figure 2: LTC has an iterative two-phase framework. During the exploration phase, the agent proactively explores new environments and communicates with other agents, gathering the trails to update the replay buffer. Then the agent is trained for updating the policy in the training phase.
Figure 2: LTC has an iterative two-phase framework. During the exploration phase, the agent proactively explores new environments and communicates with other agents, gathering the trails to update the replay buffer. Then the agent is trained for updating the policy in the training phase.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.