Source-linked AI summary
ALICE: Active Learning with Contrastive Natural Language Explanations
Weixin Liang, James Zou, Zhou Yu
TL;DR
Collecting and annotating enough labeled data can be costly or infeasible, while labels provide limited information. ALICE selects class pairs for contrastive expert explanations, parses them, and changes model structure to incorporate the extracted knowledge. In visual-recognition experiments, it is reported as more data-efficient than adding training data, with one explanation yielding a performance gain comparable to 30 labeled examples in the bird task.
Problem
Collecting and annotating large training sets can be costly or infeasible, and labels provide only log C bits per sample.
Source: §1 · p. 1Method
ALICE selects class pairs for contrastive expert explanations, parses the explanations, and updates model structure to incorporate the extracted knowledge.
Source: §1 · p. 2Results
Adding 1 explanation yields the same performance gain as adding 30 labeled data points in the reported bird-species experiment.
Source: §5 · p. 7Takeaways & Limitations
Across two visual-recognition tasks, the authors report that incorporating explanations is more data-efficient than adding extra training data.
Source: §7 · p. 9The setup is restricted to low-resource training with a limited budget for expert explanations.
Source: §3 · p. 3
Abstract
from arXiv · showhide
Training a supervised neural network classifier typically requires many annotated training samples. Collecting and annotating a large number of data points are costly and sometimes even infeasible. Traditional annotation process uses a low-bandwidth human-machine communication interface: classification labels, each of which only provides several bits of information. We propose Active Learning with Contrastive Explanations (ALICE), an expert-in-the-loop training framework that utilizes contrastive natural language explanations to improve data efficiency in learning. ALICE learns to first use active learning to select the most informative pairs of label classes to elicit contrastive natural language explanations from experts. Then it extracts knowledge from these explanations using a semantic parser. Finally, it incorporates the extracted knowledge through dynamically changing the learning model's structure. We applied ALICE in two visual recognition tasks, bird species classification and social relationship classification. We found by incorporating contrastive explanations, our models outperform baseline models that are trained with 40-100% more training data. We found that adding 1 explanation leads to similar performance gain as adding 13-30 labeled training data points.
1 Introduction
Annotated data can be costly or infeasible to collect, while labels provide a narrow communication channel. ALICE uses contrastive natural-language explanations to improve data efficiency by selecting informative class pairs, parsing expert explanations, and updating the model structure.
1 Introduction
- Annotations can be costly, and collecting many data points can be difficult or infeasible, including for tasks such as medical diagnosis.Source: §1 · p. 1
- Each class label provides only log C bits per sample, whereas natural-language communication can convey abstract concepts and knowledge.Source: §1 · p. 1
- A gull explanation distinguishes species by bill markings rather than coat color, which changes as ring-billed gulls mature.The supplied explanation contrasts a black bill ring with a red spot on the lower mandible; it identifies image A as the California gull.Source: Figure 1 · p. 1, §1 · p. 2
- Because expert time and high-quality explanations are costly, the paper aims to elicit fewer, more informative explanations.Source: §1 · p. 2
- ALICE selects informative class pairs for expert explanations, parses the explanations, and updates model structure; experiments report better data efficiency than methods increasing training sample volume.The experiments cover bird species and social relationship classification.Source: §1 · p. 2
2 Related Work
Prior work incorporates natural-language explanations through joint classification and captioning or as additional features; this paper instead focuses on selecting informative class-pair explanations and integrating their knowledge into classifiers. It also distinguishes its approach from active learning based on labels, heuristic-rule labeling, and hierarchical recognition methods.
2 Related Work
- Earlier explanation-based classification jointly learns classification and captioning or uses explanations as additional features; ALICE instead elicits fewer, more informative explanations and extracts their knowledge for classifiers.Source: §2 · p. 2
- Unlike heuristic-rule approaches that automatically label unlabeled data, ALICE assumes no additional training data points and incorporates parsed explanation knowledge into classifiers.Source: §2 · p. 2
- Unlike instance-based active learning that requests labels, ALICE focuses on natural-language explanations; the cited active-learning work uses labels as its communication interface.Source: §2 · p. 2
- Prior hierarchical visual-recognition work expands models for category hierarchies or decomposes classification into coarse and fine categories; this work incorporates contrastive explanations into the model hierarchy.Source: §2 · pp. 2–3
- ALICE selects confusing class pairs, grounds parsed explanation semantics in image patches, and adds local classifiers while merging the pairs in the global classifier.Source: Figure 2 · p. 3
3 Problem Formulation
The setup considers low-resource classification with a limited expert-query budget. Experts compare class pairs and provide class-level contrastive explanations, while the starting classifier is a standard image-classification architecture.
3 Problem Formulation
- Contrastive explanations ask why a target event P occurred rather than a counterfactual contrast case Q, and the paper’s explanations compare classes rather than particular images.Source: §3 · p. 3
- The setting assumes a small initial training set and a limited budget for expert explanations across k interaction rounds, with b class-pair queries per round.Source: §3 · p. 3
- Each expert query names two classes, and the resulting explanation identifies semantic segments that discriminate between them; segments can be object parts or semantic objects.Source: §3 · p. 3
- The initial model uses an image encoder, global pooling, and a fully connected layer for flat C-way classification.Source: §3 · p. 3
4 ALICE: Active Learning with Contrastive Explanations
ALICE selects confusing class pairs for expert contrastive explanations, grounds extracted semantic segments in training images, and adds local classifiers to assist the global model. Its rounds combine active query selection, semantic grounding, and architecture updates.
4.3 Semantic Explanation Grounding
- Each round selects b confusing class pairs, elicits text-only expert explanations, parses them, and uses the identified semantic segments to crop training images.ALICE applies off-the-shelf localization models to crop the segments from examples in the queried classes, then resizes the patches.Source: §4.1 · p. 3, §4.3 · p. 4
4.2 Class-based Active Learning
- ALICE selects class pairs with the lowest Jensen-Shannon Divergence between fitted class-feature Gaussians, treating nearby pairs as the most confusing to the model.It queries experts about the b selected pairs.Source: §4.2 · p. 4
4.4 Neural Architecture Morphing
- ALICE adds a local classifier for each queried class pair and incorporates explanation-derived knowledge so it focuses on the experts’ discriminating semantic segments.The shared attention mechanism represents latent semantic segments, while each local classifier uses a private fully connected layer for predictions.Source: §4.4 · pp. 5–6
- The global classifier merges each queried pair into a super-class, and its corresponding local classifier runs only when that super-class is predicted most confidently.ALICE progressively adds these pair-specific classifiers; overlapping pairs can instead be handled by one classifier over the union of their classes.Source: §4.4 · p. 5
- Local classifiers train on both the original images and resized patches of the explanation-named segments, while testing uses only whole images.The encoder is fine-tuned and the global classifier is reset after each round.Source: §4.4 · p. 5
5 Bird Species Classification Task
ALICE uses expert contrastive explanations to guide bird-species classification, with one explanation providing a performance gain similar to 30 labeled examples. Results also highlight the roles of semantic grounding, hierarchical architecture, and class-based query selection.
Dataset and Expert Queries
- The bird task uses 25 sampled species and 15 training images per species; image-part annotations support training crops but are not used at test time.The experiment collected 67 contrastive explanations, averaging 18.45 words each.Source: §5 · p. 6
Discussion on CUB Description Dataset
- ALICE’s expert explanations distinguish bird classes using semantic parts, whereas five crowd-sourced visual descriptions per image did not improve performance in this setting.For example, the cited gull explanation distinguishes species by bill markings rather than coat color.Source: §5 · p. 7
Results
- One explanation yields a performance gain similar to 30 labeled training examples; ALICE with 12 explanations reaches 76.05% accuracy versus 70.36%–73.09% for instance-based baselines with 250 extra data points.ALICE with 12 explanations also achieves 76.05% accuracy, comparable to 75.91% after adding 375 training images.Source: §5 · pp. 7–8, Figure 5 · p. 7, Table 3 · p. 8
- Removing hierarchy drops accuracy to 59.22% from ALICE’s 76.05%, while random class pairs reduce it to 42.67%.The reported ablations also show lower accuracy without grounding (66.47%) or with random grounding (64.44%).Source: §5 · p. 8
Additional Experiments
- With as few as five images per species, 12 explanations raise base-model accuracy from 49.76% to 62.80%, exceeding the 59.51% base model trained with 15 images per class.The passage reports this as a low-training-data experiment.Source: §5 · p. 8
Visualization
- Saliency visualizations show ALICE focusing on discriminating semantic segments for correct predictions, unlike the base model in the illustrated examples.The visualizations cover four example images.Source: Figure 4 · p. 6, §5 · p. 8
6 Social Relationship Classification Task
In social relationship classification, ALICE’s explanations and class-based query selection yield benefits in a low-resource setting. One explanation provides a performance gain similar to 13 labeled examples, while random class-pair selection and random grounding perform worse.
Dataset
- The task uses two-person photos from a dataset spanning five social domains and 16 relations, with 264 training images in the low-resource setting.The preprocessed data include 1,679 training images and 802 test images; the detector localizes contextual objects during training but is not used at test time.Source: §6 · pp. 8–9
Results
- One explanation gives a performance gain similar to 13 labeled training examples; ALICE with eight explanations slightly exceeds the model with 40% extra training images, at 36.41% versus 36.28%.The comparison is reported on the social-relationship test set.Source: §6 · p. 9, Figure 7 · p. 9
- Random class-pair selection lowers accuracy to 22.94%, and random grounding lowers it to 27.20%.The authors suggest that random pairs produce a poor model structure, which can confuse the global classifier and its local classifiers.Source: §6 · p. 9
7 Conclusion
ALICE uses class-based active learning to select informative class pairs for contrastive explanations, then incorporates extracted knowledge by changing the neural network structure. Experiments on two visual recognition tasks show greater data efficiency than adding training data.
7 Conclusion
- Across two visual recognition tasks, incorporating natural language explanations is reported as more data-efficient than adding extra training data.The conclusion identifies future work on whether hierarchical classification can reduce computational runtime.Source: §7 · p. 9
- ALICE selects informative class pairs through class-based active learning and incorporates extracted expert knowledge by changing the neural network structure.The framework uses contrastive natural language explanations to improve learning data efficiency.Source: §7 · p. 9
- The authors plan to examine whether hierarchical classification could reduce computational runtime.Source: §7 · p. 9
Additional Implementation Details
The implementation uses Inception v3 as the image backbone and a global average pooling layer. The reported training time is under 20 minutes in the limited-training-data setting.
Additional Implementation Details
- Training takes less than 20 minutes in the resource-constrained setting with limited training data.Source: Additional Implementation Details · p. 12
- The model uses Inception v3 with the Mix6e activation map and six learnable latent attention queries.The image input size is (448, 448); the model has 15,114,476 parameters.Source: Additional Implementation Details · p. 12
- Class-based active learning is reported as empirically insensitive to random seeds and hyperparameters such as batch size, enabling on-demand explanation collection.Source: Additional Implementation Details · p. 12
Bird Species Classification Dataset
The bird dataset uses random sampling informed by biological hierarchy to select challenging species. The passage lists the 25 sampled bird species.
Bird Species Classification Dataset
- The sampling procedure selects challenging-to-classify bird species at random using biological hierarchy as its basis.The cited method is attributed to Vedantam et al. (2017), and the hierarchy source is Wikispecies, with Barz and Denzler (2020) cited.Source: Bird Species Classification Dataset · p. 12
- The sample contains 25 bird species, including California Gull, Ring billed Gull, and Least Tern.Source: Bird Species Classification Dataset · p. 12
- The listed sample spans multiple named groups, including auklets, kingfishers, tanagers, thrashers, gulls, vireos, and terns.Source: Bird Species Classification Dataset · p. 12
Saliency Map Visualization
Saliency maps are computed from image-score gradients to indicate how pixels affect the classification score. The social relationship dataset is filtered and truncated to address task-specific architecture needs and class imbalance.
Saliency Map Visualization
- The saliency map takes the absolute image gradient for the correct-class score and the maximum across input channels, yielding a nonnegative H × W map.The gradient indicates how the score changes with small pixel changes.Source: Saliency Map Visualization · p. 12
Social Relationship Classification Dataset
- Images with more than two people are excluded from PIPA-Relation because they require task-specific neural architecture.Source: Social Relationship Classification… · p. 12
- To address class imbalance after filtering, classes are capped at 200 training images and 100 testing images.The resulting dataset contains 1,679 training images and 802 testing images.Source: Social Relationship Classification… · p. 12
Related papers
This paper cites
- Microsoft COCO: Common Objects in Context2014
- Going Deeper with Convolutions2014
- Rethinking the Inception Architecture for Computer Vision2015
- Visual Genome: Connecting Language and Vision Using Crowdsourced Dense Image Annotations2016
- See Better Before Looking Closer: Weakly Supervised Data Augmentation Network for Fine-Grained Visual Classification2019