Data Fine-Tuning

Saheb Chhabra, Puspita Majumdar, Mayank Vatsa, Richa Singh

Abstract

When model weights are inaccessible, performance can still be improved by modifying the data. This paper introduces Data Fine-Tuning (DFT), a method that adds a learned, imperceptible layer of noise to input images to align them with a fixed model's decision boundary. DFT is particularly effective for Commercial Off-The-Shelf (COTS) systems facing domain shift, often outperforming traditional model fine-tuning in cross-dataset scenarios.

Introduction

In the real world, many state-of-the-art AI tools—such as facial recognition or emotion detection systems—are provided as Commercial Off-The-Shelf (COTS) "black boxes." Users can send data in and receive predictions, but they cannot access internal weights or architectures to retrain the model for specific needs.

This creates a significant hurdle when a model performs poorly on a new dataset due to domain shift (e.g., a model trained on studio photos struggling with low-light security footage). Traditionally, developers use Model Fine-Tuning (MFT) to adjust parameters. However, if the model is locked, an alternative approach is required. The authors of this paper ask: Can we enhance the performance of a black-box system by adjusting the data instead of the model?

The Data Fine-Tuning (DFT) Framework

Data Fine-Tuning (DFT) shifts the paradigm from model-centric to data-centric adaptation. Instead of shifting the model's decision boundary to fit the data, DFT shifts the data to fit the model's existing boundary.

Conceptual comparison between Model Fine-Tuning (b) and Data Fine-Tuning (c).

Constructive Adversarialism

The core technique relies on adversarial perturbations. While these are typically used to "attack" models by causing misclassification, DFT uses them "constructively." By exploiting the same geometric properties of high-dimensional space that allow for attacks, DFT corrects errors by nudging misclassified images across the decision boundary into the correct category.

Technical Implementation

The DFT process involves learning a single "universal" noise pattern ($N$) for an entire dataset or specific attribute. This is computationally efficient because once the noise pattern is learned, it can be applied to any new incoming image before it is processed by the black-box model.

The DFT optimization pipeline for learning a universal perturbation N.

Key steps in the optimization include:

  1. Optimization: An iterative process finds a perturbation that minimizes classification loss.
  2. Visual Preservation: To ensure images remain visually identical to humans, a constraint (Euclidean distance) is added to the loss function to keep the noise imperceptible.
  3. Transformation: A tanh function ensures the resulting pixel values stay within the valid range of $[0, 1]$.

Experimental Evaluation

The researchers evaluated DFT on three facial analysis benchmarks: LFW (Labeled Faces in the Wild), CelebA, and MUCT. They compared DFT against standard Model Fine-Tuning (MFT) in two scenarios:

  • Intra-Dataset (Same source): Accuracy improved by a modest 1% to 3%, showing that DFT can squeeze extra performance out of even well-matched models.
  • Inter-Dataset (Different sources): This is where DFT excels. When using a model trained on LFW to classify gender in the MUCT dataset, accuracy jumped from 57.84% to 83.65%.

In several cross-dataset experiments, DFT actually outperformed MFT. For instance, on the "Bushy Eyebrows" attribute for LFW images using a CelebA-trained model, DFT reached ~69% accuracy, while MFT (which requires model access) only reached ~45%.

Discussion and Limitations

Despite its success, DFT has limitations. The optimization process typically requires access to the model's gradients (white-box) or a high-fidelity surrogate model. Additionally, the learned perturbations are currently task-specific; a noise pattern for "Gender" may not work for "Smiling." Future work may explore multi-label optimization and broader generalization to tasks like object detection or medical imaging.

Conclusion

Data Fine-Tuning offers a powerful alternative for improving black-box AI systems. By acting as a "translator" that re-aligns new data with a model's original expectations, DFT provides a path forward for enhancing COTS systems without requiring access to proprietary internal weights.

Summary updated

BibTeX
@inproceedings{chhabra2019data,
  author = {Saheb Chhabra and Puspita Majumdar and Mayank Vatsa and Richa Singh},
  title = {{Data Fine-Tuning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.33018223},
}
Figure