---
title: "MirrorGAN: Learning Text-To-Image Generation by Redescription"
description: "MirrorGAN checks generated images by describing them again, combining local and global attention to improve visual and textual agreement."
canonical: "https://research.elamur.ai/free/en/papers/qiao-2019-mirrorgan-learning-text-image-generation/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/qiao-2019-mirrorgan-learning-text-image-generation/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2019](https://md.research.elamur.ai/free/en/papers/2019/) / MirrorGAN: Learning Text-To-Image Generation by Redescription

# MirrorGAN: Learning Text-To-Image Generation by Redescription

Paper · 2019 · Tingting Qiao, Jing Zhang, Duanqing Xu et al.

**Authors:** Tingting Qiao, [Jing Zhang](https://md.research.elamur.ai/free/en/authors/jing-zhang/), Duanqing Xu and [Dacheng Tao](https://md.research.elamur.ai/free/en/authors/dacheng-tao/) · **Year:** 2019 · **Venue:** IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings - IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings · **Licence:** [arXiv — non-exclusive license to distribute](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

[**628** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W2962845008) · [IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings - IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings](https://openalex.org/S4210176548) · [licence](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

- [PDF](https://arxiv.org/pdf/1903.05854)
- [DOI 10.1109/cvpr.2019.00160](https://doi.org/10.1109/cvpr.2019.00160)
- [arXiv 1903.05854](https://arxiv.org/abs/1903.05854)
- [OpenAlex](https://openalex.org/W2962845008)

Citations: OpenAlex, 2026-10-14.

## Deep dive: MirrorGAN: Learning Text-To-Image Generation by Redescription

MirrorGAN checks generated images by describing them again, combining local and global attention to improve visual and textual agreement. · about 34 minutes to read

**In this deep dive**

1. [Summary](#dd-summary)
2. [Ideas worth borrowing](#dd-ideas-worth-borrowing)
3. [How Mova uses it](#dd-how-mova-uses-it)
4. [The problem and its context](#dd-the-problem-and-its-context)
5. [The method, step by step](#dd-the-method-step-by-step)
6. [Experiments and results](#dd-experiments-and-results)
7. [What the ablations show](#dd-what-the-ablations-show)
8. [Limitations](#dd-limitations)
9. [What came after](#dd-what-came-after)

### Summary

An image can look convincing while failing to show what its description asks for. A bird may have plausible feathers but the wrong underside color; a scene may look like a skiing photograph while leaving out the skier. MirrorGAN addresses this separation between visual quality and obedience to language. Its central proposal is to check an image by describing it again. If the generated picture preserves the requested content, an image-captioning system should be able to recover that content from the picture.

The paper brings these directions together in a text-to-image-to-text architecture. A text encoder first represents the description at the level of individual words and the whole sentence. A sequence of image generators then produces increasingly detailed pictures. During refinement, local attention supplies information associated with particular words, while global attention repeatedly supplies the broader sentence context. Finally, a captioning component reads the generated image. Its difficulty in predicting the original description becomes an additional training signal for the image generators.

This last component gives MirrorGAN its distinctive form of supervision. Conventional adversarial training asks whether an image appears real and whether its pairing with a description appears appropriate. MirrorGAN also asks whether the image contains enough information to support a reconstruction of that description. The captioning component is pretrained and then held fixed while the generators learn. Its parameters therefore remain unchanged, but its reconstruction loss can still send gradients back through the generated image. The generator is encouraged to produce content that a separately trained visual-language reader can recognize.

The experiments cover CUB bird images and the more varied scenes of MS COCO. MirrorGAN obtains an Inception Score of 4.56 on CUB, compared with 4.36 for AttnGAN, and 26.47 on COCO, compared with 25.89 for AttnGAN. The authors also report stronger text-image retrieval performance across their R-precision settings and a human preference for MirrorGAN’s outputs in a CUB perceptual study. Controlled comparisons support contributions from both caption reconstruction and the addition of sentence-level attention. The reconstruction signal produces substantial gains even before the full attention design is included.

The result is evidence that generation can benefit from an explicit attempt to read its output back into the input domain. It is not a guarantee that every requested attribute appears, or that a successful caption establishes complete semantic equivalence. The captioner has its own limits, the reconstruction objective rewards the original wording, and the human semantic test uses reference images rather than descriptions. MirrorGAN nonetheless offers a clear approach to a central problem in [vision and language](https://md.research.elamur.ai/free/en/topics/multimodal/): making an output visually plausible while keeping its content tied to what was requested.

### Ideas worth borrowing

Read the output back. MirrorGAN adds a reverse task whose input is the result of the forward task. The useful principle is that an output should preserve information needed to recover the intended content. This can provide supervision beyond a direct score on output appearance. Elsewhere, the same idea could guide a system that turns a specification into a structured representation and then generates a readable account of what that representation contains. The reverse account would make omissions visible. Such an adaptation would need its own evaluation; the paper establishes the principle through image generation and captioning.

Separate plausibility from correspondence. An image can pass a realism check while failing a description check, so MirrorGAN retains separate adversarial terms for those concerns. This division is useful whenever a system must satisfy both a general output standard and a particular request. Fluency and factual coverage, for example, would need distinct checks in a language application. The transferable lesson is to name the properties separately before combining their training signals. A strong result on the easier property should not silently stand in for evidence about the harder one.

Carry global intent through refinement. MirrorGAN does not rely entirely on the sentence information supplied at the beginning of generation. Its later stages receive sentence-level context alongside word-level attention. This gives each refinement stage access to the overall request while it works on details. A comparable design could help a staged system preserve document purpose while revising individual passages, or maintain an overall specification while filling in local fields. The important mechanism is renewed access to global information at the point where local decisions are made.

Use a fixed reader as a training signal. STREAM remains unchanged during generator training, yet gradients pass through it. This allows the reader’s learned behavior to influence the generator without requiring both sides to change together. The authors choose this arrangement because joint optimization was unstable and costly in their experiments. The broader engineering idea is to distinguish freezing parameters from stopping the flow of learning signals. A fixed component can still serve as a differentiable source of feedback, although its weaknesses then become part of the generator’s learning environment.

Test components before attributing success. MirrorGAN’s evaluation separates the influence of reconstruction from the influence of global attention. This matters because the full system changes more than a single mechanism relative to AttnGAN. The word-attention-only MirrorGAN variant already benefits from the redescription framework; adding sentence attention produces a further improvement. For another project, the reusable practice is to compare intermediate designs that answer specific causal questions. A final score alone cannot establish which of several additions deserves credit.

Inspect controlled changes in the input. The paper changes a word in a description and examines the resulting image and attention maps. Such a comparison makes the intended behavioral question concrete: does a small semantic change affect the corresponding visual property? This can complement aggregate scores, which may hide particular kinds of failure. In another setting, deliberately changing an attribute, relation, or instruction could reveal whether a system responds to that distinction. The inspection remains illustrative unless supported by a systematic test, but it can identify what a broader evaluation should measure.

### How Mova uses it

For [Mova](https://md.research.elamur.ai/free/en/projects/mova/), the small transparent language system written in Rust, MirrorGAN is most useful as a source of design ideas about preserving meaning across transformations. The paper does not establish any connection to Mova, and no MirrorGAN-based Mova implementation is described. The concrete applications below are therefore possibilities, not claims about features already built.

The closest adaptation would be a round-trip check for a language-processing pipeline. Suppose Mova converts a sentence into an internal representation. A separate component could produce a readable description of that representation, after which the system could compare the recovered content with the original sentence. The comparison would ask whether the representation retained the entities, properties, and relations needed to explain the input. This follows MirrorGAN’s central reasoning: the intermediate output should carry enough information for a reader to recover what matters.

A transparent implementation would benefit from making the comparison more explicit than a single similarity score. If the input specifies an object and an attribute, Mova could record whether each appears in the recovered description. If the recovered account introduces an unsupported property, that could be displayed separately from an omission. This would be a proposed adaptation to Mova’s goals, instead of a mechanism evaluated by MirrorGAN. The paper’s own feedback is a word-prediction loss through a captioning network, not an explicit inventory of semantic facts.

The distinction between local detail and global intent is also relevant. MirrorGAN combines information about individual words with a representation of the complete sentence. Mova could borrow the organizational principle by retaining both local linguistic evidence and an overall interpretation during processing. A later stage deciding how to represent a particular expression would then have access to the sentence context that constrains it. This does not require copying image attention into Rust. It requires identifying where local decisions might otherwise lose the broader request.

Another possible use concerns validation. A Mova experiment could evaluate whether a generated explanation is readable and, separately, whether it preserves the content of the underlying representation. MirrorGAN’s losses make that distinction concrete for images: a plausible result and a faithful result are different targets. For a transparent language system, a polished explanation would still need to be checked against the information it is supposed to expose. Combining those concerns into a general quality judgment could conceal an important failure.

The fixed-reader arrangement offers a narrower lesson about system organization. If a future Mova component learned from feedback, a stable evaluator could provide a consistent target while another component changed. MirrorGAN demonstrates this arrangement with a differentiable captioner. A symbolic or rule-driven Mova component would need another mechanism for using such feedback, because gradients through STREAM are specific to the paper’s neural training setup. The reusable idea is stability of the checking component; the exact optimization method does not transfer automatically.

Controlled input edits would be a practical way to investigate any of these adaptations. An experiment could alter a property in a sentence and inspect whether the internal representation and its regenerated explanation change in the corresponding place. The attraction for a transparent system is that the intermediate decisions could be inspected directly. MirrorGAN’s word-edit examples motivate this style of investigation, but they do not validate a language-only version.

There is also a warning in the paper’s objective. Recovering the original words is not always the same as recovering the original meaning. MirrorGAN trains STREAM to predict a particular description, although an image may support several acceptable descriptions. A Mova round trip would face the analogous issue if a faithful explanation used different wording. Any implementation would therefore need to decide which distinctions matter and how to recognize acceptable reformulations. MirrorGAN supplies the motivation for checking the return path; it does not settle that semantic comparison problem for Mova.

### The problem and its context

#### Realistic pictures can still miss the request

Text-to-image generation has a conditional goal. The system is given a description and must create a picture that both resembles a plausible image and depicts the specified content. These requirements overlap, but neither subsumes the other. A realistic bird picture may show the wrong colors. A scene containing convincing snow and mountains may omit the person the description mentions.

The paper places its contribution in the progress made with [Generative Adversarial Nets](https://md.research.elamur.ai/free/en/papers/goodfellow-2014-generative-adversarial-nets/). In adversarial training, a generator produces images while a discriminator learns to distinguish generated examples from real ones. The generator learns through its attempts to satisfy that discriminator. For text-conditioned generation, the description also enters the process, and a discriminator can evaluate an image together with its associated text.

MirrorGAN’s objection concerns the adequacy of that paired judgment. An image and a sentence belong to different kinds of representation. Deciding whether they express the same content requires more than detecting whether the image has plausible texture or shape. The authors argue that a discriminator alone provides an inefficient and difficult route to learning this cross-domain agreement.

That diagnosis explains why the paper introduces another task rather than merely another image-quality constraint. Captioning requires a system to extract describable content from an image. If the generated picture supports the original description, it should contain recognizable evidence for that description. The captioner supplies a different route through which failures of correspondence can affect the generator.

#### What earlier approaches contributed

The paper describes earlier text-to-image research as a series of ways to connect language representations with adversarial image synthesis. Reed’s approach learns a text representation that helps distinguish visual content and uses it to condition generation. StackGAN divides synthesis into stages, allowing an initial image to be refined. These approaches address the difficulty of obtaining a plausible picture from language without asking a reverse captioner to reconstruct the input.

Other work changes the organization of generation. The semantic-layout approach described by the authors first derives a layout from the text and then uses it to guide image synthesis. The paper also discusses hierarchically nested adversarial objectives as a way to train image generation at different levels. These methods provide useful structure, but MirrorGAN’s authors regard the preservation of text-image meaning as an unresolved problem.

AttnGAN is the closest architectural reference. Its attention mechanism lets different image regions draw on different words. This is a more detailed conditioning mechanism than supplying only a sentence representation. A region associated with a bird’s wing can receive language information relevant to that wing, while another region can depend on a different part of the description.

MirrorGAN adopts that local attention idea but questions whether it is sufficient. Focusing on relevant words does not by itself establish that the complete scene remains consistent with the sentence. The concern is particularly relevant in a staged generator: successive refinements may improve parts of an image without maintaining the intended overall content.

The proposed response has complementary parts. Sentence-level attention keeps global context available during refinement, and redescription asks whether the final picture can support the input sentence. The first changes how language guides construction. The second changes how the result is supervised.

#### Why the reverse task is attractive

Image captioning runs in the opposite direction from text-to-image generation. It starts with visual content and produces language about that content. Both tasks require a connection between image features and linguistic meaning, so the authors propose using them together.

The attraction is not that captioning can verify every aspect of a picture. Rather, caption prediction creates a content-sensitive objective. If the generator omits a recognizable element, the reverse reader may struggle to predict the words describing it. Training can then encourage changes to the image that make those words easier to recover.

This reasoning gives the generated image a specific role. It must be more than an endpoint judged by a discriminator. It must also carry information across a return path into language. MirrorGAN calls this a mirror structure because the description is meant to be reflected through an image and recovered in a new linguistic account.

The distinction between a recovered account and an independent semantic proof matters. A captioning component learns from examples and may overlook details or rely on common associations. MirrorGAN uses that learned component as supervision. It does not replace the problem of semantic alignment with a logically complete test.

#### The relationship to bidirectional image translation

The authors connect their idea to CycleGAN and DualGAN, which jointly handle mappings in opposite directions between image domains. These predecessors show why a return path can constrain a forward transformation. A transformation that discards important information may have difficulty satisfying a reconstruction requirement.

MirrorGAN differs in its data assumptions and its reconstruction target. It trains with paired descriptions and images. Its reverse target is language, and its reconstruction loss is based on word prediction. The paper contrasts this with the visual reconstruction objective used in CycleGAN’s image-to-image setting.

The authors also emphasize the gap between modalities. Moving between text and pictures requires aligning different representational forms, while image-domain translation operates between visual inputs and outputs. MirrorGAN therefore borrows the broad motivation for bidirectional constraints while changing both the task and the loss.

Attention provides another line of context. The paper cites its use in captioning, visual [question answering](https://md.research.elamur.ai/free/en/topics/question-answering/), and [machine translation](https://md.research.elamur.ai/free/en/topics/machine-translation/), including [Multi-Way, Multilingual Neural Machine Translation with a Shared Attention Mechanism](https://md.research.elamur.ai/free/en/papers/firat-2016-multi-way-multilingual-neural-machine/). MirrorGAN’s contribution is not attention in isolation. It is the combination of local and global language guidance inside staged generation, together with a reverse captioning objective aimed at preserving the requested content.

### The method, step by step

MirrorGAN contains a language encoder, a staged image generator, and an image-captioning reader. The language encoder is called STEM. The image-generation component uses GLAM to combine word-level and sentence-level attention. The captioning component is STREAM. Understanding their separate roles makes the training procedure easier to follow: STEM supplies the request, GLAM guides image construction, and STREAM supplies an additional content-sensitive loss.

Generating an image and checking its description The steps in order.

#### Encode the description at different scales

STEM begins with a recurrent neural network. The paper cites [Learning Phrase Representations using RNN Encoder–Decoder for Statistical Machine Translation](https://md.research.elamur.ai/free/en/papers/cho-2014-learning-phrase-representations-rnn-encoder/) when introducing this component. Its task is to produce representations at different linguistic scales from the same description.

```
w, s = RNN(T)
```

Here, T is the input description, RNN is the recurrent encoder, w collects its word-level hidden states, and s represents the sentence. The description contains tokens Tₗ indexed by l. Its length is L, so the indices run from 0 through L − 1. Each word state wˡ has dimension D, and the collected matrix w has shape D × L. In the formal description, s is the final hidden state and also has dimension D.

The word states retain information associated with particular positions in the description. The sentence state provides a compact account of the description as a whole. These are not interchangeable inputs: the later attention mechanisms use them for different purposes.

In the implementation, the authors use a pretrained bidirectional LSTM for text encoding. The word representation dimension D is 256, and the sentence length setting L is 18. The paper does not report an experiment that varies these choices, so they should be understood as configuration details rather than independently validated optima.

The sentence representation then passes through conditioning augmentation, a technique adopted from StackGAN.

```
s_ca = F_ca(s)
```

The function F_ca performs conditioning augmentation, and s_ca is the resulting sentence-conditioning vector. Its dimension is D′. The implementation sets D′ to 100.

The motivation is to make conditioning less brittle. Descriptions can vary in wording while preserving closely related content, and a generator should not depend on an isolated point in its conditioning space. The authors use augmentation to encourage robustness to small changes in that space. It is a transformation of the sentence representation, not a claim that every possible rewording has been explicitly generated and checked.

#### Build an initial image, then refine it

The image-generation component uses a cascade. An early stage establishes broad visual content, and subsequent stages work towards finer output. The notation uses m for the number of stages, Fᵢ for a stage’s visual-feature transformation, and Gᵢ for the function that converts its features into an image.

The initial visual state depends on random noise and the augmented sentence vector.

```
f₀ = F₀(z, s_ca)
```

The symbol f₀ denotes the initial visual feature representation. F₀ is the first feature transformation, z is a random-noise input, and s_ca supplies sentence conditioning. The noise z is drawn from the normal distribution N(0, 1). The noise allows generation to vary even when the description remains fixed.

Later stages take the preceding visual state and a new attention-derived context.

```
fᵢ = Fᵢ(fᵢ₋₁, F_attᵢ(fᵢ₋₁, w, s_ca)),  i ∈ {1, 2, …, m − 1}
```

The feature representation fᵢ belongs to stage i, while fᵢ₋₁ comes from the preceding stage. Fᵢ transforms that earlier state together with the output of F_attᵢ. The attention function receives the previous visual features, the word representations w, and the augmented sentence representation s_ca. The stage index i runs over the refinement stages after the initial one.

Each stage also produces an image.

```
Iᵢ = Gᵢ(fᵢ),  i ∈ {0, 1, …, m − 1}
```

Here, Iᵢ is the image generated at stage i, and Gᵢ converts that stage’s visual features into its image output. The formal notation assigns fᵢ the shape Mᵢ × Nᵢ and assigns Iᵢ the spatial size qᵢ × qᵢ. Mᵢ is the visual-feature dimension, while Nᵢ indexes spatial positions.

The implementation contains three image generators. They produce images at 64 × 64, 128 × 128, and 256 × 256. GLAM is used in the final two generators. The visual embedding dimension Mᵢ is 32, and Nᵢ is defined as qᵢ × qᵢ, with qᵢ taking the corresponding resolution value.

These details make the architecture more specific than a generic instruction to generate and caption an image. MirrorGAN retains intermediate visual states, applies language-guided refinement at later stages, and supervises outputs at multiple scales through adversarial training.

#### Combine local and global context

GLAM constructs its language context by joining a word-based attentive representation with a sentence-based attentive representation.

```
F_attᵢ(fᵢ₋₁, w, s_ca) = concat(Attᵂᵢ₋₁, Attˢᵢ₋₁)
```

The function concat concatenates its inputs. Attᵂᵢ₋₁ is the word-context feature derived from the preceding stage, and Attˢᵢ₋₁ is the corresponding sentence-context feature. These contexts are then used with fᵢ₋₁ to construct the next visual state.

The local mechanism begins by projecting word representations into the visual-feature space. It then calculates compatibility between those projected words and the current visual features. Normalized compatibility values determine the resulting word-context representation.

```
Attᵂᵢ₋₁ = Σₗ₌₀ᴸ⁻¹ (Uᵢ₋₁wˡ) [softmax(fᵢ₋₁ᵀ(Uᵢ₋₁wˡ))]ᵀ
```

The sum runs over word positions l from 0 through L − 1. The vector wˡ represents the word at position l. Uᵢ₋₁ is a learned projection with shape Mᵢ₋₁ × D, so Uᵢ₋₁wˡ expresses that word in the visual-feature space. The superscript T denotes transposition. The softmax operation normalizes compatibility scores, and the weighted terms are combined into Attᵂᵢ₋₁.

The resulting attentive feature has shape Mᵢ₋₁ × Nᵢ₋₁, matching the preceding visual-feature representation. That compatibility of shapes allows the word context to be combined with the visual state for refinement.

The intuition is local selectivity. Different parts of the visual representation can draw on different linguistic evidence. A description mentioning several colors or body parts should not have to influence every region through the same undifferentiated sentence vector.

Global attention uses the augmented sentence vector instead of the collection of word states.

```
Attˢᵢ₋₁ = (Vᵢ₋₁s_ca) ∘ softmax(fᵢ₋₁ ∘ (Vᵢ₋₁s_ca))
```

The learned projection Vᵢ₋₁ maps the sentence-conditioning vector into the visual-feature space. Its input dimension is D′, and its output dimension corresponds to Mᵢ₋₁. The symbol ∘ denotes element-wise multiplication. The projected sentence vector interacts with the current visual features, the softmax normalizes the resulting scores, and another element-wise multiplication forms Attˢᵢ₋₁.

The projected sentence representation is applied across the spatial structure so that the resulting context has shape Mᵢ₋₁ × Nᵢ₋₁. The paper does not specify every normalization axis or broadcasting operation in its displayed notation. The architectural point is that the complete sentence supplies a content-dependent global context with a shape that can be joined to the local context and current visual features.

Calling this component global does not mean it ignores spatial variation. The sentence representation is global, but its interaction with the current visual state can emphasize different visual positions. The authors’ attention visualizations suggest that this context is broad earlier in refinement and becomes more associated with particular regions later.

The combined mechanism is intended to prevent a narrow local improvement from losing the sentence’s overall meaning. Word attention can help refine a specific attribute; sentence attention keeps the broader request active while that refinement occurs.

#### Read the final image back into language

STREAM uses an image encoder followed by a recurrent text decoder. Its image encoder is a convolutional neural network pretrained on ImageNet. The paper cites [Deep Residual Learning for Image Recognition](https://md.research.elamur.ai/free/en/papers/he-2015-deep-residual-learning-image-recognition/) for this visual component.

The final generated image supplies the decoder’s initial visual information.

```
x₋₁ = CNN(Iₘ₋₁)
```

CNN is the convolutional image encoder, Iₘ₋₁ is the image from the last generation stage, and x₋₁ is the resulting visual feature vector. Its dimension is Mₘ₋₁. The negative index marks its role before the sequence of text inputs begins.

The decoder also receives word inputs transformed into its working space.

```
xₜ = WₑTₜ,  t ∈ {0, …, L − 1}
```

Tₜ denotes the input word representation at position t, Wₑ is the [word-embedding](https://md.research.elamur.ai/free/en/concepts/word-embeddings/) matrix, and xₜ is the transformed input to the recurrent decoder. Wₑ has shape Mₘ₋₁ × D. The text-position index t runs from 0 through L − 1.

The recurrent decoder predicts a distribution over words.

```
pₜ₊₁ = RNN(xₜ),  t ∈ {0, …, L − 1}
```

Here, RNN denotes STREAM’s recurrent decoder rather than STEM’s text encoder. The distribution pₜ₊₁ assigns probabilities to candidate words at the next prediction position. The displayed expression abbreviates the recurrent state carried across the decoding sequence.

This training setup predicts the target description sequentially, with the image supplying visual context. It is not simply a comparison between a freely generated caption string and the input string after both have been produced. The word probabilities themselves enter a differentiable loss.

STREAM is trained before the rest of the system and then kept fixed. The authors report that joint optimization was unstable and demanded too much time and memory. This staged procedure is essential to understanding the implementation: the overall architecture connects image generation and captioning, but all its parts are not updated together throughout training.

#### Keep the adversarial checks

MirrorGAN retains adversarial supervision for visual realism and text-image correspondence. At stage i, the generator minimizes a loss with an image-only term and an image-plus-sentence term.

```
ℒ_Gᵢ = −½ E_{Iᵢ ∼ p_Iᵢ}[log Dᵢ(Iᵢ)] − ½ E_{Iᵢ ∼ p_Iᵢ}[log Dᵢ(Iᵢ, s)]
```

The symbol ℒ_Gᵢ is the adversarial loss for generator stage i. Iᵢ is a generated image drawn from the stage’s generated-image distribution p_Iᵢ. E denotes expectation over those samples, and log is the logarithm. Dᵢ is the discriminator associated with that stage.

The value Dᵢ(Iᵢ) concerns whether the image appears real. The value Dᵢ(Iᵢ, s) concerns the image together with sentence representation s. Minimizing the negative logarithms encourages the generator to produce images that receive favorable judgments in both cases. The coefficient ½ weights each term as specified in the paper.

The sentence input here is s, the sentence representation, while generation also uses the augmented vector s_ca. Keeping those symbols distinct matters because they occupy different roles in the architecture.

#### Add the redescription loss

STREAM supplies a cross-entropy objective based on the target words.

```
ℒ_stream = −Σₜ₌₀ᴸ⁻¹ log pₜ(Tₜ)
```

The loss ℒ_stream sums over the L target positions. Tₜ is the target word at position t, and pₜ(Tₜ) is the probability assigned to that word. A low probability for a target word increases the loss. The indexing in this loss follows the paper’s reconstruction expression; the decoder description above uses next-position prediction notation.

The same type of objective trains STREAM during pretraining. Later, when STREAM’s parameters are fixed, this loss still depends on the generated image. Gradients can pass through the captioner and into the generators. Freezing STREAM therefore preserves its learned reading behavior without removing its influence on generator training.

The full generator objective combines the stage-level adversarial losses with reconstruction.

```
ℒ_G = Σᵢ₌₀ᵐ⁻¹ ℒ_Gᵢ + λℒ_stream
```

The symbol ℒ_G is the total generator loss. The sum includes the adversarial loss ℒ_Gᵢ from every generation stage. The scalar λ controls the weight of the reconstruction loss relative to those adversarial terms. The implementation uses λ = 20.

This weighted combination expresses the paper’s main training argument. The image should satisfy discriminators, but it should also support the target description when read by STREAM. Neither requirement is removed when the other is added.

#### Train the discriminators against generated outputs

Each stage’s discriminator receives real images and generated images, with corresponding image-only and sentence-conditioned judgments.

```
ℒ_Dᵢ = −½ E_{Iᵢᴳᵀ ∼ p_Iᵢᴳᵀ}[log Dᵢ(Iᵢᴳᵀ)] − ½ E_{Iᵢ ∼ p_Iᵢ}[log(1 − Dᵢ(Iᵢ))] − ½ E_{Iᵢᴳᵀ ∼ p_Iᵢᴳᵀ}[log Dᵢ(Iᵢᴳᵀ, s)] − ½ E_{Iᵢ ∼ p_Iᵢ}[log(1 − Dᵢ(Iᵢ, s))]
```

The symbol ℒ_Dᵢ is the discriminator loss at stage i. Iᵢᴳᵀ denotes a real image drawn from the real-image distribution p_Iᵢᴳᵀ. Iᵢ and p_Iᵢ denote generated images and their distribution. Dᵢ, s, E, and log retain the meanings introduced above.

The real-image terms encourage favorable judgments for real inputs. The generated-image terms encourage unfavorable judgments for generated inputs. The conditional terms apply those distinctions to image-sentence pairs. The displayed objective contains these real and generated cases; it should not be expanded into an undocumented training procedure for additional kinds of negative pair.

The overall discriminator objective sums across stages.

```
ℒ_D = Σᵢ₌₀ᵐ⁻¹ ℒ_Dᵢ
```

Here, ℒ_D is the total discriminator loss, m is the number of generation stages, and ℒ_Dᵢ is the loss for each stage. Generator and discriminator updates alternate.

Taken together, the procedure first establishes a captioning reader, then trains image generation against adversarial judgments and the reader’s reconstruction loss. The text encoder supplies both local and global representations, while the cascade repeatedly refines visual features. The architecture’s novelty lies in how these signals cooperate, rather than in replacing adversarial generation with captioning.

### Experiments and results

#### Data and comparison conditions

The experiments use CUB and MS COCO. Across its 200 bird categories, CUB provides 8,855 images for training and 2,933 for testing. Each image is associated with 10 descriptions. This provides a setting where subtle attributes of a relatively restricted visual subject can matter: colors, wings, crowns, and other bird features are prominent in the authors’ qualitative discussion.

The COCO dataset includes 82,783 images for training, with another 40,504 for validation. Each image has 5 descriptions. Its scenes are more varied than the bird images, and the paper treats it as the harder generation setting. The stated dataset split is training and validation, although later discussion sometimes refers to COCO test examples. The reported split sizes should therefore retain their original training and validation labels rather than being silently reassigned.

Both datasets follow the preprocessing procedure used by the cited StackGAN and AttnGAN work. This helps align the experiments with those predecessors. The account does not supply a new preprocessing study or establish how alternative preprocessing choices would affect performance.

The comparison set includes GAN-INT-CLS, GAWWN, and StackGAN. It also includes StackGAN++, PPGN, and AttnGAN. AttnGAN receives the most detailed direct comparison because MirrorGAN adopts its basic staged generation structure and word-attention mechanism.

The paper evaluates more than image appearance. It reports an image-generation score, a retrieval-based measure of text-image agreement, qualitative comparisons, and a human perceptual study. These forms of evidence answer related but distinct questions. Their value is greater when those distinctions remain visible.

#### What the Inception Score measures

The authors use the Inception Score to assess generated-image quality and diversity. They calculate it using fine-tuned Inception classifiers supplied by the cited StackGAN work. A higher value is treated as better under this evaluation procedure.

This score does not directly inspect the input description. It can therefore provide evidence about generated images without establishing whether a requested attribute is present. MirrorGAN’s semantic claims need the additional retrieval and perceptual analyses, rather than relying on this score alone.

On CUB, the reported comparison with AttnGAN is:

CUB image generation compared by Inception Score MirrorGAN receives the higher image-generation score in the reported comparison.

**The numbers**

| System or setting | Inception Score |
| --- | --- |
| AttnGAN | 4.36 |
| MirrorGAN (this paper) | 4.56 |

On COCO, the corresponding comparison is:

COCO image generation compared by Inception Score MirrorGAN also receives the higher score on the more varied scene dataset.

**The numbers**

| System or setting | Inception Score |
| --- | --- |
| AttnGAN | 25.89 |
| MirrorGAN (this paper) | 26.47 |

The authors state that MirrorGAN has the highest Inception Score among the methods they compare on each dataset. The prose gives the direct AttnGAN comparisons shown in these charts. The other methods are named as baselines, but their exact main-comparison scores are not stated in the accompanying narrative.

The appropriate conclusion is that MirrorGAN improves the reported score under the authors’ evaluation setup. The score supports the claim that adding the new supervision does not merely improve text correspondence at the expense of image-generation quality. It does not establish that every image is better, or quantify the reliability of the result across repeated training runs.

#### How text-image agreement is evaluated

R-precision evaluates whether a generated image is associated with its own description more strongly than with randomly selected alternatives. For each image, the authors construct a candidate pool containing its corresponding description and 99 mismatched descriptions drawn from the test set.

They compute cosine similarity between the image representation and each candidate text representation. They then check whether the matching description appears among the highest-ranked candidates. The settings are top-1, top-2, and top-3. An example is counted as correct at a setting when its associated description falls within that cutoff.

This is a retrieval test. It asks whether the generated image has a representation that favors the intended description over sampled alternatives. It is therefore more directly related to semantic correspondence than the Inception Score, but it still depends on the representations used for retrieval and the difficulty of the alternative descriptions.

The paper reports that MirrorGAN exceeds AttnGAN at every evaluated R-precision setting on both datasets. Its narrative does not state the exact values of those main-comparison entries. The claim can be reported as a consistent ranking advantage, but a precise numerical margin should not be invented.

R-precision also differs from exhaustive attribute verification. A description can rank highly even if a small requested detail is missing, particularly when the alternative descriptions concern unrelated content. Conversely, visually different images may both be compatible with the same description. The metric gives useful aggregate evidence without resolving every possible semantic mismatch.

#### What the visual comparisons add

The authors compare images from AttnGAN, a MirrorGAN baseline, and the full system. The baseline retains word-level attention within the MirrorGAN framework but omits the proposed global attention. It therefore helps distinguish the contribution of redescription from the contribution of the complete attention design.

The examples focus on failures that broad image-quality judgments can miss. In the authors’ discussion, some AttnGAN outputs lose fine detail, use colors that conflict with the description, or show unusual shapes. A skiing example lacks the skier. These are concrete mismatches between requested content and visible content.

The MirrorGAN baseline improves details and makes colors and shapes more consistent in the selected comparisons. The authors point to clearer wings as evidence that redescription helps even without sentence-level attention. The full system adds further corrections, including a white bird underside and a skier wearing a red jacket.

Other examples include boats with a city background and horses on a green field. The authors use these scenes to illustrate plausible output beyond the narrower bird setting. They also note that the reduced content diversity in CUB makes realistic, text-consistent generation easier there than in COCO.

These comparisons explain what an improvement can look like. They do not measure how frequently the same correction occurs throughout either dataset. Their strongest role is interpretive: they connect the abstract objectives to recognizable errors such as a missing person or an incorrect body color.

#### The human perceptual study

The human study uses the CUB test data and compares MirrorGAN directly with AttnGAN. The authors recruit 100 volunteers from different professional backgrounds. The participants perform separate tasks concerning visual authenticity and semantic consistency.

For authenticity, participants view 100 groups. Each group contains 2 generated images produced from the same description, with method order randomized. Participants have unlimited time to choose the image they find more convincing.

This procedure tests comparative visual preference under matched textual conditioning. It does not ask participants to assign an absolute realism score, and it does not establish whether either image would be mistaken for a real photograph in another setting. The relevant outcome is which system’s image is preferred when the alternatives are shown together.

The semantic task uses 3 images in a group: a reference image and generated outputs from the competing systems. Participants choose the generated image whose content agrees more closely with the reference. The authors explain that they use a real image as the reference because comparing images is easier for participants than comparing an image with a sentence.

MirrorGAN is preferred in both tasks. The authors report a stronger advantage for semantic consistency than for authenticity. Exact vote percentages are not stated in the narrative, so the study supports a directional preference without a numerical percentage being assigned here.

The semantic task is informative but must be named accurately. It measures agreement with a reference image. A description may permit several valid pictures that differ from that reference, so this is not identical to a direct human judgment of whether the text has been satisfied. The study complements the retrieval metric while retaining its own particular target.

### What the ablations show

#### Reconstruction helps before global attention is added

The component comparisons are important because MirrorGAN changes both training supervision and attention. Without separating them, an improvement over AttnGAN could not be assigned confidently to redescription, sentence-level context, or their combination.

The authors examine a version without STREAM and without global attention. Its Inception Score is 3.91 on CUB and 19.01 on COCO. They report that this version performs better than StackGAN++ and PPGN under the comparisons discussed.

Adding STREAM raises the reported Inception Score to 4.47 on CUB and 25.99 on COCO. R-precision improves in the same direction, although the narrative does not give those particular retrieval values. This is direct evidence that the reconstruction component matters within the authors’ architecture.

The comparison is especially useful because the resulting system still lacks global attention. It already exceeds AttnGAN according to the authors’ discussion. The paper can therefore support a narrower claim than simply saying the final combination works: caption-based supervision contributes even when the attention remains word-based.

This result does not show that any captioning component would provide the same gain. STREAM is pretrained in a particular way and used with a particular cascade and objective. Its benefit is demonstrated within that setup. Even so, the controlled addition makes redescription more than a verbal motivation attached to the final system.

#### The reconstruction weight changes performance

The parameter λ controls how strongly caption reconstruction influences generator training. The authors compare settings and report better results when λ increases from 5 to 20.

On CUB, the Inception Score moves from 4.01 to 4.54 over that comparison. The corresponding R-precision values are shown below.

CUB R-precision under reconstruction-loss weight settings The stronger tested reconstruction weight gives the higher retrieval score.

**The numbers**

| System or setting | R-precision % |
| --- | --- |
| λ = 5 | 32.07 |
| λ = 20 (this paper) | 57.67 |

On COCO, the same change in λ is associated with an Inception Score increase from 21.85 to 26.21. Its R-precision changes from 52.55% to 74.52%. The paragraph reporting these ablation results does not identify a top-k cutoff for those particular R-precision values, so they should not be relabeled as a specific retrieval setting.

These results indicate that the reconstruction objective is not merely a negligible auxiliary term. Its weight materially affects both reported evaluation dimensions in the tested range. That is consistent with the paper’s argument that requiring readable content can help visual generation rather than serving only as a separate semantic check.

The evidence does not establish that progressively larger weights always help. It concerns the settings reported by the authors, and λ = 20 becomes the default. No general optimum follows from those comparisons.

The weight-study scores also differ from the headline full-system scores. They belong to their own controlled comparison and should remain attached to that setting. Treating every reported value as an interchangeable measurement of the final system would blur the role of the ablation.

#### Global attention contributes beyond the reverse task

The authors report that adding GLAM to the reconstruction-based framework produces further gains in Inception Score and R-precision. The narrative does not enumerate all entries of the component comparison, so its numerical decomposition is less complete than the STREAM comparison.

The qualitative baseline comparison helps explain the added contribution. The word-attention-only MirrorGAN baseline already improves detail, while the full design corrects additional content, including the bird underside and the missing skier example. The authors interpret these changes as evidence that sentence context complements local word guidance.

The claim is cooperative rather than exclusive. Local attention is retained, and global attention is added alongside it. The experiments do not support discarding local conditioning in favor of a sentence vector alone. They support preserving both scales of language information during refinement.

#### Attention maps and intermediate outputs

The cascade analysis shows an initial image with rough color and shape, followed by increasingly detailed outputs. This is consistent with the intended coarse-to-fine organization. Later stages improve features such as wings and crowns while receiving attention-derived language context.

The authors display top-5 global and local attention maps at refinement stages. Their interpretation is that global attention initially emphasizes broader context and later becomes more focused around particular regions. Local attention is associated with words relevant to fine-grained detail.

These maps make the proposed division of labor easier to inspect. They do not establish that each highlighted area is a complete causal explanation of the final pixel pattern. The component comparisons provide stronger evidence that the mechanism helps; the visualizations suggest how its behavior relates to the architecture’s design.

The paper also modifies a single word in descriptions and shows resulting outputs with top-2 attention maps from the final stage. The selected examples indicate sensitivity to small semantic changes. No aggregate success rate is reported for this analysis, so it remains a targeted demonstration rather than a broad claim of reliable attribute control.

### Limitations

#### Limits explicitly acknowledged by the authors

The authors’ first limitation concerns optimization. STREAM and the remaining components are not jointly trained throughout a complete end-to-end procedure. Limited computational resources prevent that setup, and the paper reports that joint optimization is unstable and expensive in memory and time.

This qualification matters because the architecture is described as a unified framework. It is unified in the sense that the captioning loss supervises image generation through a connected computation. Its actual training procedure still separates captioner pretraining from generator learning and fixes the captioner afterwards.

The distinction does not invalidate the reconstruction signal. It does limit claims about the benefits of jointly adapting both directions. The experiments demonstrate a generator trained with a fixed reverse reader, not a complete study of the alternatives for joint training.

The authors also identify the simplicity of the text and captioning components as a limitation. They suggest that the text encoder could be improved with [BERT](https://md.research.elamur.ai/free/en/papers/devlin-2019-bert-pre-training-deep-bidirectional/) and that stronger image-captioning approaches could replace the baseline STREAM design.

Those suggestions are future directions. The paper does not report experiments with those replacements. It therefore cannot establish how much improvement they would produce, whether they would change optimization stability, or whether the same reconstruction weight would remain appropriate.

A further direction concerns complementarity with CycleGAN. The authors suggest that the approaches might be combined to improve cross-media content handling. Again, this is a proposal rather than a demonstrated extension. MirrorGAN’s paired supervision and language reconstruction objective remain the tested design.

#### Reconstruction is an imperfect proxy for meaning

A careful reader should distinguish the paper’s semantic motivation from the literal objective it optimizes. The motivation is to preserve meaning. The loss rewards the probabilities assigned to the original target words.

Those are related goals, but they are not identical. A generated image may support a faithful description with different wording. Conversely, a captioner may assign a high probability to an expected phrase without fully recognizing every detail that phrase denotes. The paper does not supply a separate proof that low reconstruction loss guarantees semantic equivalence.

This issue is visible in the data organization. Each image has multiple descriptions, so the same visual content can be expressed in different ways. MirrorGAN acknowledges this diversity through sentence conditioning and its discussion of shared semantics, but the reconstruction objective still uses a particular target sequence.

The sequential prediction procedure adds another qualification. During training, the decoder receives target-word inputs as it predicts later words. The reconstruction loss therefore measures conditional word prediction with visual information, instead of a entirely independent account generated without target-text context. It remains a meaningful training signal, but it should not be described as an unconstrained semantic audit.

#### A fixed captioner sets the terms of supervision

STREAM’s fixed parameters provide stability. They also mean that its learned perceptual and linguistic preferences remain part of the objective throughout generator training. The generator is rewarded for producing images that this reader can interpret in the required way.

The experiments do not compare a broad range of reverse readers or establish that their errors would be independent. They therefore cannot separate all possible benefits of genuine content preservation from benefits specific to the chosen captioner’s recognition behavior.

This is an implication of the setup, not an additional failure reported by the authors. The paper offers positive benchmark evidence for its chosen reader. A broader claim about redescription would require testing how robust the effect is to different reverse components and different semantic evaluations.

#### The metrics each cover part of the target

The Inception Score evaluates generated images through a classifier-based procedure. It does not directly compare each image with its input description. Better values are relevant to visual generation, but they cannot alone establish that requested entities, colors, or relations are preserved.

R-precision directly connects images with text, yet it does so through retrieval representations and randomly selected mismatched descriptions. A correct description can rank highly without every attribute being correct. The test also does not isolate difficult alternatives that differ only in a subtle requested property.

The human study provides another perspective, but its semantic task uses real reference images. That choice simplifies the comparison for participants while changing the target from explicit textual satisfaction to visual agreement with a reference. The result supports the authors’ semantic interpretation without being identical to a human audit of the original sentence.

These qualifications do not make the evaluations redundant. They explain why the paper needs several forms of evidence and why agreement among them is more informative than a single score. They also set the boundary around what the combined evidence can establish.

#### The scope of the experiments remains specific

The evidence concerns CUB and COCO, the stated preprocessing, the configured image cascade, and the reported settings. It does not establish performance across arbitrary visual domains or descriptions of unrestricted complexity. The implementation’s sentence length setting is 18, and its final image resolution is 256 × 256.

The paper’s own discussion notes that CUB content is less varied than COCO content. Strong bird-generation results therefore should not be treated as evidence that equally reliable behavior follows for all kinds of scenes. The selected COCO examples broaden the demonstration, but they do not remove the difficulty of varied multi-element content.

The word-edit examples show promising responsiveness to subtle textual changes. They do not establish exhaustive control over attributes, object counts, spatial relations, or all possible edits. The paper reports no systematic error taxonomy covering those categories.

The reported narrative also does not provide uncertainty estimates for the main score comparisons or a repeated-run analysis. The direction of the reported result is clear, but the account does not quantify variability across independent training runs. Similarly, the human-study discussion states the preference ordering without giving exact vote values in prose.

These are limits on interpretation rather than reasons to dismiss the contribution. MirrorGAN demonstrates that a reverse captioning objective and renewed sentence context can improve the authors’ benchmark setup. It does not solve semantic verification in general, and it does not claim that every visually convincing output is a faithful realization of its description.

### What came after

No subsequent citing work is identified for discussion, so a documented chain of later extensions cannot be described. The paper’s own proposed directions should remain distinct from demonstrated follow-up results.

The clearest directions are stronger text representations, a more capable captioning reader, and a fuller investigation of joint optimization. Each targets a different part of the design. Better text encoding could change the information supplied to generation; better captioning could change the feedback derived from the output; joint training could change how the forward and reverse components adapt to one another.

The suggested connection with CycleGAN is broader. It asks whether MirrorGAN’s paired language supervision could be combined with ideas from bidirectional visual translation. The authors present this as an opportunity to investigate, without reporting a combined system.

The enduring research question is whether a generated result preserves enough of its input to be read back faithfully. MirrorGAN makes that question operational through a fixed captioning component, a reconstruction loss, and global-local attention. Its experiments support that combination in the tested image-generation setting, while leaving open how faithfully the reverse reader measures meaning and how well the principle transfers beyond those conditions.

## Cite

Cite as Tingting Qiao, Jing Zhang, Duanqing Xu and Dacheng Tao. 2019. MirrorGAN: Learning Text-To-Image Generation by Redescription. IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings - IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.1109/cvpr.2019.00160](https://doi.org/10.1109/cvpr.2019.00160) · [arXiv 1903.05854](https://arxiv.org/abs/1903.05854)

```bibtex
@inproceedings{qiao2019mirrorgan,
  title = {{MirrorGAN: Learning Text-To-Image Generation by Redescription}},
  author = {Tingting Qiao, Jing Zhang, Duanqing Xu and Dacheng Tao},
  booktitle = {IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings - IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings},
  year = {2019},
  doi = {10.1109/cvpr.2019.00160},
  eprint = {1903.05854},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.1109/cvpr.2019.00160}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
