Structural Causal Mediation Analysis of Intermediate Transformer Activation Manifolds in Multimodal Clinical Reasoning Under Directed Acyclic Graph Formulations
Main Article Content
Abstract
Medical vision language transformers perform complex clinical reasoning through heavily intertwined cross-modal attention mechanisms. When an input diagnostic question is rephrased without semantic alteration, models frequently produce contradictory outputs, yet standard correlational interpretability methods cannot disentangle whether this instability is mediated through visual representation channels or linguistic pathways. To rigorously isolate the causal mechanisms governing prompt-induced diagnostic answer flips, this study formulates a structural causal mediation framework grounded in Pearl’s Directed Acyclic Graphs. Direct interventions upon intermediate residual stream manifolds across deep transformer layers mathematically decouple the Natural Direct Effect of syntactic query rephrasing from the Natural Indirect Effect mediated through cross-modal visual attention alignments. Comprehensive interventional experiments conducted on clinical chest radiograph benchmarks reveal that prompt framing effects are predominantly mediated through linguistic shortcut pathways concentrated between layers 14 and 18, which exert a 3.4-fold stronger causal effect on output logit margins than localized visual feature pathways. Furthermore, counterfactual pathway ablation demonstrates that selectively neutralizing linguistic mediator activations while holding visual evidence representations constant reverses 68.4% of diagnostic answer flips. Building upon these structural causal insights, we design a Causal Path Regularization loss for model fine-tuning that suppresses spurious textual mediation. The resulting models achieve a 36.5% reduction in overall flip frequency while preserving visual grounding fidelity. These results establish structural causal mediation analysis as a mathematically principled foundation for diagnosing and remedying internal behavioral vulnerabilities in clinical multimodal foundation models.