TorchQL: A Programming Framework for Integrity Constraints in Machine Learning
Not on the map. Why?
Abstract (arXiv)
Finding errors in machine learning applications requires a thorough exploration of their behavior over data. Existing approaches used by practitioners are often ad-hoc and lack the abstractions needed to scale this process. We present TorchQL, a programming framework to evaluate and improve the correctness of machine learning applications. TorchQL allows users to write queries to specify and check integrity constraints over machine learning models and datasets. It seamlessly integrates relational algebra with functional programming to allow for highly expressive queries using only eight intuitive operators. We evaluate TorchQL on diverse use-cases including finding critical temporal inconsistencies in objects detected across video frames in autonomous driving, finding data imputation errors in time-series medical records, finding data labeling errors in real-world images, and evaluating biases and constraining outputs of language models. Our experiments show that TorchQL enables up to 13x faster query executions than baselines like Pandas and MongoDB, and up to 40% shorter queries than native Python. We also conduct a user study and find that TorchQL is natural enough for developers familiar with Python to specify complex integrity constraints.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 39 of its 84 references that are in the map. First posted on arXiv 13 Aug 2023.
Builds on
39 of 84 references.
References · 39
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2016The Cityscapes Dataset for Semantic Urban Scene Understandingcited by 4,444
- 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,724
- 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,998
- 2017Understanding Black-box Predictions via Influence Functionscited by 1,741
- 2017Accurate, Large Minibatch SGD: Training ImageNet in 1 Hourcited by 1,492
- 2020CrowS-Pairs: A Challenge Dataset for Measuring Social Biases in Masked Language Modelscited by 710
- 2021CSDI: Conditional Score-based Diffusion Models for Probabilistic Time Series Imputationcited by 582
27 more
- 2017Men Also Like Shopping: Reducing Gender Bias Amplification using Corpus-level Constraintscited by 420
- 2018Confounding variables can degrade generalization performance of radiological deep learning modelscited by 379
- 2021Persistent Anti-Muslim Bias in Large Language Modelscited by 377
- 2022OneFormer: One Transformer to Rule Universal Image Segmentationcited by 328
- 2021Towards Understanding and Mitigating Social Biases in Language Modelscited by 296
- 2023Faithful Chain-of-Thought Reasoningcited by 288
- 2019Measuring Bias in Contextualized Word Representationscited by 276
- 2017DeepTest: Automated Testing of Deep-Neural-Network-driven Autonomous Carscited by 251
- 2019Algorithms for Verifying Deep Neural Networkscited by 221
- 2022Datamodels: Predicting Predictions from Training Datacited by 189
- 2022SAITS: Self-Attention-based Imputation for Time Seriescited by 169
- 2022"I'm sorry to hear that": Finding New Biases in Language Models with a Holistic Descriptor Datasetcited by 162
- 2020UnQovering Stereotyping Biases via Underspecified Questionscited by 126
- 2020TIDE: A General Toolbox for Identifying Object Detection Errorscited by 114
- 2021Salient ImageNet: How to discover spurious features in Deep Learning?cited by 114
- 2017Device Placement Optimization with Reinforcement Learningcited by 86
- 2020The iWildCam 2020 Competition Datasetcited by 86
- 2018Scenic: A Language for Scenario Specification and Scene Generationcited by 83
- 2021Leveraging Sparse Linear Layers for Debuggable Deep Networkscited by 82
- 2019Predictive Inequity in Object Detectioncited by 77
- 2020Understanding Failures of Deep Networks via Robust Feature Extractioncited by 56
- 2018SuperNeurons: Dynamic GPU Memory Management for Training Deep Neural Networkscited by 55
- 2023Multilingual Language Models are not Multicultural: A Case Study in Emotioncited by 54
- 2022When does Bias Transfer in Transfer Learning?cited by 23
- 2017Memory-Efficient Implementation of DenseNetscited by 17
- 2019A Programmatic and Semantic Approach to Explaining and DebuggingNeural Network Based Object Detectorscited by 11
- 2022Automated Transpilation of Imperative to Functional Code using Neural-Guided Program Synthesis (Extended Version)cited by 7
Built on by
Citing papers per year: 2024: 2.
2 papers.