[Paper Review] Beyond Generating Code: Evaluating GPT on a Data Visualization Course
This study evaluates GPT-3.5 and GPT-4 on Harvard’s CS171 data visualization course, demonstrating their ability to perform data cleaning, SVG visualization interpretation, JavaScript-based interaction, and insight communication—achieving 80% on quizzes and homework, with human graders distinguishing AI from human work at 70% accuracy.
This paper presents an empirical evaluation of the performance of the Generative Pre-trained Transformer (GPT) model in Harvard's CS171 data visualization course. While previous studies have focused on GPT's ability to generate code for visualizations, this study goes beyond code generation to evaluate GPT's abilities in various visualization tasks, such as data interpretation, visualization design, visual data exploration, and insight communication. The evaluation utilized GPT-3.5 and GPT-4 to complete assignments of CS171, and included a quantitative assessment based on the established course rubrics, a qualitative analysis informed by the feedback of three experienced graders, and an exploratory study of GPT's capabilities in completing border visualization tasks. Findings show that GPT-4 scored 80% on quizzes and homework, and TFs could distinguish between GPT- and human-generated homework with 70% accuracy. The study also demonstrates GPT's potential in completing various visualization tasks, such as data cleanup, interaction with visualizations, and insight communication. The paper concludes by discussing the strengths and limitations of GPT in data visualization, potential avenues for incorporating GPT in broader visualization tasks, and the need to redesign visualization education.
Motivation & Objective
- To assess GPT’s capabilities in data visualization tasks beyond code generation, such as data interpretation, design, exploration, and insight communication.
- To evaluate how well GPT-3.5 and GPT-4 perform on real-world assignments from a rigorous data visualization course (CS171).
- To investigate the feasibility of using large language models as assistants in visualization education and their potential impact on teaching and learning.
- To identify strengths and limitations of GPT in visualization tasks, especially in context-aware reasoning and user interaction.
- To inform the redesign of visualization education by exploring how AI tools can be integrated or restructured in curricula.
Proposed method
- Used GPT-3.5 and GPT-4 via OpenAI APIs to complete assignments from Harvard’s CS171 data visualization course without specialized prompt engineering.
- Evaluated model outputs using the course’s established rubrics for quantitative assessment across quizzes and homework.
- Conducted qualitative analysis by having three former CS171 Teaching Fellows grade mixed submissions (AI and human) and provide feedback.
- Performed an exploratory study on GPT’s ability to handle tasks such as data cleaning, SVG visualization reading, JavaScript event dispatching, and narrative visualization creation.
- Compared GPT-generated outputs with high-quality student submissions to assess perceptual differences and performance levels.
- Analyzed model behavior across tasks including visual data interpretation, interaction with web-based visualizations, and explanatory insight generation.
Experimental results
Research questions
- RQ1To what extent can GPT-4 perform data visualization tasks beyond code generation, such as data cleaning, visualization interpretation, and insight communication?
- RQ2How does GPT’s performance on CS171 assignments compare to that of human students, both quantitatively and qualitatively?
- RQ3Can experienced human graders reliably distinguish between GPT-generated and human-generated visualization assignments?
- RQ4What are the key strengths and limitations of GPT in handling complex, multi-step visualization tasks in an educational context?
- RQ5How might the integration of LLMs like GPT reshape the future of data visualization education and curriculum design?
Key findings
- GPT-4 achieved an 80% score on quizzes and homework in Harvard’s CS171 data visualization course, indicating strong performance across core visualization competencies.
- Teaching Fellows could distinguish between GPT-generated and human-generated homework with 70% accuracy, suggesting detectable stylistic or structural differences.
- GPT demonstrated the ability to clean and explore CSV datasets, indicating competence in foundational data wrangling tasks.
- GPT could read and interpret visualizations in SVG format and simulate interaction by dispatching JavaScript events, showing capability in web-based visualization understanding.
- GPT successfully created explanatory and narrative visualizations to communicate data insights, highlighting its potential in insight communication and storytelling.
- The study revealed that GPT’s limitations include unstable outputs requiring multiple retries and difficulty managing multiple code files, which hampers use in large-scale systems.
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.