Can Hessian-Based Insights Support Fault Diagnosis in Attention-based Models?

Sigma Jahan, Mohammad Masudur Rahman
6/9/2025
cs.LGcs.SE

No confident code implementation found for this paper.

Abstract

As attention-based deep learning models scale in size and complexity, diagnosing their faults becomes increasingly challenging. In this work, we conduct an empirical study to evaluate the potential of Hessian-based analysis for diagnosing faults in attention-based models. Specifically, we use Hessian-derived insights to identify fragile regions (via curvature analysis) and parameter interdependencies (via parameter interaction analysis) within attention mechanisms. Through experiments on three diverse models (HAN, 3D-CNN, DistilBERT), we show that Hessian-based metrics can localize instability and pinpoint fault sources more effectively than gradients alone. Our empirical findings suggest that these metrics could significantly improve fault diagnosis in complex neural architectures, potentially improving software debugging practices.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{jahan2025hessianbased,
  title  = {Can Hessian-Based Insights Support Fault Diagnosis in Attention-based Models?},
  author = {Sigma Jahan and Mohammad Masudur Rahman},
  year   = {2025},
  eprint = {2506.07871},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.07871v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.07871.svg)](https://codeofpaper.com/paper/2506.07871)

Discussion