Shifted Window Fourier Transform And Retention For Image Captioning
Jia Cheng Hu, Roberto Cavicchioli, Alessandro Capotondi
TL;DR
This work targets efficient image captioning for resource-constrained settings by introducing SwiFTeR, a lightweight architecture that combines a Shifted Window Fourier Transform visual backbone with a Retention-based fusion decoder. With about 20M parameters and ~3.1 GFLOPs per forward pass, SwiFTeR delivers high throughput (up to ~400 captions/s) and favorable scalability and memory properties, though current caption quality (CIDEr-D around 110) lags behind transformer-based models due to a weaker training setup. The paper provides thorough ablations, compares against state-of-the-art, and analyzes efficiency, power, and memory to demonstrate the practical benefits of the architecture for low-resource deployment. It points to promising future improvements through stronger backbones and larger-scale pre-training of the fusion model to close the performance gap while preserving the efficiency gains.
Abstract
Image Captioning is an important Language and Vision task that finds application in a variety of contexts, ranging from healthcare to autonomous vehicles. As many real-world applications rely on devices with limited resources, much effort in the field was put into the development of lighter and faster models. However, much of the current optimizations focus on the Transformer architecture in contrast to the existence of more efficient methods. In this work, we introduce SwiFTeR, an architecture almost entirely based on Fourier Transform and Retention, to tackle the main efficiency bottlenecks of current light image captioning models, being the visual backbone's onerosity, and the decoder's quadratic cost. SwiFTeR is made of only 20M parameters, and requires 3.1 GFLOPs for a single forward pass. Additionally, it showcases superior scalability to the caption length and its small memory requirements enable more images to be processed in parallel, compared to the traditional transformer-based architectures. For instance, it can generate 400 captions in one second. Although, for the time being, the caption quality is lower (110.2 CIDEr-D), most of the decrease is not attributed to the architecture but rather an incomplete training practice which currently leaves much room for improvements. Overall, SwiFTeR points toward a promising direction to new efficient architectural design. The implementation code will be released in the future.
