ODEN: Live Programming for Neural Network Architecture Editing

Prototyping & User TestingComputational Methods in HCISoftware Engineers & DevelopersAI/ML Researchers & Engineers

Title of the Paper

ODEN: Live Programming for Neural Network Architecture Editing

Paper Information

  • Subject Area: Deep learning program development, interactive system design
  • Keywords: Deep learning programming, neural networks, real-time editing, programming experience, visualization, integrated development environment, tensor shapes, user study, parameter optimization, IDE

Research Background and Problem

  • Identified Problems or Challenges:

    1. Deep learning development requires frequent adjustments to model structures and hyperparameters, but tensor shape mismatches often cause program crashes, disrupting the development process.
    2. For novice programmers, tensor shape errors significantly increase development difficulty and disrupt the continuity of training and experimentation.
    3. Existing tools lack support for real-time display of tensor states during the editing phase, requiring developers to manually maintain a "mental model" during model adjustments.
  • Significance:

    1. Iterative design is essential for deep learning models, and addressing tensor shape errors is critical for improving development efficiency.
    2. Providing a real-time, visual tool can lower the entry barrier for deep learning, enabling broader participation in this technology.
  • Motivation and Related Work:

    1. Current tools (e.g., TensorBoard, Jupyter Notebook) primarily focus on post-testing and partial visualization tasks, without covering real-time editing and prevention of shape errors.
    2. Research such as Skyline provides computational performance visualization but is only suitable for experienced developers and does not focus on real-time shape error correction.
    3. To support novice developers, it is necessary to develop a real-time interactive system that helps avoid errors during the editing phase and facilitates rapid experimentation.

Solution

  • Proposed Method or Solution:

    1. Designed and implemented a real-time neural network architecture editor that displays tensor input/output shapes and dynamically visualizes neural network operations.
    2. Built a complete integrated development environment (IDE)—ODEN, which includes real-time neural network editing features and an experimentation sandbox, supporting seamless transitions between editing and experimentation.
    3. Introduced visualization for nested network structures, allowing inspection and modification of sub-networks.
  • Innovative Contributions:

    1. Achieved the integration of real-time programming and tensor shape monitoring, addressing visualization challenges in large-scale nested networks.
    2. Provided a non-intrusive, real-time tensor semantic visualization alongside traditional text-based code editors.
    3. Offered experiment management features, enabling direct switching and comparison of different neural network structures and experimental hyperparameters.
  • Implementation Steps and Key Techniques:

    1. Visualization Design:
      • Designed a "tensor state box" to synchronously display tensor shapes and layer types.
      • Used techniques such as auto-scaling and fisheye effects to reduce visual information overload.
    2. Experiment Management:
      • Integrated an experimental version control tree and parallel coordinate plots to dynamically track hyperparameters and experimental results.
    3. Nested Network Support:
      • Provided clickable expand arrows for switching and inspecting parent and child networks.
    4. Framework Implementation:
      • Backend based on PyTorch for real-time tensor shape analysis; frontend developed using Electron and Vue.js for cross-platform user interface development.

Research Outcomes

  • Specific Outcomes:

    1. Developed ODEN as an integrated development platform supporting real-time tensor state visualization, significantly reducing tensor shape mismatch errors.
    2. User studies showed a significant improvement in participants' programming experience, with a SUS usability score of 84.64 (excellent).
    3. Experiments validated that ODEN supports free editing and experimentation, helping beginners improve model accuracy within 1.5 hours.
  • Advantages Compared to Existing Solutions:

    1. ODEN supports real-time monitoring and prevention of shape mismatch errors, rather than merely capturing runtime issues.
    2. Compared to Skyline, which focuses only on performance issues, ODEN prioritizes the development needs of novice users, supporting nested network inspection and editing.
    3. Through standardized experimental design, ODEN streamlines hyperparameter adjustment and network comparison processes, enhancing experimental efficiency for novice users.
  • Experimental or Evaluation Results:

    1. Experiments demonstrated that participants could improve model accuracy from 55.83% to a range of 61.0%-81.0%, significantly reducing debugging time.
    2. The experimental visualization features received unanimous praise from users, and the difficulty of problem localization was reduced.
  • Limitations and Future Directions:

    1. Currently, ODEN only supports 2D CNN architectures; future work could extend support to RNNs, Transformers, and other complex models.
    2. Automated shape correction is currently limited to suggestions; future work could integrate automatic correction features.
    3. Deep network design relies on user expertise; future iterations should incorporate more guidance features to provide architectural recommendations for new users.
    4. ODEN is currently a standalone IDE; future work could develop it as a plugin for VSCode or Jupyter to enhance ecosystem compatibility.

Quick Actions

Share

Share this page

ios_share

https://hci.top/en/papers/iui/79998/2022

AdRecommended

Learn AI Coding at CodeNow

open_in_newOpen DOI Link
DOI: https://dl.acm.org/doi/10.1145/3490099.3511120
At a Glance

Paper Snapshot

fact_check
dataset
Source
IUI
calendar_month
Year
2022
emoji_events
Award
No award tagged
group
Authors
5 authors
sell
Subtopics
Prototyping & User Testing, Computational Methods in HCI
work
Professions
Software Engineers & Developers, AI/ML Researchers & Engineers
article
Content Status
Full text indexed
hub
Related Papers
10 related papers