presentation - the path to personalized, on-device virtual assistant … · a true virtual...

25
Making an on-device personal assistant a reality Qualcomm Technologies, Inc. @qualcomm_tech June 2018

Upload: others

Post on 25-May-2020

6 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Presentation - The path to personalized, on-device virtual assistant … · A true virtual assistant ce: zed. 17 r g s On- ta on on ty s g ys -on g Low-s T -, NR T) ta ff - ta ta

Making an on-device personal assistant a realityQualcomm Technologies, Inc.

@qualcomm_techJune 2018

Page 2: Presentation - The path to personalized, on-device virtual assistant … · A true virtual assistant ce: zed. 17 r g s On- ta on on ty s g ys -on g Low-s T -, NR T) ta ff - ta ta

2

ReasoningLearn, infer context, and anticipate

PerceptionHear, see, and observe

ActionAct intuitively, interact naturally, and protect privacy

AI brings human-like understanding and behaviors to the machines

Page 3: Presentation - The path to personalized, on-device virtual assistant … · A true virtual assistant ce: zed. 17 r g s On- ta on on ty s g ys -on g Low-s T -, NR T) ta ff - ta ta

3

Advancing AI research to make on-device AI ubiquitousA common platform is fundamental to scaling AI internally and across the industry

Power efficiencyModel design, compression, quantization, activation, algorithms, and efficient hardware

Efficient learningRobust learning through minimal data, unsupervised learning, and on-device learning

PersonalizationContinuous learning, model adaptation, and privacy-preserved distributed learning

System architecture Multi-task and multi-modal learning, sensor fusion, and cloud-edge systems

ActionReinforcement learning for decision making

ReasoningScene understanding, language understanding, behavior prediction

PerceptionObject detection, speech recognition, contextual fusion

AutomotiveIoT Mobile

Page 4: Presentation - The path to personalized, on-device virtual assistant … · A true virtual assistant ce: zed. 17 r g s On- ta on on ty s g ys -on g Low-s T -, NR T) ta ff - ta ta

4

A true personal assistant One of many use cases requiring a broad set of AI capabilities

Power efficiencyModel design, compression, quantization,activation, algorithms, and efficient hardware

Efficient learningRobust learning through minimal data, unsupervised learning, and on-device learning

PersonalizationContinuous learning, model adaptation, and privacy-preserved distributed learning

AutomotiveIoT Mobile

ActionReinforcement learning for decision making

ReasoningScene understanding, language understanding, behavior prediction

PerceptionObject detection, speech recognition, contextual fusion

System architecture Multi-task and multi-modal learning, sensor fusion, and cloud-edge systems

Page 5: Presentation - The path to personalized, on-device virtual assistant … · A true virtual assistant ce: zed. 17 r g s On- ta on on ty s g ys -on g Low-s T -, NR T) ta ff - ta ta

5

v

Designed to be:Always-onConversationalPersonalPrivate

Critical to create atrue virtual assistant

Voice is the transformative user interface (UI) we’ve been waiting for

Page 6: Presentation - The path to personalized, on-device virtual assistant … · A true virtual assistant ce: zed. 17 r g s On- ta on on ty s g ys -on g Low-s T -, NR T) ta ff - ta ta

6

Voice UI components required for an end-to-end solution

Text-to-speech

Speech synthesis

Natural language generation

Dialog management

Natural language understanding

Naturallanguage

processing

Speech-to-text

Speechrecognition

“Alexa,” “Hey Snapdragon”Always-on keyword detection

Voice activation

Echo cancellation

Speech denoisingSpeech

pre-processing

Signal acquisition and playback

Front-end processing

Machine speech chain: listener and speaker

Qualcomm Snapdragon is a product of Qualcomm Technologies, Inc. and/or its subsidiaries.

Page 7: Presentation - The path to personalized, on-device virtual assistant … · A true virtual assistant ce: zed. 17 r g s On- ta on on ty s g ys -on g Low-s T -, NR T) ta ff - ta ta

77

Machine learning has ignited the voice UI revolution

“As speech recognition accuracy goes from say 95% to 99%, all of us in the room will go from barely using it today to using it all the time. Most people underestimate the difference between 95% and 99% accuracy— 99% is a gamechanger. No one wantsto wait 10 seconds for a response. Accuracy, followed by latency, are the two key metrics for a production speech system.” — Andrew Ng

GMM: Gaussian Mixture Model, CNN: Convolutional Neural Network, RNN: Recurrent Neural Network

Human accuracy

GMM RNN + CNN

Machine automatic speech recognition accuracy

202020102000199019801970

50%

CNN

55%60% 62%

70%

95%

Page 8: Presentation - The path to personalized, on-device virtual assistant … · A true virtual assistant ce: zed. 17 r g s On- ta on on ty s g ys -on g Low-s T -, NR T) ta ff - ta ta

8

TV

Smartspeakers

Headphones and headsets

IoT

Smartphonesand tablets

In-carentertainment

systems

PCs andlaptops

Wearables

XR

Voice UI is proliferating across product categories

Page 9: Presentation - The path to personalized, on-device virtual assistant … · A true virtual assistant ce: zed. 17 r g s On- ta on on ty s g ys -on g Low-s T -, NR T) ta ff - ta ta

9

Moving voice UI functionality to the end deviceAn end-to-end solution powered by machine learning

Automatic speech recognition(ASR)

Text-to-speech(TTS)

News

SMS

Music

Maps Wikipedia

Weather Stocks

Voice activation

Service manager

Multi-mic echocancellation,beamforming, and speech denoising

Natural language understanding(NLU)

On-device processing(always-on and real-time)

Cloud processing(services)

Cloud centric (today)

Page 10: Presentation - The path to personalized, on-device virtual assistant … · A true virtual assistant ce: zed. 17 r g s On- ta on on ty s g ys -on g Low-s T -, NR T) ta ff - ta ta

10

Moving voice UI functionality to the end deviceAn end-to-end solution powered by machine learning

Automatic speech recognition(ASR)

Text-to-speech(TTS)

News

SMS

Music

Maps Wikipedia

Weather Stocks

Voice activation

Service manager

Multi-mic echocancellation,beamforming, and speech denoising

Natural language understanding(NLU)

On-device processing (always-on and real-time) Cloud processing (services)

On-device centric (future)

Page 11: Presentation - The path to personalized, on-device virtual assistant … · A true virtual assistant ce: zed. 17 r g s On- ta on on ty s g ys -on g Low-s T -, NR T) ta ff - ta ta

11

Cloud tasksComplex voice fallback

Training and model update

Knowledge base

Services

On-deviceprocessing

of voice UIProvides unique benefits

complementing the cloud

ChallengeProviding the voice UI functionality within the power/thermal envelope

Machine learning models

Offline raw data Queries

On-device tasksAutomatic speech recognition

Natural language processing

Always-on audio cognition

On-device training

BenefitsPrivacy

Instant response

Always-on

Device context

Page 12: Presentation - The path to personalized, on-device virtual assistant … · A true virtual assistant ce: zed. 17 r g s On- ta on on ty s g ys -on g Low-s T -, NR T) ta ff - ta ta

12

Noisy speech spectrogram

Clean speech spectrogram“If people were more generous, there would be no need for welfare”

0.5 1 1.5 2 2.5 3

4000

3000

2000

1000

0

Freq

uenc

y

Time

0.5 1 1.5 2 2.5 3

4000

3000

2000

1000

0

Freq

uenc

y

Time

DL-based denoising model trained with extensive speech noise databases

DL-based denoising

Speech denoising• Single or multiple mics

• Applicable for ◦ Two-way conversation

◦ Voice/speaker recognition

◦ Keyword spotting

• Deep learning (DL) significantly improves the performance over traditional methods

• Robust in challenging interference and noise scenarios

“If people were more generous, there would be no need for welfare”

Page 13: Presentation - The path to personalized, on-device virtual assistant … · A true virtual assistant ce: zed. 17 r g s On- ta on on ty s g ys -on g Low-s T -, NR T) ta ff - ta ta

13

QualcommVoiceActivationsupports:

Qualcomm® Voice Activation (VA)High accuracy, robust to backgroundnoise, and supports multiple languages

Deep learning is improving performance

Among state-of-the-art in terms ofperformance vs. power consumption

-47%

-11%

2014 2015 2016 2017

Qua

lcom

m V

A p

ower

con

sum

ptio

n

WCD9330

WCD9335

WCD9340

Amazon Alexa

Baidu DUEROS

Microsoft Cortana

Google Assistant

Qualcomm Voice Activation, Qualcomm WCD9330, Qualcomm WCD9335, and Qualcomm WCD9340 are products of Qualcomm Technologies, Inc. and/or its subsidiaries.

Page 14: Presentation - The path to personalized, on-device virtual assistant … · A true virtual assistant ce: zed. 17 r g s On- ta on on ty s g ys -on g Low-s T -, NR T) ta ff - ta ta

14

Transcribe the audio to text

Deep learning gives state-of-the-art accuracyon a mobile device

Personalization—adaptation to individual accent and acoustic environment

Automatic speech recognition

Natural language understanding (NLU)

Acoustic features Acoustic model

Reduce input audio to essential information

Language model

Deep learning converts input into linguistic unitsAdapted to each user’s accent and environment

Uses context and language statistics for best utterance estimationAdapted to each user’sspeaking tendencies

Allows the same intention to be expressed in multiple waysAdapted to each user’s intent expressions

“Turn Æ on Æ the Æ light”

On-device automatic speech recognition (ASR)

User intention

Page 15: Presentation - The path to personalized, on-device virtual assistant … · A true virtual assistant ce: zed. 17 r g s On- ta on on ty s g ys -on g Low-s T -, NR T) ta ff - ta ta

1515

An end-to-end on-device voice UI example for smart homes

99% on-device intent accuracyis achieved for domain specific command sets when adapted to accent and environmental condition

Demo of automatic speech recognition and natural language understanding

Large command setTurn on the living room lightsClick the kitchen lights offTurn off all lightsSwitch on the ceiling fanShut off the sprinklersStart musicPause songNext trackGo back onePlay previous songTurn speaker offIncrease temperature

Intent understandingTurn on the kitchen lightClick kitchen light onSwitch on light in the kitchenTurn the light on in the kitchen

NLU: These four phrasesmap to the same intent

Page 16: Presentation - The path to personalized, on-device virtual assistant … · A true virtual assistant ce: zed. 17 r g s On- ta on on ty s g ys -on g Low-s T -, NR T) ta ff - ta ta

16

A true virtual assistantA “digital me” sitting on the device: context aware and personalized

Page 17: Presentation - The path to personalized, on-device virtual assistant … · A true virtual assistant ce: zed. 17 r g s On- ta on on ty s g ys -on g Low-s T -, NR T) ta ff - ta ta

1717

Calendar

Messaging

Apps

On-device data

Contextual intelligence is required for personalizationThe fusion of many types of sensors and personal information

17

Low power sensing, processing, and connectivityEfficient, heterogeneous architectures

Sensor fusion and machine learning

Integrated, always-ondata capturing

Low-energy wireless technologies(e.g. BT-LE, 5G NR IoT)

Cloud data

Off-device data

IoT data

Sensor fusionGyroscope

Compass

Camera

Ambient light

Temperature

Iris scanEnvironment

Pulse

HumidityMicrophone

Sensor data

C-V2X

Page 18: Presentation - The path to personalized, on-device virtual assistant … · A true virtual assistant ce: zed. 17 r g s On- ta on on ty s g ys -on g Low-s T -, NR T) ta ff - ta ta

1818

Creating personalized memories

Essential for a true virtual assistant

History, numberof people, identityAfter the party, strolling on thebeach at sunset in La Jolla talking with my son and laughing

Live sentimentanalysisStrolling on the beach at sunset in La Jolla talking with my son and laughing

Activity analysisStrolling on the beach at sunsetin La Jolla talking with my son

GPS locationLa Jolla, California

Visual analysisA sunset over the oceanin La Jolla

Sound analysisTalking with my son at sunset in La Jolla

Page 19: Presentation - The path to personalized, on-device virtual assistant … · A true virtual assistant ce: zed. 17 r g s On- ta on on ty s g ys -on g Low-s T -, NR T) ta ff - ta ta

19

A true personal assistant is responsive and proactive

“Remember the time I was strolling with my son after the party at La Jolla beach?”

“Yes I do, here is a picture you took of the sunset.Should I share it with your family group on WeChat?”

ResponsiveDecision-making and conversation basedon contextual analysis and prompting(e.g. finding memories)

ProactiveDecision-making and conversation basedon contextual analysis without prompting(e.g. automatically sharing memories)

“I noticed that you are tired and stressed, I’m turningon the Rocky III soundtrack and navigating youto the gym for a workout and sauna.”

“This music gets my blood going and a workout and sauna will help me relieve stress.”

Page 20: Presentation - The path to personalized, on-device virtual assistant … · A true virtual assistant ce: zed. 17 r g s On- ta on on ty s g ys -on g Low-s T -, NR T) ta ff - ta ta

20

Multi-mic echocancellation,beamforming, and speech denoising

The first step to an on-device virtual assistantEnabling on-device voice UI

News

SMS

Music

Maps Wikipedia

Weather Stocks

Voiceactivation

Service manager

Automatic speech recognition (ASR)

Natural language understanding (NLU)

On-device processing Cloud processing

Text-to-speech(TTS)

Page 21: Presentation - The path to personalized, on-device virtual assistant … · A true virtual assistant ce: zed. 17 r g s On- ta on on ty s g ys -on g Low-s T -, NR T) ta ff - ta ta

21

Adding an “AI agent” to create a true virtual assistant The on-device AI agent continuously learns personal knowledge and acts intuitively

On-device processing Cloud processing (services)

Cloud knowledge graph

Automatic speech recognition (ASR)

Multi-mic echocancellation andbeamforming

Sensors

Text-to-speech(TTS)

Natural language understanding (NLU)

Voiceactivation

AI agent

Page 22: Presentation - The path to personalized, on-device virtual assistant … · A true virtual assistant ce: zed. 17 r g s On- ta on on ty s g ys -on g Low-s T -, NR T) ta ff - ta ta

22

Adding an “AI agent” to create a true virtual assistant Contextualization allows personalization at acoustic, intent, and behavior levels

Cloud processing (services)

Automatic speech recognition (ASR)

Voice activation

Multi-mic echocancellation andbeamforming

Cloud knowledgegraph

On-device processing

Text-to-speech(TTS)

Sensors

Natural language understanding (NLU)

AI agent

Dialogmanagement

Speaker identificationAcoustic event detectionGender and age detectionVoice activity detectionEmotion classification

Contextual fusion and learning

Local knowledge graph

Page 23: Presentation - The path to personalized, on-device virtual assistant … · A true virtual assistant ce: zed. 17 r g s On- ta on on ty s g ys -on g Low-s T -, NR T) ta ff - ta ta

23

Various kitchen noise samples

Posterior-gram

ML-based acoustic event classification

Object rustling

Object snapping

Cupboard

Cutlery

Dishes

Drawer

Glass jingling

Object impact

Walking

Washing dishes

Water tap running

2 4 6 8 10 12

50

100

150

200

250

300

350

400

450

0.9

0.8

0.7

0.6

0.5

0.4

0.3

0.2

0.1

Acousticeventdetection• ML techniques

are used to ◦ Classify acoustic

signals into a set of predefined events

◦ Infer acoustic environment

• Low power,always-on

Page 24: Presentation - The path to personalized, on-device virtual assistant … · A true virtual assistant ce: zed. 17 r g s On- ta on on ty s g ys -on g Low-s T -, NR T) ta ff - ta ta

2424

We are advancing AI researchto make on-device AI ubiquitous

We are creating AI platform innovations that are fundamentalto scaling AI across the industry

We provide the low-powerend-to-end on-device solutionfor a true personal assistant

Page 25: Presentation - The path to personalized, on-device virtual assistant … · A true virtual assistant ce: zed. 17 r g s On- ta on on ty s g ys -on g Low-s T -, NR T) ta ff - ta ta

Follow us on:For more information, visit us at:www.qualcomm.com & www.qualcomm.com/blog

Thank you!

Nothing in these materials is an offer to sell any of the components or devices referenced herein.

©2018 Qualcomm Technologies, Inc. and/or its affiliated companies. All Rights Reserved.

Qualcomm and Snapdragon are trademarks of Qualcomm Incorporated, registered in the United States and other countries. Other products and brand names may be trademarks or registered trademarks of their respective owners.

References in this presentation to “Qualcomm” may mean Qualcomm Incorporated, Qualcomm Technologies, Inc., and/or other subsidiaries or business units within the Qualcomm corporate structure, as applicable. Qualcomm Incorporated includes Qualcomm’s licensing business, QTL, and the vast majority of its patent portfolio. Qualcomm Technologies, Inc., a wholly-owned subsidiary of Qualcomm Incorporated, operates, along with its subsidiaries, substantially all of Qualcomm’s engineering, research and development functions, and substantially all of its product and services businesses, including its semiconductor business, QCT.