Home
π Welcome to deel-lip documentation!¶
Controlling the Lipschitz constant of a layer or a whole neural network has many applications ranging from adversarial robustness to Wasserstein distance estimation.
This library provides an efficient implementation of k-Lispchitz layers for keras.
π Table of contents¶
- π Table of contents
- π₯ Tutorials
- π Quick Start
- π¦ What's Included
- π Contributing
- π See Also
- π Acknowledgments
- ποΈ Citation
- π License
π Quick Start¶
You can install deel-lip
directly from pypi:
pip install deel-lip
In order to use deel-lip
, you also need a valid tensorflow
installation. deel-lip
supports tensorflow versions 2.x.
π₯ Tutorials¶
π¦ What's Included¶
- k-Lipschitz variant of keras layers such as
Dense
,Conv2D
andPooling
, - activation functions compatible with
keras
, - kernel initializers and kernel constraints for
keras
, - loss functions that make use of Lipschitz constrained networks (see our paper for more information),
- tools to monitor the singular values of kernels during training,
- tools to convert k-Lipschitz network to regular network for faster inference.
π Contributing¶
To contribute, you can open an issue, or fork this repository and then submit changes through a pull-request. We use black to format the code and follow PEP-8 convention. To check that your code will pass the lint-checks, you can run:
tox -e py36-lint
You need tox
in order to
run this. You can install it via pip
:
pip install tox
π See Also¶
More from the DEEL project:
- Xplique a Python library exclusively dedicated to explaining neural networks.
- Influenciae Python toolkit dedicated to computing influence values for the discovery of potentially problematic samples in a dataset.
- deel-torchlip a Python library for training k-Lipschitz neural networks on PyTorch.
- DEEL White paper a summary of the DEEL team on the challenges of certifiable AI and the role of data quality, representativity and explainability for this purpose.
π Acknowledgments¶
This project received funding from the French βInvesting for the Future β PIA3β program within the Artificial and Natural Intelligence Toulouse Institute (ANITI). The authors gratefully acknowledge the support of the DEEL project.
ποΈ Citation¶
This library has been built to support the work presented in the paper Achieving robustness in classification using optimaltransport with Hinge regularization which aim provable and efficient robustness by design.
This work can be cited as:
@misc{2006.06520,
Author = {Mathieu Serrurier and Franck Mamalet and Alberto GonzΓ‘lez-Sanz and Thibaut Boissin and Jean-Michel Loubes and Eustasio del Barrio},
Title = {Achieving robustness in classification using optimal transport with hinge regularization},
Year = {2020},
Eprint = {arXiv:2006.06520},
}
π License¶
The package is released under MIT license.