Learning with Errors - Interactive Security Estimation Tool
Lattice-Based Cryptography, Learning with Errors (LWE), Webdevelopment
Description
Lattice-based cryptography is an important foundation for post-quantum cryptography and modern cryptographic constructions, including public-key encryption, digital signatures, and homomorphic encryption. Many of these schemes rely on the hardness of mathematical problems such as Learning with Errors (LWE) and its variants, Ring-LWE (RLWE) and Module-LWE. To ensure the security of practical cryptographic implementations, it is essential to select suitable parameters, such as the dimension (n), modulus (q), and error distribution parameter (\sigma).
The security of these constructions is commonly evaluated using the Lattice Estimator [1], a tool that estimates the cost of known attacks against lattice-based cryptographic assumptions. Although this tool is widely used in research and development, exploring different parameter combinations requires running computations locally and interpreting the resulting estimates. This can make it difficult, especially for researchers who are new to lattice-based cryptography, to develop an intuition for how parameter choices influence security.
The goal of this project is to develop an interactive web application that makes lattice-based security estimation more accessible. The application will use the Lattice Estimator to compute security estimates for selected parameter combinations in advance and store the results in a database. A Django-based web interface will allow users to explore these results interactively, for example through plots, heat maps, and parameter comparisons. Users should be able to investigate how changes in the dimension, modulus, and error distribution affect the estimated security level and identify promising parameter regions for further analysis. Since precomputed results cannot cover every possible parameter combination, the application should also communicate the limitations of its parameter coverage and distinguish estimated security levels from formal security guarantees.
In addition to the web application, the project will include a theoretical introduction to lattice-based cryptography. This will cover the LWE assumption and its variants, including RLWE and Module-LWE, their applications in cryptographic constructions, and relevant security reductions. The student will study the main attacks considered by the Lattice Estimator and investigate how their estimated costs are interpreted. Furthermore, the application may be extended to include additional cryptographic considerations, such as decryption failure rates (DFRs), which are important for assessing the security and correctness of practical encryption schemes.
Suggested Starting Points
[1] Albrecht, Martin R., et al. The Lattice Estimator. Available at: https://github.com/malb/lattice-estimator
[2] Regev, Oded. "On lattices, learning with errors, random linear codes, and cryptography." Journal of the ACM 56.6 (2009): 1–40.
[3] Peikert, Chris. "A decade of lattice cryptography." Foundations and Trends in Theoretical Computer Science 10.4 (2016): 283–424.
Supervisor:
Privacy Preserving Text Search Engines
Homomorphic Encryption, Semantic Search, Vector Embeddings, Approximate Nearest Neighbor Search, Private Information Retrieval
Description
Homomorphic Encryption (HE) enables computations to be performed directly on encrypted data without requiring decryption. Fully Homomorphic Encryption (FHE) supports arbitrary computations on ciphertexts and offers promising opportunities for privacy-preserving data processing. In particular, HE can enable users to search for information on remote servers while keeping their queries confidential.
Semantic search is a modern approach to information retrieval that represents queries and documents as vector embeddings. By comparing these embeddings, a search system can retrieve documents that are semantically related to a query rather than relying solely on exact keyword matches. To support large-scale datasets, modern search systems employ Approximate Nearest Neighbor (ANN) techniques, including clustering-based methods, quantization, and graph-based indexes such as HNSW, DiskANN, and Vamana. These techniques enable efficient retrieval while maintaining high search accuracy.
Combining semantic search with homomorphic encryption remains a challenging research problem. Existing private search protocols, such as Tiptoe and PACMANN, explore different approaches to privacy-preserving retrieval but face trade-offs between search accuracy, communication overhead, and computational efficiency. In particular, techniques that reduce communication by restricting the search to a subset of the dataset can negatively affect search quality if relevant documents are excluded from the search space.
The goal of this thesis is to investigate how modern semantic search algorithms can be adapted to operate on encrypted data. The student will first conduct a literature review of state-of-the-art semantic search and ANN indexing techniques, focusing on the algorithms and optimizations used in large-scale, non-encrypted search systems. Subsequently, the student will analyze promising approaches and investigate how their building blocks could be realized using homomorphic encryption or related cryptographic techniques. This includes identifying which operations can be performed efficiently on encrypted data and determining how encryption affects the algorithms' communication and computational requirements.
Finally, the student will design and, where feasible, implement a proof of concept for a privacy-preserving semantic search protocol based on one or more promising approaches. The resulting system will be evaluated with respect to search quality, communication overhead, computational cost, and scalability, and compared with existing private search protocols. The overall objective is to determine whether techniques from modern plaintext semantic search can improve the practicality of encrypted search while preserving meaningful privacy guarantees.
Suggested Starting Points
The following papers provide initial starting points for the literature review:
[1] Tiptoe: Private Search with Embeddings. Available at: https://eprint.iacr.org/2023/1438.pdf
[2] PACMANN: Private Approximate Nearest Neighbor Search. Available at: https://eprint.iacr.org/2024/1600
[3] Wang et al. LEANN: A Low-Storage Embedding-Only Approximate Nearest Neighbor Search. Available at: https://arxiv.org/abs/2506.08276
These papers are intended as starting points rather than an exhaustive list. The student is expected to identify additional relevant literature, investigate the current state of the art in plaintext and private semantic search, and critically assess which techniques are most promising for adaptation to homomorphic encryption.