Abstract
This paper addresses the challenge of adapting the Segment Anything Model (SAM) for event-centric data to achieve robust, universal object segmentation. The core issue is aligning event-centric embeddings with those from RGB imagery. We propose a multi-scale feature distillation methodology that optimizes the alignment of "pivotal" token embeddings—those most significant for high-level representations—between the event and image domains. By leveraging pre-trained SAM knowledge and paired RGB-event datasets, our method, EventSAM, demonstrates superior performance and zero-shot generalization across various challenging benchmarks.
Introduction: The Neuromorphic Distribution Gap
Traditional RGB cameras are often limited by their frame-based nature, suffering from motion blur in high-speed scenarios and losing detail in extreme lighting conditions. Event cameras, or neuromorphic sensors, overcome these limitations by capturing pixel-level brightness changes with microsecond latency and high dynamic range. However, the sparse, asynchronous nature of event data creates a significant distribution gap when compared to standard RGB images.
While the Segment Anything Model (SAM) has revolutionized universal segmentation in the RGB domain, its training on 11 million images does not naturally translate to event streams. Existing event-based methods are typically task-specific and lack SAM's zero-shot capabilities. The challenge lies in transferring SAM’s foundational understanding of objecthood to the event domain without catastrophic forgetting or requiring massive new datasets.
Methodology: Weighted Adaptation of Pivotal Tokens
We introduce EventSAM, a framework that adapts SAM through a novel Teacher-Student distillation strategy. Instead of a full retraining, we focus on aligning the most critical features identified by SAM’s internal attention mechanisms.
Pivotal Token Distillation
Not all tokens in a transformer are equal. We identify "pivotal" tokens—those that contribute most to the final segmentation—by analyzing the attention transition matrices of the frozen RGB "Teacher" model. The "Student" (EventSAM) is then trained to prioritize matching these high-value embeddings, effectively bridging the modality gap where it matters most.
Token Mixing and Strategic Fine-Tuning
To maintain the model's pre-trained knowledge, we employ Token Mixing, where a small subset of RGB tokens is interspersed with event tokens during training. Furthermore, we preserve SAM’s zero-shot robustness by freezing the majority of the network and only fine-tuning the Multi-Layer Perceptrons (MLPs) within the Vision Transformer (ViT) blocks. This targeted adaptation allows the model to learn the new "language" of events while keeping its spatial reasoning intact.
Experimental Results
We evaluated EventSAM on the RGBE-SEG dataset (65,957 pairs) and the MVSEC benchmark for zero-shot performance.
- Quantitative Performance: EventSAM achieved a significant 9% improvement in mIoU (absolute percentage points) over previous state-of-the-art methods like E2VID and ESS.
- Robustness: In environments where RGB images are obscured by darkness or blur, EventSAM consistently produces accurate object boundaries by leveraging the high temporal resolution of event data.
- Zero-Shot Generalization: Testing on the unseen MVSEC dataset confirmed that EventSAM retains SAM's ability to segment objects in novel environments without further training.
Conclusion
EventSAM represents the first successful adaptation of SAM for neuromorphic vision. By focusing on pivotal token distillation, we successfully transfer universal segmentation capabilities to event cameras. While computational efficiency for edge deployment remains a future challenge, this work paves the way for robust, "always-on" vision systems capable of operating in conditions that blind traditional sensors.
Summary updated