Skip to content

Andrew Yao

Abstract

Andrew Chi-Chih Yao (born 1946 in Shanghai) took a doctorate in physics at Harvard, then switched fields and took a second doctorate in computer science at Illinois three years later. At Stanford, Berkeley, and Princeton he asked a series of questions that became fields of their own: how many bits two computers must exchange to compute something together (communication complexity, 1979), how two people can compare their wealth without revealing it (the millionaires’ problem, 1982), and what it means for a sequence to look random to any efficient observer (1982). His minimax principle of 1977 is the standard tool for proving lower bounds on randomized algorithms. He received the 2000 Turing Award, the first person of Chinese origin to win it. In 2004 he left Princeton for Tsinghua University in Beijing, where he founded an undergraduate program in 2005 that is now known as the Yao Class.

Andrew Yao
Andrew Yao giving a talk at the 2015 ACM Federated Computing Research Conference. Image: David.Monniaux, CC BY-SA 4.0, via Wikimedia Commons.

Physics First

Andrew Chi-Chih Yao was born in Shanghai on 24 December 1946. His family spent two years in Hong Kong and then settled in Taiwan. “As a kid I loved math, science and history,” he wrote for the Kyoto Prize in 2021; science, like history, gave him “a sense of awe and magnificence with its stories of adventure, brilliance and courage.”

He took a BS in physics at National Taiwan University in 1967 and went to Harvard for graduate work, earning an AM in 1969 and a PhD in 1972 under Sheldon Glashow, who would share the Nobel Prize in Physics in 1979. Around that time, as he put it, he “by chance came across the then ’novel’ subject of computer science.” He compared himself to Alice in Wonderland, stumbling into a new world, and enrolled in the computer science PhD program at the University of Illinois Urbana-Champaign. He finished two years later, in 1975, with a dissertation called A Study of Concrete Computational Complexity, supervised by Chung Laung Liu.

After one year as an assistant professor of mathematics at MIT he moved in 1976 to Stanford, where Donald Knuth was on the faculty. Yao later named Glashow and Knuth as his two mentors, “the kindest and most gracious human beings ever!” He is married to Frances Yao, a computer scientist known for her work in computational geometry and algorithms.

Lower Bounds at Stanford

Yao’s Stanford papers dealt with a question that is harder than finding an algorithm: proving that no algorithm can do better. His 1977 paper “Probabilistic Computations: Toward a Unified Measure of Complexity” borrowed John von Neumann’s minimax theorem from game theory. Think of the algorithm designer and an adversary choosing the input as two players. Yao showed that the worst-case expected running time of the best randomized algorithm equals the average running time of the best deterministic algorithm on the hardest input distribution. To prove that randomness cannot help beyond some bound, it is enough to find one bad distribution of inputs and analyze ordinary deterministic algorithms against it. Yao’s principle became the standard method for lower bounds on randomized algorithms.

“Should Tables Be Sorted?”, presented at the Foundations of Computer Science symposium in 1978 and published in the Journal of the ACM in 1981, introduced the cell-probe model, which charges a data structure only for the number of memory cells it reads and ignores all other computation. Because the model is so generous, a lower bound proved in it holds for any real machine, and it became the main setting for proving limits on data structures.

Counting the Bits

In 1979, at the ACM Symposium on Theory of Computing, Yao presented a five-page preliminary report, “Some Complexity Questions Related to Distributive Computing.” It set up a simple game. Alice holds an input x, Bob holds an input y, and they want to compute some function of both. Computation is free; only communication counts. How many bits must they exchange?

The model ignores almost everything about real computers, and that is why it proved useful. Communication complexity turned out to give lower bounds for problems that do not look like communication at all: the depth of Boolean circuits, the layout of VLSI chips, routing in networks, and the speed of data structures. Eyal Kushilevitz and Noam Nisan’s textbook Communication Complexity (1997) starts from Yao’s two-party model and covers these applications. In 1993, in “Quantum Circuit Complexity,” Yao carried the question into quantum computing, asking how much communication two parties need when they exchange quantum bits.

The Millionaires and the Garbled Circuit

The cryptography of the late 1970s, after Diffie and Hellman and RSA, rested on specific problems such as factoring (see Public Key Cryptography). Yao asked what security means in general. With Danny Dolev he described in 1981 an attacker who controls the whole network and can read, block, and forge any message, but cannot break the encryption itself. The Dolev–Yao model, published in the IEEE Transactions on Information Theory in 1983, is still the starting point for automated analysis of security protocols.

At the Foundations of Computer Science symposium in November 1982 Yao presented two papers. “Theory and Application of Trapdoor Functions” defined a pseudorandom generator by complexity: its output is pseudorandom if no polynomial-time test can tell it from true randomness with noticeable advantage. He showed that passing one simple test, predicting the next bit, is enough to pass all of them, and that pseudorandom generators can be built from one-way functions, functions that are easy to compute and hard to invert. Together with the work of Manuel Blum and Silvio Micali at the same time (see Manuel Blum and Shafi Goldwasser and Silvio Micali), this became the basis of the modern theory of cryptographic randomness.

The second paper, “Protocols for Secure Computations,” opened with a puzzle. Two millionaires want to know which of them is richer without either learning how much the other has. Yao gave a protocol that answers the question and reveals nothing else. The millionaires’ problem is the smallest case of secure two-party computation: any function of two private inputs can be computed so that each side learns only the result.

The general method Yao is known for, the garbled circuit, has an odd publication history. The function is written as a Boolean circuit; one party encrypts every gate so that the other can evaluate the circuit on encrypted values and learn only the final output. ACM’s Turing Award biography says Yao used the technique implicitly in 1982 and in his 1986 paper “How to Generate and Exchange Secrets,” but the construction itself was spread mainly through his talks. A complete written proof of its security came from Yehuda Lindell and Benny Pinkas, published in the Journal of Cryptology in 2009. By then computers had become fast enough to run garbled circuits on real data, for example to compare DNA records without disclosing them.

Yao moved to Princeton in 1986 as William and Edna Macaleer Professor of Engineering and Applied Science. He received the Knuth Prize in 1996 and the 2000 ACM Turing Award “in recognition of his fundamental contributions to the theory of computation, including the complexity-based theory of pseudorandom number generation, cryptography, and communication complexity.” The work fits into the larger story told in P vs. NP and Complexity Theory.

Tsinghua

In 2004 Yao resigned from Princeton, aged 57, and became a professor at Tsinghua University in Beijing and director of its new Institute for Theoretical Computer Science. In 2005 he started a pilot undergraduate class in computer science, sponsored at first by Microsoft and later renamed the Tsinghua Xuetang Computer Science Program; everyone calls it the Yao Class. Its first students enrolled in 2006. Yao designed the curriculum himself, fifteen core courses taught in English, and lectured in six of them. In 2011 the program grew into the Institute for Interdisciplinary Information Sciences, with Yao as dean, together with a Center for Quantum Information. Tsinghua added an artificial intelligence class in 2019 and a quantum information class in 2021, and merged all three under the Yao Class name in 2022. In 2024 Yao also became dean of Tsinghua’s new College of AI.

The graduates show what the program aimed at. Tang Wenbin, class of 2010 and the first winner of the class’s Yao Award, co-founded the face-recognition company Megvii (Face++) in 2011 with two other alumni of the institute. Others returned as faculty after doctorates at Princeton and Carnegie Mellon.

In February 2017 the Chinese Academy of Sciences announced that Yao and the physicist Chen Ning Yang had given up their US citizenship and become full academicians; Yao had been a foreign member since 2004. It was the first time overseas Chinese scientists had given up their citizenship to become Chinese members of the academy; no reasons were given. Yao received the Kyoto Prize in 2021. In its essay he gave his own summary of a career spent on new questions: “asking the right question is often the key to good research.”

📚 Sources