Skip to content

Add Per-Stream Phrase Boosting for Cache-Aware RNN-T#15344

Merged
artbataev merged 5 commits intomainfrom
vbataev/per_stream_biasing_cache_aware
Feb 3, 2026
Merged

Add Per-Stream Phrase Boosting for Cache-Aware RNN-T#15344
artbataev merged 5 commits intomainfrom
vbataev/per_stream_biasing_cache_aware

Conversation

@artbataev
Copy link
Collaborator

@artbataev artbataev commented Jan 30, 2026

Important

The Update branch button must only be pressed in very rare occassions.
An outdated branch is never blocking the merge of a PR.
Please reach out to the automation team before pressing that button.

What does this PR do ?

Support per-stream biasing in inference for cache-aware models.
Per-stream biasing was introduced in #15125

Experiments

(1) Global vs Per-Stream Boosting

  • Model: private cache-aware without PnC
  • Dataset: private (for phrase boosting)
Boosting Cache WERR (%) RTFx
no (baseline) - baseline 598.08
global - 6.2% 548.35
per-stream no 6.2% 114.46
per-stream memory 6.2% 492.91

WERR for global and per-stream boosting is the same.
Memory cache significantly improves the speed as expected.

(2) Sanity check with boosting ground truth on LibriSpeech

  • Model: private cache-aware without PnC
  • Dataset: LibriSpeech test-other
Boosting Cache WER (%) RTFx
no - 5.94 610.79
Per-stream (ground truth) no 1.26 451.41
Per-stream (ground truth) memory 1.26 565.61

Boosting ground truth significantly improves WER as expected.

Collection: [ASR]

Changelog

  • Add specific line by line info of high level changes in this PR.

Usage

python examples/asr/asr_streaming_inference/asr_streaming_infer.py \
    --config-path="../conf/asr_streaming_inference/" \
    --config-name=cache_aware_rnnt.yaml \
    audio_file="<manifest_with_boosting_requests>" \
    output_filename="result.jsonl" \
    asr.model_name="nvidia/nemotron-speech-streaming-en-0.6b" \
    streaming.batch_size=5 \
    lang=en \
    enable_pnc=False \
    enable_itn=False \
    enable_nmt=False \
    asr_output_granularity=segment

Manifest example:

{"audio_filepath": "/data/file1.wav", "text": "some ground truth text", "biasing_request": {"boosting_model_cfg": {"key_phrases_list": ["one phrase"]}}}
{"audio_filepath": "/data/file2.wav", "text": "another ground truth text", "biasing_request": {"boosting_model_cfg": {"key_phrases_list": ["other phrases", "and this one"]}}}

GitHub Actions CI

The Jenkins CI system has been replaced by GitHub Actions self-hosted runners.

The GitHub Actions CI will run automatically when the "Run CICD" label is added to the PR.
To re-run CI remove and add the label again.
To run CI on an untrusted fork, a NeMo user with write access must first click "Approve and run".

Before your PR is "Ready for review"

Pre checks:

  • Make sure you read and followed Contributor guidelines
  • Did you write any new necessary tests?
  • Did you add or update any necessary documentation?
  • Does the PR affect components that are optional to install? (Ex: Numba, Pynini, Apex etc)
    • Reviewer: Does the PR have correct import guards for all optional libraries?

PR Type:

  • New Feature
  • Bugfix
  • Documentation

If you haven't finished some of the above items you can still open "Draft" PR.

Who can review?

Anyone in the community is free to review the PR once the checks have passed.
Contributor guidelines contains specific people who can review PRs to various areas.

Additional Information

  • Related to # (issue)

Signed-off-by: Vladimir Bataev <vbataev@nvidia.com>
Signed-off-by: Vladimir Bataev <vbataev@nvidia.com>
…_aware' into vbataev/per_stream_biasing_cache_aware
@github-actions github-actions bot added the ASR label Jan 30, 2026
Signed-off-by: Vladimir Bataev <vbataev@nvidia.com>
Signed-off-by: Vladimir Bataev <vbataev@nvidia.com>
@artbataev artbataev changed the title Add Per-Stream Biasing for Cache-Aware RNN-T Add Per-Stream Phrase Boosting for Cache-Aware RNN-T Jan 30, 2026
@artbataev artbataev marked this pull request as ready for review January 30, 2026 20:29
@artbataev artbataev requested a review from naymaraq January 30, 2026 20:30
@github-actions github-actions bot removed the Run CICD label Jan 30, 2026
@github-actions
Copy link
Contributor

[🤖]: Hi @artbataev 👋,

We wanted to let you know that a CICD pipeline for this PR just finished successfully.

So it might be time to merge this PR or get some approvals.

//cc @chtruong814 @ko3n1g @pablo-garay @thomasdhc

Copy link
Collaborator

@naymaraq naymaraq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything looks great

@artbataev artbataev merged commit a92b2c5 into main Feb 3, 2026
139 checks passed
@artbataev artbataev deleted the vbataev/per_stream_biasing_cache_aware branch February 3, 2026 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants