Automatic Tuning of Interactive Perception Applications

Qian Zhu, Branislav Kveton, Lily B. Mummert, Padmanabhan PillaiUAI 2010

Abstract Interactive applications incorporating high-data rate sensing and computer vision are becoming possible due to novel runtime systems and the use of parallel computation resources. To allow interactive use, such applications require careful tuning of multiple application parameters to meet required fidelity and latency bounds. This is a nontrivial task, often requiring expert knowledge, which becomes intractable as resources and application load characteristics change. This paper describes a method for automatic performance tuning that learns application characteristics and effects of tunable parameters online, and constructs models that are used to maximize fidelity for a given latency constraint. The paper shows that accurate latency models can be learned online, knowledge of application structure can be used to reduce the complexity of the learning task, and operating points can be found that achieve 90% of the optimal fidelity by exploring the parameter space only 3% of the time.

Introduction

Interactive perception applications—such as those used in gaming, augmented reality, and robotics—face a unique challenge. They require high-fidelity results, such as accurate object detection or smooth motion tracking, but must operate under extremely tight latency bounds (often 50–100 ms) to remain responsive to human users. Traditionally, developers have tuned these applications manually, adjusting parameters like image resolution, detection thresholds, or parallelization levels. However, manual tuning is brittle; settings optimized for a simple scene often fail when environmental complexity increases or hardware resources shift. The search space for these parameters is typically large, non-linear, and characterized by complex interactions, making static optimization nearly impossible in dynamic environments.

Methodology

The proposed framework treats the tuning problem as an online constrained optimization problem, aiming to maximize result fidelity ($r$) subject to a strict latency constraint ($L$). The system employs several key strategies to achieve this:

  • Online Learning: Rather than relying on static offline models, the system uses Online Convex Programming (specifically, Zinkevich’s gradient descent approach) to update performance models in real-time as the application executes.
  • Structured Modeling: Instead of treating the application as a "black box," the system leverages the application's internal data flow graph. By building individual models for discrete stages (e.g., feature extraction vs. clustering) and combining them via the "critical path," the complexity of the learning task is significantly reduced.
  • Non-linear Regression: Support Vector Machine (SVM) regressors with cubic kernels are utilized to capture non-linear effects, such as how increasing image scale might exponentially increase processing time.
  • Exploration vs. Exploitation: Using an $\epsilon$-greedy strategy, the system occasionally explores the parameter space with random settings to refine its models while primarily exploiting the current best model to maintain latency bounds.
The data flow graph for the Pose Detection application, illustrating the various processing stages and tunable parameters.

Applications and Evaluation

The system was evaluated using two real-world interactive perception applications:

  1. Pose Detection: A robotics application that recognizes 3D objects and estimates their 6D pose using SIFT features and RANSAC.
  2. Motion SIFT (Gesture Control): A system for controlling a television via hand gestures, involving face detection and optical flow extraction.
The Pose Detection application identifying objects and estimating their 6D poses in a real-world scene.

Evaluation was performed on a cluster of 15 servers, allowing for repeatable experiments across 30 different parameter configurations over 1,000 video frames. A key finding was that structured modeling allowed the system to learn twice as fast as unstructured approaches because each sub-model tracks fewer variables.

Key Results

The experimental results demonstrate the efficiency and accuracy of the online tuning framework:

  • Efficiency: The system achieved 90% of optimal fidelity while exploring the parameter space only 3% of the time.
  • Accuracy: Online cubic predictors proved nearly as accurate as models trained on massive offline datasets, validating the "learning on the job" approach.
  • Constraint Satisfaction: The system successfully maintained latency within bounds, with an average constraint violation of only 0.03 seconds and a maximum violation never exceeding 0.1 seconds.
  • Adaptability: The models proved robust to sudden scene changes. For instance, when a complex new object was introduced, the online model successfully adjusted to the increased computational load.

Conclusion

This research provides a viable path for the automatic tuning of high-performance interactive applications. By leveraging application structure and online learning, the system effectively balances the trade-off between quality and speed. Future work may address the current lack of real-time fidelity ground truth, the computational costs of switching parameters, and the impact of network latency in distributed environments.

Summary updated

BibTeX
@inproceedings{zhu2010automatic,
  author = {Qian Zhu and Branislav Kveton and Lily B. Mummert and Padmanabhan Pillai},
  title = {{Automatic Tuning of Interactive Perception Applications}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2010},
  url = {https://openreview.net/forum?id=SWdoa_iOHFU},
}
Figure