arXiv:2610.17743cs.CVOct 2026

Manuscript Offprint

arXiv:2610.17743

AttenIR: Aligning Dense Visual Attention with Mesh Warping for Unsupervised Image Retargeting

Yun Zhang, Zhiruo Zhang, Lifei Zhu, Zhe Zhu, Tong Li, Fang-Lue Zhang, Shengjuan Liu, Xinyuan Zheng

Abstract

Image retargeting aims to resize images while preserving salient content free from distortion and stretching. Recent learning-based solutions reduce reliance on traditional hand-crafted features and optimization procedures, leading to more efficient and generalizable performance. Nevertheless, existing approaches still struggle to preserve global structure and content fidelity. To address these limitations, we propose AttenIR, an unsupervised image retargeting framework requiring no manual labels, based on content-aware mesh warping, which effectively couples dense visual attention with sparse mesh constraints. We formulate the mesh deformation as a vertex displacement regression task. Guided by saliency priors, our method jointly optimizes scale, structure, and geometry preservation losses. By combining dense visual attention with semantic features, it achieves robust, unsupervised retargeting without manual annotations. Our primary contributions include (1) a lightweight unsupervised method for image retargeting that ensures content fidelity and preserves global structure, and (2) a coarse-to-fine projection strategy to align dense visual attention priors with sparse mesh constraints, enabling content-aware deformation at the pixel level. Experiments demonstrate that our method achieves competitive and superior performance compared with both traditional and state-of-the-art learning-based methods.

Keywords: Unsupervised image retargeting, Dense visual attention, Mesh warping, Content-aware

1. Introduction

Image retargeting adjusts aspect ratios while preserving salient content and minimizing structural distortion. As visual media is increasingly viewed across diverse screen sizes, retargeting has become a crucial problem in computer graphics and image processing. Image retargeting methods can be broadly divided into traditional optimization-based approaches and learning-based approaches. Traditional methods perform content-aware resizing with operators such as seam carving [1], mesh-based warping [15, 20, 3], and operator-based editing [35, 30]. To reduce reliance on hand-crafted features and iterative optimization, learning-based methods have attracted increasing attention because they can capture semantic representations and provide stronger robustness and generalization. Representative works [6, 7, 21, 22] benefit from combining deep semantic features with content-aware geometric warping. However, most warping-based methods struggle to bridge the visual attention prior and mesh warping, leading to undesirable structure and content distortion. To overcome the limitations of warping-based methods and improve visual quality, recent approaches adopt generative models to retarget images via content removal, completion, or relocation [34, 10]. While effective in some scenarios, generative models are prone to content hallucination during retargeting, failing to faithfully preserve the original input details.

To address the aforementioned limitations, we propose AttenIR, an unsupervised retargeting framework requiring no manual labels, which aligns dense visual attention with mesh constraints to mitigate geometric warping distortions and preserve the fidelity of the original content. Specifically, “dense visual attention” denotes a pixel-level saliency prior [5, 2] employed to guide mesh warping, which is obtained from a pretrained saliency model [14]. In our method, we adopt mesh-based warping to adapt image geometry for target aspect ratios, where mesh deformation is formulated as a vertex displacement regression task. Guided by saliency priors, the regression is constrained by content-preserving, global structure-preserving, and local shape-preserving loss terms to maintain visual plausibility. Instead of averaging dense saliency values into coarse mesh-cell weights, we project mesh-induced deviations derived from the loss functions to the pixel level. Specifically, the saliency prior is warped using the deformed mesh, aligning visual attention and geometric displacement.

*Corresponding author, zrzhang0101011@gmail.com within a shared output space. This enhances salient structure preservation while maintaining the flexibility of mesh-based warping. Experiments demonstrate that our unsupervised method achieves robust retargeting and generalizes well across diverse scenarios.

In summary, the main contributions of this paper are as follows:

• We propose a lightweight unsupervised learning framework for image retargeting that preserves content fidelity and global structure without requiring manually labeled training data.

• We develop a coarse-to-fine projection strategy to align dense visual attention priors with sparse mesh constraints, enabling content-aware deformation at the pixel-level.

References (34)