Surgformer
Video transformer with hierarchical temporal attention that recognizes surgical phases from sparse frames.
Medical imaging · 1,550 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Medical imaging
- Parameters
- 178M
- Operations
- 1,550
- Framework
- PyTorch
- Recurrent
- No
- Published
- MICCAI 2024
- Paper
- Surgformer: Surgical Transformer with Hierarchical Temporal Attention for Surgical Phase Recognition
- Cited by
- 31 (as of 29 October 2026)
- Authors
- Shu Yang, Luyang Luo, Qiong Wang, Hao Chen
- Source
- GitHub: isyangshu/Surgformer
- License
- CC-BY-NC-4.0
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m20664
- Graph hash
- 0d8ecff5377301676f135a19326d1dc7ade1621439eec35f6e19e950cf445878
- Skeleton hash
- 776824e630927e284024636b6c22e82517397aa5c57ed11b76e071d03bf64488
- Architecture hash
- 6f0b4d2131f25b0c0901f8b82214426a28f5343721d93a4f64c74b6f78728f9c
- Diagram SHA-256
- 3abad5c63da958134f1587f93ef3ce7736e74ecfd413783a24a4eb1c1bfba53f
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
Surgformer, short for Surgical Transformer, is a video model for surgical phase recognition. It works end to end, applying divided spatial-temporal attention to a limited set of sparse frames. The paper says earlier methods use dense spatial features across the entire temporal resolution, which results in significant spatial-temporal redundancy.
The main addition is Hierarchical Temporal Attention (HTA), which gathers both global and local information at varied temporal resolutions from the point of view of a target frame. Beyond long-term information, HTA also considers local latent consistency among informative frames. It then uses pyramid feature aggregation to combine temporal information across the different resolutions.
This model is the surgformer_HTA_KCA option, one of three the repository lists alongside surgformer_base and surgformer_HTA. Training starts from TimeSformer parameters trained on the K400 dataset with 8 frames and spatial size 224. The repository trains and tests on two datasets, Cholec80 and AutoLaparo. A repository note dated 2024-10-01 says the model placed 2nd in the OSS challenge and 3rd in PhaKIR without any adjustment.
Key idea. Surgformer applies divided spatial-temporal attention to sparse frames and adds Hierarchical Temporal Attention to combine global and local information at varied temporal resolutions.
- Surgformer
- Surgical Transformer
- surgical phase recognition
- Hierarchical Temporal Attention
- HTA
- surgical video
- surgical workflow
- Cholec80
- AutoLaparo
- video transformer
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{yang2024surgformersurgicaltransformerhierarchical,
title={Surgformer: Surgical Transformer with Hierarchical Temporal Attention for Surgical Phase Recognition},
author={Shu Yang and Luyang Luo and Qiong Wang and Hao Chen},
year={2024},
eprint={2408.03867},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2408.03867},
}