Active Hackathon

Google Launches General Purpose Transpiler For Fully Homomorphic Encryption

Google Launches General Purpose Transpiler For Fully Homomorphic Encryption

Last month, Google unveiled a first-of-its-kind, general-purpose transpiler for fully homomorphic encryption (FHE). The new update allows developers to compute encrypted data without having to access any personally identifiable information. The open-source libraries and tools to perform FHE operations on an encrypted dataset are available on GitHub

Besides this, there have been plenty of open source libraries and tools to perform FHE operations in the past, including TFHE, Concrete, cuFHE, etc. Check out the complete list of resources, libraries and software for fully homomorphic encryption here.


Sign up for your weekly dose of what's up in emerging technology.

“We are proud to be an industry leader in developing, deploying, and scaling new privacy-preserving technologies that make it possible to create helpful experiences and learn valuable insights while protecting our users’ privacy,” said Miguel Guevara, product manager, privacy and data protection office at Google, in a blog post. 

How does the transpiler work? 

With FHE, encrypted data can move across the internet to a server, where it can be processed without being decrypted. The transpiler will enable developers to write code for any type of basic computation (be it simple string processing or math) and run it on encrypted data. This allows developers to create new programming applications that do not need unencrypted data. Also, FHE can be used to train machine learning models on sensitive data privately.

Google’s transpiler design is modular in three ways: (as shown in the image below) 

Client-server interaction (Source: arXiv
  • The ‘input code’ can be in any language which can be translated into XLS. That reduces the burden of transpiling existing code as it need not be written in a fixed supported language. 
  • The ‘output FHE code’ can be in any language with an FHE library. That reduces the requirement for interacting with ‘transpiled FHE code’ as the ‘FHE code’ can be transpiled into a ‘language’ that interfaces well with the rest of the code. 
  • The underlying ‘FHE backend’ can be any library that exposes gates as part of its API. ‘Our library includes classes prefixed with Encode, which can be reused to ease development. This can accelerate FHE research by providing an easy way to compare arbitrary programs in different FHE schemes side-by-side,’ according to Google. 

Take for example, building an app for people with diabetes. This application might collect sensitive data from its users, and you need a way to keep this ‘data private and protected’ while also sharing it with medical experts to learn valuable insights. With transpiler for FHE, you can encrypt the data you collect and share it with medical experts who, in turn, can analyse the data without decrypting it — providing useful information to the ‘medical community,’ all while ensuring that no one can access the underlying personal information. 

Citing a healthcare startup Arkhn, Google said the company could accelerate scientific discovery using differential privacy to share data across hospitals.

Four years ago, Google researchers invented Federated Learning, which helps preserve privacy by keeping as much personal information on your device as possible. Two years back, Google made its differential privacy library freely available to any organisation or developer. It’s an anonymisation technology enabling developers to learn from their data privately. 

Currently, data anonymisation is the most widely used technique, especially in the healthcare segment. It is a process of stripping all personally identifiable information from the dataset while retaining only the relevant part without compromising the users’ privacy. For example, hospitals and clinics typically remove patients’ names, addresses, contact numbers, and other vital information from the health records before incorporating them into large datasets.

Theoretically, data anonymisation might sound like a great idea. But, in reality, it is not entirely foolproof because anonymisation can not stand up to deanonymisation attacks, as it is often linked back to auxiliary information to identify the data subjects.  

What’s in store? 

In the next ten years, Google said FHE could even help researchers find associations between specific gene mutations by analysing genetic information across thousands of ‘encrypted samples’ and ‘testing different hypotheses’ to identify the genes associated with the diseases they are studying. 

‘We still have a ways to go before most computations happen with FHE — but much as it took some time for HTTPS to take off and be widely adopted,’ according to Google. 

Google said the launch of its fully homomorphic encryption is a step towards bringing helpful products that preserve users’ privacy and keep their data safe. 

More Great AIM Stories

Amit Raja Naik
Amit Raja Naik is a seasoned technology journalist who covers everything from data science to machine learning and artificial intelligence for Analytics India Magazine, where he examines the trends, challenges, ideas, and transformations across the industry.

Our Upcoming Events

Conference, Virtual
Genpact Analytics Career Day
3rd Sep

Conference, in-person (Bangalore)
Cypher 2022
21-23rd Sep

Conference, in-person (Bangalore)
Machine Learning Developers Summit (MLDS) 2023
19-20th Jan, 2023

Conference, in-person (Bangalore)
Data Engineering Summit (DES) 2023
21st Apr, 2023

Conference, in-person (Bangalore)
MachineCon 2023
23rd Jun, 2023

3 Ways to Join our Community

Discord Server

Stay Connected with a larger ecosystem of data science and ML Professionals

Telegram Channel

Discover special offers, top stories, upcoming events, and more.

Subscribe to our newsletter

Get the latest updates from AIM

Council Post: How to Evolve with Changing Workforce

The demand for digital roles is growing rapidly, and scouting for talent is becoming more and more difficult. If organisations do not change their ways to adapt and alter their strategy, it could have a significant business impact.

All Tech Giants: On your Mark, Get Set – Slow!

In September 2021, the FTC published a report on M&As of five top companies in the US that have escaped the antitrust laws. These were Alphabet/Google, Amazon, Apple, Facebook, and Microsoft.

The Digital Transformation Journey of Vedanta

In the current digital ecosystem, the evolving technologies can be seen both as an opportunity to gain new insights as well as a disruption by others, says Vineet Jaiswal, chief digital and technology officer at Vedanta Resources Limited

BlenderBot — Public, Yet Not Too Public

As a footnote, Meta cites access will be granted to academic researchers and people affiliated to government organisations, civil society groups, academia and global industry research labs.