Optimizing Feature Extraction for On-device Model Inference with User Behavior Sequences
Organizations: Shanghai Jiao Tong University, Shanghai, China · ByteDance, Hangzhou, China
Abstract
Machine learning models are widely integrated into modern mobile apps to analyze user behaviors and deliver personalized services. Ensuring low-latency on-device model execution is critical for maintaining high-quality user experiences. While prior research has primarily focused on accelerating model inference with given input features, we identify an overlooked bottleneck in real-world on-device model execution pipelines: extracting input features from raw application logs. In this work, we explore a new direction of feature extraction optimization by analyzing and eliminating redundant extraction operations across different model features and consecutive model inferences. We then introduce AutoFeature, an automated feature extraction engine designed to accelerate on-device feature extraction process without compromising model inference accuracy. AutoFeature comprises three core designs: (1) graph abstraction to formulate the extraction workflows of different input features as one directed acyclic graph, (2) graph optimization to identify and fuse redundant operation nodes across different features within the graph; (3) efficient caching to minimize operations on overlapping raw data between consecutive model inferences. We implement a system prototype of AutoFeature and integrate it into five industrial mobile services spanning search, video and e-commerce domains. Online evaluations show that AutoFeature reduces end-to-end on-device model execution latency by 1.33x-3.93x during daytime and 1.43x-4.53x at night.
Figures & tables
| System | Offloaded Operations | Storage Structure | Introduced Storage |
| AutoFeature | ✘ | Each Row: One Behavior Event | ✘ |
| Each Column: Compressed Attributes | |||
| Decoded Log | Decode | Each Row: One Behavior Event | Massive Columns |
| Each Column: One Unique Attribute | |||
| Feature Store | Decode | Each Row: One Behavior Event required by One Feature | Redundant Rows |
| Retrieve | Each Column: One Unique Attribute | Massive Columns |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
On-Device Inference
On-device inference runs machine-learning models locally on phones, wearables, microcontrollers, and edge hardware to reduce latency, energy use, and data sharing.
See all 188 papers