Multi-Modal Image Captioning for the Visually Impaired
Paper · 2021 · Hiba Ahsan, Daivat Bhatt, Kaivan Shah et al.
Summary
A photograph of a bottle can tell you what shape it is, where it sits, and what the label says. An automatic caption based on appearance alone may call it a bottle of water even when the label identifies body lotion or coffee creamer. For someone using a caption to find out what they photographed, that difference can matter more than the color or position of the bottle. Ahsan and colleagues study this problem on VizWiz-Captions, a collection of photographs taken by blind people. They cite earlier work in which up to 21% of the questions blind people asked about their photos concerned text visible in the image.
The authors adapt AoANet, an image captioning system that uses attention to select relevant visual information as it writes. They use optical character recognition, or OCR, to turn writing in a photo into candidate words. The first adaptation supplies representations of those words alongside the visual features and enlarges the output vocabulary with sufficiently frequent OCR words. The second adds a pointer-generator, which can assign part of its next-word probability to copying a word recognized in the current photo. Copying gives the caption a direct route to a spelling that might be difficult to infer, such as a product name.
The strongest tested configuration is the vocabulary extension that admits OCR words occurring at least 2 times. It leads on all reported metrics on both the VizWiz validation and test splits. On validation CIDEr, a measure of agreement with reference captions, it scores 54.1 against 40.0 for the visual baseline. On test CIDEr it scores 53.8 against 40.8, and on test SPICE it scores 14.1 against 12.2. The more restrictive vocabulary extension gives mixed results. The pointer-generator improves test CIDEr to 45.4 and test SPICE to 12.8, with a small BLEU-4 gain and a lower ROUGE_L score than the baseline.
The example captions show what these aggregate scores leave open. Access to text helps the system identify a dietary supplement and a bottle of body lotion, while copying lets it bring a word such as “rewards” into a caption about a membership card. The same copying channel can repeat a word until it overwhelms the description. The experiments establish the value of incorporating recognized text in the tested VizWiz setup. They also show that giving a captioner a direct route to a visible word leaves it with the separate task of choosing when the word belongs in a sentence.
Deep dive: Multi-Modal Image Captioning for the Visually Impaired
Ahsan and colleagues test whether reading text in photos taken by blind people improves captions, and whether copying visible words helps. · about 34 minutes to read
The problem and its context
A description depends on what the reader needs to know
An image caption has to choose which parts of a scene are worth putting into words. For a product sitting on a table, a description could mention its shape, its location, its packaging, or the name printed on it. All of those details can be legitimate. In an assistive setting, a reader may use the description to identify the product, so the writing on the packaging can change the usefulness of the whole answer. A person who already knows that they are holding a bottle can learn little from a caption that says only that a bottle is present.
The paper opens with cases in which the missing information is visible as writing. In one example, a generated caption describes water on a table while a reference identifies Springbourne spring water in a clear plastic bottle. The generated caption still conveys the general kind of object. It loses the detail that distinguishes the photographed bottle from many others. Another example is a piece of paper whose reference mentions the numbers 7259 and 7694. A description that merely announces the presence of writing tells the reader where the information is, while leaving the reader without the information itself. The examples illustrate a range from naming an object more precisely to reporting the marks that are the subject of the image.
The authors connect this gap to earlier work in which blind people took photos and submitted questions about them. Up to 21% of those questions concerned text in the photos. That figure describes the questions in the cited work. It helps explain why a captioner for this setting should be able to consult visible text, while the captioning experiment itself asks a different question. A question can explicitly request a number or a name. A caption has to decide whether the number or name is worth mentioning without that direction.
The paper places automated descriptions alongside services in which a person helps interpret an image. It describes TapTapSee as an example of an application through which visually impaired people can submit photographs for description. It also mentions approaches from Aira and BeSpecular involving human assistance, and refers to automated descriptions from Microsoft and Facebook. The research target is automatic caption generation. The distinctions among the services matter here because a person asked to inspect a label can make a deliberate choice about what to read aloud. An automatic description needs a mechanism for bringing that kind of evidence into the decision about what to say.
The collection changes the task
As the authors describe it, much prior image captioning research relied on large, crowdsourced collections. They discuss Flickr30k and MS-COCO as standard settings whose images differ from those taken by blind photographers for their own purposes. Their concern is the relationship between those collections and the intended use of the resulting captions. A benchmark can support comparisons among systems trained on similar material, yet the pictures associated with an assistive application can present a different distribution of subjects and visual evidence. The paper points to this difference as a reason that success on conventional benchmarks may carry over poorly to the photographs at issue. One of the conventional collections it discusses is Microsoft COCO Captions.
VizWiz-Captions addresses the collection problem by pairing photographs originating from blind people with descriptions. This gives the authors a way to ask whether additions to an existing captioner help on photographs from the setting that motivates the study. The photographs in the paper make clear why the distinction matters even within a seemingly ordinary category such as packaged products. A card can be mistaken for a food carton. Bottles containing seasoning, vitamins, lotion, and creamer can prompt captions that sound plausible from the shape alone. Visible words provide evidence about which of those plausible descriptions fits the particular object.
VizWiz-Captions also gives the study several references for each photograph. A captioning example is therefore richer than a task with a single expected transcription. Different references can devote their space to different details, and a system has to choose among them. In the paper's product examples, some references give a brand, some give the product category, and some describe what the object looks like or how it is being held. That variety is part of the problem being studied. Recognizing text makes certain details available to the captioner, while the references illustrate several ways those details can fit into a description.
Earlier captioners and ways of using text
The prevailing approach described in the paper separates the work into an encoder and a decoder. The encoder prepares representations of the image. The decoder uses those representations to produce a sentence, extending it as it goes. Attention lets the decoder draw more strongly on some parts of the input than on others when choosing the next word. The earlier work cited by the authors also includes approaches that frame caption writing through a related line of research on language and visual representations, including Unifying Visual-Semantic Embeddings with Multimodal Neural Language Models.
The authors distinguish captioners by the evidence they have available as well as by the architecture that processes it. Some use features drawn from the appearance of an image. Others incorporate an additional source, such as candidate captions or text detected in the scene. This study belongs to Vision & language because it asks the system to combine information about objects and their appearance with words read from the same photograph. For instance, the label can help identify the sort of bottle, and the visual features can still inform the sentence about who is holding it or where it sits.
A useful distinction in this earlier work concerns how text is used. A detected word can help the system infer a category even if the word never appears in the output. A captioner might recognize from a label that a bottle contains lotion and describe it at the category level. Alternatively, a word on the label can itself be the detail the caption should convey. Prior sequence-to-sequence research had developed ways to copy spans from an input into a generated output, including in summarization. The authors also describe previous captioning work that used copying to help name objects unfamiliar to the captioner. A cited example of the underlying sequence-to-sequence approach is Incorporating Copying Mechanism in Sequence-to-Sequence Learning.
The paper discusses two closely related approaches. The concurrent work by Dognin and colleagues combines visual features derived from ResNext with textual features derived from object detection and OCR. Ahsan and colleagues use AoANet, region features from Faster R-CNN, and representations of OCR words from BERT. They do not use detector labels as text or add a separate ResNext classification stream. They also say that their OCR setup does not explicitly handle rotation invariance, and that their choice of word representation differs from the concurrent system's use of fastText.
The work of Sidorov and colleagues supplies another point of comparison. Its M4C approach recognizes scene text and takes visual surroundings into account when deciding what to copy or paraphrase. In the description given by Ahsan and colleagues, that decision can depend on the spatial, visual, and semantic relationships between several text items and objects. It places the emphasis on reading in context, a broader challenge than admitting a newly recognized word into a vocabulary. This work is discussed as background through TextCaps: a Dataset for Image Captioning with Reading Comprehension.
The method, step by step
Two paths from the photograph to the caption
The starting point is AoANet, whose name refers to Attention on Attention. In the baseline, the captioner receives visual information extracted from the photograph. In the modified versions, it also receives representations of words detected in the same photograph. The additional inputs give the captioner a chance to use label content in deciding what a visually ambiguous object is. The authors keep that basic setup in both extensions. They then change which words are available to be generated, or add a direct way for the decoder to select a recognized word.
A vocabulary is the set of words the ordinary generation channel can choose. Adding a word to that set changes what the system can say about any image. For example, adding a term associated with a product category gives the decoder the option of using it whenever the current image and the developing caption support it. By comparison, a copy channel makes a word eligible because that word occurred among the recognized text items in the current photograph. The paper's terminology uses “extended vocabulary” in both discussions. The frequency-filtered extension is a change to the shared vocabulary. The pointer equation defines the extension by taking the union of the fixed vocabulary with the OCR candidates that can be copied.
These changes address different points along the path from a label to a sentence. First, the system needs to be told what the label might say. Next, it needs to relate that evidence to the object and the partly written caption. Finally, if the word should appear, the decoder needs a way to produce it. A shared vocabulary can supply that last step for words retained by the frequency filter. The pointer gives the decoder a second route based directly on the current image. Both routes still depend on finding a useful place for the word in the description.
From image regions and recognized text to captions
The steps in order.
Preparing the visual evidence and the words
The visual input comes from bottom-up feature vectors. In this setup a detector identifies regions of the image and represents them as vectors, or lists of numerical features. That gives attention a set of candidate pieces of visual evidence to draw on. The vectors carry visual information about the regions instead of offering strings that the captioner can directly print. The paper describes a Faster R-CNN detector with pretraining on ImageNet and Visual Genome and notes its initialization from a ResNet-101 classification network. The regional detector is Faster R-CNN.
The cited role of Visual Genome is in that feature extraction setup. It is useful to distinguish this preparation from training the captioner on VizWiz. The detector produces the input vectors for the image stream, and the captioner learns to use those vectors in sentences for the target collection. Recognition of writing is handled through a separate service. In particular, the architecture described in the paper does not turn every region's predicted object class into a textual prompt for the decoder.
For the text stream, the authors use the Google Cloud Vision API to recognize writing. They apply a standard stopword list during preprocessing. A stopword list filters common words so they do not all pass into the next stage as candidate evidence. The paper then represents the retained OCR tokens with a pretrained, base, uncased version of BERT. An embedding is a vector that makes a word available to the numerical operations of the captioner. The OCR service supplies the detected strings, and the embeddings let attention consider those strings as inputs. The pretrained encoder is BERT.
This division of labor matters for interpreting the term “reading” in the study. The captioner receives the results of recognition instead of attempting to recover the characters from the pixels by itself. If OCR gives an incomplete word, the captioner may receive a representation of that fragment. If OCR supplies the right word, the captioner still has to work out whether the text is a primary detail, an incidental part of the scene, or evidence for some other phrase. The features organize the text for use in captioning. Their presence alone gives no instruction about which part of it to include.
Attention before and after the gate
Attention in AoANet starts with queries, keys, and values. A query describes what information a current computation is looking for. A key is the part of an input representation used to decide whether that input is a good match. The corresponding value contains the information that can be retrieved from that input. In a captioner, this mechanism can gather evidence relevant to the developing sentence by giving greater weight to some inputs than to others. The paper begins its description with a similarity operation and a normalization across the available keys.
aᵢⱼ = fₛᵢₘ(qᵢ, kⱼ), αᵢⱼ = exp(aᵢⱼ) / ∑ⱼ′ exp(aᵢⱼ′)
Here i identifies a query and j identifies a key and its paired value. qᵢ is the query vector and kⱼ is the key vector. fₛᵢₘ is the function used to score their match, and aᵢⱼ is the resulting score. exp denotes the exponential function. The sum indexed by j′ goes over all candidate keys for the same query, and aᵢⱼ′ is the score for each such key. The division produces αᵢⱼ, the attention weight assigned to key j. The exponential normalization is the softmax operation. It turns the scores for the query into weights that can be used together in an average.
v̂ᵢ = ∑ⱼ αᵢⱼ vⱼ
In this expression, v̂ᵢ is the result retrieved for query i, j runs over the available key–value pairs, and vⱼ is the value from pair j. αᵢⱼ is the normalized weight just computed for that pair. Multiplying the vector by the weight determines how much it contributes. The sum combines those contributions into a vector that can carry evidence from several inputs at once.
The paper also gives the scaled query–key dot product used within this attention description. Its notation places the softmax and a value term together in the similarity line. The scaled score can be read separately from those operations: the query and key determine the score, the softmax supplies weights across keys, and the values form the accompanying weighted result.
qᵢ kⱼᵀ / √D
Here qᵢ is the vector for query i, kⱼᵀ denotes the transpose of the vector for key j, and the juxtaposition of the vectors represents their dot product. D is the dimension of the query vector, and √D is its square root. The division scales the dot product. The score for a particular key can then be considered along with those for the other keys when normalizing the attention weights.
A weighted result still needs to serve the purpose for which it was requested. AoANet adds a gate that considers the retrieved information together with the query that elicited it. The architecture learns separate transformations for producing candidate information and for determining how much of that information should pass through. This is the second level of attention in the name. The first operation collects evidence using similarity, and the gate uses the query and the collected evidence jointly.
i = Wᵠᵢ q + Wᵛᵢ v̂ + bᵢ
Here i denotes the information vector, a different use of the letter from the query index in the earlier equations. q is the current query vector, and v̂ is its attended result. Wᵠᵢ and Wᵛᵢ are learned weight matrices for transforming the query and the attended result on the information path. The superscripts identify the source of the input, and the subscript identifies the information transformation. bᵢ is the learned bias vector for that path. The additions put the transformed query and attention result into a shared candidate representation.
g = σ(Wᵠ𝓰 q + Wᵛ𝓰 v̂ + b𝓰)
In this expression, g is the gate vector. q and v̂ are the same current query and attended result. Wᵠ𝓰 and Wᵛ𝓰 are the gate's own learned matrices for those inputs, and b𝓰 is its learned bias. The subscript 𝓰 marks the gate path. The function σ is the sigmoid, applied separately to each component. It turns the transformed features into coefficients that can attenuate the corresponding components of the information vector.
î = g ⊙ i
Here î is the gated information sent onward, g is the gate vector, and i is the candidate information vector. The operator ⊙ means elementwise multiplication. Each component of the candidate vector is multiplied by its corresponding gate coefficient. Thus the module can retain some aspects of the retrieved evidence more strongly than others. The gate applies to features within the representation. It is distinct from the pointer-generator switch, which allocates probability between generating and copying a word.
The paper combines these operations in a single expression. It uses the same construction in the encoder and decoder, so the gate is part of how AoANet processes evidence as well as part of how it writes a caption.
AoA(fₐₜₜ, Q, K, V) =
σ(Wᵠ𝓰 Q + Wᵛ𝓰 fₐₜₜ(Q, K, V) + b𝓰)
⊙ (Wᵠᵢ Q + Wᵛᵢ fₐₜₜ(Q, K, V) + bᵢ)
AoA names the Attention on Attention operation. fₐₜₜ is the attention operation applied to the collection of queries Q, keys K, and values V. fₐₜₜ(Q, K, V) is the attended information for those queries. Wᵠ𝓰 and Wᵛ𝓰 transform the queries and attended information for the gate, with bias b𝓰. Wᵠᵢ and Wᵛᵢ transform the same inputs for the candidate information, with bias bᵢ. The superscripts distinguish query from attended-value input and the subscripts distinguish the gate and information paths. σ produces the gate and ⊙ applies it component by component. The extensions use this existing architecture to process a different set of inputs.
Extending the vocabulary by frequency
The authors first test whether the ordinary decoder can benefit from access to OCR features and a larger set of allowable output words. They feed the visual and text features together into AoANet. They also count recognized words and use frequency thresholds to determine which ones to add to the vocabulary. The test is motivated by a straightforward tradeoff. A restrictive cutoff excludes uncommon terms that could make an individual description more informative. A permissive cutoff admits more of those terms together with OCR fragments and other unwanted entries.
AoANet-E5 adds words observed at least 5 times. The paper reports 4, 555 added words at that threshold. AoANet-E2 lowers the minimum count to 2 and adds 19, 781 words. These are counts of additions, rather than the sizes of the full output vocabularies. The paper's frequency figure describes the OCR words at the two cutoffs. The authors expect the less restrictive choice to retain noise such as partial recognitions and strings that may be in a different language. They nonetheless test the larger vocabulary because the excluded tail can contain the terms that give a description its specificity.
An OCR word has a different role as an input feature and as a possible output. An input vector can influence which description the decoder chooses even when the associated string would be awkward in that sentence. Admission to the vocabulary gives the decoder the option of producing the string through ordinary generation. This means a stronger caption after the extension can arise in several ways. The OCR features can help identify an object using words the captioner already knows, or the expanded output set can allow a more precise term. The extended variants test their combination.
Consider the supplement example discussed in the paper. The silhouette and packaging are compatible with several bottled products. A text feature can help move the captioner towards the correct category. Having the needed words available at the output then lets it express that category fluently. If the decoder instead chooses an unknown-word token, it can convey that some specific label belongs in that position while failing to communicate the label. The frequency experiment tests how frequently the broader inventory helps the resulting captions, with the price of allowing more dubious candidates.
Giving the decoder a way to copy
The pointer-generator in AoANet-P keeps the visual and OCR inputs and adds a separate decoding operation. The authors describe the hybrid decoder as combining ordinary vocabulary generation with pointing to an OCR item. At each step the decoder estimates a generation probability using its state, the context it has gathered, and the embedding supplied as the current input. The attention distribution then determines where to put the probability assigned to the copying channel. This provides a way to produce a visible string using evidence in the image for that spelling.
pₚ = σ(wₕᵀ cₜ + wₛᵀ hₜ + wₓᵀ xₜ + bₚₜᵣ)
Here pₚ denotes the paper's generation probability, written as p_gen in its notation. t indexes the decoder step. cₜ is the context vector at that step, hₜ is the decoder's hidden state, and xₜ is the input embedding at that step. wₕ, wₛ, and wₓ are learned vectors paired with the context, hidden state, and input embedding, respectively. The superscript ᵀ denotes transposition for their dot products. bₚₜᵣ is the learned pointer bias, and σ is the sigmoid. Its scalar output sets the share of probability given to the vocabulary channel.
The complementary share goes to the OCR attention distribution. This is a soft switch because both channels can contribute to the probability of the same output word at the same step. The decoder can consider ordinary phrasing and source-dependent copying in a single calculation. It can build the grammatical structure of a caption using familiar words and put substantial probability on a label term at a position where the term fits.
P(w) = pₚ Pᵥₒcₐᵦ(w) + (1 − pₚ) ∑ᵢ: wᵢ = w aₜᵢ
P(w) is the final probability of candidate word w. pₚ is the generation probability and Pᵥₒcₐᵦ(w) is the vocabulary channel's probability for that word. The constant 1 minus pₚ gives the copying share. i indexes OCR positions, wᵢ is the recognized word at position i, and aₜᵢ is the decoder's attention weight on that position at step t. The condition wᵢ = w restricts the sum to positions containing the candidate. A candidate absent from the fixed vocabulary receives no vocabulary probability, and a candidate absent from the OCR items receives no copying probability.
The sum across positions matters when a recognized string occurs more than once. All positions holding the same word can contribute to its probability as an output. A word present in both the vocabulary and the photo can benefit from both channels. A word available only in the OCR stream depends on the copying channel. This is the operational difference between extending a shared vocabulary by a count threshold and providing a word because the detector found it in a particular photo. The paper specifies a frequency cutoff of 2 for the shared OCR expansion in the pointer configuration as well.
Copying also introduces a recurring decision. A successful choice at one step does not settle how frequently the word should appear. The captioner can attend to the same OCR evidence again and again. This follows from the stepwise calculation, which scores available words for the current position. A term can be highly relevant to the image and still become unhelpful when repeated in successive positions. The paper returns to that issue in its examples.
Training the captioner
The paper describes the AoANet training objective as cross-entropy on the reference captions. At each step the decoder is scored on the probability it gives to the next reference token, using the preceding reference tokens as context. Adding these terms over the sentence gives a loss that is smaller when the reference tokens have higher probabilities at their respective positions.
L(θ) = −∑ₜ₌₁ᵀ log pθ(yₜ* | y₁:ₜ₋₁*)
L(θ) is the loss as a function of the learned parameters θ. The sum runs over caption positions t, starting at 1 and ending at T, the length of the reference sequence. yₜ* is the reference token at step t, with the asterisk marking ground truth. y₁:ₜ₋₁* is the reference prefix from position 1 through the position immediately preceding t. pθ is the decoder's probability for the reference token under parameters θ. The vertical bar marks conditioning on the prefix, with image evidence implicit in the captioning setup. log is the logarithm, and the initial minus sign makes a larger assigned probability give a smaller contribution to the loss.
The implementation starts from the original AoANet code. The authors describe modifying the feature and vocabulary handling to admit OCR words and modifying decoding to support copying. They name their modified repository AlteredAoA. The image features come from the pretrained detector, the OCR word representations come from pretrained BERT, and the captioning training uses the VizWiz captions. The paper reports using Adam, an initial learning rate of 2e − 5, and annealing by 0.8 every 3 epochs. The training runs used a Google Cloud virtual machine with 1 Tesla K80 GPU.
The baseline was trained for 10 epochs, while the vocabulary extensions and pointer version were trained for 15 epochs. An epoch is a pass through the training data. This difference belongs to the actual comparison, especially when interpreting what caused improvements over the baseline. The variants share an architectural starting point and use the same dataset, while the modified systems receive more passes through the training set. The paper also says the captioners were trained without MS-COCO caption pretraining. This leaves intact the separate pretraining of the feature sources and the OCR word encoder.
Experiments and results
The test and what the scores measure
VizWiz-Captions contains over 39, 000 images. The split sizes given by the authors are 23, 431 training images, 7, 750 validation images, and 8, 000 test images. Each image has five reference captions. The paper gives an average caption length of 11 for the training and validation splits. The training split supplies examples of what people say about these photographs. Validation and test scores describe how the resulting systems perform on their respective held-out photographs, judged against the captions accompanying those images.
The experiment compares AoANet with AoANet-E5, AoANet-E2, and AoANet-P. AoANet is the visual baseline. Both E variants use visual and OCR features, and their names encode their respective thresholds for adding recognized words. The P variant adds a pointer-generator and uses the more permissive frequency setting for its shared extension. These systems are related closely enough to make the comparison informative about choices inside AoANet. The reported table compares them within that family. The paper discusses systems by other authors, but those systems are absent from the scored comparison.
The table gives BLEU-4, ROUGE_L, SPICE, and CIDEr for validation and test. These measures use reference descriptions as their point of comparison, and their scores summarize different kinds of agreement. BLEU-4 reflects matching sequences of words. ROUGE_L reflects how much of the wording can be aligned in order. CIDEr emphasizes agreement with the collection of human descriptions, while SPICE compares aspects of the described scene. The separate columns allow a gain on one measure to coexist with a loss on another. The score centered on matching word sequences is the BLEU score.
Several references can make room for multiple reasonable descriptions, but their coverage still matters. A candidate that identifies a bottle as lotion may agree well with references even if it omits the brand. A candidate that reproduces a label word may add a recognizable detail without producing a coherent sentence. Examples like these explain why the paper presents individual captions as well as aggregate scores. The numbers show how the evaluated outputs agree with the references across a split. The examples let a reader inspect what was communicated about a particular object and how it was phrased.
The CIDEr comparison
AoANet variants on VizWiz validation CIDEr
The broader OCR vocabulary gives the strongest agreement with validation references.
The numbers
| System or setting | CIDEr |
|---|---|
| AoANet | 40.0 |
| AoANet-E5 | 41.4 |
| AoANet-E2 (this paper) | 54.1 |
| AoANet-P | 46.1 |
On validation CIDEr, the visual AoANet baseline scores 40.0. The smaller OCR extension, AoANet-E5, scores 41.4. The pointer system reaches 46.1, and the broader vocabulary extension leads with 54.1. The contrast between the E variants is particularly useful because they represent the same kind of intervention with different cutoffs. The broad version maintains the visual input and the OCR feature stream while making more recognized terms available for generation. Its lead shows that the more inclusive setup can make better use of the evidence on this benchmark.
AoANet variants on VizWiz test CIDEr
The broader extension leads on the test split, and the pointer variant also exceeds the visual baseline.
The numbers
| System or setting | CIDEr |
|---|---|
| AoANet | 40.8 |
| AoANet-E5 | 40.2 |
| AoANet-E2 (this paper) | 53.8 |
| AoANet-P | 45.4 |
On test CIDEr, AoANet-E2 again leads, scoring 53.8. AoANet-P is next at 45.4, followed by the visual baseline at 40.8 and AoANet-E5 at 40.2. The restrictive extension's validation CIDEr advantage over the baseline does not carry over to test. The broader extension and the pointer system are ahead of the baseline on both splits for this metric. The agreement of those rankings across splits gives the main CIDEr result more context than either score would have on its own.
The headline CIDEr improvement in the abstract is 35%. The strongest validation scores in the table are the relevant figures for that claim: 54.1 for AoANet-E2 and 40.0 for AoANet. The table also makes clear which modification supplies that headline result. It is the broader vocabulary extension; the pointer configuration has its own, lower CIDEr scores. The paper's emphasis on developing a pointer mechanism and its best benchmark result therefore describe different parts of the experimental contribution.
SPICE and the other measures
AoANet variants on VizWiz test SPICE
The broader extension leads on scene-description agreement, with the pointer variant also ahead of the baseline.
The numbers
| System or setting | SPICE |
|---|---|
| AoANet | 12.2 |
| AoANet-E5 | 11.9 |
| AoANet-E2 (this paper) | 14.1 |
| AoANet-P | 12.8 |
On validation SPICE, AoANet scores 11.1, AoANet-E5 scores 10.8, AoANet-E2 scores 12.9, and AoANet-P scores 11.5. On the test split their SPICE scores are 12.2, 11.9, 14.1, and 12.8, respectively. The broad extension leads on both, and the narrower extension is below the visual baseline on both. The pointer produces a smaller gain over the baseline than the broad extension. The abstract reports a SPICE improvement of 16.2%, which refers to the paper's headline comparison. The rounded validation values in the table are 12.9 for AoANet-E2 and 11.1 for the baseline.
BLEU-4 also favors the broad extension. On validation, AoANet and AoANet-E5 each score 21.4. AoANet-E2 scores 24.3, and AoANet-P scores 21.6. On test, the baseline scores 19.5. AoANet-E5 reaches 19.8, AoANet-E2 reaches 22.3, and AoANet-P reaches 19.9. These scores help characterize the narrower variant. Its test CIDEr is below the baseline, while its test BLEU-4 is slightly higher. Describing the variant as uniformly helpful would lose that distinction.
ROUGE_L is the measure on which the pointer system trails the visual baseline on both splits. On validation, AoANet scores 43.8, AoANet-E5 and AoANet-P each score 43.6, and AoANet-E2 scores 46.1. On test, AoANet scores 43.1, AoANet-E5 scores 42.9, AoANet-E2 scores 45.0, and AoANet-P scores 42.7. The broad extension is the only modification in this comparison that leads across all reported measures and splits. The pointer's profile is more specific: gains on CIDEr, SPICE, and BLEU-4 alongside lower ROUGE_L.
The overall pattern matters because the paper is motivated by exact recognition of particular words. An approach explicitly designed to copy text might look like the most direct response to that motivation. The benchmark rewards whole captions, however, and the broad extension gives the strongest overall captions by those measures. The pointer can still do something visible in individual cases that a reference agreement score does not isolate. It can use a recognized string directly, and that can help when spelling is important. The table leaves exact transcription accuracy as a separate empirical question.
What changes in the descriptions
The validation examples start with a card that the visual baseline describes as food packaging. The more restrictive extension also calls it a box, but recognizes writing as a feature of the scene. With the broader extension, the description identifies the object as a card and mentions a barcode. The references identify an EBT card and describe details such as its back, its strip, or the dark surface underneath it. The pointer output names a card too, yet contains unknown-word markers. The example shows progress in object identification alongside residual mistakes about which details the sentence can supply.
A bottle of vitamins shows a progression from probable appearance to more usable identification. The visual baseline identifies it as seasoning. AoANet-E5 leaves an unknown word in the sentence. AoANet-E2 describes a dietary supplement, consistent with references describing vitamin tablets. The pointer system emits a label-related word, followed by repeated instances of “tablets.” The relevant word is present, but the resulting caption provides less coherent information than the broad extension's category description. The references also contain details about the product that neither outcome guarantees, such as its brand or strength.
Another example features body lotion. The baseline mentions a green bottle and its label. The narrow extension includes several unknown tokens. AoANet-E2 gives the product category and describes its position on a table. AoANet-P supplies the more specific term “vanilla” with lotion. The references include both a general lotion description and a version that names vanilla bean. Here a generated category and a more specific scene-text interpretation can both describe the same image well, depending on what the reader needs to learn.
The package and membership-card examples illustrate the same distinction in a different way. For the granola-bar package, the baseline suggests a frozen meal. The broad extension gets closer to the product category but repeats the word “granola.” The pointer caption uses terms concerning oats and almonds and repeats a word of its own. For the membership card, the pointer produces “rewards,” which agrees with the subject of the references, although the surrounding phrase is awkward. These are examples of text correcting or sharpening the object description while sentence construction remains imperfect.
The creamer bottle makes the effects especially easy to see. The baseline and narrower extension describe water. The broader extension incorporates the idea of flavored coffee creamer, with a repeated flavor word. The pointer version continues repeating “vanilla” and fails to deliver the fuller product identification found in the references. The two versions that use the flavor word therefore differ in how much they tell the reader about what the bottle contains. The value of the word depends on the rest of the caption.
What the ablations show
Changing the threshold tests the vocabulary trade-off
The paper's component analysis comes from comparing the visual baseline with the OCR extensions, comparing the frequency thresholds, and comparing the broad extension with the pointer variant. It complements those comparisons with a frequency analysis and a set of individual captions. These tests give the clearest answer when they concern a particular choice shared by the compared systems. Their scope becomes broader when several things change together, as they do when moving from the visual baseline to a text-augmented captioner.
The closest comparison concerns AoANet-E5 and AoANet-E2. Both variants feed recognized text alongside visual features and extend the shared vocabulary, and both use the modified systems' training duration. The cutoff determines which recognized words the extension admits. Across the reported metrics and splits, the broader cutoff gives the better scores. This is especially informative in light of the authors' expectation that a permissive threshold will retain noisy strings. In the tested configurations, admitting substantially more candidate words works better even with that expected source of error.
The caption examples show one way a threshold can have a large practical effect even when the change looks like a preprocessing detail. When the narrower extension leaves an unknown token in the supplement description, the sentence has a slot for a product type but fails to fill it intelligibly. The broader extension can name the category. Conversely, an unfamiliar or partial string in a larger vocabulary can occupy the same slot and make a description worse. The frequency comparison measures the balance of such effects for the complete configuration. It gives no independent estimate of how frequently newly admitted OCR words are correct or which individual words are responsible for the aggregate gain.
The threshold comparison also gives a narrower interpretation of what “better vocabulary” means here. Both cutoffs use frequency as the admission rule. The experiment shows that the less restrictive of the tested rules works better. It leaves open how well another way of choosing words would work, or whether adding still rarer entries would help. The reported evidence is useful for understanding coverage under the chosen preprocessing, with a particular detector and benchmark. It does not establish frequency as a measure of a recognized word's relevance to a photograph.
Separating the use of text from the act of copying
The extended variants give evidence about using OCR in an existing captioner without a pointer. The best one improves across the table, showing that ordinary decoding can take useful advantage of the combined visual and text input and an enlarged output set. The authors attribute part of the improvement to the context conveyed by BERT embeddings. The comparison supports the value of the complete extension. It bundles those embeddings with changes to the vocabulary and training duration, so it cannot assign a separate share of the gain to BERT or to any particular use of attention.
Comparing AoANet-P with AoANet-E2 asks a more specific question. They use the same reported frequency threshold for the vocabulary extension, OCR features are available to both, and both are trained for 15 epochs. The addition of pointer decoding is the distinguishing intervention described for AoANet-P. That addition allows scene-specific copying and produces examples in which a word associated with the photographed object appears in the sentence. As an aggregate captioning intervention, it scores below the ordinary broad extension on every reported measure in both splits.
The authors interpret the pointer variant's improvements over the visual baseline as evidence for using a copy mechanism. The comparison with the broad extension qualifies what that claim establishes. The baseline has no OCR input and the pointer system changes more than decoding alone. The comparison between the two OCR-equipped variants shows that copying can appear in useful cases while leaving the full system behind the strongest alternative on the reported scores. Whether a copy route provides a specific benefit for names absent from the fixed vocabulary would require measuring that subset of examples.
Another useful distinction is between a word that belongs in the final sentence and a word that helps the decoder decide what the sentence should be about. The membership card offers a case where reproducing “rewards” carries direct information. The supplement case offers a different kind of improvement: the output identifies the product class in familiar words. Both can result from recognizing text, but a comparison centered on word copying would treat them differently. The paper's aggregate results credit overall reference agreement and its examples reveal these different forms of success.
Repetition and what the examples establish
The authors discuss repetition as a failure of the pointer configuration, especially on the vitamin and creamer images. The examples support that diagnosis at the sentence level. A word associated with the object can be selected repeatedly until it takes the place of additional description. The validation examples also show repetition in captions from the broader extension, including the granola and creamer cases. Thus the observed problem occurs in ordinary generation as well as in the version with copying. In the pointer setup, recurrently assigning copying probability to the same evidence supplies an additional way for it to arise.
The authors propose investigating coverage, an approach in which the system tracks attention already paid to input material. If earlier decoder steps have relied heavily on part of the input, that history can influence the treatment of the same part on subsequent steps. This relates directly to the examples where a correct term appears more frequently than a reader could use. The paper presents coverage as future work. The examples motivate the idea and leave its effect on VizWiz unmeasured. The earlier work it cites is Modeling Coverage for Neural Machine Translation.
The paper also raises top-k sampling as a possibility for generating more varied captions. This decoding approach considers a restricted group of likely candidates and samples among them. The authors discuss it in connection with beam search and the tendency they describe for accumulated sequence probabilities to favor shorter outputs. They do not provide a decoding experiment that would show whether varying the search strategy improves this captioner's specificity, fluency, or reliability. The discussion draws on The Curious Case of Neural Text Degeneration.
The examples and the threshold comparison establish different kinds of evidence. The scored comparison shows which configurations do better over the evaluated splits. The examples let a reader trace plausible mechanisms such as recovering an object category, supplying a label term, emitting an unknown word, or repeating an available word. They are individual validation cases. A reader can identify those behaviors in the captions without inferring their frequency across the split or attributing the full score difference to any one of them.
Limitations
Limits the authors acknowledge
The authors acknowledge that the quality of the caption can depend on the robustness of the OCR service. They point to earlier concerns about the Google Cloud Vision API under noise. The study focuses on the resulting captions and the pointer mechanism, and the authors expected OCR failures to have a limited enough effect for that comparison. Their evaluation does not measure how recognition quality changes with image conditions, or quantify the effect of those changes on the captions. They also report that their design does not explicitly account for text rotation during OCR, a difference they identify in discussing the concurrent approach by Dognin and colleagues.
The authors recognize that the lower cutoff can retain poorly recognized words and other noisy material. The vocabulary experiment shows that the system can benefit from admitting the broader pool in spite of that possibility. It leaves the accuracy of individual added entries unresolved. When the copy channel selects a candidate, it reproduces the recognized string. Its fidelity to the writing in the photograph depends on whether the OCR step got that string right. This dependency is most consequential in the cases the paper uses to motivate copying, where a small change to a label, date, or number can alter what the caption communicates.
Repetition is an observed failure and an acknowledged limit of the system. The paper identifies coverage as a direction for addressing it and mentions top-k sampling as a direction for exploring variety. These are proposed changes, with no caption quality results reported for them. The authors also identify comparisons they want to carry out with the VizWiz challenge entry discussed by Dognin and colleagues and with the OCR-aware approach from Sidorov and colleagues. Those prospective comparisons establish the intended scope of future experiments. The reported evaluation supports a comparison within the AoANet family.
Limits of the evaluation and the comparison
The results are about agreement with VizWiz reference captions. The paper does not report an outcome from asking blind readers whether they can identify products, read a requested detail, or make use of a generated caption in a particular situation. This matters because several captions can agree with the references while conveying different levels of detail. Correctly identifying a bottle as lotion can be sufficient for one purpose. A reader distinguishing similar bottles may need the scent or brand. The aggregate metrics in the experiment combine such cases without specifying the reader's purpose.
There is also no reported breakdown by whether text is present, whether OCR recognized it correctly, or whether the references use it. Such a breakdown would matter for narrowing the interpretation of the average improvements. A captioner could benefit substantially on photographs where writing identifies the product and offer little change on photographs where there is no useful writing. It could also incorporate text when a description of something else would serve better. The reported scores combine those possibilities. The selected examples show some of the relevant cases but give no denominator for estimating how often they occur.
The strongest visual-baseline comparison changes the training duration along with the inputs and output vocabulary. The results therefore compare complete training setups. The comparison between the extended vocabulary thresholds is less exposed to that issue because both use the same reported duration. Similarly, the comparison with the pointer configuration at the shared threshold helps clarify the effect associated with adding the copy mechanism. A same-duration visual baseline or a separate test of OCR features with an unchanged vocabulary would provide cleaner evidence about the contribution of those individual changes. Those contrasts are outside the reported experiments.
The evaluation also leaves uncertainty about the reliability of the score differences across training runs. The table supplies scores for each reported configuration without variation across runs or a statistical comparison. It is possible to state the recorded ranking of the configurations, and the broad extension's lead occurs throughout the table. A small difference in one column, such as the narrow extension's higher test BLEU-4, has less surrounding evidence. The paper's examples make some mechanisms plausible without resolving how much run-to-run variability each comparison would have.
Finally, there is a difference between the availability of OCR-derived evidence and evidence that a captioner understands the relationships in a scene. A caption can use a word from a label and still attach it awkwardly to the object, as the rewards-card example shows. It can describe a product category accurately while ignoring smaller print. The architecture supplies regional features and OCR embeddings and, in the pointer version, a route to reproduce recognized words. The reported results do not separately evaluate whether the system reads a sequence in order, associates a phrase with the correct region when several objects carry writing, or extracts a complete visible identifier. Those are more specific reading tasks than the caption agreement evaluated here.
What came after
No later citing works are identified for discussion. The paper closes by proposing a coverage mechanism to address repeated words and by planning comparisons with related OCR-aware captioners. Its concrete evidence ends with the VizWiz experiments: the wider OCR vocabulary gives the best aggregate scores in the tested AoANet family, and the pointer examples show both the ability to reuse recognized text and the difficulty of doing so fluently.
Cite
Cite as Hiba Ahsan, Daivat Bhatt, Kaivan Shah and Nikita Bhalla. 2021. Multi-Modal Image Captioning for the Visually Impaired. Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Student Research Workshop.
@inproceedings{ahsan2021multi,
title = {{Multi-Modal Image Captioning for the Visually Impaired}},
author = {Hiba Ahsan, Daivat Bhatt, Kaivan Shah and Nikita Bhalla},
booktitle = {Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Student Research Workshop},
year = {2021},
doi = {10.18653/v1/2021.naacl-srw.8},
url = {https://doi.org/10.18653/v1/2021.naacl-srw.8}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/ahsan-2021-multi-modal-image-captioning-visually/