提出深度持续注意力机制,实现实时数据流的高效推理。
DeepCoT: Deep Continual Transformers for Real-Time Inference on Data Streams
- 设计冗余无感的深度持续注意力,适配现有深层Transformer结构
- 计算开销线性增长,运行速度比之前模型快100倍以上
- 适用于音视频文本流数据,适合资源受限设备实时处理
基于Transformer的模型规模不断增大以应对复杂任务,但对资源受限设备上的高效率、低延迟推理需求日益增长。尤其在数据流处理中,通常采用滑动时间窗口,导致大量重复计算。尽管近期出现的持续Transformer(Continual Transformers)已部分缓解此问题,但仅适用于浅层模型,限制了其适用范围与泛化能力。本文提出深度持续Transformer(DeepCoT),一种可无缝集成至现有深层编码器架构的冗余无感编码器注意力机制。在音频、视频和文本流数据上的实验表明,DeepCoT在性能上与非持续基线相当,且所有Transformer层的计算成本呈线性增长,相比此前高效模型,运行时间最多降低两个数量级。
原文摘要 · Abstract (English)
Transformer-based models have dramatically increased their size and parameter count to tackle increasingly complex tasks. At the same time, there is a growing demand for high performance, low-latency inference on devices with limited resources. In particular, stream data inference is typically performed over a sliding temporal window, leading to highly redundant computations. While the recent Continual Transformers started addressing this issue, they can be effectively used only in shallow models, which limits their scope and generalization power. In this paper, we propose the Deep Continual Transformer (DeepCoT), a redundancy-free encoder attention mechanism that can be applied over existing deep encoder architectures with minimal changes. In our experiments over audio, video, and text streams, we show that DeepCoTs retain comparative performance to their non-continual baselines while offering a linear computational cost for all Transformer layers, which reduces up to two orders of magnitude in the running time compared to previous efficient models.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。