Skip to content

v0.0.7

Latest

Choose a tag to compare

@github-actions github-actions released this 28 Oct 06:45
· 41 commits to main since this release
v0.0.7
191a97f

utter 0.0.7 adds a merge margin: a setting that keeps, among the readings, those the search overwrites while they are close to the path that wins. It is off by default, and off, every result is 0.0.6's byte for byte.

Added

The merge margin, recorded as TD-18. Where two paths with different words meet in one graph state, the decoder keeps the cheaper and the other's history is gone, even when it was a fraction of a nat behind. Recognizer::set_merge_margin, utter_recognizer_set_merge_margin in C, sets a margin in nats. A merge whose loser is within it of the winner then keeps the loser's history on the winner's path, at its cost over the winner, which never changes after the merge.

The partial's readings and the final's alternatives list each kept reading at its cheapest copy, with confidence, relation, lead_delta and word entries like any other. Rank 0, the endpoint rules, the host's bound and its veto, and every key outside the readings read the survivors only. Kept readings are read out only as far as the list asked for could show them, so the readout's cost does not grow with the utterance.

Under a grammar of "go seven" and "no seven", the seven clip in tests/data reads both ways 0.19 nats apart. Without a margin the partials offer "no seven" 6.6 nats behind for six advances and then not at all; with a margin of 3 it is offered 0.19 behind at every advance.

Over the 11,005 Speech Commands test clips, ten readings and ten alternatives, a margin of 3 gave 509 of 281,912 results a reading within 3 nats of rank 0 that the survivors did not list, 171 of them finals, and rank 0 moved in none. The margin offers what was close, not what was right: the clip's word is among a final's first n alternatives as often at n = 1, and a few clips less often at n = 2, 5 and 10, where a kept reading closer than the right word takes its place.

On the compute gate's streams (400 clips in 40 streams, 571 s of audio in 40 ms blocks, the fastest of five repetitions per block on one core), against 0.0.6:

p99 block slowest block real-time factor
0.0.6 2.506 ms 4.34 ms 0.01041
0.0.7, no margin 2.530 ms 4.58 ms 0.01045
0.0.7, margin 1 2.568 ms 4.43 ms 0.01060
0.0.7, margin 3 2.619 ms 4.67 ms 0.01073

A margin of 1 costs 7.5 to 10.9 µs a block and a margin of 3 about 13. Without a margin a block costs 1.5 to 2.6 µs more, inside the gate's own spread between runs, and the search alone takes 24.40 µs a frame against 0.0.6's 24.57: each search pass is compiled with and without the margin.

stream gains --merge-margin, --max-alternatives and --census-nats, and its census counts a reading overwritten within the margin of the frame's best token at the merge.

The Speech Commands page's compute section times the result a host reads after every block, plainly and under each setting a host can turn on (partial words, readings, final alternatives, the endpoint bound and its veto, the floor margin, the unknown word, merge margins, and every option together), with each setting's cost over plain.