Mayfly: Lifecycle-Aware High-Bandwidth Flash for Recursive Self-Improvement
Chunlin Tian, Mingjia Fan, Feng Yu, Qingyun Zou, Wenju Zhao, Weng-Fai Wong, Bingsheng He
Abstract
Recursive self-improvement (RSI) lets an LLM improve its agent system by proposing and evaluating candidate variants across tasks. A generation's sessions grow their KV caches together and release them as they finish, creating a burst followed by a decline. At high concurrency, even the KV of sessions ready to run exceeds the GPU's HBM. Offloading that KV to host DRAM or SSDs adds capacity but leaves ready sessions waiting for HBM space before execution. High-Bandwidth Flash (HBF) can serve the overflow in place, but excessive reads lengthen decode steps and repeated writes consume flash endurance. Our key insight is that where ready KV is read should follow the burst and its decline: from HBF in place while the burst overflows HBM, as much as each step's bandwidth allows, and from HBM again as the decline frees it. A switch between ready and parked decides only whether a block is read, so its flash copy stays valid, and a session's end, which the orchestrator announces, decides when its private KV dies. We present Mayfly, lifecycle-guided HBF management for RSI. Mayfly bounds per-step HBF reads during overflow and returns KV to HBM as sessions finish and free space. It retains a valid backing copy of each block evicted from HBM to avoid rewrites across state transitions, and forwards session-end signals to the controller to avoid copying dead KV during garbage collection. Experimental results show that, at 128 sessions per generation on four added HBF sites, Mayfly finishes 34% sooner than parking the same KV on HBF and 23% sooner than reading it from HBF whenever HBM is full; its gain over parking grows with concurrency, to 55% at 256 sessions on eight sites. Keeping one flash copy per block and trimming at announced session ends avoid write amplification.
Create a lesson
Metadata
- Comments
- 13 pages, 16 figures
Related papers
HBF-EventLab: A Discrete-Event Simulator for Studying Host-Device Coordination in High Bandwidth Flash
Shared title terminologycs.ARZiqing Mei, Yiwei Huang, Zhiyi Zeng et al.
AgentDRC: Multi-Agent Algorithms for Spatially-Aware Automated DRC Correction
Shared title terminologycs.ARPengju Liu, Nuo Xu, Winson Chen et al.
EdgeALM: An Efficient and Unified Edge Accelerator for Large Audio Language Models via Full-Stack Hardware-Software Co-Design and Agent-Driven Recursive Optimization
Shared title terminologycs.ARChenglin Yang, Feifan Xu, Xingyuan Li et al.
Resource-Aware VLA-MPC Co-Location for Efficient Embodied AI
Shared title terminologycs.ARZeyu Guo, Hao Lou, Yuhui Hao et al.
Splice-Core: Low-Order-Bit-Splicing GEMM for Highly Energy-Efficient AI Inference Accelerators
Shared title terminologycs.ARPrabhu Vellaisamy, Hsien-Fu Hung, Andrew Kim et al.
FlashX: Scaling Robotic Experience Reuse for Embodied Agents with CBA-Based NAND Flash
Shared title terminologycs.ARYuseon Choi, Sanghyeon Park, Eunjong Lee et al.