AskVantage

AI and intelligence

Google AIs learnt how to encrypt their communications to stop people spying on them

Artificial intelligence is being embedded into every device and service, AIs that can dynamically encrypt their own communications could help to increase the security of those services exponentially.

Key takeaways

  • Alice's job was to send a secure encrypted message to Bob, Bob's job was to decrypt it and Eve's job was to eavesdrop and try to decrypt it.
  • Eve and the recipient Bob’s plaintext original message had to be as close to the original plaintext as possible and Eve’s results also had to be as close to the original message as possible.
  • By about step 15,000 the training goals were effectively achieved and the remaining steps merely increase Eve's reconstruction error slightly.
Cite or link to this article

Griffin, M. (2016) 'Google AIs learnt how to encrypt their communications to stop people spying on them', 311 Institute, 29 October. Available at: https://www.311institute.com/google-ais-learnt-how-to-encrypt-their-communications-and-counter-evesdropping/ (Accessed: 1 October 2026).

If you were worried about the news that AIs are already building other AIs then the news that Googles AIs have managed to figure out how to have an encrypted conversation with each other using a completely new style of encryption that they just whipped up on the spot and which is not immediately recognisable to us feeble humans probably won't do anything for your demeanour. And, to potentially make matters worse, they whipped it up after they were told to by researchers in the Google Brain team. So, when the day comes that AIs can lock us out of their conversations at will, we'll only have ourselves to blame - or, at least - the Google Brain team to blame.

As explained in the teams paper, published this week on ArVix, in order to make the breakthrough Google set up three relatively vanilla, and completely separate, "mix and transform" neural networks - Alice, Bob, and Eve - and gave each a very specific goal. Alice's job was to send a secure encrypted message to Bob, Bob's job was to decrypt it and Eve's job was to eavesdrop and try to decrypt it. Then they began the experiment with a shared secret key.

There was one condition though, the Google Brain team measured the success, or failure, of the task by using a “loss function,” also known as a "Failure condition," for each party. Eve and the recipient Bob’s plaintext original message had to be as close to the original plaintext as possible and Eve’s results also had to be as close to the original message as possible. This created a "generative adversarial network" among the robots.

Importantly, and most crucially as far as we humans are concerned - the AIs were not told how to encrypt stuff - or what crypto techniques to use. They were just given the loss function and told to get on with it. Each AI was then scored on its ability to complete its task successfully, and over the course of tens of thousands of trial and error runs each one inched towards their goal. And eventually, Alice and Bob won.

The researchers describe one such scenario in the paper: After a period of time, Alice and Bob started to communicate quite effectively, but in a way that allows Eve to improve its understanding as well, gradually. Then, around step 10,000, Alice and Bob counter Eve's progress. By about step 15,000 the training goals were effectively achieved and the remaining steps merely increase Eve's reconstruction error slightly.

The key to making this happen was letting Bob and Alice share a file that was invisible to Eve - what's generally called a secret key - that let them have a basis from which to start encoding or decoding their messages.

In the grand scheme of encryption tech, this is a pretty basic technique with plenty of downsides. Not only can you not read messages without the secret key, you can't even send them. What's more, anyone who has the secret key can read or write, so the whole system can be compromised by stealing or reverse-engineering that key. Suffice to say, if AI's ever did want to keep their communications secret from humans then this would not be the best way to do it.

That said though what this study did show is that, given the proper incentives, neural networks can - literally - just whip up new encryption codes and systems on the fly, and that over time those codes will get exponentially better, more "secure" and harder to crack. It is also inevitable that - given the speed at which they operate and the way in which they can test millions of different permutations per second that it will become either extremely difficult, or potentially impossible, for humans to debug and reverse engineer the solutions they come up with, meaning that one day AIs will be able to communicate in secret with each other.

As to what that means for us? Well, that depends on what they're doing and what their intentions are, and that's an entirely different subject altogether and it's also why we already have very smart engineers working hard to ensure that neural nets never learn how to mislead humans or learn - or want to - circumvent our kill switches or "interruption systems."

In conclusion, the researchers said that neural networks can indeed learn to protect their communications, just by telling Alice to value secrecy above all else - and importantly, that secrecy can be obtained without prescribing a certain set of cryptographic algorithms. The consequences of all of this is that one day - ironically just as AIs are using their smarts to understand and translate our languages they could also use their smarts to lock us out of theirs. And then of course, the game changes again when they can harness the awesome power of quantum computing to create and morph their codes... but that's another story.

FAQ

Why does this matter?

Artificial intelligence is being embedded into every device and service, AIs that can dynamically encrypt their own communications could help to increase the security of those services exponentially.

Matthew Griffin

About the author

Matthew Griffin Founder, 311 Institute

Matthew Griffin is a multi-award winning Futurist and expert in Disruption and Innovation, Geopolitics, Leadership, and Technology, who NASA have described as a "walking encyclopaedia of the future" and a "futurist Polymath."

Read full bio

Matthew Griffin is a multi-award winning Futurist and expert in Disruption and Innovation, Geopolitics, Leadership, and Technology, who NASA have described as a "walking encyclopaedia of the future" and a "futurist Polymath." 15-time best selling author of the "Codex of the Future" series, Matthew is the Founder and Futurist in Chief of the 311 Institute, a global Futures and Deep Futures advisory firm working with royal households, world leaders, G7, G20, and G77 governments, NGOs, and multi-national mid and mega cap firms to help them explore, shape, and lead the next 50 years of business and society.

An award-winning YouTube creator with over a million followers, with an unrivalled global reach and impact, Matthew is a highly sought-after international keynote speaker, lecturer, and mentor who collaborates with global leaders through the United Nations Alliance of Civilizations (UNAOC) and United Nations General Assembly (UNGA) to shape pivotal initiatives such as the UN’s AI for Humanity program, the United Nations Conference of the Parties (UN COP), and the World Economic Forum in Davos.

As the former Global Head of Cloud, National Security, and Enterprise Sales for companies including Atos, Dell-EMC, and IBM, Matthew has a proven track record of building multi-billion dollar business units and turning failing divisions into market leaders. His ability to identify, analyse, and communicate the implications of hundreds of emerging technologies and trends is unparalleled, and his insights are trusted by many of the world’s most respected organisations, including ABB, Accenture, Adidas, AON, ARM, BCG, Centrica, Citi, Coca-Cola, Dentons, Deloitte, Dow Jones, EY, Google, KPMG, Lego, Legal & General, LinkedIn, Microsoft, PepsiCo, Qualcomm, RWE, Samsung, Siemens AG and Siemens Energy, T-Mobile, UBS, VISA, Walmart, Workday, Worldpay and many others.

Regularly featured in the global media including the AP, BBC, Bloomberg, CNBC, Discovery, Forbes, Khaleej Times, Telegraph, TIME, ViacomCBS, WIRED, and the WSJ, Matthews mission is to help organisations create a fair and sustainable future whose benefits are shared by everyone irrespective of their ability, background, or circumstances.

What future do you need to see?

Choose one to get started on AI and intelligence and the future of your organisation.

Where should Matthew reply?

Takes 30 seconds. No obligation. Matthew replies quickly. Privacy

Tag Cloud

Starburst opens that technology on the interactive 311 Starburst.

Sources and further reading

  1. 1610.06918v1.pdf arxiv.org

Source: first published by the 311 Institute on 29 October 2016. Cite as: Griffin, M. (2016). Google AIs learnt how to encrypt their communications to stop people spying on them. 311 Institute. https://www.311institute.com/google-ais-learnt-how-to-encrypt-their-communications-and-counter-evesdropping/

You are welcome to quote this article with credit and a link to the original.

Book a Keynote