Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed up coded_bkw computation #77

Merged
merged 5 commits into from
Feb 3, 2024
Merged

Speed up coded_bkw computation #77

merged 5 commits into from
Feb 3, 2024

Conversation

grhkm21
Copy link
Contributor

@grhkm21 grhkm21 commented Jul 30, 2023

Avoids symbolic computation at all cost for faster computation, especially since on line 62 there's a sum which computes the sum of (I believe) hundreds of expressions. Benchmarks on my laptop:

Kyber512: 277.6s -> 12.25s
Kyber1024: Long time -> 17.40s
TFHE630: 539.4s -> 20.15s

Look at that, 20x speed up! I'll also benchmark other places of the code and see what other fixes I have.

Depends on #76 for the changed import list. Hopefully it helps (beginning to?) resolve #74 and #75.

Avoids symbolic computation at all cost for faster computation,
especially since on line 62 there's a `sum` which computes the sum of
(I believe) hundreds of expressions. Benchmarks on my laptop:

Kyber512: 277.6s -> 12.25s
Kyber1024: Long time -> 17.40s
TFHE630: 539.4s -> 20.15s

Look at that, 20x speed up!
estimator/lwe_bkw.py Outdated Show resolved Hide resolved
@bencrts bencrts self-assigned this Aug 22, 2023
@grhkm21
Copy link
Contributor Author

grhkm21 commented Aug 22, 2023

I will fix #76 first, then this should follow.

@bencrts bencrts removed their assignment Aug 23, 2023
@grhkm21
Copy link
Contributor Author

grhkm21 commented Aug 23, 2023

#76 has been shut down, so I have reverted those changes now, now this should be ready :)

@malb malb merged commit 97c093d into malb:main Feb 3, 2024
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.

Lattice estimator fails to run (with all attacks) for lattice dimension 2^15 or higher, i.e., larger q
4 participants