Comments (2)
Currently, encryptRowVec()
takes the row vector to encrypt (as columns) _and* the width of the encoding unit (so we know how many times to replicate it). This seems unnecessary: we know the encoding unit from context, so we can derive the number of columns.
from homomorphic-implementors-toolkit.
The full paper describes a formalized encoding system for linear algebra objects as CKKS plaintexts with respect to an encoding unit. It also describes basic linear algebra operations using this encoding. A single linear algebra object is encoded as one or more plaintexts, depending on the encoding and the size of the linear algebra objects. This induces extra work for linear algebra operations. For example, if we encode a matrix as several plaintexts, then the linear algebra operation of “multiply the matrix by a constant c” amounts to multiplying each plaintext by the constant c.
Putting this level of detail into a homomorphic algorithm unnecessarily complicates the algorithm and makes it harder to reason about. As a concrete example of this problem, the Python compiler/code generator only supports objects encoded as a single ciphertext due to the complexity of dealing with coordinating the individual plaintexts that make up a linear algebra object.
To make writing homomorphic linear algebra operations as easy as possible, we will create a higher-level linear algebra (LA) API on top of the existing CKKSEvaluator API. The LA API will directly call the CKKSEvaluator API. As a result:
- Existing ciphertext objects will become simpler because they will no longer contain linear algebra meta-data
- New types for CKKSMatrix and CKKSVector will be introduced. They will hold a vector of ciphertexts, but users can treat them as a single object.
from homomorphic-implementors-toolkit.
Related Issues (20)
- Validate Protobuf inputs HOT 1
- Remove the ability to serialize a plaintext
- Add Mixed-Unit API to LinearAlgebra API
- Document SEAL memory management
- Example fails on Lattigo branch
- De-duplicate evaluation keys
- Threading issue in Lattigo branch HOT 1
- Add API to test whether a given Galois key is present
- Rethink ScaleEstimator with Bootstrapping HOT 1
- fatal error: This file was generated by an older version of protoc HOT 11
- Stricter Evaluation API HOT 1
- Add arithmetic operators for linear algebra API
- Add `subtract` and friends to linear algebra API
- Add alternate option for matrix/matrix multiplication
- Add checks in linear algebra API to ensure inputs are valid
- Add `save` API to ciphertexts and linear algebra objects
- Missing from the Examples HOT 1
- Update README HOT 2
- Open TODOs
- Get customer feedback on logging experience
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homomorphic-implementors-toolkit.