All models

ExpansionNet-v2

An image captioning encoder-decoder on a Swin-Transformer backbone that processes sequences at expanded lengths.

Multimodal · 1,892 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (23 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
233.8M
Operations
1,892
Framework
PyTorch
Recurrent
No
Published
2022, arXiv
Cited by
45 (as of 27 October 2026)
Authors
Jia Cheng Hu, Roberto Cavicchioli, Alessandro Capotondi
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m16500
Graph hash
04835b1f90524e3cd9328379c3ad555460d74231b944270ea3eb5c52122b045d
Skeleton hash
bf9541c084bd4a9abe018d7f82022f885ec4ae90b424c73b5d38c3f8de3ba0c9
Architecture hash
73458931102852679b07f5e476f37a360208ef2a1758d4d5ea92240a4e55da09
Diagram SHA-256
e47bfc4231501b664c9752cae57917c9bf9b071ea4c0a6a1dedd970a1c1846d4
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

ExpansionNet v2 is an image captioning model built around the Expansion mechanism, a method that distributes the content of a sequence over an increased or arbitrary number of elements, processes it there, and retrieves the original length in a complementary backward operation. The paper investigates the possibility that the fixed number of elements provided by the input, the sequence length, is a performance bottleneck for stateless architectures.

The mechanism has two implementations. Static Expansion, in which the expansion coefficient defines the size of the expanded sequences regardless of the input length, supports only bidirectional processing, and Dynamic Expansion also supports the auto-regressive case. The model is a standard encoder-decoder on top of the Swin-Transformer. Its encoder is made of Static Expansion and FeedForward blocks, and its decoder of Dynamic Expansion, Cross-Attention and FeedForward blocks. The paper's configuration uses the Swin-Transformer in the Large configuration pre-trained on ImageNet, images resized to 3×384×384, a Dynamic expansion coefficient of 16 and Static expansion coefficients of 32, 64, 128, 256 and 512.

Training is divided into four steps that pair phases with frozen backbone weights with fine-tuning of the whole system. The paper reports 143.7 CIDEr-D on the offline test split of MS COCO 2014, 140.8 on the online evaluation server and 72.9 AllCIDEr on the nocaps validation set.

Key idea. The Expansion mechanism lets a captioning network process a sequence at an increased or arbitrary length and then return to the original length, without relying on attention in most components.

  • ExpansionNet v2
  • Expansion mechanism
  • image captioning
  • Static Expansion
  • Dynamic Expansion
  • Block Static Expansion
  • sequence length
  • end to end training
  • MS COCO captioning

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{hu2024exploitingmultiplesequencelengths,
      title={Exploiting Multiple Sequence Lengths in Fast End to End Training for Image Captioning}, 
      author={Jia Cheng Hu and Roberto Cavicchioli and Alessandro Capotondi},
      year={2024},
      eprint={2208.06551},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      doi={https://doi.org/10.1109/BigData59044.2023.10386812},
      url={https://arxiv.org/abs/2208.06551}, 
}