TL;DR
Argus is a performance measurement framework for GPUs that unifies fragmented profiling data—spanning compiler, hardware, and system layers—around meaningful "semantic regions" of code. By automating the generation of interference-aware, multi-run profiling plans, Argus provides clean, context-aware performance insights that help both human developers and automated AI optimization agents achieve massive speedups.
What Problem Does This Paper Address?
Modern GPU optimization is no longer just about tuning a single monolithic function. Instead, developers and automated compilers target specific semantic regions within kernels, such as individual neural-network operators, pipeline stages, or synchronization barriers.
However, getting a clear picture of how these regions perform is incredibly difficult. Performance data is fragmented across different tools: compiler profilers show fine-grained timing, hardware profilers track instruction-level metrics (SASS), and system profilers map out end-to-end timelines.
Two major roadblocks prevent these tools from giving a clear answer:
- Compiler Lowering: Optimization techniques like inlining, loop unrolling, and code sharing scatter source-level constructs across machine instructions, making static mapping brittle.
- Asynchronous Execution: Modern GPUs heavily overlap data movement and computation. Timing an asynchronous "issue" instruction only measures the overhead of launching it, not how long it actually takes to finish. Forcing it to finish to measure its true latency perturbs the very overlap you are trying to analyze.
Methods
Argus solves this by acting as a region-centric measurement planner and runtime. Instead of manually writing custom profiling scripts, a user simply marks a region of interest and specifies what they want to observe (e.g., observe(R_wait, {duration, inst_executed})).
The core architecture relies on three main pillars:
- Region Identity Preservation: Argus assigns stable IDs to code regions that survive compiler transformations. To handle shared instructions or inlined helpers, Argus runs a dynamic mapping pass (using NVBit) that tracks a per-warp region context stack at runtime. This ensures that metrics are attributed to the correct active region.
- Interference-Aware Planning: Profiling tools often interfere with each other or distort execution timing. Argus uses a directed acyclic graph (DAG) planner to break a single query into multiple isolated, non-interfering GPU runs. For instance, it separates reference tracing from intrusive hardware metric collection and isolated "forced-wait" probe runs.
- Orchestrated Execution and Synthesis: The runtime scheduler executes these tasks across heterogeneous backends while managing versioned program variants. Finally, it joins the data back together, qualifying metrics as observed (measured directly), attributed (mapped from instructions), or derived (inferred from probes).
Datasets
As a systems and compiler paper, Argus was evaluated on a suite of demanding GPU workloads and optimization benchmarks rather than traditional static datasets:
- Triton Kernel Suite: 44 distinct persistent-GEMM (General Matrix Multiply) and attention kernel configurations, varying tile sizes, group sizes, and arithmetic intensities.
- LLM Decode Megakernel: A persistent megakernel runtime designed for batch-1 decode using the TinyLlama-1.1B model architecture.
- Cross-Level PGO Shapes: Four large GEMM shapes evaluated across five distinct multi-GPU (2- and 4-GPU) setups to optimize compute-communication overlap.
Key Insights and Ideas
- Isolate the Perturbation: To measure the hidden latency of asynchronous operations, you must perturb the program (e.g., inserting forced waits). The insight here is to isolate these probes into separate runs and only map the delta back to a clean "reference trace" anchor, throwing away the distorted downstream execution.
- Dynamic Ownership Over Static Mapping: Static instruction-to-region mapping fails when multiple regions share helper functions or epilogues. Tracking active regions dynamically via a per-warp stack avoids this brittleness.
- Embrace Ambiguity: When an instruction is genuinely shared across regions, forcing a hard attribution is misleading. Argus introduces "association entropy" metadata to explicitly flag attribution ambiguity to the developer or optimization agent.
Key Results
The authors plugged Argus into several state-of-the-art LLM-based optimization agents (like AlphaEvolve) and profile-guided optimization (PGO) pipelines, yielding substantial performance gains:
- Agentic Optimization: Across the 44 Triton configurations, adding Argus improved performance in 39 cases, boosting AlphaEvolve’s geometric-mean speedup from 5.4% to 8.9%. It also allowed the agent to find optimal kernels in significantly fewer trials.
- Megakernel Tuning: On the TinyLlama-1.1B decode megakernel, an optimization agent guided by Argus achieved a execution speed of 1.65 ms/token, compared to 4.92 ms/token without it. This resulted in a kernel 2.1× faster than standard PyTorch with CUDA Graphs.
- Compute-Communication Overlap: Argus-guided cross-level PGO successfully co-tuned GEMM computation with NCCL collective communication, increasing multi-GPU throughput by 7% on average.
Limitations and Future Work
- Multi-Run Overhead: Because Argus prioritizes measurement accuracy by separating conflicting profilers, it requires multiple execution runs. While the authors mitigated this with probe batching, it still introduces a turnaround time overhead (e.g., several seconds per query block).
- Marker Dependency: Argus currently relies on boundary markers to define semantic regions. While effective for expert developers and automated compilers, extending this to automatically infer semantic boundaries from unannotated legacy code remains an open challenge.
- Hardware Specifics: The current implementation is tailored to CUDA, Triton, and NVIDIA Hopper architectures (leveraging specific features like TMA and Tensor Cores). Adapting the framework to other hardware ecosystems (like AMD's ROCm) is left for future engineering.
Summary updated