Attributes as Operators: Factorizing Unseen Attribute-Object Compositions

Tushar Nagarajan, Kristen Grauman

Introduction

In computer vision, recognizing common objects like "apples" or "tomatoes" is a well-solved problem. However, traditional models struggle with compositionality—the ability to understand new combinations of known concepts. For instance, a model trained on "sliced apples" and "red tomatoes" often fails to recognize a "sliced tomato" because it has overfit the "sliced" attribute to the specific visual features of an apple. This challenge stems from the "long tail" of visual concepts: the number of possible attribute-object combinations is too vast for any training dataset to cover exhaustively. To achieve true scene understanding, models must learn to factorize these concepts, treating attributes as generalizable transformations rather than static labels.

Methods: Attributes as Operators

This research proposes a paradigm shift inspired by linguistics, where nouns are treated as vectors and adjectives as matrices. Instead of learning what a "sliced" object looks like in isolation, the model learns how the attribute "sliced" transforms an object's representation.

  1. Objects as Vectors: Each object (e.g., "apple") is represented as a vector $o$ in a semantic embedding space, initialized using word embeddings like GloVe.
  2. Attributes as Operators: Each attribute (e.g., "sliced") is learned as a linear transformation matrix $M_a$. The composition of an attribute and an object is defined by the matrix-vector product: $g(p) = M_a o$.
  3. Embedding Learning: The model employs a triplet loss to ensure that an image of a "sliced apple" projects to a point in the semantic space close to the calculated $M_{sliced} o_{apple}$ vector and far from incorrect pairs.
The model treats attributes as operators (matrices) that transform object vectors, allowing it to generalize to unseen objects like an orange.

Linguistic Regularizers

To enforce logical consistency, the authors introduce four novel loss terms:

  • Auxiliary Loss: Ensures the model can still identify the underlying object and attribute from the composed representation.
  • Inverse Consistency: Allows the model to mathematically "undo" an attribute and apply a new one (e.g., turning a "sliced apple" into a "ripe apple").
  • Commutativity: Ensures that the order of multiple attributes does not change the result (e.g., "ripe sliced banana" equals "sliced ripe banana").
  • Antonym Consistency: Requires that applying an attribute and then its antonym (e.g., "sharp" then "blunt") returns the object to its original state.

Key Insights

The core innovation is the realization that attributes are modifiers, not entities. Unlike objects, which often have a clear "prototype" (an average car looks like a car), attributes do not have a single visual signature. A "sliced" apple looks nothing like a "sliced" piece of bread. By modeling them as operators, the model learns the effect of an attribute on an object's appearance.

While objects like 'cars' have a clear visual prototype, attributes like 'sliced' are better represented as transformations across diverse instances.

Experimental Results

The model was evaluated on the MIT-States dataset (~53k images, 245 objects, 115 attributes) and UT-Zappos50k (shoes labeled by material). Using a "compositional split" where specific pairs were reserved for testing, the "Attributes as Operators" approach showed:

  • Accuracy Gains: Absolute improvements of 3% to 12% over previous state-of-the-art methods in recognizing unseen compositions.
  • Open-World Robustness: The model remained stable when faced with new combinations, whereas baseline models often collapsed.
  • Zero-Shot Retrieval: The model successfully retrieved images for out-of-domain queries like "rusty lock" even when the object "lock" was absent from the training set.

Limitations and Future Work

While powerful, the current framework relies on manually identified antonym pairs and focuses primarily on single attribute-object pairs. Additionally, the use of linear transformations (matrices) may be too simple for highly complex visual attributes. Future research will explore non-linear operators and methods to automatically learn these relationships from large-scale data.

Summary updated

BibTeX
@inproceedings{nagarajan2018attributes,
  author = {Tushar Nagarajan and Kristen Grauman},
  title = {{Attributes as Operators: Factorizing Unseen Attribute-Object Compositions}},
  booktitle = {European Conference on Computer Vision},
  year = {2018},
  doi = {10.1007/978-3-030-01246-5\_11},
}
Figure