Skip to content

Prevent EESM underflow at high SINR - #1206

Open
Vcode2407 wants to merge 1 commit into
NVlabs:mainfrom
Vcode2407:fix/eesm-high-sinr-underflow
Open

Vcode2407 wants to merge 1 commit into
NVlabs:mainfrom
Vcode2407:fix/eesm-high-sinr-underflow

Conversation

@Vcode2407

Copy link
Copy Markdown

Description

At high SINR, the per-resource exponentials can round to zero. Taking the logarithm then produces an infinite effective SINR, so a set of 40 dB inputs can be reported as 50 dB when that is the configured cap.

EESM now averages in log space using torch.logsumexp. The calculation excludes unused resources and returns zero for users and streams with no allocations.

Validation

test_high_sinr_does_not_underflow checks per-user and per-stream aggregation in single and double precision, with a mix of allocated and unused resources. All four cases reproduced the 50 dB result before the fix and returned 40 dB afterward.

All 17 applicable tests in test_effective_sinr.py passed on CPU, including the default torch.compile case. The suite skipped its existing CPU reduce-overhead case. Ruff reported the same two unused imports on the base revision and the patch.

Fixes #1200.

Checklist

  • Described the fix and linked the issue
  • Added regression tests
  • Ran the effective-SINR test file on CPU
  • Reviewed and signed off the commit

Signed-off-by: Vcode2407 <174947873+Vcode2407@users.noreply.github.com>
@Vcode2407

Copy link
Copy Markdown
Author

Hi, could a maintainer approve the CodeQL and DCO workflows for this PR? The commit is signed off, and 17 effective-SINR tests passed on CPU, including the new regression cases. Thanks! CodeQL · DCO Check

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EESM numerical underflow at high SINR due to direct exp/log computation

1 participant