Sunday, December 22, 2024
HomeAmazon PrimeAlexa unveils new speech recognition, text-to-speech applied sciences

Alexa unveils new speech recognition, text-to-speech applied sciences

[ad_1]

At this time in Arlington, Virginia, at Amazon’s new HQ2, Amazon senior vp Dave Limp hosted an occasion at which the Units and Providers group rolled out its new lineup of services. For a part of the presentation, Limp was joined by Rohit Prasad, an Amazon senior vp and head scientist for synthetic common intelligence, who previewed a number of improvements from the Alexa group.

Prasad’s major announcement was the discharge of the brand new Alexa giant language mannequin (LLM), a bigger and extra generalized mannequin that has been optimized for voice purposes. This mannequin can converse with prospects on any subject; it’s been fine-tuned to reliably make the precise API calls, so it’s going to activate the precise lights and regulate the temperature in the precise rooms; it’s able to proactive, inference-based personalization, so it could actually spotlight calendar occasions, not too long ago performed music, and even recipe suggestions primarily based on a buyer’s grocery purchases; it has a number of knowledge-grounding mechanisms, to make its factual assertions extra dependable; and it has guardrails in place to guard buyer privateness.

New Amazon speech applied sciences leverage giant language fashions to make interactions with Alexa extra pure and fascinating.

In the course of the presentation, Prasad mentioned a number of different upgrades to Alexa’s conversational-AI fashions, designed to make interactions with Alexa extra pure. One is a brand new manner of invoking Alexa by merely trying on the display screen of a camera-enabled Alexa system, eliminating the necessity to say the wake phrase on each flip: on-device visible processing is mixed with acoustic fashions to find out whether or not a buyer is chatting with Alexa or another person.

Associated content material

Alexa’s chief scientist on how customer-obsessed science is accelerating common intelligence.

Alexa has additionally had its automatic-speech-recognition (ASR) system overhauled — together with machine studying fashions, algorithms, and {hardware} — and it’s transferring to a brand new giant text-to-speech (LTTS) mannequin that’s primarily based on the LLM structure and is skilled on 1000’s of hours of multispeaker, multilingual, multiaccent, and multi-speaking-style audio knowledge.

Lastly, Prasad unveiled Alexa’s new speech-to-speech mannequin, an LLM-based mannequin that produces output speech straight from enter speech. With the speech-to-speech mannequin, Alexa will exhibit humanlike conversational attributes, corresponding to laughter, and it is going to be in a position to adapt its prosody not solely to the content material of its personal utterances however to the speaker’s prosody as effectively — as an example, responding with pleasure to the speaker’s pleasure.

The ASR replace will go reside later this 12 months; each LTTS and the speech-to-speech mannequin will likely be deployed subsequent 12 months.

Speech recognition

The brand new Alexa ASR mannequin is a multibillion-parameter mannequin skilled on a mixture of brief, goal-oriented utterances and longer-form conversations. Coaching required a cautious alternation of knowledge sorts and coaching targets to make sure best-in-class efficiency on each varieties of interactions.

To accommodate the bigger ASR mannequin, Alexa is transferring from CPU-based speech processing to hardware-accelerated processing. The inputs to an ASR mannequin are frames of knowledge, or 30-millisecond snapshots of the speech sign’s frequency spectrum. On CPUs, frames are usually processed separately. However that’s inefficient on GPUs, which have many processing cores that run in parallel and want sufficient knowledge to maintain all of them busy.

Associated content material

Figuring out on the fly how a lot extra audio to course of to resolve ambiguities will increase accuracy whereas decreasing latency relative to fixed-lookahead approaches.

Alexa’s new ASR engine accumulates frames of enter speech till it has sufficient knowledge to make sure enough work for all of the cores within the GPUs. To reduce latency, it additionally tracks the pauses within the speech sign, and if the pause period is lengthy sufficient to point the potential finish of speech, it instantly sends all gathered frames.

The batching of speech knowledge required for GPU processing additionally permits a brand new speech recognition algorithm that makes use of dynamic lookahead to enhance ASR accuracy. Sometimes, when a streaming ASR software is decoding an enter body, it makes use of the previous frames as context: details about previous frames can constrain its hypotheses in regards to the present body in a helpful manner. With batched knowledge, nonetheless, the ASR mannequin can use not solely the previous frames but additionally the next frames as context, yielding extra correct hypotheses.

The ultimate willpower of end-of-speech is made by an ASR engine’s end-pointer. The earliest end-pointers all relied on pause size. For the reason that introduction of end-to-end speech recognition, ASR fashions have been skilled on audio-text pairs whose texts embrace a particular end-of-speech token on the finish of every utterance. The mannequin then learns to output the token as a part of its ASR hypotheses, indicating finish of speech.

Associated content material

Data distillation and discriminative coaching allow environment friendly use of a BERT-based mannequin to rescore automatic-speech-recognition hypotheses.

Alexa’s ASR engine has been up to date with a brand new two-pass end-pointer that may higher deal with the kind of mid-sentence pauses widespread in additional prolonged conversational exchanges The second go is carried out by an end-pointing arbitrator, which takes as enter the ASR mannequin’s transcription of the present speech sign and its encoding of the sign. Whereas the encoding captures options mandatory for speech recognition, it additionally incorporates info helpful for figuring out acoustic and prosodic cues that point out whether or not a consumer has completed talking.

The top-pointing arbitrator is a individually skilled deep-learning mannequin that outputs a choice about whether or not the final body of its enter actually represents finish of speech. As a result of it components in each semantic and acoustic knowledge, its judgments are extra correct than these of a mannequin that prioritizes one or the opposite. And since it takes ASR encodings as enter, it could actually leverage the ever-increasing scale of ASR fashions to proceed to enhance accuracy.

As soon as the brand new ASR mannequin has generated a set of hypotheses in regards to the textual content comparable to the enter speech, the hypotheses go to an LLM that has been fine-tuned to rerank them, to yield extra correct outcomes.

The structure of the brand new two-stage end-pointer.

Within the occasion that the brand new, improved end-pointer cuts off speech too quickly, Alexa can nonetheless get better, because of a mannequin that helps restore truncated speech. Utilized scientist Marco Damonte and Angus Addlesee, a former intern learning synthetic intelligence at Heriot-Watt College, described this mannequin on the Amazon Science weblog after presenting a paper about it at Interspeech.

The mannequin produces a graph illustration of the semantic relationships between phrases in an enter textual content. From the map, downstream fashions can usually infer the lacking info; after they can’t, they’ll nonetheless usually infer the semantic function of the lacking phrases, which can assist Alexa ask clarifying questions. This, too, makes dialog with Alexa extra pure.

Massive text-to-speech

Not like earlier TTS fashions, LTTS is an end-to-end mannequin. It consists of a conventional text-to-text LLM and a speech synthesis mannequin which can be fine-tuned in tandem, so the output of the LLM is tailor-made to the wants of the speech synthesizer. The fine-tuning dataset consists of 1000’s of hours of speech, versus the 100 or so hours used to coach earlier fashions.

Associated content material

Senior principal scientist Jasha Droppo on the shared architectures of huge language fashions and spectrum quantization text-to-speech fashions — and different convergences between the 2 fields.

The fine-tuned LTTS mannequin learns to implicitly mannequin the prosody, tonality, intonation, paralinguistics, and different points of speech, and its output is used to generate speech.

The result’s speech that mixes the entire vary of emotional parts current in human communication — corresponding to curiosity when asking questions and comedian joke deliveries — with pure disfluencies and paralinguistic sounds (corresponding to ums, ahs, or muttering) to create pure, expressive, and human-like speech output.

To additional improve the mannequin’s expressivity, the LTTS mannequin can be utilized at the side of one other LLM fine-tuned to tag enter textual content with “stage instructions” indicating how the textual content needs to be delivered. The tagged textual content then passes to the TTS mannequin for conversion to speech.

The speech-to-speech mannequin

The Alexa speech-to-speech mannequin will leverage a proprietary pretrained LLM to allow end-to-end speech processing: the enter is an encoding of the client’s speech sign, and the output is an encoding of Alexa’s speech sign in response.

That encoding is likely one of the keys to the strategy. It’s a discovered encoding, and it represents each semantic and acoustic options. The speech-to-speech mannequin makes use of the identical encoding for each enter and output; the output is then decoded to supply an acoustic sign in one in all Alexa’s voices. The shared “vocabulary” of enter and output is what makes it potential to construct the mannequin atop a pretrained LLM.

A pattern speech-to-speech interplay

The LLM is fine-tuned on an array of various duties, corresponding to speech recognition and speech-to-speech translation, to make sure its generality.

The speech-to-speech mannequin has a multistep coaching process: (1) pretraining of modality-specific textual content and audio fashions; (2) multimodal coaching and intermodal alignment; (3) initialization of the speech-to-speech LLM; (4) fine-tuning of the LLM on a mixture of self-supervised losses and supervised speech duties; (5) alignment to desired buyer expertise.

Alexa’s new capabilities will start rolling out over the subsequent few months.



[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments