On transfer learning using a MAC model variant

Vincent Marois, T. S. Jayram, Vincent Albouy, Tomasz Kornuta, Younes Bouhadjar, Ahmet S. OzcanarXiv 2018

Abstract

Researchers from IBM Research AI have developed S-MAC, a streamlined version of the popular Memory, Attention, and Composition (MAC) model for Visual Question Answering (VQA). By simplifying the model’s core equations, they achieved a 10.5% speedup in training while maintaining state-of-the-art accuracy. This study further demonstrates that while models struggle with zero-shot compositional generalization, strategic fine-tuning can boost performance on novel attribute combinations by 15 percentage points.

Introduction

Visual Question Answering (VQA) is a multimodal challenge requiring systems to interpret an image and answer natural language questions. A persistent issue in VQA is the tendency for deep learning models to take "shortcuts"—memorizing statistical biases (e.g., assuming all bananas are yellow) rather than reasoning about the scene. The MAC model was designed to address this via a recurrent architecture performing explicit reasoning steps. However, its computational complexity remains a barrier. This research investigates whether the MAC architecture can be simplified without losing reasoning power and how well such models generalize to novel object-attribute pairings.

S-MAC: Architecture and Simplification

The authors introduce S-MAC (Simplified MAC), which reduces complexity through two primary heuristic observations: Layer Collapsing (combining consecutive linear layers without activations) and Invertibility (reorganizing equations to apply single linear transformations to image features once per reasoning step).

The internal structure of a MAC Cell, featuring Control, Read, and Write units.

These principles significantly reduced position-independent parameters: the Read Unit saw a 67% reduction, while the Write and Control units were reduced by 50%. Despite these reductions, S-MAC maintains the core reasoning loop necessary for complex visual tasks.

Experimental Setup and Datasets

The study utilizes two primary benchmarks:

  1. CLEVR: A synthetic dataset of 3D-rendered objects designed to test visual reasoning (counting, comparing, and attribute identification) without real-world photo biases.
  2. CoGenT (Compositional Generalization Test): A variant of CLEVR divided into two conditions. In Condition A, specific color-shape pairings are used (e.g., gray cubes). In Condition B, these pairings are swapped (e.g., gray cylinders). This tests if a model has disentangled concepts like "color" and "shape."

Key Results

  • Efficiency: S-MAC reduced training wall time by 10.5% compared to the original MAC model.
  • Accuracy: On the standard CLEVR dataset, S-MAC achieved 95.29% accuracy, nearly identical to the original MAC's 96.17%.
  • Generalization: When moving from CoGenT-A to CoGenT-B, performance initially plummeted from ~96% to ~78%. However, fine-tuning on just 30k samples of Condition B recovered accuracy to 94%, matching state-of-the-art benchmarks.

Limitations and Qualitative Analysis

Despite the success of fine-tuning, qualitative analysis reveals that models still do not perfectly "disentangle" attributes. If a model has only seen gray cubes during training, it may correctly identify a gray object's color in a new context but default to calling it a "cube" because that is the only "gray thing" it has associated with that color.

A failure case where the model predicts 'cube' for a 'cylinder' despite the attention heatmap correctly identifying the object.

Conclusion

S-MAC demonstrates that a significant portion of the original MAC model's parameters were redundant for reasoning tasks. While fine-tuning provides a massive 15-point boost in generalization, future work must focus on training strategies that force models to learn truly independent representations for attributes like shape, color, and size to handle novel combinations zero-shot.

Summary updated

BibTeX
@misc{marois2018transfer,
  author = {Vincent Marois and T. S. Jayram and Vincent Albouy and Tomasz Kornuta and Younes Bouhadjar and Ahmet S. Ozcan},
  title = {{On transfer learning using a MAC model variant}},
  year = {2018},
  eprint = {1811.06529},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1811.06529},
}
Figure