CALOREE: Learning Control for Predictable Latency and Low Energy (2018)

This paper shows how to use adaptive AI to maintain an accuracy constraint in scientific simulations. In this case, the science simulation can dynamically report its accuracy.

We use a control system to determine when to use computationally expensive (but accurate) physics codes and when to use computationally inexpensive (but less accurate) AI surrogates (of the physics codes).

The control system uses AI to achieve large reductions in simulation time when the science result will not be adversely affected, and it uses the physics code when it determines AI would add too much error to the simulation.

This may be one of the first examples of controlling the accuracy of AI inference, which is only enabled by the application of self-aware computing to AI-based systems.

Read abstract

Many modern computing systems must provide reliable latency with minimal energy. Two central challenges arise when allocating system resources to meet these conflicting goals: (1) complexity—modern hardware exposes diverse resources with complicated interactions—and (2) dynamics—latency must be maintained despite unpredictable changes in the operating environment or input. Machine learning accurately models the latency of complex, interacting resources but does not address system dynamics; control theory adjusts to dynamic changes but struggles with complex resource interaction. We therefore propose CALOREE, a resource manager that learns key control parameters to meet latency requirements with minimal energy in complex, dynamic environments. CALOREE breaks resource allocation into two sub-tasks: learning how interacting resources affect speedup, and controlling speedup to meet latency requirements with minimal energy. CALOREE defines a general control system—whose parameters are customized by a learning framework—while maintaining control-theoretic formal guarantees that the latency goal will be met. We test CALOREE’s ability to deliver reliable latency on heterogeneous ARM big.LITTLE architectures in both single and multi-application scenarios. Compared to the best prior learning and control solutions, CALOREE reduces deadline misses by 60% and energy consumption by 13%.