Skip to main content
QUICK REVIEW

[Paper Review] Intelligent Assistant Language Understanding On Device

Cecilia Aas, Hisham M. Abdelsalam|arXiv (Cornell University)|Aug 7, 2023
AI in Service InteractionsComputer Science3 citations
TL;DR

This paper presents an on-device natural language understanding (NLU) system for personal digital assistants that enhances privacy, speed, and accuracy by processing user requests locally. It uses a distilled, quantized BERT-based embedding model, a sequence-to-sequence parser with hierarchical ontology-based meaning representation, and federated parsing for personal and knowledge queries, achieving high end-to-end accuracy with minimal user-facing errors through a novel evaluation pipeline focused on real-world impact.

ABSTRACT

It has recently become feasible to run personal digital assistants on phones and other personal devices. In this paper we describe a design for a natural language understanding system that runs on device. In comparison to a server-based assistant, this system is more private, more reliable, faster, more expressive, and more accurate. We describe what led to key choices about architecture and technologies. For example, some approaches in the dialog systems literature are difficult to maintain over time in a deployment setting. We hope that sharing learnings from our practical experiences may help inform future work in the research community.

Motivation & Objective

  • To design a private, on-device NLU system that reduces reliance on server-side processing for personal requests like messaging and reminders.
  • To address scalability and maintainability challenges in dialog systems by avoiding end-to-end learning and instead using modular, composable components.
  • To support complex, multi-turn interactions with robust reference resolution and compositional query understanding.
  • To develop an evaluation framework that prioritizes user-facing failures over component-level metrics, improving engineering efficiency.

Proposed method

  • A distilled, quantized BERT model (16-bit float) is used for on-device utterance embeddings, optimized via hyperparameter tuning and knowledge distillation to reduce model size by 20x without significant accuracy loss.
  • A sequence-to-sequence parser with encoder-decoder architecture generates tree-building instructions from input utterances, using path-based linearization to represent hierarchical meaning structures.
  • The parser employs a constrained copy mechanism to extract contiguous substrings and supports repeatable slots via a Flush command to prevent node reuse.
  • A hierarchical ontology enables expressive, compositional meaning representation, supporting complex queries like 'send to all attendees in my next meeting'.
  • Federated parsing separates personal request handling (on-device) from knowledge queries (server-assisted), enabling extensibility and independent development.
  • A novel evaluation pipeline replays user interactions across model versions, identifying only those NLU errors that cause actual user-facing regressions, reducing reliance on strict labeling consistency.

Experimental results

Research questions

  • RQ1How can an on-device NLU system achieve high accuracy and low latency while maintaining user privacy?
  • RQ2What architectural choices enable robust, maintainable, and composable dialog understanding without full end-to-end training?
  • RQ3How can a rich, hierarchical ontology and sequence-to-sequence parsing jointly support complex, multi-turn, and compositional user requests?
  • RQ4What evaluation methodology best identifies NLU errors that impact user experience, rather than component-level labeling discrepancies?

Key findings

  • The on-device NLU system achieves high end-to-end accuracy by minimizing reliance on server-side processing, improving privacy and responsiveness.
  • Knowledge distillation and 16-bit quantization reduced the base BERT model size by 20x with no statistically significant drop in end-to-end accuracy.
  • The sequence-to-sequence parser with path-based tree representation effectively captures hierarchical meaning and supports complex queries, including compound and referential expressions.
  • The evaluation pipeline identified that only 10–50% of reported model errors led to actual user-facing failures, enabling targeted improvements and higher engineering efficiency.
  • Federated parsing allows independent development of personal and knowledge query components, supporting heterogeneous team workflows and extensibility.
  • The system's design enables robust reference resolution, as demonstrated by handling of pronouns like 'it' in multi-turn dialogues without requiring full dialog state tracking.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.