Source-linked AI summary

A Machine With Human-Like Memory Systems

Taewoon Kim, Michael Cochez, Vincent Francois-Lavet, Mark Neerincx, Piek Vossen

arXiv:2204.01611v3cs.AI

TL;DR

The paper asks whether an agent with semantic and episodic memory can answer questions more successfully than one using only one system, and presents the Room as a setting for studying memory use. It reports better performance with both memory systems and with agent collaboration than with the respective alternatives.

  • Problem

    The paper asks whether agents that encode and store relevant observations as episodic or semantic memories can answer questions more successfully than agents using only one memory system.

    Source: §1 · pp. 1–2
  • Method

    The authors model an agent with episodic and semantic memories and introduce the OpenAI Gym-compatible Room, where agents learn to encode, store, and retrieve memories.

    Source: §1 · p. 2, §2.1 · p. 2, §2.2 · p. 3
  • Results

    The authors report that agents with both memory systems outperform agents with only one, and that collaborating agents answer more questions than one agent acting alone.

    Source: §4 · p. 6, §6 · p. 7
  • Takeaways & Limitations

    The Room provides a setting for testing memory systems and collaboration, and the authors conclude that multiple agents can complement each other’s memories in question answering.

    Source: §6 · p. 7

    The current collaboration setup is limited to agents working together; the authors propose extending it to setups involving humans and agents.

    Source: §6 · p. 7

Abstract

from arXiv · show

Inspired by the cognitive science theory, we explicitly model an agent with both semantic and episodic memory systems, and show that it is better than having just one of the two memory systems. In order to show this, we have designed and released our own challenging environment, "the Room", compatible with OpenAI Gym, where an agent has to properly learn how to encode, store, and retrieve memories to maximize its rewards. The Room environment allows for a hybrid intelligence setup where machines and humans can collaborate. We show that two agents collaborating with each other results in better performance than one agent acting alone.

1. Introduction

The paper draws on the distinction between semantic memory for general knowledge and episodic memory for personal events. It models both in an agent and presents the Room environment and collaboration as contributions for studying memory use and question answering.

1. Introduction

  • Semantic memory concerns general world knowledge, whereas episodic memory concerns personal events reconstructed with their when-and-where context.The paper grounds this distinction in cognitive science.Source: §1 · p. 1
  • The authors model an agent with both memory systems and hypothesize that encoding and storing relevant observations in either can improve answers over using only one system.Source: §1 · pp. 1–2
  • The paper introduces the Room, an OpenAI Gym-compatible environment for learning to encode, store, and retrieve memories to maximize rewards.Source: §1 · p. 2
  • The authors report better performance when an agent collaborates with another agent or a human than when it acts alone.Source: §1 · p. 2

2. Methodology

The Room tests agents that answer location questions from partial observations, while maintaining bounded episodic and semantic memories. Its setup also supports human-machine and machine-machine collaboration through combined memory use.

2.1. The Room Environment

  • The Room asks agents where an object is and provides one-at-a-time observations of people placing objects; correct answers earn +1, while incorrect answers earn 0.Room changes stochastically: people may place objects in commonsense locations with chance pcommonsense or random noncommonsense locations with chance 1 −pcommonsense, change an object’s location with chance pnew location, or change their object with chance pnew object. RDF-triple-like inputs are readable and writable by humans and machines and enable use of existing knowledge graphs such as ConceptNet.Source: §2.1 · p. 2

2.2. Episodic and Semantic Memory Systems

  • Because agents see only one person at a time, they retain observations in bounded episodic and semantic memories and learn what to store, forget, or summarize.Episodic records include person-specific events and timestamps; semantic memories capture general knowledge as person-independent quadruples whose final element records strength.Source: §2.2 · p. 3
  • When an episodic record is unavailable, an agent can use semantic commonsense, such as a general laptop-location fact, to answer a question.Semantic memories can summarize repeated observations and do not include people’s names.Source: §2.2 · p. 3

2.3. Hybrid Intelligence

  • The environment permits agents to collaborate by using their combined memories, including recent episodic records or shared commonsense knowledge.The paper describes both human-machine and machine-machine collaboration.Source: §2.3 · p. 3

3. Experimental Setup

The experiments use a simplified Room environment and compare handcrafted memory and response policies, including multiple agents that can draw on combined memories.

3.1. Data Collection and the Environment Hyperparameters

  • The environment uses a restricted ConceptNet subset, 10 objects and names, one location per object, AtLocation questions, tuned event probabilities, and a 1,000-step limit.Source: §3.1 · p. 4

3.2. Single Agent Policies

  • Four single-agent policies vary memory type and handling: episodic-only, semantic-only, both with episodic compression, and both with pretrained ConceptNet semantics.Source: §3.2 · p. 4
  • Agents have equal total memory capacity, and the comparison includes uniform-random forgetting and answering policies.The dual-memory policy splits capacity between systems; the pretrained-semantic policy can allocate remaining space to episodic memory.Source: §3.2 · p. 4

3.3. Multiple Agent Policies

  • Multiple-agent policies otherwise follow the single-agent policies but can use their combined memory systems to answer questions.Source: §3.3 · p. 5

4. Results

The results describe how memory capacity and collaboration relate to question answering: episodic memory is favored at low capacity, semantic memory helps as capacity grows, and two agents answer more questions than one. Handcrafted policies also outperform random policies.

4. Results

  • Handcrafted forgetting and answering policies outperform random policies, while randomizing both produces the worst performance.Figure 1 compares handcrafted and random policies.Source: §4 · p. 5
  • At low memory capacity, episodic-only memory performs better; as capacity increases, semantic memory helps, and the agent with pretrained semantic knowledge performs better by focusing more on episodic memory.Figure 2 reports total rewards across handcrafted policies and memory capacities after one episode with the best handcrafted policies.Source: Figure 2 · p. 5, §4 · p. 6
  • With total capacity held equal, two agents answer more questions than one because they explore in different directions and cover more area.Figure 3 compares single-agent and double-agent performance; its lighter, narrower bars represent the single agent.Source: Figure 3 · p. 6, §4 · p. 6

5. Related work

The related work contrasts theory-focused cognitive science research with computational studies that do not jointly examine semantic and episodic memory. It also identifies limits in the experimental methods and memory representations of prior work.

  • ACT-R and Soar emphasize theory but lack computational experiments, making comparison difficult.Source: §5 · p. 6
  • Human-based experiments on episodic and semantic memory in object recall do not scale as well as the authors’ computational method.Source: §5 · p. 6
  • Episodic Memory Reader studies question answering and learning what to forget, but focuses only on episodic memory and uses numeric embeddings that are difficult to interpret.Source: §5 · pp. 6–7

6. Conclusions

The authors report that the Room supports testing agents with semantic and episodic memory, and that combining these systems, commonsense pretraining, and agent collaboration improves performance. They identify broader collaboration settings and more human-like environments as future work.

  • Agents with both semantic and episodic memory outperform agents with only one system in the Room, and commonsense-pretrained agents outperform agents without pretraining.Source: §6 · p. 7
  • Multiple collaborating agents answer questions better than one agent because they can complement each other’s memories.Source: §6 · p. 7
  • The current collaboration setup includes only agents; future work proposes multiple humans and agents and agents asking humans questions when uncertain.Source: §6 · p. 7
  • Future work proposes comparing reinforcement-learning agents with handcrafted agents and making the Room more human-like with images, voices, and more entities and relations.Source: §6 · p. 7
  • The authors identify conflicts and differing degrees of trust among humans and agents as future collaboration challenges.Source: §6 · p. 7
Loading 2204.01611v3…