Decoded
Feed

RoofLang: Enabling AI-Driven Architecting of LLM Inference Systems

arXiv:2609.12551DCAI11 sep 20261 min readHN ×8PDF

A simulator language lets an AI agent redesign LLM serving setups without running real code.

39.5×

Peak decode throughput gap

DeepSeek V4 Flash versus Kimi K3 at 1M context

How it works

  1. Profiling hits limits

    AI optimizers tune existing software by profiling it, so designs the stack can't run well never get found.

  2. Simulate architectures instead

    RoofLang describes workloads and hardware as graphs, allows only meaning-preserving rewrites, and scores them with a roofline simulator.

  3. Insights and new designs

    It shows compact KV caches drive DeepSeek V4's speed; a Claude Code agent found layouts up to 50.1% better.

tracenew actionsComputegraphHardwaregraphSafe graphrewritesPlacementRooflinesimulatorAI optimizeragenttracenew actionsComputegraphHardwaregraphSafe graphrewritesPlacementRooflinesimulatorAI optimizeragent
From the paper