SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2504.02522 · CVPR · 2025

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

Tinne Tuytelaars, Fatemeh Behrad, Johan Wagemans

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 6 functions out of this paper's own repositories and ran 2 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
FBehrad/Charm — 2 of 6
FunctionStatusWhere it lives
MlpHead Ran FBehrad/Charm/model.py
code served (permissive licence) · get_code("967d3a3d9348d3ef")
mixout Ran FBehrad/Charm/model.py
code served (permissive licence) · get_code("84122b2d6d66e1d7")
MixLinear Not yet run FBehrad/Charm/model.py
code served (permissive licence) · get_code("f76243ef51599087")
Model Not yet run FBehrad/Charm/model.py
code served (permissive licence) · get_code("1ca3850807fed344")
PatchEmbeddings Not yet run FBehrad/Charm/model.py
code served (permissive licence) · get_code("ee81cf95e3c3a194")
Transformer Not yet run FBehrad/Charm/model.py
code served (permissive licence) · get_code("ec331063d9877442")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2504.02522")
get_code_for_paper("2504.02522")
have("2504.02522")

Connect an agent — have() is free.