Skip to content

feat: change Lipschitz cst estimation to Jacobian method#95

Merged
franckma31 merged 2 commits intomasterfrom
feat/model_Lipschitz_constant_estimation
Feb 13, 2025
Merged

feat: change Lipschitz cst estimation to Jacobian method#95
franckma31 merged 2 commits intomasterfrom
feat/model_Lipschitz_constant_estimation

Conversation

@cofri
Copy link
Collaborator

@cofri cofri commented Feb 11, 2025

To estimate the Lipschitz constant of a model, we now use the Jacobian method that is more robust than random perturbations (subject to numerical errors).

The Jacobian method computes Jacobians for a batch of inputs and gets the max singular values of each Jacobian matrix, corresponding to the local Lipschitz constant. The function then returns the greatest Lipschitz constant estimation in the batch.

To estimate the Lipschitz constant of a model, we now use the Jacobian
method that is more robust than random perturbations (subject to numerical
errors).

The Jacobian method computes Jacobians for a batch of inputs and gets
the max singular values of each Jacobian matrix, corresponding to the local
Lipschitz constant.
The function then returns the greatest Lipschitz constant estimation in the
batch.
@cofri cofri force-pushed the feat/model_Lipschitz_constant_estimation branch from f123a14 to dfbe47f Compare February 11, 2025 09:04
@cofri cofri marked this pull request as ready for review February 11, 2025 09:17
Copy link
Collaborator

@franckma31 franckma31 left a comment

Choose a reason for hiding this comment

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

Fine.

@franckma31 franckma31 merged commit bdc85ff into master Feb 13, 2025
6 checks passed
@franckma31 franckma31 deleted the feat/model_Lipschitz_constant_estimation branch February 13, 2025 15:03
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.

2 participants