Sanjana Mali
I work on the path from a high-level graph algorithm to the GPU code that runs it: how to specify it precisely, how to check the specification is right, and what the translation to hardware forces you to decide.
I am a master's student in Prof. John Owens' group at UC Davis, where I work with EDGE, a tensor-algebra framework that writes graph algorithms as cascades of extended Einsums. Before research, I spent four years building payment systems at ACI Worldwide.
Research
EDGE (Extended General Einsums for Graph Algorithms) was developed by my mentor Toluwanimi Odemuyiwa with Joel Emer and John Owens (arXiv:2404.11591). It separates what a graph algorithm computes from how it executes. That separation makes it possible to reason about parallel execution strategies, memory access patterns and GPU mappings from one specification. My work has three parts: writing algorithms in EDGE, building tools that verify and explain them, and lowering them by hand to find what a compiler would need to check.
Algorithm write-ups
I learned EDGE by writing cascades for algorithms that stress it in different ways. Each has a tutorial, hosted on edge-lang.org.
Direction-optimizing BFS
Top-down and bottom-up traversal turn out to be one candidate-edge computation, differing only in which mask is applied first. The implicit graph transposition becomes explicit through a rank-name flip on the graph tensor. Connects to the switching heuristics in Beamer et al. (2012), Gunrock, Ligra and XBFS.
Bellman–Ford with negative-cycle detection
Relaxation as a (min, +) computation, one generation of distances per round. The min appears twice with two jobs: carrying the old distance forward, and reducing competing sources. That distinction later decided where atomics were needed on the GPU.
Push-relabel max-flow, as a 23-Einsum cascade
A bulk-synchronous cascade: saturate the source, then each generation finds active vertices, tests admissible edges, pushes and relabels, stopping when no vertex holds excess. Bulk-synchronous execution has no read-after-write, so the active and admissible sets are recomputed after the push. The select-any steps state the algorithm's nondeterminism exactly: a concrete selection order is a mapping choice, not a different algorithm. Deriving the serial cascade from the parallel one adds a single-vertex selector and real branching (push or relabel). That holds for this derivation; whether the general transformation can be formalized is an open question I am working on.
edge-lang.org and feedback to the language
I built edge-lang.org, which hosts my tutorials alongside the rest of the EDGE Zoo and lets anyone publish their own cascades, so the collection can grow beyond the algorithms written inside the group. Writing three algorithms that stress the notation in different ways produced concrete feedback, which I passed on to the language's authors.
edge-workbench: verifying and explaining AI-written specs
People will increasingly write EDGE specs with AI, so they need proof the spec is correct and a way to see what it does. edge-workbench checks a tutorial, its cascade and an independent verifier against each other, runs the cascade in EDGE's reference interpreter, and publishes an interactive page that steps through each Einsum and shows the exact tensor values. Live examples: max-flow and Bellman–Ford.
Why I built it. Max-flow was the hardest algorithm I wrote. A vertex with excess 5 cannot push 5 to every neighbour at once, so the cascade needed an explicit selection step. I could hand-check a few graphs but could not know it worked on every graph, and slides were a poor way to present 23 Einsums to my collaborators. So I generated a trace of a sequential implementation, then built a visualizer, an evaluator, oracle verification, and finally walkthrough pages anyone can use.
- Seven stages, each of which lists every problem it finds and stops before the next.
- A result is trusted only if the tutorial and spec agree, the IR is well-formed, and the answers match a verifier that uses a different algorithm.
- DOBFS, Bellman–Ford, max-flow and set-cover run end to end. Set-cover, which is not a graph algorithm and is shown as a bipartite graph, was a stress test: the workbench caught 4 bugs in a newly written cascade. Three were semantic, caught by the interpreter. The fourth was a logic error caught only by the oracle: as written, the cascade reported a non-cover as a solution on 10 of 14 instances.
Exploration: Bellman–Ford in Gunrock
I translated the EDGE Bellman–Ford spec into a Gunrock kernel by hand and profiled it on an NVIDIA V100 with Nsight Compute, recording the decision each step forced. The main finding is a rule a compiler could check: the reduce over sources has no source rank in its output, which is a write conflict on the GPU. Because min is associative and commutative, a lock-free atomic min is a legal realization; an operator without those properties would need explicit ordering. Gunrock's own SSSP updates distances in place, while my kernel keeps current and next-round buffers. These are the same Einsum under two buffering policies, so buffering is an implementation detail and not part of the spec. Code: edge_gunrock_dse_code.
What is next
- Authoring and explaining: AI drafts the spec; the toolchain checks, verifies and visualizes it.
- Spec to implementation: lowering EDGE to GraphBLAST, building on the Gunrock exploration, toward a compiler that enables performance analysis at every layer.
- Serial and parallel: a systematic comparison of the two push-relabel cascades.
Other projects
CUDA GEMM from scratch
Six progressive optimizations (coalescing, shared-memory tiling, 1D/2D register blocking, vectorized loads), reaching 10,200 GFLOP/s, 64% of cuBLAS. Each variant profiled with Nsight Compute.
Microarchitecture experiments with gem5
Studied the effect of pipeline width, ROB size and register count on ILP; evaluated cache designs and blocking on matrix multiply; diagnosed false sharing with cycle-level cache simulation.
Journey
- 2016 – 2020BE in Computer Science, Pune Institute of Computer TechnologyGPA 9.35 / 10. Data structures, operating systems, networks.
- 2020 – 2024Software Engineer, ACI WorldwidePayments infrastructure at scale. I shipped a multi-factor authentication system that reached 70% client adoption in 30 days, built Apple Pay, Google Pay, PayPal and Venmo workflows that cut payment completion time by 60%, and led a migration of four applications from Angular 7 to 18.
- 2024 – presentMS in Computer Science, UC DavisGPA 4.0 / 4.0. I arrived from industry with no research or architecture background. Jason Lowe-Power's computer architecture class (gem5) changed my direction, and I asked Prof. Owens for a chance. At first I asked my mentor about every Einsum I wrote; by the end I was writing cascades of my own. Since June 2025 I have worked on EDGE. I also spent one quarter as a graduate student researcher on epidemic (SEIR) simulations in MATLAB, C++ and Rust.
Industry taught me to care about reliability, testing and what happens in production. Research let me ask why a system is shaped the way it is. The workbench and the Gunrock work are where those two habits meet.
Mentoring and service
- Teaching assistant, ECS 193 Capstone Projects (Jan – Dec 2025): mentored 8 teams (32 students) through the full software lifecycle, guiding architecture and technical decisions.
- Peer advisor, GGCS program at UC Davis, and GGCS Fellow-PR.
Goals
When I started my MS I did not think I could do research or formulate open-ended problems of my own. Now I want the time a PhD gives to take this further. I am interested in the whole stack: how a high-level specification maps to different hardware and memory systems, and how to keep it correct on the way down. The questions I keep returning to are how to formalize the transformation from sequential to parallel algorithms, how to carry specifications down to lower levels, which parts of a mapping can be checked automatically, and how to make specifications that people, and increasingly AI, can write and still trust. I am open to work beyond EDGE and beyond GPUs.
After the PhD I expect to build compilers and hardware-software tools, in a research lab or in industry; I am keeping that open.
Contact
I am happy to talk about EDGE, graph algorithms on GPUs, or PhD opportunities.