Training-Free Robust Multimodal Learning via Sample-Wise Jacobian Regularization

Zhengqi Gao, Sucheng Ren, Zihui Xue, Siting Li, Hang Zhao

TL;DR

This paper introduces a training-free, test-time defense for multimodal late-fusion systems under adversarial attacks and random corruptions. By optimizing a sample-wise calibration matrix that minimizes the Frobenius norm of the prediction Jacobian, the problem is formulated and solved efficiently as a Sylvester matrix equation. Crucially, the authors prove that an uncorrupted extra modality provides a "biasing effect" that allows this Jacobian filter to rescue corrupted predictions—a mechanism that fails in unimodal architectures.

What Problem Does This Paper Address?

Late-fusion combines separate unimodal neural networks at their output or logit layers. It is widely preferred in privacy-sensitive scenarios (e.g., hospitals sharing medical records and medical imaging with separate third-party AI vendors) and modular engineering pipelines because it avoids exchanging raw features or intermediate representations.

However, late-fusion models are fragile when one modality suffers from perturbations—such as sensor noise, occlusions, or adversarial attacks. Existing multimodal defenses rely heavily on middle-fusion architectures and expensive retraining regimes (e.g., adversarial or stability training). Prior to this work, post-hoc, training-free robustness defenses for late-fusion remained largely unexplored.

Methods

The framework operates entirely during inference without retraining the underlying unimodal networks:

  • Statistical Late-Fusion Foundation: Grounded in conditional class independence, late-fusion computes the combined prediction: $$p = \sigma_2\left(\frac{p_A \odot p_B}{\text{freq}}\right) = \sigma_1(z_A + z_B - \ln \text{freq})$$ where $\sigma_1$ is softmax, $z$ denotes raw logits, and $\text{freq}$ represents class frequencies.

  • Sample-Wise Weight Recalibration: To defend against perturbations in modality $A$, the method inserts a sample-specific matrix $W_a \in \mathbb{R}^{K \times K}$ directly ahead of the logits ($z'_A = W_a z_A$).

  • Regularized Jacobian Objective: $W_a$ is chosen to minimize the Jacobian sensitivity of the multimodal prediction with respect to penultimate features $h_A$, regularized by proximity to the identity matrix $I$: $$\min_{W_a} (1 - \gamma)\|J' W_a W_A\|_F^2 + \gamma \|W_a - I\|_F^2$$
  • Sylvester Equation Solver: By iteratively decoupling the prediction Jacobian $J'$ from $W_a$, the first-order optimality condition reduces to a classical Sylvester equation: $$A W_a + W_a B = B$$ where $A = (1/\gamma - 1)J^2$ and $B = (W_A W_A^T)^{-1}$. This admits a closed-form, unique solution requiring only a $K \times K$ matrix inversion (where $K$ is the number of classes). In practice, a single iteration ($t_{\max} = 1$) delivers optimal performance.

  • Theoretical Robustness Bound: Under Lipschitz continuity of the feature extractor, the authors prove an upper bound on prediction shift: $$\|p'_{\text{noise}} - p'\| \le l \sqrt{\frac{\gamma K}{2(1-\gamma)}} \|\epsilon\|$$

Datasets

The authors benchmarked their approach across three multimodal datasets:

  1. AV-MNIST: MNIST digit images (28×28 with 75% PCA energy reduction) paired with 112×112 audio spectrograms of spoken digits mixed with background noise.
  2. RAVDESS: Ryerson Audio-Visual Database of Emotional Speech and Song; evaluated using facial video frames and vocal audio spectrograms.
  3. VGGSound: Real-world audio-visual video dataset. Experiments used a 100-class subset comprising 53,622 training pairs and 4,706 test pairs, evaluated with a 2D ResNet-18 (audio) and 3D ResNet-18 (video).

Perturbations included random Gaussian noise ($\omega_0$), missing frames/frequency bins ($\omega_1$), local illumination biases ($\omega_{2,3}$), and adversarial attacks (FGSM $\omega_4$, PGD $\omega_5$).

Key Insights and Ideas

  • The "Biasing Effect" of the Second Modality: The authors show that in a unimodal setting, applying $W_x z$ is strictly order-preserving (proven for binary classification and constrained high-dimensional cases). Shrinking the Jacobian simply scales the logits uniformly without altering class predictions. In contrast, multimodal late-fusion introduces the clean modality's logit as a dynamic bias: $$\sigma_1(W_a z_A + z_B - \ln \text{freq})$$ Because $z_B$ is fixed while $W_a$ suppresses the perturbed $z_A$, the clean modality takes over the decision boundary, correcting erroneous predictions.

  • Surpassing Retrained Models Without Training: Statistically fusing standard, clean-trained unimodal models with test-time Jacobian regularization frequently outperformed models explicitly trained with adversarial training (advT), stability training (stabT), or Mixup.

Key Results

  • AV-MNIST (Audio Perturbed):
  • Clean statistical fusion baseline scored 80.4% under Gaussian noise ($\omega_0 = 1.0$) and 89.9% under FGSM attack ($\omega_4 = 0.03$).
  • Adding Jacobian regularization boosted accuracy to 84.5% (+4.1%) under Gaussian noise and 92.2% (+2.3%) under FGSM, while improving clean accuracy from 93.6% to 94.7%.
  • RAVDESS (Audio Perturbed):
  • Regularization improved Gaussian noise ($\omega_0 = 1.0$) accuracy from 82.9% to 85.0% and PGD attack ($\omega_5 = 0.001$) from 63.3% to 68.1%.
  • VGGSound (Video Perturbed):
  • Under severe Gaussian noise ($\omega_0 = 1.5$), statistical fusion accuracy improved from 46.0% to 51.2%.
  • Under FGSM attack ($\omega_4 = 0.03$), accuracy increased from 35.3% to 39.7%.
  • Perturbation Scaling: Performance margins widened as perturbation strength increased (larger noise yielded greater relative improvements).

Limitations and Future Work

  • Clean-Data Accuracy Trade-offs: When perturbing certain modalities (e.g., image features on AV-MNIST/RAVDESS), Jacobian regularization sometimes caused minor accuracy drops on clean data.
  • Sensitivity to Distribution Shift: The Bayesian fusion framework relies on calculating class priors ($\text{freq}$) from training data; label shifts between training and deployment could degrade calibration.
  • Single-Modality Knowledge: The primary formulation assumes knowing which modality is perturbed. When corruptions are blind across both modalities, gains become less uniform (e.g., performance dropped on Free-m backbones on VGGSound).
  • Future Directions: Incorporating learnable frequency vectors for domain shifts, extending unimodal Jacobian regularization by incorporating explicit learnable bias terms $b_x$, and computing Jacobians directly with respect to raw input features.

Summary updated

BibTeX
@inproceedings{gao2022training,
  author = {Zhengqi Gao and Sucheng Ren and Zihui Xue and Siting Li and Hang Zhao},
  title = {{Training-Free Robust Multimodal Learning via Sample-Wise Jacobian Regularization}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=zbZL1s-pBF},
}
Figure