Manuscript Offprint

arXiv:2608.25610

Advantage-Driven Explicit Memory for Social Navigation

Yeonsoo Park, Mattia Racca, Guillaume Bono, Steeven Janny, Gianluca Monaci, Tomi Silander, Christian Wolf

Yeonsoo Park 1^{1} Mattia Racca 2^{2} Guillaume Bono 2^{2} Steeven Janny 2^{2} Gianluca Monaci 2^{2} Tomi Silander 2^{2} Christian Wolf 2^{2}

Abstract—Robot policies are predominantly learned with classical parametric variants of imitation learning or RL, where training stores the agent's behavior exclusively in the policy's network parameters, putting a heavy burden on the representation learning algorithm. We propose a new navigation agent equipped with non-parametric memory which explicitly indexes prior steps leading to critical events. The advantages are twofold: first, it allows the policy to outsource some of its behavior into an explicit memory; second, it encourages a form of continual learning by allowing an agent to collect data from its testing episodes during deployment and therefore to better generalize to OOD situations. In the context of social navigation, we show that this improves the agent's capability to retain sparse, high-cost failures, such as human collisions. If the policy is trained in simulation, this also naturally addresses the sim-to-real gap, partially, by basing some of the decision making on real data. We integrate the explicit memory into a recurrent PPO architecture and use hidden states for memory retrieval to capture continuous spatiotemporal dynamics. The goal of exploiting rare, high-impact events is achieved by leveraging the RL agent's advantage signals. We train our agent in simulation with a combination of photorealistic rendering and non-visual crowd simulation and show that the agent is robust with respect to OOD social behavior.

I. INTRODUCTION

Safe and efficient navigation in highly interactive, human-populated environments remains a fundamental challenge in robotics, primarily due to the unpredictable nature of human motion and the difficulty of resolving rare edge cases, such as navigating around blind corners or negotiating the use of a narrow doorway. While recent advancements have heavily relied on parametric learning with Imitation Learning (IL) or Reinforcement Learning (RL) to handle complex situations, these standard approaches heavily rely on the power of representation learning to compress all necessary agent behavior into the weights of the policy's neural network. By averaging past experiences into implicit network weights, crucial high-error signals from challenging navigation moments risk being diluted within the parameter space. Without the ability to explicitly anchor past critical experiences in some form of memory, agents tend to struggle to flexibly adapt to specific mistakes, often repeating unsafe behaviors in out-of-distribution scenarios.

Inspired by retrieval-augmented generation (RAG), explicit memories have been proposed recently for agents [1]–[4] and in particular for navigation [5]–[7], with the goal

Figure

Fig. 1. We address human-aware social navigation through explicit memory. During navigation, our end-to-end agent collects and stores past experiences in its context buffer, and can search through it at each step in order to find similar situations and their corresponding outcomes. Context push and pulls are based on advantage and value estimation, effectively filling the context with the most unexpected situations.

of partially delegating reasoning to external memory and lightening the burden of the algorithm training the policy weights. Non-parametric memories provide a powerful complement to parametric learning by allowing agents to directly store and retrieve past experiences, injecting explicit supplementary context to guide the reasoning process. Despite this potential, existing memory-based approaches in navigation typically store snapshot observations or spatial embeddings, e.g., [5]–[7]. Navigating human-populated spaces, however, requires understanding the continuous cause-and-effect of interactions, rather than merely retrieving isolated moments in time.

We propose a method that allows retrieval-augmented agents to exploit event memories, capturing the full spatiotemporal history of challenging interactions. It centers on action-outcome integration, explicitly linking the agent's actions to their delayed consequences. This is achieved by filling the agent's explicit memory with stored agent states, each obtained from a given time instant t and linked to the future outcome of the agent from this state onward, calculated as its return, i.e. the exact cumulated future rewards. This structures the agent's history as a situational cause-and-effect "Scorecard" and enables the robot to query utility metrics derived from past experiences.

Beyond the gains of partially delegating agent behavior

1^{1} Yeonsoo Park is with the Interdisciplinary Program in Artificial Intelligence, Seoul National University, Korea; the work was done while at Naver Labs Europe (yeonsoopark33@gmail.com). 2^{2} authors are with Naver Labs Europe, France ({firstname.lastname}@naverlabs.com) to a retrieval process, this mechanism also naturally allows to address distribution shifts between training and test environments, particularly useful in social navigation and in settings where training is performed in simulation. As part of the agent behavior stems from the exploitation of its explicit memory, we show that filling this memory with test interactions can lead to significant gains in OOD situations.

Our main contributions are as follows:

• Retrieval from agent states: by using recurrent hidden agent states as memory keys, our method retrieves experiences based on continuous interaction dynamics rather than instantaneous spatial snapshots. This enables the agent to extract and utilize past interactions that are aligned with its current situation.

• Rare event preservation: we utilize large-magnitude advantage signals to trigger the storage of rare, high-impact experiences. This is in contrast to classical RL training, where sparse training signals from critical failures tend to be diluted. This can also be seen as a form of inductive bias, which forces the preservation of high-magnitude (positive or negative) advantage signals and counters their catastrophic forgetting.

• Action-outcome event logs: we structure memory as a “Scorecard”, which explicitly maps candidate hidden states and actions to their resulting utilities. By integrating this direct action-outcome evaluation into an RL/PPO architecture, the agent can assess delayed consequences of actions directly, improving sample efficiency during training.

• Online adaptation to OOD situations at test time: we propose a strategy for collecting and scoring memory items directly within the deployment environment, which enables on-the-fly behavioral adaptation without requiring additional gradient updates. By substituting the train memory buffer with testing experiences, this property effectively mitigates distribution shifts.

References (41)