[Paper Review] Exploring the sequence length bottleneck in the Transformer for Image Captioning
This paper introduces the Expansion Mechanism, a novel method that dynamically or statically alters input sequence length in Transformers for image captioning, enabling improved performance without relying on self-attention or recurrence. The proposed ExpansionNet architecture achieves SOTA-like results (134.6 CIDEr-D on MS-COCO 2014) despite not using attention or RNNs, demonstrating that sequence length manipulation can bypass traditional bottlenecks.
Most recent state of the art architectures rely on combinations and variations of three approaches: convolutional, recurrent and self-attentive methods. Our work attempts in laying the basis for a new research direction for sequence modeling based upon the idea of modifying the sequence length. In order to do that, we propose a new method called "Expansion Mechanism" which transforms either dynamically or statically the input sequence into a new one featuring a different sequence length. Furthermore, we introduce a novel architecture that exploits such method and achieves competitive performances on the MS-COCO 2014 data set, yielding 134.6 and 131.4 CIDEr-D on the Karpathy test split in the ensemble and single model configuration respectively and 130 CIDEr-D in the official online evaluation server, despite being neither recurrent nor fully attentive. At the same time we address the efficiency aspect in our design and introduce a convenient training strategy suitable for most computational resources in contrast to the standard one. Source code is available at https://github.com/jchenghu/exploring
Motivation & Objective
- To investigate whether input sequence length acts as a performance bottleneck in Transformer-based image captioning.
- To propose a method that decouples model processing from the original input sequence length.
- To design an efficient, non-attention, non-recurrent architecture that maintains competitive performance.
- To reduce training cost and improve feasibility on standard hardware like Tesla K80.
- To open a new research direction focused on sequence length manipulation in sequence modeling.
Proposed method
- The Expansion Mechanism transforms input sequences into a new length via learnable, differentiable operations, both dynamically and statically.
- The mechanism includes a forward step that expands or compresses the sequence and a backward step that reconstructs the original length for compatibility with subsequent layers.
- The method is integrated into a new architecture, ExpansionNet, which uses only feed-forward and residual connections, avoiding self-attention and recurrence.
- The model employs a modified training strategy with fewer epochs and smaller batch sizes to reduce computational cost while maintaining performance.
- The expansion is applied to visual features before the decoder, allowing the network to process sequences of altered length without changing the input image.
- The architecture uses cross-connection attention only for feature fusion, not for sequence modeling, preserving efficiency.
Experimental results
Research questions
- RQ1Can modifying the input sequence length beyond the original input improve image captioning performance?
- RQ2Does decoupling the model’s processing length from the input sequence length alleviate performance bottlenecks in Transformers?
- RQ3Can a non-attention, non-recurrent architecture achieve competitive results in image captioning?
- RQ4Is it possible to design a more efficient training strategy that reduces computational cost without sacrificing performance?
- RQ5Can sequence length manipulation serve as a viable alternative to self-attention or recurrence in sequence modeling tasks?
Key findings
- ExpansionNet achieved 134.6 CIDEr-D on the Karpathy test split in ensemble mode, outperforming many attention-based models.
- The single model configuration reached 131.4 CIDEr-D, demonstrating strong performance without reliance on self-attention or recurrence.
- The model achieved 130 CIDEr-D on the official MS-COCO online evaluation server, confirming its robustness.
- The Expansion Mechanism successfully decouples processing length from input length, enabling effective sequence manipulation.
- The proposed training strategy significantly reduces computational cost, making the method feasible on standard hardware like Tesla K80.
- The results challenge the prevailing assumption that self-attention or recurrence is essential for high performance in image captioning.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.