arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2303.06522cs.CV
收藏

基于令牌稀疏化的快速医学图像分割

Token Sparsification for Faster Medical Image Segmentation

Stony Brook University(石溪大学);Amazon(亚马逊);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室)

Lei Zhou, Huidong Liu, Joseph Bae, Junjun He, Dimitris Samaras, Prateek Prasanna

摘要:

我们可以使用稀疏令牌进行密集预测吗,例如,分割?虽然标记稀疏化已被应用于视觉Transformer(ViT),以加速分类,它仍然是未知的,如何从稀疏标记执行分割。为此,我们将分割重新定义为稀疏编码->令牌完成->密集解码(SCD)管道。我们首先经验表明,天真地应用现有的方法,从分类标记修剪和掩码图像建模(MIM)导致失败和低效的训练所造成的不适当的采样算法和低质量的恢复密集的功能。在本文中,我们提出了软顶K令牌修剪(STP)和多层令牌组装(MTA)来解决这些问题。在稀疏编码中,STP使用轻量级子网络预测令牌重要性分数,并对topK令牌进行采样。棘手的topK梯度近似通过连续扰动分数分布。在令牌完成中,MTA通过组装稀疏输出令牌和修剪的多层中间令牌来恢复完整的令牌序列。最后的密集解码级与现有的分段解码器兼容,例如,UNETR.实验表明,配备STP和MTA的SCD管道在两种训练中都比没有标记修剪的基线快得多(吞吐量高出120%,推理吞吐量高出60.6%),同时保持分割质量。

英文摘要:

Can we use sparse tokens for dense prediction, e.g., segmentation? Although token sparsification has been applied to Vision Transformers (ViT) to accelerate classification, it is still unknown how to perform segmentation from sparse tokens. To this end, we reformulate segmentation as a sparse encoding -> token completion -> dense decoding (SCD) pipeline. We first empirically show that naively applying existing approaches from classification token pruning and masked image modeling (MIM) leads to failure and inefficient training caused by inappropriate sampling algorithms and the low quality of the restored dense features. In this paper, we propose Soft-topK Token Pruning (STP) and Multi-layer Token Assembly (MTA) to address these problems. In sparse encoding, STP predicts token importance scores with a lightweight sub-network and samples the topK tokens. The intractable topK gradients are approximated through a continuous perturbed score distribution. In token completion, MTA restores a full token sequence by assembling both sparse output tokens and pruned multi-layer intermediate ones. The last dense decoding stage is compatible with existing segmentation decoders, e.g., UNETR. Experiments show SCD pipelines equipped with STP and MTA are much faster than baselines without token pruning in both training (up to 120% higher throughput and inference up to 60.6% higher throughput) while maintaining segmentation quality.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑