TL;DR
Symphony is a new framework that allows machine learning (ML) practitioners to build modular, interactive interfaces that work seamlessly across both Jupyter notebooks and standalone web dashboards. By bridging the gap between exploratory coding and stakeholder reporting, Symphony helps teams discover critical data issues—like "cheating" duplicates and model blind spots—that often go unnoticed in static documentation.
What Problem Does This Paper Address?
Despite a wealth of research into ML visualization, most practitioners still rely on "ad-hoc" methods, such as manually browsing files in a file explorer or writing one-off plotting scripts. The authors identify a "platform gap": data scientists spend their time in computational notebooks, while product managers and stakeholders need high-level dashboards.
Current tools are often too rigid, require extensive data wrangling to set up, or produce static reports (like Model Cards) that quickly become disconnected from the underlying data. This lack of flexible, shared tooling leads to missed errors, biased models, and a lack of common understanding across cross-functional teams.
Methods
The researchers developed Symphony using a participatory design process involving 31 practitioners across 10 teams at Apple. The framework is built on three pillars:
- Modular Components: Each UI element (e.g., a confusion matrix, a 3D path viewer, or a duplicate finder) is an independent JavaScript module built with the Svelte framework. This allows developers to use any web library (like D3 or Three.js) for specialized visualizations.
- Platform Wrappers: Symphony provides a Python wrapper that turns these components into
ipywidgetsfor Jupyter notebooks. Crucially, it also includes an export function that transforms a notebook-based analysis into a self-contained, static HTML dashboard for sharing. - Reactive Shared State: All components share a synchronized state. If a user filters for "car" images in a summary chart, the image list, the embedding projection, and the confusion matrix all update instantly across the interface.
Datasets
The paper demonstrates Symphony across several domains using both public and internal datasets:
- CIFAR-10: Used for image classification examples.
- ESC-50: Used to demonstrate audio sample exploration.
- Internal Apple Datasets: Including large-scale image/video repositories and a dataset of accessibility icon screenshots used for debugging model performance.
Key Insights and Ideas
- The "Cheating" Discovery: In one case study, a team used the "Duplicates" component to find that their model was "cheating." They discovered that identical icons were present in both the training and test sets, leading to artificially inflated accuracy scores.
- Interfaces as "Boundary Objects": The authors frame Symphony as a tool that is "plastic" enough to adapt to local needs (an engineer's deep dive) while remaining robust enough to maintain a common identity across the team (a manager's status report).
- Low Friction is Mandatory: Practitioners noted that if a tool takes more than 5–10 minutes to set up, they simply won't use it. Symphony addresses this by allowing users to pass standard Python objects (like Pandas DataFrames) directly into components.
- Beyond Tabular Data: Unlike standard libraries like Matplotlib or Altair, Symphony is designed specifically for the "unstructured" data of modern ML, such as audio, video, and 3D sensor paths.
Key Results
The framework was evaluated through three production case studies at Apple:
- Data Validation: A team used Symphony to spot unexpected patterns in large datasets, using the synchronized state to validate aggregate charts against raw data samples.
- Model Debugging: An accessibility team identified that their model was overfitting on specific image types (PNGs vs. JPEGs) by using the "Familiarity" and "Projection" components together.
- Education: An education team used the framework to create interactive lessons, allowing students to "play" with data and see how different subgroups impacted model fairness.
- Component Library: The authors implemented 11 initial components, ranging from standard Confusion Matrices to specialized tools like "FairVis" for bias auditing and "3D Path" for IMU sensor data.
Limitations and Future Work
- The Authoring Barrier: While using Symphony is easy for Python users, creating new components still requires expertise in web development (JavaScript/Svelte). Future work may look into using grammars like Vega to lower this barrier.
- Scalability: Currently, Symphony loads metadata into the browser's memory. While this works for tens of millions of data points, it cannot yet handle "terabyte-scale" metadata without a dedicated backend.
- Prescriptive Guidance: Symphony is an open-ended composition tool. The authors suggest that future versions could provide more "prescriptive" guidance, suggesting specific components based on the user's task or data type.
Summary updated