Characterizing tradeoffs between teaching via language and demonstrations in multi-agent systems

Dhara Yu, Noah D. Goodman, Jesse Mu · DOI

Abstract

In human development, there is a notable shift from learning via imitation to learning through linguistic instruction. This research investigates whether this shift is driven by the inherent properties of language or by pre-existing cognitive biases. Using a multi-agent reinforcement learning framework, we compare emergent communication (language) against demonstration-based teaching across varying levels of task complexity and teacher competence. Our findings reveal a "complexity crossover": while demonstrations are highly effective for simple, low-dimensional tasks, language-based communication becomes the superior modality as task complexity increases, primarily due to its capacity for abstract generalization.

Introduction

Humans possess a unique capacity for high-fidelity social learning, primarily utilizing two modalities: "showing" (demonstration) and "telling" (language). Developmental psychology observes that young children rely heavily on imitation, whereas adults increasingly favor linguistic instruction for complex tasks. However, it remains an open question whether language is inherently more efficient for abstraction or if its utility in humans is simply a byproduct of our pre-existing, rich vocabularies.

To isolate these factors, this study employs an emergent communication paradigm. By training neural network agents from scratch to develop their own communication protocols—either through discrete tokens (language) or examples of optimal play (demonstration)—we can observe which modality naturally emerges as more effective under different environmental constraints.

Experimental Framework: Signaling Bandits

The researchers utilized a "Signaling Bandits" task to evaluate these modalities. In this environment, a "Teacher" agent is privy to the "World State," which defines the hidden reward values associated with specific object features, such as color and shape. The Teacher's goal is to transmit this knowledge to a "Student" agent. The Student must then use this information to select the highest-reward object from a set of options in a new, previously unseen context.

Teaching Modalities

The study compared two distinct conditions:

  1. Language: The Teacher generates a sequence of discrete tokens. The agents must co-evolve a shared convention for these tokens without any pre-defined vocabulary.
  2. Demonstration: The Teacher provides one or more examples of optimal actions within specific contexts, effectively saying, "In this situation, I would choose this object."

Agent Architecture

Agents were implemented using Gated Recurrent Units (GRUs) for sequence processing and Multi-Layer Perceptrons (MLPs) for internal representations of objects and world states. To bridge the gap between discrete communication and gradient-based optimization, the researchers employed the Gumbel-Softmax trick, allowing for end-to-end training.

Task Complexity and Scaling

The complexity of the environment was controlled by the parameter $n$, representing the number of possible values for each feature (e.g., $n=3$ implies three possible colors and three possible shapes). As $n$ increases, the number of possible world states grows exponentially, placing a higher premium on the ability to generalize. To measure this generalization, Teachers were trained on 80% of possible world states and evaluated on the remaining 20%.

Key Findings

The Complexity Crossover

The experiments revealed a clear performance tradeoff. In simple settings ($n=3$), demonstration-based teaching proved more effective, providing the Student with unambiguous mappings for the limited state space. However, as task difficulty increased ($n \ge 4$), demonstration-based agents experienced a sharp decline in performance. In contrast, language-based agents remained stable. Language allows the Teacher to convey "compressed" rules—such as "Red objects are high value"—which apply across a vast array of contexts, whereas demonstrations often fail to convey the underlying logic behind a specific choice.

Robustness to Teacher Competence

A critical finding involved the "low-competence" regime, where the Teacher was only exposed to a tiny fraction (5%) of the world during training. In this scenario, demonstration-based teaching collapsed to near-random performance. Language-based agents, however, maintained significantly higher normalized rewards. This suggests that language is a more robust medium for transmitting useful abstractions even when the Teacher's own knowledge is incomplete.

Emergent Abstraction

Qualitative analysis of the emergent languages showed that agents did not merely assign a unique token to every possible feature value. Instead, they developed a form of categorical abstraction, grouping features into broader classes. For instance, a single "word" might represent a cluster of high-reward colors, communicating relative utility rather than absolute values. This grouping mechanism is central to why language scales more effectively than specific examples.

Discussion and Limitations

While this study provides a foundational look at the tradeoffs between showing and telling, it operates within certain constraints. The reward functions used were linear (e.g., the total reward is the sum of color and shape values). Real-world tasks often involve non-linear dependencies where the abstractive power of language might face different challenges. Furthermore, the agents were restricted to a single modality. In human interaction, teaching is often multimodal—combining verbal instruction with physical demonstration.

Future research could explore how agents learn to dynamically combine these modes and how the introduction of pre-trained concepts or "cultural inheritance" might further shift the balance between language and demonstration. For now, the results underscore a fundamental principle: while examples are clear for the simple, language is essential for the complex.

Summary updated

BibTeX
@inproceedings{yu2023characterizing,
  author = {Dhara Yu and Noah D. Goodman and Jesse Mu},
  title = {{Characterizing tradeoffs between teaching via language and demonstrations in multi-agent systems}},
  booktitle = {CogSci},
  year = {2023},
}
Figure