Skip to content

Preserve constant residuals for zero source coordinates - #1

Open
sylvesterkaczmarek wants to merge 1 commit into
google-research:mainfrom
sylvesterkaczmarek:fix-zero-source-alignment-costs
Open

sylvesterkaczmarek wants to merge 1 commit into
google-research:mainfrom
sylvesterkaczmarek:fix-zero-source-alignment-costs

Conversation

@sylvesterkaczmarek

Copy link
Copy Markdown

Multiplying both inputs by sign(x) discards the target wherever x == 0. The reported alignment loss then omits constant residuals and can select the wrong affine anchor when source depths repeat.

Use a positive sign for zero source coordinates in both alignment paths. Cover clipped/unclipped costs, broadcast weights, target gradients and repeated-depth affine alignment.

Validation: all 18 regression tests pass and fail on unchanged upstream. An additional 180 scalar and 60 affine cases match explicit candidate-minimum calculations. Syntax and git diff --check pass.

@sylvesterkaczmarek

Copy link
Copy Markdown
Author

Could a maintainer review the zero-source-coordinate alignment fix? It preserves the constant target residual when the source is zero and prevents repeated source depths from selecting the wrong affine anchor. The tests cover clipped costs, gradients and repeated-depth alignment.

The current-head Actions security workflow is still awaiting approval: https://github.com/google-research/pointdit/actions/runs/34535548734. Could you approve the run and review the change for merging?

@sylvesterkaczmarek

Copy link
Copy Markdown
Author

The security workflow ended without running any jobs. Could a maintainer restart it and review the zero-source alignment residuals?

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.

1 participant