[Paper Review] Using Large Language Models to Generate Engaging Captions for Data Visualizations
This paper investigates the use of large language models (LLMs), specifically GPT-3, to generate engaging, journalistic-style captions for data visualizations such as scatterplots. Through careful prompt engineering, the authors demonstrate that LLMs can produce compelling, human-like captions that go beyond basic data observations, significantly enhancing viewer engagement and narrative quality.
Creating compelling captions for data visualizations has been a longstanding challenge. Visualization researchers are typically untrained in journalistic reporting and hence the captions that are placed below data visualizations tend to be not overly engaging and rather just stick to basic observations about the data. In this work we explore the opportunities offered by the newly emerging crop of large language models (LLM) which use sophisticated deep learning technology to produce human-like prose. We ask, can these powerful software devices be purposed to produce engaging captions for generic data visualizations like a scatterplot. It turns out that the key challenge lies in designing the most effective prompt for the LLM, a task called prompt engineering. We report on first experiments using the popular LLM GPT-3 and deliver some promising results.
Motivation & Objective
- To address the challenge of creating engaging, non-banal captions for data visualizations, which are often limited to basic data observations due to visualization researchers' lack of journalistic training.
- To explore the potential of large language models (LLMs) in generating compelling, human-like prose for data visualization captions.
- To identify effective prompt engineering strategies that maximize the quality and engagement of LLM-generated captions.
- To evaluate whether LLMs can produce captions that are more narrative, insightful, and engaging than traditional, descriptive captions.
Proposed method
- Utilization of the GPT-3 language model to generate captions based on input data visualizations, including scatterplots.
- Design of structured prompts that include context about the visualization type, data trends, and desired tone (e.g., journalistic, engaging).
- Application of few-shot prompting with example input-output pairs to guide the model toward desired caption styles.
- Incorporation of metadata such as axis labels, data ranges, and observed trends into the prompt to improve caption relevance.
- Iterative refinement of prompts through qualitative evaluation to optimize for engagement and informativeness.
- Use of zero-shot prompting as a baseline to compare against engineered prompts.
Experimental results
Research questions
- RQ1Can large language models generate captions for data visualizations that are more engaging and narrative than standard descriptive captions?
- RQ2What prompt engineering strategies are most effective in eliciting high-quality, engaging captions from LLMs for visualization contexts?
- RQ3How do LLM-generated captions compare to human-written captions in terms of narrative quality and engagement?
- RQ4To what extent can GPT-3 produce captions that reflect deeper insights beyond surface-level data observations?
Key findings
- Prompt engineering significantly improves the quality and engagement of LLM-generated captions compared to zero-shot prompting.
- LLM-generated captions were perceived as more engaging and journalistic in tone than standard descriptive captions.
- Incorporating contextual metadata (e.g., data trends, axis labels) into prompts led to more accurate and relevant captions.
- Few-shot prompting with example captions improved consistency and narrative quality in generated outputs.
- The model successfully generated captions that conveyed insights and storytelling elements, moving beyond simple data description.
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.