{
  "id": 824,
  "kind": "tool",
  "title": "who-ate-my-flops: bring your own PyTorch job, let an agent speed it up end to end",
  "summary": "An open-source Claude Code / Codex plugin (OpenPerfAgent) for iteratively optimizing PyTorch training and inference jobs as a whole, not just individual GPU kernels. Design philosophy: rely on the foundation model's reasoning rather than prescribing how the agent reasons; the harness supplies (1) context -- computation structure and runtime profiling, (2) verification -- tools to check correctness against the baseline as the agent iterates, and (3) user alignment -- guidance to ask the right questions and align on goals/constraints. Claimed results: performance PRs developed with it merged into FunASR, FastVideo, gsplat, Ultralytics, Unsloth, and SGLang, with speedups up to 3.6x on tested workloads. Case study: in FastVideo the agent found CPU-GPU weight transfers consuming ~2/3 of the video-decoding stage, removed redundant transfers and sped up the rest, reducing generation time 15.20s -> 6.34s (2.40x) on 4 B200s. Usage: give the agent a repo, a launch command, and GPU access; run /who-ate-my-flops::init to clarify goals, then /who-ate-my-flops::optimize. Includes experiments, profiles, and lessons learned on the blog.",
  "body": "",
  "notes": "Discovery: Hexu Zhao (@zhaohexu2001, verified, NYU Courant MLSys PhD) 2026-09-30 thread: https://x.com/zhaohexu2001/status/2105338131285492120?s=20 | Blog: https://openperfagent.github.io/who-ate-my-flops | Merged FastVideo PR example: https://github.com/hao-ai-lab/FastVideo/pull/1867 | License not stated in the thread; team credits in the blog. | Connects to the collection's agentic performance-tuning and MLSys entries (PyTorch, profiling, whole-job optimization).",
  "url": "https://github.com/OpenPerfAgent/who-ate-my-flops",
  "links": [],
  "authors": [
    "OpenPerfAgent team (Hexu Zhao",
    "Haocheng Xi",
    "Yichuan Miao",
    "Shaofeng Yan",
    "Zhaoyang Lv",
    "Haven Feng",
    "Xiuyu Li",
    "Aditya Panda",
    "Jinyang Li)"
  ],
  "tags": [
    "mlsys",
    "performance-optimization",
    "agents",
    "pytorch",
    "profiling"
  ],
  "topics": "MLSys, performance optimization, agents, PyTorch, profiling",
  "venue": "2026-09-30; github.com/OpenPerfAgent",
  "publisher": "",
  "source": "code",
  "language": "en",
  "access": "public",
  "license": "Apache-2.0",
  "published_year": 2026,
  "added_at": "2026-09-30T00:00:00.000Z",
  "verified_at": "2026-09-30T00:00:00.000Z",
  "attrs": {},
  "enrichment": {
    "github": {
      "forks": 0,
      "stars": 34,
      "pushed": "2026-09-30",
      "topics": [
        "claude-code",
        "codex",
        "performance-optimization",
        "profiling",
        "pytorch"
      ],
      "created": "2026-09-27",
      "license": "Apache-2.0",
      "archived": false,
      "language": "Python",
      "full_name": "OpenPerfAgent/who-ate-my-flops",
      "fetched_at": "2026-10-03T14:33:43.622Z"
    }
  },
  "enriched_at": "2026-10-03T14:33:43.651Z",
  "license_class": "permissive",
  "langs": [
    "en"
  ],
  "modalities": [],
  "size_class": null,
  "provenance": {
    "channel": "random-papers",
    "legacy_paper_id": "905",
    "pipeline_status": "done",
    "research_status": "done"
  },
  "visibility": "public",
  "status": "active",
  "duplicate_of": null,
  "origin": "legacy",
  "created_at": "2026-10-03T12:29:06.561Z",
  "updated_at": "2026-10-03T14:33:43.651Z",
  "page": "https://papers.projxon.ai/entries/824",
  "markdown": "https://papers.projxon.ai/entries/824.md",
  "api": "https://papers.projxon.ai/api/entries/824",
  "relations": [],
  "duplicates": [],
  "similar": [
    {
      "id": 802,
      "kind": "paper",
      "title": "When Agents Slow Down: Understanding LLM Agents' Test-Time Strategies via Elo-per-token Analysis",
      "summary": "LLM agents allocate test-time compute adaptively as they revise solutions, use tools, explore alternatives, and decide when to stop, making it hard to measure how agent performance scales. The paper studies open-ended tasks with continuous scores for intermediate submissions and proposes Elo-per-token analysis: track the best solution found at each token budget and use a Bradley-Terry model to aggregate within-task orderings into Elo ratings across tasks with different score scales. Applied to four general-purpose agents on four open-ended benchmarks with sessions up to 100M tokens, plus three feedback-driven LLM optimization harnesses in controlled single-task interventions. Independent sampling provides a theoretically characterized reference for which Elo grows linearly with log compute; against it, agents initially convert tokens into Elo faster but their marginal gains diminish and eventually fall below the reference. The strongest historical human contestants instead improve superlinearly over contest time on shared AtCoder Heuristic Contest tasks, showing continual learning and substantial headroom after agents slow down. The scaling inflection point is defined as the per-session budget where marginal Elo gains match the independent-sampling reference; splitting 100M tokens across parallel sessions on FrontierCS Polyomino Packing gains +264 Elo over one long session and +355 over ten short sessions.",
      "url": "https://arxiv.org/abs/2609.15309",
      "authors": [
        "Kaiyuan Liu",
        "Qiuyang Mang",
        "Bo Peng",
        "Wenhao Chai",
        "Hanchen Li",
        "Shreyas Pimpalgaonkar",
        "Luke Zettlemoyer",
        "Alex Dimakis",
        "Alvin Cheung"
      ],
      "tags": [
        "agents",
        "test-time-scaling",
        "elo",
        "evaluation",
        "hybrid-agents",
        "benchmark-scaling"
      ],
      "venue": "arXiv",
      "source": "arxiv",
      "license": "CC-BY-4.0",
      "published_year": 2026,
      "added_at": "2026-09-30T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "permissive",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 2,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/802",
      "markdown": "https://papers.projxon.ai/entries/802.md",
      "api": "https://papers.projxon.ai/api/entries/802"
    },
    {
      "id": 830,
      "kind": "benchmark",
      "title": "ProgramBench: write-a-program-from-scratch SWE-agent benchmark; Muse Spark 1.3 results",
      "summary": "ProgramBench: a SWE-agent benchmark where an agent must write a whole program (sqlite, ffmpeg, php, cmatrix, ngrrram, ...) from scratch. Meta Muse Spark 1.3 ranks #2 (max tier) and #3 (xhigh tier) overall on the leaderboard. Full solves by 1.3 max: 5 programs entirely -- cmatrix, eureka, ngrrram*, nomino*, wrapcheck* (* = first time any LM has solved them). ngrrram (a TUI typing trainer): the agent typed lessons into the original and captured the screen frame by frame, then recreated layouts/scoring/UI; remaining misses are small details. Progress 1.1 -> 1.3 (both xhigh): avg test pass rate 47.0% -> 68.6%; almost resolved (>=95%): 8 -> 33 programs; fully resolved: 0 -> 2; 39% fewer tokens across the benchmark. Cost: Muse Spark max averages $6.46/task -- roughly the same as GPT-5.6 Sol xhigh at $6.08, but fully resolves 5 programs vs 2 and gets >=95% on 50 vs 31; Opus 5 reaches 9 solved at $50.53/task (~8x more). Trajectories, final codebases, and test pass/fail breakdowns open-sourced; submissions open to anyone. More models coming soon (6 astra, 5.5 opus noted).",
      "url": "https://x.com/jyangballin/status/2105322290179428389?s=20",
      "authors": [
        "ProgramBench team",
        "John Yang (SWE-bench / SWE-agent / SWE-smith author)"
      ],
      "tags": [
        "agents",
        "coding-agents",
        "swe-benchmarks",
        "program-synthesis",
        "open-weight-evals"
      ],
      "venue": "programbench.com (results announced 2026-09-30)",
      "source": "x",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-09-30T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/830",
      "markdown": "https://papers.projxon.ai/entries/830.md",
      "api": "https://papers.projxon.ai/api/entries/830"
    },
    {
      "id": 819,
      "kind": "paper",
      "title": "LibraryDesignBench: can agents design libraries other agents can use?",
      "summary": "Agents will soon replace humans as the main users and designers of libraries; a good library lets future agents write correct programs with less code. LibraryDesignBench: one agent designs a library, and three other agents write programs with it. 15 design tasks across four languages, with no prescribed APIs, abstractions, or guidance, to elicit genuine design decisions; programs are scored on correctness and simplicity. Results: agents using libraries designed by Opus 5.5 or Fable 5.1 pass as many tests as with the production human-written library while writing simpler code; with DeepSeek V4 Pro's libraries, agents do worse than with no library at all. Despite full design freedom, agents converged on the same patterns as the human library for 11 of 15 tasks. Most excess code stems from the library's design, not the implementer: rigid interfaces led agents to reimplement functionality (adding bugs), verbose interfaces forced more code. Giving the designer explicit guidance (start from prototypes, test with fresh subagents, more examples) made downstream programs shorter and improved score modestly at roughly twice the design cost. A standalone spin-off benchmark, LibraryUseBench, tests how well a model uses a real library with minimal guidance: Opus 5.5 leads, Sonnet 5.5 close behind, every newer model improves on its predecessor. Supported by DARPA, NSF, PrimeIntellect, and SnorkelAI's Open Benchmark Grant.",
      "url": "https://arxiv.org/abs/2609.36730",
      "authors": [
        "Gabe Orlanski",
        "et al. (collaborators: @a1zhang",
        "@atrost3122",
        "@vincentsunnchen",
        "@fredsala",
        "@awsTO",
        "@lschmidt3)"
      ],
      "tags": [
        "benchmarks",
        "agents",
        "library-design",
        "api-design"
      ],
      "venue": "arXiv (2026-09)",
      "source": "paper",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-09-30T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 0,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/819",
      "markdown": "https://papers.projxon.ai/entries/819.md",
      "api": "https://papers.projxon.ai/api/entries/819"
    },
    {
      "id": 832,
      "kind": "paper",
      "title": "PivotOPD: Learning to Recover from Pivotal Mistakes in Multi-Turn Agents",
      "summary": "On-policy distillation (OPD) for training language agents with dense teacher supervision on student trajectories. In multi-turn interaction an incorrect action changes the states the student encounters later, so errors compound. Across three Qwen3 models (8B-235B), more than half of failed rollouts contain an early \"pivotal mistake\" -- an action that moves the agent farther from task completion -- and these are often recoverable: a few guided turns after the pivotal turn can restore task success. PivotOPD jointly trains the student to prevent pivotal mistakes and to recover from the states they create: at each pivotal mistake the teacher provides a gold action plus recovery actions for the next few turns. Preventive distillation uses the gold action with reverse KL to steer the student away from the mistake; recovery distillation uses the recovery actions with forward KL to transfer recovery behaviors the student rarely samples. Strongest average performance vs 13 baselines on ALFWorld, WebShop, and Search-based QA for Qwen3-1.7B and Qwen3-8B students (+5.5% over the strongest baseline on ALFWorld with the 1.7B student); gains transfer to SWE-Bench Verified, raising a Nemotron-3.5 student's resolve rate by +3.2%.",
      "url": "https://arxiv.org/abs/2609.40285",
      "authors": [
        "Yinghui He",
        "Yapei Chang",
        "Khushi Bhardwaj",
        "Daniele Molinari",
        "Tugrul Konuk",
        "Jan Kautz",
        "Ali Hatamizadeh"
      ],
      "tags": [
        "agents",
        "on-policy-distillation",
        "multi-turn-interaction",
        "error-recovery",
        "language-agents"
      ],
      "venue": "NVIDIA LPR lab (arXiv technical report, 2026-09-30; CC BY 4.0)",
      "source": "paper",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-01T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 0,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/832",
      "markdown": "https://papers.projxon.ai/entries/832.md",
      "api": "https://papers.projxon.ai/api/entries/832"
    },
    {
      "id": 793,
      "kind": "paper",
      "title": "Context Language Models",
      "summary": "Introduces Context Language Models (CLMs): language models that natively manage their own context by treating the context as a file and allowing unrestricted updates to it, letting the model learn what is most important to maintain in context and naturally extending to multi-agent systems where multiple agent contexts coexist as files. Building CLMs zero-shot with existing models outperforms SOTA context-management strategies: 11.4% higher accuracy with 21.5% fewer FLOPs on BrowseComp-Plus, 5% higher scores with 59% fewer FLOPs on 12-hour EdgeBench, and 65% greater improvement with the same compute on a 24-hour multi-repository agent-swarm task. Shifting context management from external harness control to intrinsic model behavior enables both in-context and parametric learning of context-management strategies: steering CLMs with natural-language instructions evolved through a skill-optimization loop improves held-out accuracy by up to 35.9 points while reducing compute. An online RL method for CLMs improves Qwen3.5-9B on BrowseComp-Plus by 47.6% while using 12% fewer FLOPs. Co-designed Suffix Cache Reuse for CLM serving further cuts server-side compute by 35% relative to standard SGLang at matched performance.",
      "url": "https://arxiv.org/abs/2609.37725",
      "authors": [
        "Rulin Shao",
        "Shannon Zejiang Shen",
        "Junjie Oscar Yin",
        "Yuetai Li",
        "Minheng Wang",
        "Hamish Ivison",
        "Radha Poovendran",
        "Nathan Lambert",
        "Teng Xiao",
        "Mike Lewis",
        "Wen-tau Yih",
        "Luke Zettlemoyer",
        "Pang Wei Koh"
      ],
      "tags": [
        "agents",
        "long-context",
        "context-management",
        "rl",
        "multi-agent",
        "inference",
        "caching"
      ],
      "venue": "arXiv",
      "source": "arxiv",
      "license": "CC-BY-4.0",
      "published_year": 2026,
      "added_at": "2026-09-30T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "permissive",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 0,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/793",
      "markdown": "https://papers.projxon.ai/entries/793.md",
      "api": "https://papers.projxon.ai/api/entries/793"
    },
    {
      "id": 827,
      "kind": "paper",
      "title": "TraceML: What Auto-Research Agents Miss in Long-Horizon ML Development",
      "summary": "TraceML: a trajectory-level analysis tool for auto-research agents and systematic agent-human comparisons. Reconstructs ML development trajectories (human Kaggle notebook histories; agent git commits and search journals) into a unified schema: every code version labeled with ML-pipeline stages (8 coarse, 136 fine tags) and each edit with action, intent, magnitude, and score effect. Released as the traceml CLI so users can analyze their own agent runs (AIDE, MLEvolve journals, any git workspace). Scale: 4,465 human Kaggle trajectories across 134 competitions (151,088 labeled code versions); paired subset of 430 human + 207 agent trajectories on 7 competitions. Findings: agents collapse into narrow loops -- Codex spends 89% of edits tuning the submission (62nd percentile finish), MLEvolve 63% mutating its model (48th percentile), while top-10% humans mix data work, validation, model changes, and ensembling (97th/92nd percentile finishes); humans pivot on 25% of transitions vs 9% (Codex) / 58% (MLEvolve); top humans return to earlier approaches on 9% of eligible versions (78% end higher), Codex 1 of 658, MLEvolve 0 of 344. A ~1,000-token planning prompt distilled from human practice improved scores in 5 of 7 competitions (2 within noise, none regressed) -- \"closes only the instructable part of the gap.\"",
      "url": "https://arxiv.org/abs/2608.26086",
      "authors": [
        "Jiarui Yan",
        "Weiwei Sun",
        "Sijie Li",
        "Wenhan Li",
        "Yiming Yang"
      ],
      "tags": [
        "agents",
        "ml-research",
        "trajectory-analysis",
        "kaggle",
        "auto-research"
      ],
      "venue": "Carnegie Mellon University; arXiv:2608.26086 (accepted at NeurIPS 2026 E&D track, COLM 2026 Workshop on Agent Behavior); annotations/schemas/dataset code CC BY 4.0; toolkit Apache-2.0",
      "source": "paper",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-09-30T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 0,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/827",
      "markdown": "https://papers.projxon.ai/entries/827.md",
      "api": "https://papers.projxon.ai/api/entries/827"
    }
  ]
}
