Audio-Aware Query-Enhanced Transformers (AuTR)
- The paper introduces AuTR, a multimodal transformer that seeds its decoder with audio-derived queries to focus on sounding objects in video frames.
- It employs modality-specific encoders and a unified transformer backbone, achieving improved Jaccard and F-scores over previous convolutional fusion methods.
- The architecture incorporates dynamic convolution in the segmentation head to enhance cross-modal binding and support robust performance in multi-sound and open-set scenarios.
Audio-Aware Query-Enhanced Transformers (AuTR) are a class of multimodal neural architectures specifically designed for the task of audio-visual segmentation (AVS). AVS aims to segment the regions in a video frame that correspond to sounding objects, leveraging both audio and visual cues. AuTR addresses limitations of prior convolutional and early-fusion approaches—namely their restricted receptive fields and inadequate modality fusion—by introducing a unified multimodal transformer framework seeded with audio-derived queries. This architecture enables explicit disambiguation of sounding versus silent (but salient) objects, more robust cross-modal binding, and improved generalization in multi-sound and open-set scenarios (Liu et al., 2023).
1. Architectural Overview
The AuTR framework is organized into three consecutive processing stages: (1) modality-specific encoders for visual and audio streams, (2) a multimodal transformer backbone with both encoder and a query-enhanced decoder, and (3) a lightweight segmentation head based on dynamic convolution.
- Visual Encoder: A pre-trained ResNet-50 or Pyramid Vision Transformer (PVT-v2) consumes RGB frames , yielding three visual feature maps at spatial resolutions for .
- Audio Encoder: A VGGish backbone (pre-trained on AudioSet) converts log-mel spectrograms into -dimensional embeddings .
- Audio–Visual Early Fusion: Both visual and audio embeddings are linearly mapped to a common dimension for each scale . Multi-head attention fuses these as follows:
This produces three audio–visual fused feature maps .
2. Multimodal Transformer Backbone
2.1 Multimodal Encoder
The fused feature maps are spatially flattened, scale-stacked, temporally stacked, and enhanced with fixed 2D positional encodings. They are then processed by a 6-layer deformable transformer encoder, enabling self-attention and cross-scale attention to yield deeply aggregated representations .
2.2 Audio-Aware Query-Enhanced Decoder
AuTR displaces traditional DETR-style object queries with learnable vectors (), each initialized to (audio embedding plus positional offset). Decoder operation comprises, per layer : 1. Self-attention among current queries: . 2. Cross-attention using the encoded audio-visual tokens: . 3. Feed-forward update with residual: .
This explicit seeding of the decoder with audio semantics ensures the attention mechanism focuses on modality-coherent (i.e., sounding) regions.
3. Deep Aggregation and Mask Head
A parallel lightweight decoder, following the Feature Pyramid Network (FPN) paradigm, aggregates the original visual features (), audio tokens (), and transformer encoder output () via cross-attention and progressive top-down upsampling, generating a multi-modal feature map .
The decoder output vectors are passed through a small MLP, generating per-query convolution kernels , consisting of and kernel weights. This results in:
where each is a low-resolution mask for query .
4. Training Objectives and Optimization
For each training frame, only a single ground-truth mask (the sounding object) is provided. A bipartite matching cost is computed:
with (soft Dice loss), (binary focal loss), and (binary cross-entropy for sounding-score head ).
The total loss is applied only to the matched query:
Typical loss weights: , , .
Key hyperparameters:
- (audio-aware queries)
- Transformer: 6 encoder and 6 decoder layers, 8 attention heads, hidden dimension
- Feature dims: , ,
- AdamW optimizer: learning rate , weight decay ; 50 epochs on a single NVIDIA RTX 3090 (batch size 8, modality backbones frozen)
5. Empirical Results
Quantitative performance is assessed on AVSBench S4 (single sound) and MS3 (multi-sound) benchmarks as well as open-set evaluation. On S4 with ResNet-50:
- TPAVI achieves ; AuTR reaches $75.0 / .852$ .
- With PVT-v2: TPAVI at $78.7 / .879$, AuTR at $80.4 / .891$. For MS3 (multi-sound) without fine-tuning (ResNet-50): TPAVI at $47.9 / .578$, AuTR at $49.4 / .612$. After S4MS3 fine-tuning, TPAVI drops from $47.9$ to $44.3$, while AuTR improves from $49.4$ to $56.0$ .
Open-set results (PVT-v2):
- Seen: AuTR $77.56/.865$, TPAVI $75.62/.862$
- Unseen: AuTR $66.22/.777$, TPAVI $55.86/.719$
Ablation results:
- Removing audio-aware queries: Jaccard drops from $80.4$ to $79.6$.
- Removing dynamic-conv mask head: $79.5$.
Qualitative assessment reveals AuTR's ability to isolate truly sounding objects even in cluttered, multi-object, or unseen-category scenes, whereas TPAVI often selects silent but salient distractors.
6. Distinctive Features and Comparative Analysis
The explicit integration of audio signals as the initial state for transformer queries results in focused and interpretable attention; visual–spatial areas emitting sound are emphasized, while equally salient but soundless objects are suppressed. The combination of dynamic convolution in the segmentation head and deep transformer-based cross-modal fusion distinguishes AuTR from prior convolutional fusion methods.
Earlier fusion-based AVS approaches are limited by small receptive fields and superficial fusion. In contrast, AuTR's transformer stack, multi-scale aggregation, and learned audio query initialization allow for more comprehensive cross-modal reasoning and improved domain adaptation, particularly in multi-sound and open-set regimes.
7. Pseudocode and Workflow Illustration
A schematic summary of AuTR’s per-frame inference loop is as follows:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
f_v1, f_v2, f_v3 = VisualBackbone(v_t) f_a = AudioBackbone(a_t) for ℓ in {1,2,3}: f_avℓ = MultiHead(Proj_v(f_vℓ), Proj_a(f_a), Proj_a(f_a)) F′_av = TransformerEncoder(flatten(f_av1, f_av2, f_av3)) Q^0 = [f_a + pos_i for i in 1…N_q] for ℓ in 1…L_decoder: Q′ = SelfAttn(Q^{ℓ−1}) Q″ = CrossAttn(Q′, keys=F′_av, vals=F′_av) Q^ℓ = FFN(Q″) F_m = PixelDecoder(f_v1, f_v2, f_v3, f_a, F′_av) {k_i} = MLP(Q^L) {Ŝ_i} = DynamicConv(F_m, {k_i}) match i* = Hungarian({Ŝ_i}, y_t) compute L_t w.r.t. Ŝ_{i*} and sound‐score s_{i*} |
A plausible implication is that further exploration of modality-aware query initialization and adaptive fusion mechanisms could extend AuTR’s robustness to additional domains, such as cross-modal retrieval or active sound-source localization (Liu et al., 2023).