Research & Papers

RhythmFormer's New XAI Framework Reveals Attention Leakage in rPPG Models

New quantitative metrics expose hidden connections in sparse attention networks.

Deep Dive

Remote photoplethysmography (rPPG) transformers have achieved low heart-rate error on benchmarks, but their decision-making process remains opaque—a growing concern as these models move toward clinical applications. Existing XAI for rPPG relies on qualitative heatmap inspection without quantitative faithfulness metrics or physiology-grounded validation. To bridge this gap, researchers Chen and Nordling systematically analyze RhythmFormer, a transformer with bi-level routing attention and top-k selection. They adapt four attribution methods—raw attention, rollout, flow, and Beyond Intuition—and introduce two novel metrics: a skin coverage metric that quantifies how much attribution mass falls on skin regions, and an adapted SaCo faithfulness coefficient for regression using the MAE between original and perturbed rPPG waveforms.

Applying these tools on the UBFC-rPPG dataset, the team uncovers a multi-hop leakage effect under sparse top-k routing: attention rollout and flow almost completely restore the connections that individual refined-attention layers explicitly set to zero. Beyond Intuition mitigates this leakage via its value-projection-weighted rollout and gradient-supported mask, achieving the highest median refined skin coverage (0.83 vs. 0.57 for vanilla rollout) and faithfulness (F=0.92). A case study on a low-SaCo outlier shows consistent recovery across all four methods once an artefactual region is replaced. While validation across diverse datasets and model variants is still needed, these metrics shift rPPG XAI toward auditable numerical evidence about spatial alignment and perturbation faithfulness—key for trustworthy clinical deployment.

Key Points
  • Multi-hop leakage: Attention rollout and flow restore connections that sparse top-k routing explicitly sets to zero.
  • Beyond Intuition method achieves median refined skin coverage of 0.83 and faithfulness of 0.92 on UBFC-rPPG.
  • New skin coverage metric and adapted SaCo coefficient provide quantitative, auditable XAI for rPPG regression.

Why It Matters

Auditable XAI is critical before rPPG transformers can be trusted for clinical heart rate estimation.

📬 Get the top 10 AI stories daily