An attention subnetwork scores each extracted item representation and converts the scores into normalized weights. The weights determine each item’s contribution to a weighted average. section 10.1.3
A practical implementation separates three operations:
- A backbone or feature-extraction network maps each input item to a representation hᵢ. section 10.1.3
Weighting digits in a bag
For a bag containing three digit images, the attention subnetwork assigns one normalized weight to each digit. Plotting the images with their weights makes the selected evidence visible before classification.
