arXiv Computer Vision By Grzegorz Gwardys

torchtest2: One-Call Sanity Checks for PyTorch Models,Evaluated on Real and Unseen Architectures

Read the original on arXiv Computer Vision →

torchtest2 is an open‑source library that performs 18 one‑call sanity checks on a single batch of a PyTorch model, restoring any state changes and supporting various model families through plugins. In extensive mutation analysis, it detected 78% of injected silent bugs across 103 pretrained models and 600 random architectures, outperforming the original torchtest and other monitoring approaches. The tool also uncovered real bugs, such as a batch‑coupling issue in timm's GCViT, and demonstrated that many real silent bugs remain challenging for pre‑training model testers.

Machine-generated by The Flow from the publisher's headline and feed description — not written or checked by a human. The full article lives at arXiv Computer Vision.

arXiv Machine Learning
Oct 16

Stateful Testing for Deep Learning Compilers

The paper introduces Rondo, a stateful testing framework for deep‑learning compilers that models each test as a model plus an invocation sequence. Rondo mutates sequences using a Markov chain Monte Carlo sampler guided by compilation behavior, and employs a three‑way differential oracle to detect bugs that arise only when compiler state is retained. Evaluated on four major frameworks and 24 model architectures, Rondo uncovered 117 bugs—35 of which were stateful—leading to 39 bug reports, 35 confirmed by developers, and 18 fixes, while achieving high coverage and precision.

By Jiatao Ge, Ruixiang Qian, Yibo Hu, Yanzhou Mu, Yinglong Zou, Jiawei Liu, Zhenyu Chen, Chunrong Fang
arXiv Machine Learning
Sep 22

Measuring the Checker: Mutation Analysis for GPU-Kernel Benchmark Oracles

The paper introduces mutation analysis as a metric for evaluating GPU‑kernel benchmark oracles, injecting over ten thousand faults into verified CUDA implementations of 188 KernelBench problems. It shows that the current official checkers miss 16.9% of faults, with precision faults being especially problematic, and demonstrates that optimized test suites can achieve 98% detection with only two inputs per problem. The study also reveals flaws in existing patches and a fuzzing recipe that incorrectly rejects correct kernels 107 times.

By Mingzhe Du, Anh Tuan Luu, Dong Huang, See-Kiong Ng
arXiv AI
Nov 6

Accepted but Wrong: Silent Failures of LLM Code Repairs after API Migrations

The study examines how large language models (LLMs) repair code after runtime or API migrations, revealing that many repaired procedures run without errors yet produce incorrect results. Across 73 tasks and 60 documented changes in CPython, Node.js, and SQLite, the authors found that typical test inputs allowed 41% of wrong repairs to pass, while targeted edge inputs reduced this to 6–7%. Even with additional hard distractors and blind model writers, a significant fraction of incorrect repairs still passed the preregistered tests.

By Xiaobo Chen, Genliang Zhu, Ziyuan Wang, Chu Wang