Papers for

gpu programming teams

Papers whose findings have a practical use for this group, as judged from the abstract. Open a paper to read what it means in practice.

Bridging formal methods and fuzzing to improve software testing

From Formal Methods to Fuzzing and Back

Abstract: For the first twelve years of my career in computer science I mainly worked on formal methods. I had been drawn to the field as an undergraduate by its promise of a way to build software with strong, mathematically based correctness guarantees. But after many years of struggling to make formal methods scale, I was seduced by randomised testing---also known as fuzzing. Fuzzing is much less principled than formal methods, but it just works: it can be readily applied to very large systems, and it is extremely effective at finding real bugs that developers care about and fix. In this personal account I trace my path from formal methods to fuzzing, by way of the GPUVerify project on verifying GPU kernels and the GraphicsFuzz project on randomised testing of GPU compilers. I argue that the oracle problem provides an intellectual link between fuzzing and formal methods, describe my continuing, targeted uses of formal methods in the domain of GPU programming language design, and discuss work at the boundary between formal methods and fuzzing. Finally, I reflect on whether generative AI might be the missing ingredient that allows formal methods to scale, and set out my plans for large-scale formal methods via the Keystone project, through which my collaborators and I aim to find out how much of that promise can be realised in practice.

Mon 9 NovSoftware Engineering
The gist
This paper talks about how formal methods—mathematical ways to prove software is correct—are hard to scale to large systems. The authors describe how they moved toward fuzzing, which is a simpler but effective way to find bugs by randomly testing code. They explore how these approaches can complement each other, especially for programming GPUs. The paper also discusses future ideas, including using AI to help formal methods work better.
Open → 2611.12338v1

Peak-memory schedules improve small-device inference without extra delay

Peak-Memory Schedules You Can Trust: Exact Realization, Certified Optimality, and the Limits of Recomputation for Inference

Abstract: Real-time inference on small devices needs low activation memory without extra latency, which makes operator order the most valuable memory lever: it is free in time. We show that the usual way of deploying a better order, handing it back to the compiler and regenerating code, is unreliable. In PyTorch Inductor the regenerated program misses its predicted peak in 22 of 54 CPU configurations. It is worse than the stock program in 9 of them and in 19 of 50 on a GPU, and on the GPU it also changes numerical results. We instead profile the generated program, model its memory exactly from its own statements and their read/write effects, and permute those statements. We prove that this realizes the modeled peak whenever allocation does not depend on history. It does so to the byte, with bitwise-identical results, in all our CPU runs. On the GPU we characterize why the caching allocator breaks the condition. To know when to stop, we give forward and reverse "trap" lower bounds, each computable with $O(n^2)$ minimum cuts. They certify the found order optimal for 94% of held-out wrapper graphs and all 16 microcontroller-class models we study, in under a second. So most inference graphs are already scheduled optimally. Branching networks are the exception, where reordering is free and pays, e.g. 10.0% on DeepLabV3. In compiled training we save up to 7.6%. Beyond the certified optimum we study selective recomputation with per-operator caps. It is strongly NP-hard for every fixed cap even at treewidth two, encodes knapsack exactly on series-parallel graphs, and is solvable exactly on bounded treewidth. It is useless on public tiny models whose peak is a single layer, but on architectures that hold a cheap value for a late reuse it pays: on the public ReDimNet speaker networks, whose order is already optimal, it lowers the peak by 5.2-6.1% at under 0.4% extra MACs, with bitwise-identical outputs.

Fri 16 OctMachine LearningData Structures and AlgorithmsPerformance
The gist
Running AI tasks on small devices requires managing memory carefully so the device doesn’t run out while keeping the speed fast. The authors show that commonly used ways to reorder tasks to save memory can be unreliable and sometimes cause problems. They introduce a method to exactly predict and optimize peak memory use by reordering instructions, ensuring bitwise identical results without changing outputs. Their method works well on many models and devices, revealing that most inference graphs are already optimally ordered, except some special cases where better scheduling helps significantly.
Open → 2610.23328v1