347 views
0

WHY THIS MATTERS IN BRIEF

Homomorphic encryption gives organisations a secure and easy way to run analytics on data without having to first decrypt it, but up until now it’s been oh so slow…

 

IBM has announced that it’s rewritten its C++ Homomorphic encryption library and claims that it now goes up to 75 times faster. Homomorphic encryption is a encryption technique that lets companies perform operations, such as data analysis, on encrypted data without having to first decrypt it – something that could expose it to being stolen and, or read by undesirables. As such it should come as no surprise that this makes it very attractive to most people, including Microsoft who will soon be adding it into their Azure cloud as a way to help companies keep their data private while still being able to analyse it at scale and at speed.

 

RELATED
MIT's latest Human-AI hybrid cybersecurity platform blitzes trials

 

Using homomorphic encryption would make sensitive operations much more secure, and that’s one of its biggest allures. For example, companies such as Numerai, a revolutionary hedge fund out of South Africa who uses homomorphic encryption in anger and attracted investment from the biggest names in finance, use it to keep their data encrypted while at the same time letting their crowd funded data scientists analyse it to create better investment models. And the returns of this approach, so far, both in terms of actual cash in the bank as well as in investment, have been staggering.

IBM has been working on homomorphic encryption for some time now, and released the first version of its HElib C++ library three years ago, but the technology always suffered huge performance penalties.

IBM’s first attempts at homomorphic encryption, under the hand of its inventor Craig Gentry, ran “100 trillion times” slower than plaintext operations, and let’s face it that’s bad by anyone’s standard. IBM later managed to accelerate it by a factor of 2 million times by running it on a 16-core server.

 

RELATED
Tesla's self-driving cars will drive coast to coast in 2018

 

Hence Big Blue’s ongoing work on HElib. Released at GitHub, the latest version gets its performance kick from a “re-implementation of homomorphic linear transformations”, making it between 15 and 75 times faster, which all of a sudden makes it interesting and, more importantly, useable in real world applications.

In thier paper presented to the International Association for Cryptologic Research, IBM’s Shai Halevi and Victor Shoup explain how they improved speed.

“In the linear transformation algorithms currently implemented in HElib, the bulk of the time is spent moving data among the slots in the encrypted vector,” they wrote.

This is done with “special automorphisms,” a mathematical operation that maps an object to itself, and the computational cost comes from how many times the automorphisms have to loop around.

 

RELATED
China's surveillance network found a BBC reporter in under 7 minutes

 

“The main cost of applying such an automorphism to a ciphertext is actually that of “key switching,” after applying the automorphism to each ring element in the ciphertext, which is actually a very cheap operation, we end up with an encryption relative to the “wrong” secret key, by using data in the public key specific to this particular automorphism, a so called “key switching matrix,” we can convert the ciphertext back to one that is an encryption relative to the “right” secret key” the paper said.

“So the main goals in improving performance are to reduce the number of automorphisms, and to reduce the cost of each automorphism.”

In more plain-ish English the new library implements a new strategy for calculating those automorphisms, by achieving between 15 and 20 times speedup, the researchers refactored many of the necessary computations, and some of the calculations are shifted out of the library’s main loop, getting a 6 to 8 times speedup.

The way public keys are constructed for homomorphic encryption is also expensive because of the aforementioned key-switching matrix. Each matrix adds several megabytes to the public key, and in HElib there could be several hundred such matrices in a public key. The researchers say for common operations, they were able to cut the size of the matrix by 33 to 50 percent.

 

RELATED
Quantum computers with DNA and atom scale storage systems will rule the future

 

HElib is still a research level project. As stated on the GitHub page…

“At its present state, this library is mostly meant for researchers working on HE and its uses. Also currently it is fairly low-level, and is best thought of as ‘assembly language for HE’. That is, it provides low-level routines (set, add, multiply, shift, etc.), with as much access to optimisations as we can give. Hopefully in time we will be able to provide higher-level routines.”

However, despite still being a “research project” as companies get more serious about data analytics and data privacy, yes, no scoffing about that one please, I doubt it will be too long before we see homomorphic encryption make in an appearance in a cloud near you, and that will be a game changer, so watch this space.

About author

Matthew Griffin

Matthew Griffin, described as “The Adviser behind the Advisers” and a “Young Kurzweil,” is the founder and CEO of the World Futures Forum and the 311 Institute, a global Futures and Deep Futures consultancy working between the dates of 2020 to 2070, and is an award winning futurist, and author of “Codex of the Future” series. Regularly featured in the global media, including AP, BBC, CNBC, Discovery, RT, and Viacom, Matthew’s ability to identify, track, and explain the impacts of hundreds of revolutionary emerging technologies on global culture, industry and society, is unparalleled. Recognised for the past six years as one of the world’s foremost futurists, innovation and strategy experts Matthew is an international speaker who helps governments, investors, multi-nationals and regulators around the world envision, build and lead an inclusive, sustainable future. A rare talent Matthew’s recent work includes mentoring Lunar XPrize teams, re-envisioning global education and training with the G20, and helping the world’s largest organisations envision and ideate the future of their products and services, industries, and countries. Matthew's clients include three Prime Ministers and several governments, including the G7, Accenture, Bain & Co, BCG, Credit Suisse, Dell EMC, Dentons, Deloitte, E&Y, GEMS, Huawei, JPMorgan Chase, KPMG, Lego, McKinsey, PWC, Qualcomm, SAP, Samsung, Sopra Steria, T-Mobile, and many more.

Your email address will not be published. Required fields are marked *