From Data to Story: Towards Automatic Animated Data Video Creation with LLM-based Multi-Agent Systems

Leixian Shen, Haotian Li, Yun Wang, Huamin Qu · DOI

TL;DR

This paper introduces "Data Director," an LLM-powered multi-agent system that automates the creation of animated data videos from raw data. It tackles the challenges of task decomposition, performance optimization, and workflow design in data storytelling by employing specialized "data analyst" and "designer" agents to interpret data, generate visualizations and narratives, and orchestrate animations.

What Problem Does This Paper Address?

Creating compelling data stories, especially in the form of animated data videos, is a complex and time-consuming process. Humans have limited attention spans and often lack the specialized skills needed to extract meaningful insights and craft engaging narratives that integrate various modalities like visualizations, text, and animations. While Large Language Models (LLMs) show promise in automating parts of this workflow, designing systems that can handle the entire end-to-end process, from raw data to a polished animated video, remains a significant challenge. Existing methods often require substantial manual input or are limited in their scope. This paper aims to bridge this gap by developing an autonomous system that can streamline data storytelling.

Methods

The core of Data Director is an LLM-based multi-agent system built upon the perception-brain-action framework. It leverages GPT-4 and is structured with a central controller that orchestrates two specialized agents:

  • Data Analyst Agent: This agent is responsible for interpreting raw data, extracting key insights, generating declarative visualizations (using Vega-Lite specifications), and crafting narration text. It follows a Chain-of-Thought strategy to break down these tasks.
  • Designer Agent: This agent takes the outputs from the data analyst and focuses on creating dynamic animations (visual effects and annotations) and ensuring temporal synchronization between the narration and visual elements. It selects animation types and timing based on the narration.

The system employs a hierarchical task decomposition approach, breaking down data video creation into manageable sub-tasks. It also emphasizes effective prompt engineering for each agent to optimize performance and ensure accurate, relevant outputs. The workflow is designed to be iterative, with a focus on seamless integration of components.

Datasets

The paper uses a real-world stock price dataset of four IT companies (Amazon, Microsoft, Apple, and Google) for a case study to demonstrate Data Director's capabilities. No new benchmarks are introduced.

Key Insights and Ideas

  • LLM-powered Multi-Agent Systems for Data Storytelling: The paper demonstrates the feasibility of using a multi-agent approach with LLMs to automate complex data storytelling tasks, moving beyond single-model solutions.
  • Specialized Agent Roles: Decomposing the workflow into distinct "analyst" and "designer" roles allows for focused expertise and better handling of different aspects of data video creation.
  • Importance of Prompt Engineering: The effectiveness of LLM agents is heavily reliant on carefully crafted prompts that guide task execution, specify output formats, and leverage techniques like Chain-of-Thought.
  • Iterative Workflow Design: Given the complexity and subjective nature of storytelling, an iterative approach to workflow design and optimization is crucial, rather than seeking a single, perfect solution upfront.
  • Bridging the Gap Between Data and Narrative: The system effectively translates raw data into a coherent narrative with synchronized visuals and animations, addressing the challenge of making data accessible and engaging.

Key Results

The paper presents a case study where Data Director successfully generates an animated data video from stock price data. The generated video includes:

  • Extracted insights about company stock performance.
  • Vega-Lite visualizations (line charts) representing the data.
  • A structured narration that guides the viewer through the insights.
  • Animations and annotations that highlight key points in the narration and visualizations.

The authors highlight that the entire narrative is well-crafted, with smooth articulation and appropriately designed visuals and animations, resulting in an engaging data video.

Limitations and Future Work

  • Limitations:
    • Iterative Development: The current system is developed through an iterative process, meaning it may not represent the absolute optimal configuration.
  • LLM Inherent Limitations: The system is subject to LLM limitations such as error accumulation, inconsistent results, hallucinations, and high computational costs.
  • Subjectivity of Quality: Data storytelling quality is inherently subjective, making global optimization and benchmarking challenging.
  • Future Work:
    • Global Optimization and Benchmarking: Developing frameworks for global optimization and establishing community benchmarks for data video generation.
  • Human-in-the-Loop: Incorporating human feedback at various stages (perception, sub-task optimization, conversational feedback) to enhance personalization and address model limitations.
  • Cutting-Edge Models: Integrating multimodal LLMs to handle richer inputs and outputs, potentially leading to more direct video generation.
  • Enhanced Data Comprehension: Exploring innovative techniques for data interpretation and inputting data into LLMs.
  • Shared Representations: Designing more comprehensive global shared representations for better contextual information preservation.

Summary updated

BibTeX
@inproceedings{shen2024from,
  author = {Leixian Shen and Haotian Li and Yun Wang and Huamin Qu},
  title = {{From Data to Story: Towards Automatic Animated Data Video Creation with LLM-based Multi-Agent Systems}},
  booktitle = {GEN4DS@VIS},
  year = {2024},
  doi = {10.1109/gen4ds63889.2024.00008},
}
Figure