Repository navigation
Avoid NaNs from roundoff in MeshGraphNets normalization - #759
Open
sylvesterkaczmarek wants to merge 1 commit into
Open
sylvesterkaczmarek wants to merge 1 commit into
sylvesterkaczmarek wants to merge 1 commit into
Conversation
|
Dooray! 메일 발송 실패 안내
메일 발송
실패 안내
***@***.***)
님께
보낸
메일이
전송되지
못하였습니다.
실패 사유를 확인해보세요.
* 받는 사람 :
***@***.***)
* 발송 시간 :
2026-08-24T02:30:54
* 메일 제목 :
[google-deepmind/deepmind-research] Avoid NaNs from roundoff in MeshGraphNets normalization (PR #759)
* 실패 사유 :
받는 사람이 현재 메일 수신을 제한하고 있습니다.
이 설정은 개인 또는 조직의 메일 수신 정책에 의해 적용되었습니다.
이 메일은 발신전용으로 회신되지 않습니다.
더 궁금하신 사항은
***@***.***
으로 문의해 주시기 바랍니다.
© Dooray!.
|
Author
|
Could a maintainer review the MeshGraphNets normalization roundoff fix and arrange a fresh approved workflow run? The previous security run ended with no jobs after 30 days, which looks like expired approval. |
|
Dooray! 메일 발송 실패 안내
메일 발송
실패 안내
***@***.***)
님께
보낸
메일이
전송되지
못하였습니다.
실패 사유를 확인해보세요.
* 받는 사람 :
***@***.***)
* 발송 시간 :
2026-10-07T21:24:50
* 메일 제목 :
Re: [google-deepmind/deepmind-research] Avoid NaNs from roundoff in MeshGraphNets normalization (PR #759)
* 실패 사유 :
받는 사람이 현재 메일 수신을 제한하고 있습니다.
이 설정은 개인 또는 조직의 메일 수신 정책에 의해 적용되었습니다.
이 메일은 발신전용으로 회신되지 않습니다.
더 궁금하신 사항은
***@***.***
으로 문의해 주시기 바랍니다.
© Dooray!.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Prevent MeshGraphNets' online normalizer from producing NaNs when floating-point roundoff makes the computed variance slightly negative.
The normalizer computes variance using
E[x^2] - E[x]^2. For nearly constant features, finite-precision accumulation can make that expression a small negative number even though the mathematical variance is non-negative. The current implementation appliessqrtfirst and only then clamps the resulting standard deviation, so a negative intermediate value becomes NaN and the latermaximumcannot recover it.This change:
std_epsilonfloorFixes #346.
Validation
Added
meshgraphnets/normalization_test.pywith a focused regression case verifying that a small negative roundoff variance producesstd_epsilonrather than NaN.TensorFlow/Sonnet matching this legacy environment are not installed in the execution environment, so the regression test was not executed locally and no local test pass is claimed.
The final branch is based directly on current upstream
master, contains one commit (9411f4e6bb1693c31013db1fe7c384b02b993313), and changes onlymeshgraphnets/normalization.pyplus its regression test.