# US 2022/0293083 A1 · Robust checkpoint selection for monotonic autoregressive seq2seq neural generative models

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0293083 A1
- Document ID: US20220293083A1
- Status: Published application
- Kind: A1
- Application number: 17/200,972
- Filed: 2021-03-15
- Published: 2022-09-15
- Earliest claimed: 2021-03-15
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Vyacheslav Shechtman
- Web page: https://patentgrep.com/patent/US20220293083A1

## CPC

- G10L 13/02: Methods for producing synthetic speech; Speech synthesisers
- G10L 25/30: using neural networks
- G06N 3/0442: characterised by memory or gating, e.g. long short-term memory [LSTM] or gated recurrent units [GRU]
- G06N 3/0455: Auto-encoder networks; Encoder-decoder networks
- G10L: SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Embodiments may provide improved techniques to assess model checkpoint stability on unseen data on-the-fly, so as to prevent unstable checkpoints from being saved, and to avoid or reduce the need for an expensive thorough evaluation. For example, a method may comprise passing a set of input sequences through a checkpoint of a sequence to sequence model in inference mode to obtain a set of generated sequences of feature vectors, determining whether each of a plurality of generated sequences of feature vectors is complete, counting a number of incomplete generated sequences of feature vectors among the plurality of generated sequences of feature vectors, generating a score indicating a stability of the model based on the count of incomplete generated sequences of feature vectors, and storing the model checkpoint when the score indicating the stability of the model is above a predetermined threshold.

## Claims

### Claim 1

A method, implemented in a computer system comprising a processor, memory accessible by the processor, and computer program instructions stored in the memory and executable by the processor, the method comprising:
passing a set of input sequences through a checkpoint of a sequence to sequence model in inference mode to obtain a set of generated sequences of feature vectors;
determining whether each of a plurality of generated sequences of feature vectors is complete;
counting a number of incomplete generated sequences of feature vectors among the plurality of generated sequences of feature vectors;
generating a score indicating a stability of the model based on the count of incomplete generated sequences of feature vectors; and
storing the model checkpoint when the score indicating the stability of the model is above a predetermined threshold.

### Claim 2 (depends on 1)

The method of claim 1, wherein passing the set of input sequences comprises obtaining a set of alignment matrices for a set of input sequences, as the input sequences pass through the model checkpoint.

### Claim 3 (depends on 2)

The method of claim 2, wherein determining whether each of a plurality of generated sequences of feature vectors is complete is performed using a sequence completion operator that utilizes monotonous structures of the set of alignment matrices.

### Claim 4 (depends on 3)

The method of claim 3, wherein the score indicating the stability of the model is further based on at least one of an average entropy of alignment matrices, a maximum entropy of alignment matrices, an average attention weight vector peak value, a maximum attention weight vector peak value, and counts of monotonicity break-up events.

### Claim 5 (depends on 1)

The method of claim 1, wherein each of the plurality of generated sequences of feature vectors comprises spectral features to be used to generate synthesized speech.

### Claim 6 (depends on 5)

The method of claim 5, wherein the count of incomplete sequences of feature vectors comprises early-stopping events and failure-to-stop events.

### Claim 7

A system comprising a processor, memory accessible by the processor, and computer program instructions stored in the memory and executable by the processor to perform:
passing a set of input sequences through a checkpoint of a sequence to sequence model in inference mode to obtain a set of generated sequences of feature vectors;
determining whether each of a plurality of generated sequences of feature vectors is complete;
counting a number of incomplete generated sequences of feature vectors among the plurality of generated sequences of feature vectors;
generating a score indicating a stability of the model based on the count of incomplete generated sequences of feature vectors; and
storing the model checkpoint when the score indicating the stability of the model is above a predetermined threshold.

### Claim 8 (depends on 7)

The system of claim 7, wherein passing the set of input sequences comprises obtaining a set of alignment matrices for a set of input sequences, as the input sequences pass through a the model checkpoint.

### Claim 9 (depends on 8)

The system of claim 8, wherein determining whether each of a plurality of generated sequences of feature vectors is complete is performed using a sequence completion operator that utilizes monotonous structures of the set of alignment matrices.

### Claim 10 (depends on 9)

The system of claim 9, wherein the score indicating the stability of the model is further based on at least one of an average entropy, a maximum entropy, an average attention weight vector peak value, a maximum attention weight vector peak value, and counts of monotonicity break-up events.

### Claim 11 (depends on 7)

The system of claim 7, wherein each of the plurality of generated sequences of feature vectors comprises spectral features to be used to generate synthesized speech.

### Claim 12 (depends on 11)

The system of claim 11, wherein the count of incomplete sequences comprises early-stopping events and failure-to-stop events.

### Claim 13

A computer program product comprising a non-transitory computer readable storage having program instructions embodied therewith, the program instructions executable by a computer, to cause the computer to perform a method comprising:
passing a set of input sequences through a checkpoint of a sequence to sequence model in inference mode to obtain a set of generated sequences of feature vectors;
determining whether each of a plurality of generated sequences of feature vectors is complete;
counting a number of incomplete generated sequences of feature vectors among the plurality of generated sequences of feature vectors;
generating a score indicating a stability of the model based on the count of incomplete generated sequences; of feature vectors and
storing the model checkpoint when the score indicating the stability of the model is above a predetermined threshold.

### Claim 14 (depends on 13)

The computer program product of claim 13, wherein passing the set of input sequences comprises obtaining a set of alignment matrices for a set of input sequences, as the input sequences pass through a the model checkpoint.

### Claim 15 (depends on 14)

The computer program product of claim 14, wherein determining whether each of a plurality of generated sequences of feature vectors is complete is performed using a sequence completion operator that utilizes monotonous structures of the set of alignment matrices.

### Claim 16 (depends on 15)

The computer program product of claim 15, wherein the score indicating the stability of the model is further based on at least one of an average entropy, a maximum entropy, an average attention weight vector peak value, a maximum attention weight vector peak value, and counts of monotonicity break-up events.

### Claim 17 (depends on 13)

The computer program product of claim 13, wherein each of the plurality of generated sequences of feature vectors comprises spectral features to be used to generate synthesized speech.

### Claim 18 (depends on 17)

The system of claim 17, wherein the count of incomplete sequences comprises early-stopping events and failure-to-stop events.
