Charm: The Missing Piece in ViT fine-tuning for Image Aesthetic Assessment

Fatemeh Behrad, T. Tuytelaars, Johan Wagemans
2/10/2026

No official code found. Best implementation: FBehrad/Charm (46 stars, Apache-2.0, last commit 2025-12-04).

Abstract

The capacity of Vision transformers (ViTs) to handle variable-sized inputs is often constrained by computational complexity and batch processing limitations. Consequently, ViTs are typically trained on small, fixed-size images obtained through downscaling or cropping. While reducing computational burden, these methods result in significant information loss, negatively affecting tasks like image aesthetic assessment. We introduce Charm, a novel tokenization approach that preserves Composition, High-resolution, Aspect Ratio, and Multi-scale information simultaneously. Charm prioritizes high-resolution details in specific regions while downscaling others, enabling shorter fixed-size input sequences for ViTs while incorporating essential information. Charm is designed to be compatible with pre-trained ViTs and their learned positional embeddings. By providing multiscale input and introducing variety to input tokens, Charm improves ViT performance and generalizability for image aesthetic assessment. We avoid cropping or changing the aspect ratio to further preserve information. Extensive experiments demonstrate significant performance improvements on various image aesthetic and quality assessment datasets (up to 8.1 %) using a lightweight ViT backbone. Code and pre-trained models are available at https://github.com/FBehrad/Charm.

View on arXivView PDF

Code Implementations(1)

FBehrad/CharmCommunity100%
Apache-2.0

The official PyTorch Implementation of Charm: The Missing Piece in ViT fine-tuning for Image Aesthetic Assessment

463Python, Jupyter NotebookFeb 27, 202510 months agoApache-2.0

Similar Papers

Cite this paper

@article{behrad2026charm,
  title  = {Charm: The Missing Piece in ViT fine-tuning for Image Aesthetic Assessment},
  author = {Fatemeh Behrad and T. Tuytelaars and Johan Wagemans},
  year   = {2026},
  eprint = {2504.02522},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2504.02522},
  journal = {CVPR 2025 2025}
}

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/2504.02522.svg)](https://codeofpaper.com/paper/2504.02522)

Discussion