PolyFormer: Referring Image Segmentation as Sequential Polygon Generation

Jiang Liu, Hui Ding, Zhaowei Cai, Yuting Zhang, R. Satzoda +2 more
2/14/2026

No official code found. Best implementation: amazon-science/polygon-transformer (165 stars, Apache-2.0, last commit 2023-07-19).

Abstract

In this work, instead of directly predicting the pixel-level segmentation masks, the problem of referring image seg-mentation is formulated as sequential polygon generation, and the predicted polygons can be later converted into segmentation masks. This is enabled by a new sequence-to-sequence framework, Polygon Transformer (PolyFormer), which takes a sequence of image patches and text query to-kens as input, and outputs a sequence of polygon vertices autoregressively. For more accurate geometric localization, we propose a regression-based decoder, which predicts the precise floating-point coordinates directly, without any co-ordinate quantization error. In the experiments, PolyFormer outperforms the prior art by a clear margin, e.g., 5.40% and 4.52% absolute improvements on the challenging Re-fCOCO+ and RefCOCOg datasets. It also shows strong generalization ability when evaluated on the referring video segmentation task without fine-tuning, e.g., achieving competitive 61.5% J&F on the Ref-DAVIS17 dataset.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
16517C++, LuaMay 12, 20233 years agoApache-2.0

Similar Papers

Cite this paper

@article{liu2026polyformer,
  title  = {PolyFormer: Referring Image Segmentation as Sequential Polygon Generation},
  author = {Jiang Liu and Hui Ding and Zhaowei Cai and Yuting Zhang and R. Satzoda and V. Mahadevan and R. Manmatha},
  year   = {2026},
  eprint = {2302.07387},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2302.07387},
  journal = {CVPR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2302.07387.svg)](https://codeofpaper.com/paper/2302.07387)

Discussion