BackFlip: The Impact of Local and Global Data Augmentations on Artistic Image Aesthetic Assessment

Ombretta Strafforello, Gonzalo Muradas Odriozola, Fatemeh Behrad, Li-Wei Chen, Anne-Sofie Maerten, Derya Soydaner, Johan Wagemans

Abstract

Data augmentation is a cornerstone of modern deep learning, yet its application to Artistic Image Aesthetic Assessment (IAA) remains problematic. Standard global augmentations, such as random cropping and flipping, often disrupt the compositional balance and harmony that define artistic quality. This paper introduces BackFlip, a novel local augmentation pipeline that leverages unsupervised segmentation and inpainting to transform specific image elements while preserving the global compositional structure. Our experiments across multiple artistic datasets demonstrate that local augmentations consistently outperform traditional global methods, providing a more robust framework for training aesthetic assessment models.

Introduction

In computer vision tasks like object recognition, a "dog" remains a "dog" regardless of whether the image is cropped, flipped, or rotated. However, in Artistic Image Aesthetic Assessment (IAA), the labels are inextricably linked to the composition. A masterpiece's aesthetic value is derived from the specific arrangement of its elements; a random crop that removes a focal point or disrupts the rule of thirds effectively creates a new, often lower-quality image. Training models on such "broken" compositions using original high-quality labels introduces significant noise into the learning process.

To address this, we propose BackFlip, a method designed to provide pixel-level variety without compromising the structural integrity of the artwork. By focusing on local rather than global transformations, we aim to maintain the validity of human-assigned aesthetic scores during model training.

Methodology: The BackFlip Pipeline

The BackFlip approach treats data augmentation as a surgical intervention. The pipeline consists of three distinct phases:

  1. Unsupervised Segmentation: The system utilizes the Segment Anything Model (SAM) to identify and isolate distinct regions or objects within a painting (e.g., a figure, a tree, or a specific architectural element) without requiring manual labels.
  2. Inpainting: Once a segment is selected for transformation, it is removed from the image. The resulting "hole" is filled using inpainting techniques to create a clean background. The study explored various methods, including LaMa (Resolution-robust Large Mask Inpainting) for high-fidelity results and simpler Median Color filling for computational efficiency.
  3. Local Transformation: The isolated segment is subjected to transformations—such as horizontal/vertical flipping, rotation, or scaling—and then composited back onto the inpainted background in its original location.

This process ensures that while the internal details of a specific element change, the "bones" of the composition—the spatial relationships and overall balance—remain intact.

Experimental Setup

We evaluated the effectiveness of BackFlip against a variety of baselines, including standard global augmentations (Resize, Center Crop, Horizontal Flip) and a simplified local method called BoxFlip (flipping a random rectangular patch). Testing was conducted across three diverse datasets:

  • BAID (Boldbrush Artistic Image Dataset): A large-scale dataset containing over 60,000 images with crowdsourced aesthetic votes.
  • JenAesthetics: A curated collection of ~1,600 high-quality museum scans spanning 11 art periods.
  • TAD66K (Art subset): A specialized subset of 1,431 artistic images.

The models tested included standard architectures like ResNet-18 and ResNet-50, as well as the Style-specific Art Assessment Network (SAAN).

Results and Key Insights

Our findings suggest a paradigm shift is necessary for artistic data augmentation:

Compositional Preservation is Essential

Local augmentations consistently yielded better performance than global ones. On the BAID dataset, using local methods with ResNet-18 resulted in higher Pearson Correlation Coefficients (PCC) and Spearman’s Rank Correlation (SRCC) compared to standard global flipping. This confirms that preserving the background structure prevents the model from learning contradictory aesthetic cues.

The Efficacy of BoxFlip

Interestingly, even the simplified BoxFlip method—which does not use sophisticated segmentation—often outperformed global augmentations. This suggests that the primary benefit comes from keeping the global frame static, even if the local transformation is relatively crude.

Performance on Small Datasets

The impact of BackFlip was most pronounced on the JenAesthetics dataset. For a ResNet-50 model, local augmentations achieved an accuracy of approximately 75%, a significant improvement over the 72% achieved via global methods. This indicates that local augmentation is particularly valuable when training data is scarce.

Inpainting Trade-offs

While LaMa provided the most visually seamless results, the study found that simpler inpainting methods like Median Color filling were often sufficient for training purposes. This is an important finding for practical applications where computational resources are limited.

Conclusion and Future Work

BackFlip demonstrates that for tasks sensitive to composition, such as artistic assessment, local augmentation is superior to global transformation. By preserving the structural context of an image, we can more effectively utilize existing datasets without degrading the quality of aesthetic labels.

Future research will focus on reducing the computational overhead of the SAM and LaMa pipeline to allow for real-time augmentation. Additionally, we aim to incorporate human-in-the-loop validation to confirm that augmented images maintain the same perceived aesthetic value as the originals, further refining the relationship between local transformations and global harmony.

Summary updated

Abstract

Assessing the aesthetic quality of artistic images presents unique challenges due to the subjective nature of aesthetics and the complex visual characteristics inherent to artworks. Basic data augmentation techniques commonly applied to natural images in computer vision may not be suitable for art images in aesthetic evaluation tasks, as they can change the composition of the art images. In this paper, we explore the impact of local and global data augmentation techniques on artistic image aesthetic assessment (IAA). We introduce BackFlip, a local data augmentation technique designed specifically for artistic IAA. We evaluate the performance of BackFlip across three artistic image datasets and four neural network architectures, comparing it with the commonly used data augmentation techniques. Then, we analyze the effects of components within the BackFlip pipeline through an ablation study. Our findings demonstrate that local augmentations, such as BackFlip, tend to outperform global augmentations on artistic IAA in most cases, probably because they do not perturb the composition of the art images. These results emphasize the importance of considering both local and global augmentations in future computational aesthetics research.
BibTeX
@inproceedings{strafforello2024backflip,
  author = {Ombretta Strafforello and Gonzalo Muradas Odriozola and Fatemeh Behrad and Li-Wei Chen and Anne-Sofie Maerten and Derya Soydaner and Johan Wagemans},
  title = {{BackFlip: The Impact of Local and Global Data Augmentations on Artistic Image Aesthetic Assessment}},
  booktitle = {Workshops @ ECCV},
  year = {2024},
  url = {https://openreview.net/forum?id=FqGZBWnqsw},
}
Figure