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

iFlame:融合全注意力与线性注意力的高效网格生成方法

iFlame: Interleaving Full and Linear Attention for Efficient Mesh Generation

CASIA(中国科学院自动化研究所);KAUST(阿卜杜拉国王科技大学)

Hanxiao Wang, Biao Zhang, Weize Quan, Dong-Ming Yan, Peter Wonka

AI总结:

针对网格生成中注意力模型效率与长距离依赖捕获能力难以平衡的问题,提出融合全注意力与线性注意力的iFlame交错架构,结合沙漏结构与缓存算法,在ShapeNet和Objaverse上实现了效率与生成质量的兼顾。

摘要:

本文提出iFlame,一种基于Transformer的新型网格生成网络架构。尽管基于注意力的模型已在网格生成任务中展现出优异性能,但其二次计算复杂度限制了可扩展性,尤其在处理高分辨率3D数据时问题突出。而线性注意力机制计算成本更低,却往往难以捕获长距离依赖关系,导致生成效果欠佳。为解决这一权衡问题,我们提出一种交错式自回归网格生成框架,兼具线性注意力的高效性与全注意力机制的表达能力。为进一步提升效率并利用网格表示的固有结构,我们将该交错方法集成到沙漏架构中,大幅提升了运行效率。该方法在缩短训练时间的同时,可达到与纯注意力模型相当的性能。为提升推理效率,我们实现了一种缓存算法,与原始Transformer相比,推理速度几乎翻倍,KV缓存大小减少了八分之七。我们在ShapeNet和Objaverse数据集上对框架进行评估,验证了其高效生成高质量3D网格的能力。结果表明,所提出的交错框架有效平衡了计算效率与生成性能,是网格生成任务的实用解决方案。在Objaverse数据集的3.9万条数据(单样本最多4k个面)上,使用4块GPU仅需2天即可完成训练。

英文摘要:

This paper propose iFlame, a novel transformer-based network architecture for mesh generation. While attention-based models have demonstrated remarkable performance in mesh generation, their quadratic computational complexity limits scalability, particularly for high-resolution 3D data. Conversely, linear attention mechanisms offer lower computational costs but often struggle to capture long-range dependencies, resulting in suboptimal outcomes. To address this trade-off, we propose an interleaving autoregressive mesh generation framework that combines the efficiency of linear attention with the expressive power of full attention mechanisms. To further enhance efficiency and leverage the inherent structure of mesh representations, we integrate this interleaving approach into an hourglass architecture, which significantly boosts efficiency. Our approach reduces training time while achieving performance comparable to pure attention-based models. To improve inference efficiency, we implemented a caching algorithm that almost doubles the speed and reduces the KV cache size by seven-eighths compared to the original Transformer. We evaluate our framework on ShapeNet and Objaverse, demonstrating its ability to generate high-quality 3D meshes efficiently. Our results indicate that the proposed interleaving framework effectively balances computational efficiency and generative performance, making it a practical solution for mesh generation. The training takes only 2 days with 4 GPUs on 39k data with a maximum of 4k faces on Objaverse.

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

↑