QUARK:通过利用非线性操作中的共同模式实现变压器加速的量化启用电路共享
QUARK: Quantization-Enabled Circuit Sharing for Transformer Acceleration by Exploiting Common Patterns in Nonlinear Operations
AI总结:
QUARK通过利用非线性操作中的共同模式,实现高效电路共享,减少硬件资源需求,提升Transformer模型的推理速度和精度。
摘要:
基于模型的Transformer架构在计算机视觉和自然语言处理领域取得了突破性进展。然而,模型中的非线性操作显著增加了推理延迟,给高效硬件加速带来了独特挑战。为此,我们提出了QUARK,一种量化启用的FPGA加速框架,通过利用非线性操作中的共同模式,实现高效的电路共享,从而减少硬件资源需求。QUARK针对Transformer模型中的所有非线性操作,通过新颖的电路共享设计实现高精度近似,从而加速这些操作。我们的评估表明,QUARK显著减少了主流Transformer架构中非线性操作的计算开销,实现了相对于GPU实现的最高1.96倍端到端加速。此外,与先前方法相比,QUARK将非线性模块的硬件开销降低了超过50%,同时保持了高模型精度,甚至在超低比特量化下大幅提升了精度。
英文摘要:
Transformer-based models have revolutionized computer vision (CV) and natural language processing (NLP) by achieving state-of-the-art performance across a range of benchmarks. However, nonlinear operations in models significantly contribute to inference latency, presenting unique challenges for efficient hardware acceleration. To this end, we propose QUARK, a quantization-enabled FPGA acceleration framework that leverages common patterns in nonlinear operations to enable efficient circuit sharing, thereby reducing hardware resource requirements. QUARK targets all nonlinear operations within Transformer-based models, achieving high-performance approximation through a novel circuit-sharing design tailored to accelerate these operations. Our evaluation demonstrates that QUARK significantly reduces the computational overhead of nonlinear operators in mainstream Transformer architectures, achieving up to a 1.96 times end-to-end speedup over GPU implementations. Moreover, QUARK lowers the hardware overhead of nonlinear modules by more than 50% compared to prior approaches, all while maintaining high model accuracy -- and even substantially boosting accuracy under ultra-low-bit quantization.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。