Chanakya: Learning Runtime Decisions for Adaptive Real-Time Perception
Anurag Ghosh, Vaibhav Balloli, Akshay Nambi, Aditya Singh, Tanuja Ganu
Abstract
Real-time perception requires planned resource utilization. Computational planning in real-time perception is governed by two considerations -accuracy and latency. There exist run-time decisions (e.g. choice of input resolution) that induce tradeoffs affecting performance on a given hardware, arising from intrinsic (content, e.g. scene clutter) and extrinsic (system, e.g. resource contention) characteristics. Earlier runtime execution frameworks employed rule-based decision algorithms and operated with a fixed algorithm latency budget to balance these concerns, which is sub-optimal and inflexible. We propose Chanakya, a learned approximate execution framework that naturally derives from the streaming perception paradigm, to automatically learn decisions induced by these tradeoffs instead. Chanakya is trained via novel rewards balancing accuracy and latency implicitly, without approximating either objectives. Chanakya simultaneously considers intrinsic and extrinsic context, and predicts decisions in a flexible manner. Chanakya, designed with low overhead in mind, outperforms state-of-the-art static and dynamic execution policies on public datasets on both server GPUs and edge devices. Code can be viewed at https://github.com/microsoft/chanakya .
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 364e9ef1-79d8-42fd-8736-bcb9d6a11cc9Builds on11
- Swin Transformer: Hierarchical Vision Transformer using Shifted WindowsZe Liu, Yutong Lin, Yue Cao, Han Hu et al.ICCV 2021 · 31,683 citations
- Searching for MobileNetV3Andrew Howard, Ruoming Pang, Hartwig Adam, Quoc V. Le et al.ICCV 2019 · 9,163 citations
- Tracking Without Bells and WhistlesPhilipp Bergmann, Tim Meinhardt, Laura Leal-TaixéICCV 2019 · 1,030 citations
- Flexible high-resolution object detection on edge devices with tunable latencyShiqi Jiang, Zhiqi Lin, Yuanchun Li, Yuanchao Shu et al.MobiCom 2021 · 103 citations
- SENSEI: Aligning Video Streaming Quality with Dynamic User SensitivityXu Zhang, Yiyang Ou, Siddhartha Sen, Junchen JiangNSDI 2021 · 80 citations
Related papers
- LiteReconfig: cost and content aware reconfiguration of video object detection systems for mobile GPUsRan Xu, Jayoung Lee, Pengcheng Wang, Saurabh Bagchi et al.EuroSys 2022 · 24 citations
- Move Fast and Meet Deadlines: Fine-grained Real-time Stream Processing with CameoLe Xu, Shivaram Venkataraman, Indranil Gupta, Luo Mai et al.NSDI 2021 · 38 citations
- Transtreaming: Adaptive Delay-aware Transformer for Real-time Streaming PerceptionXiang Zhang, Yufei Cui, Chenchen Fu, Zihao Wang et al.AAAI 2025 · 2 citations
- Costream: Learned Cost Models for Operator Placement in Edge-Cloud EnvironmentsRoman Heinrich, Carsten Binnig, Harald Kornmayer, Manisha LuthraICDE 2024 · 10 citations
- Optimizing Real-Time Cooperative Perception with Adaptive Model Pruning and Bandwidth AllocationGuozhi Yan, Chunhui Liu, Hualing Ren, Kai LiuINFOCOM 2026
