Can I see an Example? Active Learning the Long Tail of Attributes and Relations

Tyler L. Hayes, Maximilian Nickel, Christopher Kanan, Ludovic Denoyer, Arthur Szlam

TL;DR

This paper introduces Query-by-Category (QBCat), a novel active learning framework that flips the traditional script: instead of an agent asking for the label of a specific image, it asks the oracle for examples of specific rare categories. By explicitly targeting the "long tail" of visual attributes and relations, this approach significantly improves performance on underrepresented classes without sacrificing accuracy on common ones.

What Problem Does This Paper Address?

Identifying objects is one thing, but understanding their attributes (e.g., "a shiny car") and relationships (e.g., "a person riding a bike") is what makes a scene graph. The major bottleneck in training these systems is the long-tailed distribution of the natural world. A few relations like "on" or "wearing" are everywhere, while predicates like "eating" or "laying on" are rare.

Traditional Active Learning (AL) methods typically select unlabeled samples that the model is most "uncertain" about. However, the authors argue this framing is flawed for long-tailed data. In practice, uncertainty-based sampling often fails to explore the tail effectively and can be computationally expensive, requiring the model to run inference on massive unlabeled pools just to decide what to label next.

Methods

The authors propose a paradigm shift from "labeling instances" to "requesting categories."

  1. Query-by-Category (QBCat): The learner is provided with a dictionary of classes. It computes uncertainty scores at the category level and asks the oracle to provide $P$ examples of those specific classes.
  2. QBCat-Tail: A specific strategy where the agent assigns high uncertainty to "tail" classes (rare categories) to ensure they are sampled.

    Figure 2: In classical active learning, a model computes uncertainty scores for unlabeled examples and an oracle labels uncertain examples. In our framework, a model computes uncertainty scores for classes and an oracle provides examples from uncertain classes.
  3. Incremental Training with Replay: To prevent "catastrophic forgetting" of old data while learning new tail examples, the authors use a replay buffer. They implement re-balanced mini-batches (50% new data, 50% old data) to ensure the model doesn't just overfit the common "head" classes.

  4. Post-hoc Bias Correction: Training on re-balanced data biases the model away from the natural distribution. To fix this, they use a two-stage correction: fine-tuning on the natural distribution followed by a class-specific scaling (similar to Platt scaling) to adjust the model's output scores.
  5. Model Architecture: The model treats scene understanding as a triple completion task (subject, predicate, object/attribute). It uses a metric learning approach with a Neighborhood Component Analysis (NCA) loss, encouraging correct "triples" to be closer together in a shared $d$-dimensional embedding space.
Figure 3: Our architecture for a mini-batch with M questions (triples) and targets. Question elements are processed by their respective embedding network/layer (FO, FP, FA), concate- nated with a trainable Null, and processed by G, which outputs predicted embeddings. Targets are processed by their respective embedding network/layer (FOT, FPT, FAT) to yield target embeddings. A cross-entropy loss is then computed between a pairwise distance ma- trix of all predicted and target embedding pairs (D) and a target identity matrix via Eq. 1.

Datasets

The researchers evaluated their framework on Visual Genome 1.4, a massive dataset for scene graph representation.

  • Scale: ~3.4M training triples across 62k images.
  • Classes: 253 unique attribute classes and 46 predicate classes.
  • Split: They explicitly partitioned the data into "head" and "tail" sets based on mean sample counts to test how well models generalize to rare concepts.

Key Insights and Ideas

  • The "Human" Way of Learning: Humans don't just passively label what's in front of them; we actively seek out examples of things we don't understand. QBCat mimics this by allowing the agent to say, "I don't know what 'eating' looks like; show me an example."
  • Standard AL is Blind to the Tail: The paper demonstrates that classical methods (like Least Confident or Maximum Entropy) often perform no better than random sampling on long-tailed data because they fail to prioritize the rare classes that actually drive model improvement.
  • Re-balancing is a Double-Edged Sword: While re-balancing mini-batches is necessary to learn rare classes, it destroys the model's calibration for the real world. The post-hoc bias correction is the "secret sauce" that allows the model to learn from the tail while remaining accurate on the head.

Key Results

The authors used a metric called $\Omega$, which measures performance relative to an "offline" upper bound (a model trained on all data at once).

  • Tail Performance: QBCat-Tail outperformed the best classical AL baselines by 6.7% in average $\Omega$ AUROC and 3.4% in average $\Omega$ mAP on the tail test set.
  • Full Distribution: Even on the full test set (which is dominated by common classes), QBCat-Tail still outperformed baselines by roughly 1-2%, proving that focusing on the tail helps overall representation learning.
  • Efficiency: QBCat eliminates the need for model inference on the entire unlabeled dataset to select samples, potentially saving significant compute time in real-world applications.
Figure 4: Average Ωperformance of active learners over all 10 increments and five question types evaluated on the full and tail test sets.

Limitations and Future Work

  • Oracle Requirements: QBCat assumes the oracle (e.g., a human or a search engine) can easily find examples of any requested category. In a purely "unlabeled pool" setting, this might require an efficient search/indexing mechanism.
  • Complexity of Queries: The current work focuses on missing one element of a triple. Future work could extend this to cases where multiple elements are missing or to relations that span across multiple images.
  • Diversity: While this paper focuses on uncertainty, the authors suggest that combining QBCat with diversity-based sampling (ensuring the requested examples are visually distinct) could further boost performance.

Summary updated

BibTeX
@misc{hayes2022can,
  author = {Tyler L. Hayes and Maximilian Nickel and Christopher Kanan and Ludovic Denoyer and Arthur Szlam},
  title = {{Can I see an Example? Active Learning the Long Tail of Attributes and Relations}},
  year = {2022},
  eprint = {2203.06215},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.06215},
}
Figure