Abstract
Generating diverse questions for given images is an important task for computational education, entertainment, and AI assistants. Different from many conventional prediction techniques is the need for algorithms to generate a diverse set of plausible questions, which we refer to as creativity. In this paper, we propose a creative algorithm for visual question generation which combines the advantages of variational autoencoders with long short-term memory networks. We demonstrate that our framework is able to generate a large set of varying questions given a single input image.
Introduction: The Need for Creative AI
While AI has achieved high accuracy in tasks like object classification and Visual Question Answering (VQA), it often lacks "creativity"—the ability to generate a diverse set of plausible outputs for a single input. In Visual Question Generation (VQG), most existing models are deterministic, often producing repetitive, literal questions such as "What is in the picture?" This lack of variety limits the engagement of AI assistants and educational tools.
The challenge lies in building a model that understands a visual scene deeply enough to ask varied questions ranging from the literal to the inferential. For example, given an image of a dinner party, a creative model should be able to ask both "How many people are in the room?" and "Is this a formal occasion?"
Methodology: The VAE-LSTM Framework
To address this, we propose a VAE-LSTM architecture designed to model the distribution of possible questions rather than predicting a single "correct" one.
- The Encoder (Q-distribution): During training, the encoder processes both an image (via a VGG-16 network) and a ground-truth question, mapping them into a low-dimensional latent space defined by a mean ($\mu$) and variance ($\sigma^2$).
- The Decoder (P-distribution): An LSTM-based decoder takes the image features and a sample $z$ from the latent space to reconstruct the original question.
- Inference (Generation): At test time, the model is provided only with a new image. It samples a random vector $z$ from the learned latent space (using either a Normal or Uniform distribution) and combines it with image features to generate a novel question.
By sampling different points in the latent space, the model explores various aspects of the visual data, producing a wide variety of questions for the same image.
Evaluation and Results
The framework was evaluated using the VQG-COCO, VQG-Flickr, and VQG-Bing datasets. To enhance representational power, the training data was augmented with the larger VQA dataset (~400,000 questions).
Key Metrics
Beyond standard metrics like BLEU and METEOR, we introduced two metrics to measure "creativity":
- Generative Strength: The percentage of unique questions generated per image. Our best model achieved 46.10%.
- Inventiveness: The percentage of generated questions not present in the training set. The model reached 27.88%, indicating it synthesizes new word combinations rather than just memorizing data.
The Diversity-Accuracy Trade-off
We observed a trade-off between diversity and accuracy. Sampling from a wider range in the latent space (e.g., a wide Uniform distribution $U(-20, 20)$) significantly increased diversity and "inventiveness," though it slightly reduced average similarity to a single ground-truth reference question.
Discussion and Limitations
VQG serves as a "dual" task to VQA. While VQA tests if a machine can answer, VQG tests if a machine knows what is worth asking—a higher-order cognitive task.
However, the model faces two primary failure modes:
- Recognition Failures: Misidentification of objects by the vision backbone (VGG) leads to nonsensical questions.
- Co-occurrence Bias: The model may "hallucinate" objects based on context (e.g., asking about vegetables in a food photo when none are present).
Future work will focus on incorporating structured reasoning and external knowledge bases to ground inferential questions in explicit logic.
Summary updated