INTENT: Interactive Tensor Transformation Synthesis

Zhanhui Zhou, Man To Tang, Qiping Pan, Shangyin Tan, Xinyu Wang and Tianyi Zhang

Abstract

There is a growing interest in adopting Deep Learning (DL) given its superior performance in many domains. However, modern DL frameworks such as TensorFlow often come with a steep learning curve. In this work, we propose INTENT, an interactive system that infers user intent and generates corresponding TensorFlow code on behalf of users. INTENT helps users understand and validate the semantics of generated code by rendering individual tensor transformation steps with intermediate results and element-wise data provenance. Users can further guide INTENT by marking certain TensorFlow operators as desired or undesired, or directly manipulating the generated code. A within-subjects user study with 18 participants shows that users can finish programming tasks in TensorFlow more successfully with only half the time, compared with a variant of INTENT that has no interaction or visualization support.

Venue
UIST 2022
Volume
Proceedings of the 35th Annual ACM Symposium on User Interface Software and Technology
DOI
10.1145/3526113.3545653
PDF
https://dl.acm.org/doi/pdf/10.1145/3526113.3545653
Anthology ID
2022.uist.42

Cite

@inproceedings{zhou-etal-2022-intent,
    title = {{INTENT: Interactive Tensor Transformation Synthesis}},
    author = {Zhanhui Zhou and Man To Tang and Qiping Pan and Shangyin Tan and Xinyu Wang and Tianyi Zhang},
    booktitle = {Proceedings of the 35th Annual ACM Symposium on User Interface Software and Technology},
    isbn = {9781450393201},
    year = {2022},
    publisher = {Association for Computing Machinery},
    address = {New York, NY, USA},
    doi = {10.1145/3526113.3545653},
    url = {https://doi.org/10.1145/3526113.3545653},
    abstract = {There is a growing interest in adopting Deep Learning (DL) given its superior performance in many domains. However, modern DL frameworks such as TensorFlow often come with a steep learning curve. In this work, we propose INTENT, an interactive system that infers user intent and generates corresponding TensorFlow code on behalf of users. INTENT helps users understand and validate the semantics of generated code by rendering individual tensor transformation steps with intermediate results and element-wise data provenance. Users can further guide INTENT by marking certain TensorFlow operators as desired or undesired, or directly manipulating the generated code. A within-subjects user study with 18 participants shows that users can finish programming tasks in TensorFlow more successfully with only half the time, compared with a variant of INTENT that has no interaction or visualization support.}
}