Skip to content

[WIP] Fix batched silhouette score reduction aliasing - #2422

Draft
csadorf wants to merge 4 commits into
NVIDIA:mainfrom
csadorf:fix-batched-silhouette-reduction-aliasing
Draft

[WIP] Fix batched silhouette score reduction aliasing#2422
csadorf wants to merge 4 commits into
NVIDIA:mainfrom
csadorf:fix-batched-silhouette-reduction-aliasing

Conversation

@csadorf

@csadorf csadorf commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Stores the row-wise minimum for batched silhouette scores in a separate device vector, preventing the reduction output from overwriting matrix elements that may still be read.

Validation

Validates the fix with the temporary BATCHED_SILHOUETTE_CONCURRENCY_TEST added in ef922834, originally e20bfffc before the rebase. The test has since been reverted.

As a negative control, reverting the fix while retaining the test caused the A100/CUDA 12.2 CI job to fail: 12 of 512 worker seeds produced 22 batched/non-batched mismatches above the 1e-4 tolerance. This confirms that the stress test detects the unfixed reduction-aliasing behavior in the target environment.

@csadorf csadorf added bug Something isn't working non-breaking Introduces a non-breaking change labels Aug 6, 2026
@copy-pr-bot

copy-pr-bot Bot commented Aug 6, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@copy-pr-bot

copy-pr-bot Bot commented Aug 6, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@csadorf

csadorf commented Aug 6, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test f8c9939

@csadorf
csadorf force-pushed the fix-batched-silhouette-reduction-aliasing branch from f8c9939 to 6ec7aeb Compare August 6, 2026 18:08
@csadorf

csadorf commented Aug 6, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 6ec7aeb

@csadorf csadorf changed the title Fix batched silhouette score reduction aliasing [WIP] Fix batched silhouette score reduction aliasing Aug 6, 2026
@csadorf

csadorf commented Aug 6, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 6ec7aeb

@csadorf
csadorf force-pushed the fix-batched-silhouette-reduction-aliasing branch from 6ec7aeb to d24aff2 Compare August 7, 2026 14:57
@csadorf

csadorf commented Aug 7, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test d24aff2

@csadorf
csadorf force-pushed the fix-batched-silhouette-reduction-aliasing branch from d24aff2 to 77aaa23 Compare August 7, 2026 15:48
@csadorf

csadorf commented Aug 7, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 77aaa23

@csadorf

csadorf commented Aug 10, 2026

Copy link
Copy Markdown
Contributor Author

The negative-control run behaved as expected. With the presumed fix reverted, BATCHED_SILHOUETTE_CONCURRENCY_TEST failed on A100/CUDA 12.2: 12 of 512 worker seeds produced 22 batched/non-batched mismatches above the 1e-4 tolerance. The same test passed on L4/CUDA 13.

This confirms that the stress test detects the unfixed behavior in the target environment. The next step is to restore the fix and rerun the same matrix; the A100/CUDA 12.2 test should then pass.

The separate NN-descent recall failure on L4 appears unrelated.

@csadorf
csadorf force-pushed the fix-batched-silhouette-reduction-aliasing branch from 77aaa23 to 20bd669 Compare August 10, 2026 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working non-breaking Introduces a non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant