TL;DR
SurgFormer is a multiresolution gated transformer designed for real-time soft-tissue simulation on large volumetric meshes, supporting both standard deformation and topology-altering resections (cutting). By restricting dense global self-attention to coarse mesh levels and using learned per-node cut embeddings, it achieves state-of-the-art accuracy at interactive latencies (<1 ms), outperforming existing geometric deep learning baselines.
What Problem Does This Paper Address?
High-fidelity biomechanical solvers, such as the Finite Element Method (FEM), are the gold standard for modeling how organs deform during surgery. However, solving these large, sparse systems under complex contact and boundary conditions is computationally expensive, making them too slow for real-time interactive applications like surgical training simulators or intraoperative guidance.
While deep learning surrogates have emerged to approximate these solvers at faster rates, they face two major hurdles:
- Scalability: Applying dense global attention (like standard Transformers) to large, irregular 3D volumetric organ meshes is prohibitively expensive.
- Topology Changes: Surgical procedures inherently involve cutting and resecting tissue. Modeling these discontinuities usually requires complex, dynamic remeshing, which breaks the smooth deformation assumptions of standard neural network architectures.
SurgFormer addresses these challenges by introducing a unified volumetric learning pipeline that handles both continuous deformation and topology-altering cuts efficiently.
Methods
The core architecture of SurgFormer is a multi-resolution encoder-decoder network that operates over a fixed mesh hierarchy.
Key components include:
- Fixed Multiresolution Hierarchy: The network uses Farthest Point Sampling (FPS) to construct a multi-level hierarchy of the mesh. Downsampling is performed via channelwise max pooling over localized clusters, and upsampling is handled via broadcasting.
- The SurgFormer Block: At each hierarchical level, a multibranch block processes features using three parallel paths:
- Local Message Passing: A GAT-style local attention layer captures immediate neighborhood interactions.
- Coarse Global Self-Attention: To keep computation scalable, dense global multi-head attention (accelerated by FlashAttention) is restricted only to coarser levels of the hierarchy where node counts are small.
- Pointwise Feedforward Network: A standard MLP for feature mixing.
- Gating and Fusion Mechanism: Instead of simply averaging the outputs of these branches, SurgFormer uses learned per-node, per-channel gates to adaptively fuse local and long-range information based on the depth and region of the mesh.
- Cut Conditioning: To handle cutting without dynamically changing the underlying mesh graph during inference, the authors augment each node's input features with a learned $d$-dimensional embedding. This embedding explicitly flags whether a node belongs to an intact or resected region, allowing the network to learn topology-changing mechanics on a static graph structure.
Datasets
The authors evaluated their method on a standard single-grasper linear FEM deformation dataset and introduced two new procedure-level surgical simulation datasets generated via an Extended Finite Element Method (XFEM) pipeline:
- Cholecystectomy Resection Dataset: Contains 120,000 samples simulating 25 progressive resections along the gallbladder-liver interface (13,085 vertices, 48,911 tetrahedra).
- Appendectomy Manipulation and Resection Dataset: Contains 320,000 samples featuring both cut and uncut cases separating the mesoappendix and appendix (7,870 vertices, 29,723 tetrahedra).
Key Insights and Ideas
- Global Context on a Budget: Surgical interactions are highly localized (e.g., grasping a tool), but their physical effects propagate globally through tissue. SurgFormer demonstrates that you don't need global attention at the finest mesh resolution; applying it at coarser levels captures long-range physics perfectly well while saving massive computational overhead.
- Static Graphs Can Model Dynamic Cuts: Representing topological discontinuities via learned node embeddings—rather than physically altering the graph topology—enables a unified network architecture to handle both standard deformation and cutting tasks seamlessly.
- Adaptive Gating Matters: Ablation studies revealed that local geometric aggregation is the most critical component for physical realism, but adaptive gating provides a significant accuracy boost over uniform branch mixing by allowing the network to prioritize local vs. global context dynamically.
Key Results
Across all tasks, SurgFormer demonstrated an exceptional accuracy-efficiency tradeoff:
- Deformation Modeling: SurgFormer achieved the lowest Root Mean Squared Error (RMSE: 0.018) and the highest Deformation Capture Metric (DCM: 97.21) among all baselines, running in just 0.64 ms with 6.5M parameters.
- Cut-Conditioned Simulation: On the cholecystectomy dataset, explicit cut conditioning boosted SurgFormer's DCM from 66.85 to 83.61, significantly outperforming the top baseline, GAOT (72.26 DCM), while maintaining near-real-time inference (0.72 ms).
Limitations and Future Work
While SurgFormer represents a major step toward real-time surgical surrogates, the authors note a few limitations:
- Linear Elasticity: The underlying training data relies on quasistatic linear elasticity. Real biological tissues exhibit highly nonlinear, viscoelastic, and anisotropic behaviors.
- Static History: The model currently predicts displacement fields from single-frame inputs and does not account for dynamic, history-dependent effects like tissue relaxation or inertia.
- System Integration: Future work will focus on tightly coupling these learned surrogates with online simulation control loops to enable full, procedure-level interactive training environments.
Summary updated