Abstract
Learning is an inherently continuous phenomenon. When humans learn a new task there is no explicit distinction between training and inference. As we learn a task, we keep learning about it while performing the task. What we learn and how we learn it varies during different stages of learning. Learning how to learn and adapt is a key property that enables us to generalize effortlessly to new settings. This is in contrast with conventional settings in machine learning where a trained model is frozen during inference. In this paper we study the problem of learning to learn at both training and test time in the context of visual navigation. A fundamental challenge in navigation is generalization to unseen scenes. In this paper we propose a self-adaptive visual navigation method (SAVN) which learns to adapt to new environments without any explicit supervision. Our solution is a meta-reinforcement learning approach where an agent learns a self-supervised interaction loss that encourages effective navigation. Our experiments, performed in the AI2-THOR framework, show major improvements in both success rate and SPL for visual navigation in novel scenes.
Introduction: The Challenge of Static Models
In traditional machine learning, a rigid boundary exists between the training and inference phases. Typically, an agent is trained on a massive dataset, its weights are locked, and it is then deployed in a new environment. In the context of visual navigation—where an agent must locate an object (e.g., a "microwave") using only a camera feed—this "frozen" nature is a significant handicap.
When a standard agent enters an unfamiliar room, it often repeats the same mistakes, such as getting stuck behind furniture or repeatedly bumping into walls, because it lacks the capacity to learn from its immediate experience. This research addresses a fundamental question: How can an agent adapt to a novel environment at test time without external rewards or human supervision?
Self-Adaptive Visual Navigation (SAVN)
To solve this, the authors propose Self-Adaptive Visual Navigation (SAVN). This method leverages gradient-based meta-learning to break the training/inference barrier, allowing the model to update its own weights on the fly during an episode.
The core innovation is the Self-Supervised Interaction Loss ($L_{int}$). Instead of relying on human-defined rewards, the agent learns a loss function (parameterized by a neural network $\phi$) that encourages effective navigation. The "Learning to Learn" loop operates in three main stages:
- Interaction Phase: The agent moves through a scene using its current weights ($\theta$).
- Adaptation: It calculates the interaction loss ($L_{int}$) based on its internal states and policy. It then performs a gradient descent update to its own weights during the episode.
- Meta-Training: During training, the model is optimized so that the "interaction gradients" it calculates independently are as helpful as possible for reaching the goal. Essentially, it learns to mimic the behavior of a supervised reward.
At test time, the agent uses this learned $L_{int}$ to continuously update its weights. This allows the agent to "realize" when it is stuck and adjust its strategy dynamically, exhibiting a form of artificial common sense.
Experimental Evaluation
The researchers evaluated SAVN using the AI2-THOR framework, a near-photo-realistic 3D simulation environment. The dataset consisted of 120 indoor scenes (kitchens, living rooms, bedrooms, and bathrooms). The model was trained on 80 scenes and tested on 20 entirely unseen scenes to measure generalization. The agent's task was to find specific object classes using only RGB images and a Word2Vec-style embedding of the target's name.
Key Results and Insights
SAVN was compared against standard non-adaptive baselines (like A3C) and versions using hand-crafted self-supervised losses. The results demonstrated a clear advantage for meta-learning:
- Success Rate: SAVN achieved a 40.8% success rate in novel scenes, a significant improvement over the 33.0% achieved by the non-adaptive baseline.
- Efficiency (SPL): Success weighted by Path Length (SPL) improved from 14.7 to 16.2, indicating more efficient paths to the target.
- Error Recovery: Qualitative analysis showed that while standard agents might get stuck in corners indefinitely, SAVN agents learn they are stuck after a few frames and change their trajectory.
- Gradient Alignment: The training process forces self-supervised gradients to align with supervised navigation gradients. This ensures that even without an external score, the agent's internal updates move it closer to the goal.
Conclusion and Future Work
SAVN demonstrates that inference should not be a static process. By allowing models to adapt during deployment, we can create more robust agents capable of navigating complex, unseen environments. However, challenges remain. Meta-learning is computationally expensive, requiring second-order derivatives (Hessians), which currently limits the number of adaptation steps possible. Furthermore, the "sim-to-real" gap remains a hurdle for deploying these self-adaptive agents on physical robotic hardware. Future work will likely focus on making these adaptation steps more computationally efficient and testing them in increasingly diverse real-world scenarios.
Summary updated