arXiv:2508.06993cs.CV2025-08被引 3

用八叉树结构让轻量模型一次处理18400万像素病理切片

OctreeNCA: Single-Pass 184 MP Segmentation on Consumer Hardware

  • 用八叉树扩展NCA的邻域定义,实现全局信息高效传递
  • 在消费级显卡上实现184兆像素图像/1分钟手术视频一次性分割
  • 相比UNet节省90%显存,推理速度更快,适合医疗大图处理

医学应用需要对大型输入(如前列腺MRI、病理切片或手术视频)进行分割,理想情况是整体推断以保留空间或时间上下文。然而,大输入的显存消耗成为瓶颈,传统UNet或视觉变压器等架构显存开销随输入增大急剧上升,迫使采用分块或逐帧处理,牺牲全局一致性和速度。轻量级神经细胞自动机(NCA)本身具有尺寸不变性,但受限于局部通信规则,缺乏全局知识。本文提出OctreeNCA,通过八叉树数据结构泛化邻域定义,实现全局知识高效遍历。由于深度学习框架主要针对深层多层网络设计,未充分释放NCA优势,我们基于CUDA实现专用的NCA前向推理函数,进一步降低显存占用并提升速度。实验表明,OctreeNCA可在消费级硬件上快速完成184兆像素病理切片或1分钟手术视频的一次性分割,显存使用仅为UNet的10%。

原文摘要 · Abstract (English)

Medical applications demand segmentation of large inputs, like prostate MRIs, pathology slices, or videos of surgery. These inputs should ideally be inferred at once to provide the model with proper spatial or temporal context. When segmenting large inputs, the VRAM consumption of the GPU becomes the bottleneck. Architectures like UNets or Vision Transformers scale very poorly in VRAM consumption, resulting in patch- or frame-wise approaches that compromise global consistency and inference speed. The lightweight Neural Cellular Automaton (NCA) is a bio-inspired model that is by construction size-invariant. However, due to its local-only communication rules, it lacks global knowledge. We propose OctreeNCA by generalizing the neighborhood definition using an octree data structure. Our generalized neighborhood definition enables the efficient traversal of global knowledge. Since deep learning frameworks are mainly developed for large multi-layer networks, their implementation does not fully leverage the advantages of NCAs. We implement an NCA inference function in CUDA that further reduces VRAM demands and increases inference speed. Our OctreeNCA segments high-resolution images and videos quickly while occupying 90% less VRAM than a UNet during evaluation. This allows us to segment 184 Megapixel pathology slices or 1-minute surgical videos at once.

医学图像分割轻量模型八叉树显存优化

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。