{'fraction_non_alphanumeric': 0.02112163146394756, 'fraction_numerical': 0.0007283321194464676, 'mean_word_length': 4.7489539748953975, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Online Adjustment of Two-stage Inference for Knowledge Caching

With the rapid development of deep learning, many deep learning based smart services have emerged. These smart services usually consist of two components, the front-end user device and the back-end cloud server. The front-end device only collects queries from user and sends them to the server, and all operations of deep learning are computed in the server. This design has drawbacks of increasing load on the server and violating personal privacy. Knowledge caching is proposed in our prior work to mitigate these issues, which processes deep learning inference for frequently used queries of users in front-end devices.In this paper, in addition to cache a deep learning model for frequently used and privacy-related queries in the front-end device, we extend our prior work to implement the system on physical device and server. In particular, we design the online adjustment system for managing the status of devices and servers. This allows us to specify the process of caching the model, updating the cached model, and operating the entire system. We evaluate the system which is composed of NVIDIA Jetson Tegra X2 as the front-end device and the back-end server with TITAN Xp to confirm feasibility. As a result of evaluation, our new system shows better accuracy than the general model in the server.