mlsanityData to 14 Oct 2026

TorchQL: A Programming Framework for Integrity Constraints in Machine Learning

arXiv 2308.06686 ↗First posted 13 Aug 2023cs.DB cs.LG cs.SEcited by 2

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

  1. 2015Deep Residual Learning for Image Recognitioncited by 52,096
  2. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  3. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  4. 2021Training Verifiers to Solve Math Word Problemscited by 10,109
  5. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
  6. 2016The Cityscapes Dataset for Semantic Urban Scene Understandingcited by 4,444
  7. 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,724
  8. 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,998
  9. 2017Understanding Black-box Predictions via Influence Functionscited by 1,741
  10. 2017Accurate, Large Minibatch SGD: Training ImageNet in 1 Hourcited by 1,492
  11. 2020CrowS-Pairs: A Challenge Dataset for Measuring Social Biases in Masked Language Modelscited by 710
  12. 2021CSDI: Conditional Score-based Diffusion Models for Probabilistic Time Series Imputationcited by 582
27 more
  1. 2017Men Also Like Shopping: Reducing Gender Bias Amplification using Corpus-level Constraintscited by 420
  2. 2018Confounding variables can degrade generalization performance of radiological deep learning modelscited by 379
  3. 2021Persistent Anti-Muslim Bias in Large Language Modelscited by 377
  4. 2022OneFormer: One Transformer to Rule Universal Image Segmentationcited by 328
  5. 2021Towards Understanding and Mitigating Social Biases in Language Modelscited by 296
  6. 2023Faithful Chain-of-Thought Reasoningcited by 288
  7. 2019Measuring Bias in Contextualized Word Representationscited by 276
  8. 2017DeepTest: Automated Testing of Deep-Neural-Network-driven Autonomous Carscited by 251
  9. 2019Algorithms for Verifying Deep Neural Networkscited by 221
  10. 2022Datamodels: Predicting Predictions from Training Datacited by 189
  11. 2022SAITS: Self-Attention-based Imputation for Time Seriescited by 169
  12. 2022"I'm sorry to hear that": Finding New Biases in Language Models with a Holistic Descriptor Datasetcited by 162
  13. 2020UnQovering Stereotyping Biases via Underspecified Questionscited by 126
  14. 2020TIDE: A General Toolbox for Identifying Object Detection Errorscited by 114
  15. 2021Salient ImageNet: How to discover spurious features in Deep Learning?cited by 114
  16. 2017Device Placement Optimization with Reinforcement Learningcited by 86
  17. 2020The iWildCam 2020 Competition Datasetcited by 86
  18. 2018Scenic: A Language for Scenario Specification and Scene Generationcited by 83
  19. 2021Leveraging Sparse Linear Layers for Debuggable Deep Networkscited by 82
  20. 2019Predictive Inequity in Object Detectioncited by 77
  21. 2020Understanding Failures of Deep Networks via Robust Feature Extractioncited by 56
  22. 2018SuperNeurons: Dynamic GPU Memory Management for Training Deep Neural Networkscited by 55
  23. 2023Multilingual Language Models are not Multicultural: A Case Study in Emotioncited by 54
  24. 2022When does Bias Transfer in Transfer Learning?cited by 23
  25. 2017Memory-Efficient Implementation of DenseNetscited by 17
  26. 2019A Programmatic and Semantic Approach to Explaining and DebuggingNeural Network Based Object Detectorscited by 11
  27. 2022Automated Transpilation of Imperative to Functional Code using Neural-Guided Program Synthesis (Extended Version)cited by 7

Built on by

Cited by year

Citing papers per year: 2024: 2.

2 papers.