[Paper Review] Best of Both Worlds: Transferring Knowledge from Discriminative Learning to a Generative Visual Dialog Model
The paper presents a training framework that transfers knowledge from a discriminative visual dialog model to a generative model using Gumbel-Softmax, achieving improved performance on VisDial by enabling generative models to produce more diverse and informative responses.
We present a novel training framework for neural sequence models, particularly for grounded dialog generation. The standard training paradigm for these models is maximum likelihood estimation (MLE), or minimizing the cross-entropy of the human responses. Across a variety of domains, a recurring problem with MLE trained generative neural dialog models (G) is that they tend to produce 'safe' and generic responses ("I don't know", "I can't tell"). In contrast, discriminative dialog models (D) that are trained to rank a list of candidate human responses outperform their generative counterparts; in terms of automatic metrics, diversity, and informativeness of the responses. However, D is not useful in practice since it cannot be deployed to have real conversations with users. Our work aims to achieve the best of both worlds -- the practical usefulness of G and the strong performance of D -- via knowledge transfer from D to G. Our primary contribution is an end-to-end trainable generative visual dialog model, where G receives gradients from D as a perceptual (not adversarial) loss of the sequence sampled from G. We leverage the recently proposed Gumbel-Softmax (GS) approximation to the discrete distribution -- specifically, an RNN augmented with a sequence of GS samplers, coupled with the straight-through gradient estimator to enable end-to-end differentiability. We also introduce a stronger encoder for visual dialog, and employ a self-attention mechanism for answer encoding along with a metric learning loss to aid D in better capturing semantic similarities in answer responses. Overall, our proposed model outperforms state-of-the-art on the VisDial dataset by a significant margin (2.67% on recall@10). The source code can be downloaded from https://github.com/jiasenlu/visDial.pytorch.
Motivation & Objective
- Address the problem of safe, generic responses in MLE-trained generative visual dialog models.
- Enable end-to-end training of a generator by leveraging a discriminative model as a perceptual loss source.
- Propose a novel encoder (HCIAE) and attention-based answer encoding to improve grounding and co-reference resolution.
- Use Gumbel-Softmax with straight-through estimation to backpropagate through discrete sequences.
- Demonstrate improved performance over state-of-the-art on VisDial dataset.
Proposed method
- End-to-end generative model G receives gradients from the discriminative model D via a perceptual loss on the sequence sampled from G.
- Gumbel-Softmax (GS) with straight-through estimator enables differentiable training for discrete sequence generation.
- History-Conditioned Image Attentive Encoder (HCIAE) attends over dialog history and image to produce the joint embedding.
- Metric-learning multi-class N-pair loss for D to learn perceptual similarities and multiple valid responses.
- Discriminator perceptual loss L_G encourages G to produce sequences that score higher than the ground-truth under D.
- Self-attentive answer encoding and an enhanced encoder improve grounding and semantic similarity in responses.
Experimental results
Research questions
- RQ1Can knowledge transfer from a discriminative visual dialog model improve a generative dialog model in terms of diversity and informativeness?
- RQ2Does the proposed HCIAE encoder improve grounding by co-referencing history and visual content?
- RQ3Is end-to-end training via Gumbel-Softmax feasible and beneficial for discrete sequence generation in visual dialog?
- RQ4How do metric-learning losses and self-attention impact discriminator quality and generator performance?
- RQ5What is the impact of training dynamics (non-adversarial knowledge transfer vs adversarial tuning) on final dialog quality?
Key findings
- Generative G trained with discriminator guidance (G-DIS) outperforms MLE baselines on VisDial (R@5 improved to 65.28 and R@10 to 71.55).
- G-DIS with HCIAE encoder achieves 0.5467 MRR and 44.35, 65.28, 71.55 (R@1, R@5, R@10) with Mean 14.23, outperforming HCIAE-G-MLE (MRR 0.5386).
- Discriminative model variants with NP loss and attentional answer encoding achieve strong results (D-NP-ATT: MRR 0.6222; R@1 48.48; R@5 78.75; R@10 87.59; Mean 4.81).
- Knowledge transfer from D to G provides substantial gains over encoder improvements alone (HCIAE-G-DIS beats HCIAE-G-MLE by 1.7% on R@5).
- Adversarially continuing training D in a GAN setup degrades performance, indicating that pre-trained D providing perceptual structure is key for effective transfer.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.