UniVector: Unified Vector Extraction via Instance-Geometry Interaction
Yinglong Yan, Jun Yue, Shaobo Xia, Hanmeng Sun, Tianxu Ying, Chengcheng Wu, Sifan Lan, Min He, Pedram Ghamisi, Leyuan Fang
TL;DR
This work addresses the limitation of existing vector extraction methods that are specialized to a single vector structure by proposing UniVector, a unified VE framework that encodes vectors as structured queries and refines them through an instance–geometry interaction. The approach combines a unified vector encoding, an instance–geometry interactive decoder, and a Dynamic Shape Constraint to jointly capture global topology and local geometry across polygons, polylines, and line segments. A new Multi-Vector dataset is introduced to benchmark multi-structure VE, and comprehensive experiments show state-of-the-art results on both single-structure and multi-structure VE tasks, with notable efficiency gains. The work lays groundwork for a cross-structure VE foundation and promises impactful downstream applications in mapping, robotics, and digital design.
Abstract
Vector extraction retrieves structured vector geometry from raster images, offering high-fidelity representation and broad applicability. Existing methods, however, are usually tailored to a single vector type (e.g., polygons, polylines, line segments), requiring separate models for different structures. This stems from treating instance attributes (category, structure) and geometric attributes (point coordinates, connections) independently, limiting the ability to capture complex structures. Inspired by the human brain's simultaneous use of semantic and spatial interactions in visual perception, we propose UniVector, a unified VE framework that leverages instance-geometry interaction to extract multiple vector types within a single model. UniVector encodes vectors as structured queries containing both instance- and geometry-level information, and iteratively updates them through an interaction module for cross-level context exchange. A dynamic shape constraint further refines global structures and key points. To benchmark multi-structure scenarios, we introduce the Multi-Vector dataset with diverse polygons, polylines, and line segments. Experiments show UniVector sets a new state of the art on both single- and multi-structure VE tasks. Code and dataset will be released at https://github.com/yyyyll0ss/UniVector.
