Orthogonally Constrained Multi-Head Attention for Speech

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional keyword spotting systems face challenges in achieving low false rejection and false alarm rates while operating with a small memory footprint and low power consumption, and they struggle to effectively utilize sequence part information without explicit sequence modeling.

Innovation Solution

The implementation of an all-neural end-to-end network using multi-head attention mechanisms with orthogonality constraints between context vectors and attention weights, which allows for efficient keyword detection in speech tasks by de-correlating encoder outputs and reducing redundancy across attention heads.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If multi-head attention mechanisms are used to improve detection performance, then keyword spotting accuracy is improved, but information redundancy across attention heads increases

Engineering Contradiction:
Improvekeyword spotting accuracyVSAvoidinformation redundancy
Core Design Contradiction:
Measurement precisionVSLoss of information

Solution Approach 1:

The patent applies asymmetry by introducing orthogonality constraints that create asymmetric relationships between attention heads. Each attention head is constrained to be orthogonal to others in the shared parameter space, forcing them to attend to different portions of the input sequence. This asymmetric constraint structure eliminates redundancy while preserving the complementary strengths of multiple attention heads for accurate keyword spotting.

Inventive Principle:
Principle #4Asymmetry

2Measurement precision

If sequence models with explicit time alignments are used, then keyword detection accuracy is improved, but computational complexity increases

Engineering Contradiction:
Improvekeyword detection accuracyVSAvoidcomputational complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent extracts the time alignment information from explicit sequence modeling and incorporates it implicitly through the orthogonality constraints of the attention mechanism. Instead of using complex sequence models with explicit alignments, the system extracts temporal relationships through the mathematical constraints on attention weights, significantly reducing computational complexity while maintaining detection accuracy.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent replaces mechanical sequence modeling algorithms (like Viterbi decoding) with a neural network-based attention mechanism constrained by orthogonality conditions. This substitution eliminates the need for explicit sequence alignment computations while achieving comparable or superior keyword detection performance through learned representations.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

3Device complexity

If encoder-decoder models compress input sequences into fixed-length vectors, then model simplicity is improved, but performance on long sentences deteriorates

Engineering Contradiction:
Improvemodel simplicityVSAvoidperformance on long sentences
Core Design Contradiction:
Device complexityVSMeasurement precision

Solution Approach 1:

The patent segments the fixed-length context vector problem by using multiple attention heads that each produce separate context vectors. Instead of compressing the entire input sequence into a single vector, the system creates multiple parallel context representations through orthogonally constrained attention heads, each capturing different aspects of the input. This segmentation allows the model to handle long sentences effectively while maintaining computational efficiency.

Inventive Principle:
Principle #1Segmentation

Data Source

PatentUS11908457B2Orthogonally constrained multi-head attention for speech tasks
Publication Date: 2024.02.20 QUALCOMM INC
  • US11908457B2 patent drawing
  • US11908457B2 patent drawing
  • US11908457B2 patent drawing

AI summary

A method for operating a neural network includes receiving an input sequence at an encoder. The input sequence is encoded to produce a set of hidden representations. Attention-heads of the neural network calculate attention weights based on the hidden representations. A context vector is calculated for each attention-head based on the attention weights and the hidden representations. Each of the context vectors correspond to a portion of the input sequence. An inference is output based on the context vectors.