DSCode Comparator: An Interactive Interface for Comparing Models and Evaluating Code for Data Science Tasks

Generative AI (Text, Image, Music, Video)AI-Assisted Decision-Making & AutomationInteractive Data VisualizationData StorytellingData Scientists & AnalystsAI/ML Researchers & EngineersHCI Researchers

Code-generating models are increasingly used to support data science tasks. Yet reviewing their outputs, both to understand how the code works and to assess its quality, remains largely manual and time-consuming. Instead of eliminating effort, these models shift the burden from writing code to verifying it. Complicating matters further, different models often produce divergent solutions of varying efficacy, creating additional challenges for code interrogation. To address this unmet need, we introduce DSCodeComparator, an interactive interface designed to support code understanding, evaluation, refinement, and comparison in data science workflows. DSCodeComparator allows code to be viewed from different levels of granularity, from individual lines of code to comparisons across prompts and tasks. The individual code views automatically annotate lines of code via an agentic pipeline we developed to facilitate quick functional overviews. The individual views also automatic diagnosis code quality according to efficiency, readability, and resource computation. The comparison and historical views leverage the annotations to create compact visual summaries of code, allowing for direct comparisons of its functionality, length, and efficiency across multiple models, data science tasks, and prompts. To evaluate DSCodeComparator, we conducted a user study with 22 participants, all with varying levels of proficiency in writing Data science code. Our findings show that, especially for non-expert users, DSCodeComparator sped up the pace of code comprehension and increased participant confidence. The majority report finding DSCodeComparator easier to use and more efficient than manual efforts in reviewing and refining code. Overall, our systems and their findings present an intelligent, human-centered approach to address the verification gap when using code generation models for Data Science.

Quick Actions

Share

Share this page

ios_share

https://hci.top/en/papers/iui/226593/2026

AdRecommended

Learn AI Coding at CodeNow

At a Glance

Paper Snapshot

fact_check
dataset
Source
IUI
calendar_month
Year
2026
emoji_events
Award
No award tagged
group
Authors
3 authors
sell
Subtopics
Generative AI (Text, Image, Music, Video), AI-Assisted Decision-Making & Automation, Interactive Data Visualization, Data Storytelling
work
Professions
Data Scientists & Analysts, AI/ML Researchers & Engineers, HCI Researchers
article
Content Status
Abstract only
hub
Related Papers
2 related papers