Thermodynamics of computation.

Similar documents
where Q is a finite set of states

Introduction to Turing Machines. Reading: Chapters 8 & 9

Information in Biology

Turing machines COMS Ashley Montanaro 21 March Department of Computer Science, University of Bristol Bristol, UK

Mathematical or Physical? A physical analysis of mechanical computability. Answers. Abstract model. Mental calculator. Conceptual Outline

Turing Machines. The Language Hierarchy. Context-Free Languages. Regular Languages. Courtesy Costas Busch - RPI 1

Probability and Information Theory. Sargur N. Srihari

Decision Problems with TM s. Lecture 31: Halting Problem. Universe of discourse. Semi-decidable. Look at following sets: CSCI 81 Spring, 2012

We prove that the creator is infinite Turing machine or infinite Cellular-automaton.

Computational Models Lecture 8 1

1 Deterministic Turing Machines

Let us first give some intuitive idea about a state of a system and state transitions before describing finite automata.

Onsager theory: overview

Lectures on Medical Biophysics Department of Biophysics, Medical Faculty, Masaryk University in Brno. Biocybernetics

A physical analysis of mechanical computability. Answers

Information in Biology

Turing Machines Part III

Computational complexity

Sample Project: Simulation of Turing Machines by Machines with only Two Tape Symbols

Introduction to Turing Machines

Limits of Computation

Lecture 3: Reductions and Completeness

Computational Models Lecture 8 1

Part I: Definitions and Properties

Chapter 1 Welcome Aboard

CS5371 Theory of Computation. Lecture 10: Computability Theory I (Turing Machine)

A General Testability Theory: Classes, properties, complexity, and testing reductions

Models. Models of Computation, Turing Machines, and the Limits of Turing Computation. Effective Calculability. Motivation for Models of Computation

Verifying whether One-Tape Turing Machines Run in Linear Time

Computational Complexity of Bayesian Networks

Recap DFA,NFA, DTM. Slides by Prof. Debasis Mitra, FIT.

More Turing Machines. CS154 Chris Pollett Mar 15, 2006.

Computational Models Lecture 8 1

Turing Machines (TM) The Turing machine is the ultimate model of computation.

Announcements. Problem Set 7 graded; will be returned at end of lecture. Unclaimed problem sets and midterms moved!

Boolean circuits. Lecture Definitions

CS5371 Theory of Computation. Lecture 10: Computability Theory I (Turing Machine)

Turing machines Finite automaton no storage Pushdown automaton storage is a stack What if we give the automaton a more flexible storage?

Theory of Computer Science. Theory of Computer Science. D7.1 Introduction. D7.2 Turing Machines as Words. D7.3 Special Halting Problem

1 Deterministic Turing Machines

Computability and Complexity

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018

Lecture 12: Mapping Reductions

M.Burgin Department of Mathematics University of California, Los Angeles Los Angeles, CA 90095

Lecture 3 (Notes) 1. The book Computational Complexity: A Modern Approach by Sanjeev Arora and Boaz Barak;

CpSc 421 Homework 9 Solution

5 3 Watson-Crick Automata with Several Runs

Turing Machines. COMP2600 Formal Methods for Software Engineering. Katya Lebedeva. Australian National University Semester 2, 2014

CS154, Lecture 10: Rice s Theorem, Oracle Machines

(a) Definition of TMs. First Problem of URMs

Can a Machine Think?

Undecidability COMS Ashley Montanaro 4 April Department of Computer Science, University of Bristol Bristol, UK

CS4026 Formal Models of Computation

On Rice s theorem. Hans Hüttel. October 2001

Turing Machines Part II

Review of Complexity Theory

an efficient procedure for the decision problem. We illustrate this phenomenon for the Satisfiability problem.

Griffith University 3130CIT Theory of Computation (Based on slides by Harald Søndergaard of The University of Melbourne) Turing Machines 9-0

Signal Modeling, Statistical Inference and Data Mining in Astrophysics

A Living System Must Have Noncomputable Models

Emphasize physical realizability.

How to Build a Living Cell in Software or Can we computerize a bacterium?

More About Turing Machines. Programming Tricks Restrictions Extensions Closure Properties

Computation Theory Finite Automata

Lecture Notes On THEORY OF COMPUTATION MODULE -1 UNIT - 2

Lecture notes on Turing machines

Lecture 1: Course Overview and Turing machine complexity

Uncorrected author proof---not final version!

1. Introductory Examples

Regulation of metabolism

CSE 4111/5111/6111 Computability Jeff Edmonds Assignment 3: Diagonalization & Halting Problem Due: One week after shown in slides

IV. Turing Machine. Yuxi Fu. BASICS, Shanghai Jiao Tong University

CSCI3390-Assignment 2 Solutions

Introduction to Computer Science and Programming for Astronomers

One-Parameter Processes, Usually Functions of Time

State Machines. Example FSM: Roboant

CS 361 Meeting 26 11/10/17

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska

Theory of Computation

Limitations of Efficient Reducibility to the Kolmogorov Random Strings

FORMAL LANGUAGES, AUTOMATA AND COMPUTATION

MACHINE COMPUTING. the limitations

On the Executability of Interactive Computation. June 23, 2016 Where innovation starts

CSCI3390-Lecture 16: NP-completeness

Lecture 2 (Notes) 1. The book Computational Complexity: A Modern Approach by Sanjeev Arora and Boaz Barak;

P is the class of problems for which there are algorithms that solve the problem in time O(n k ) for some constant k.

The Power of One-State Turing Machines

Any live cell with less than 2 live neighbours dies. Any live cell with 2 or 3 live neighbours lives on to the next step.

Notes for Lecture 3... x 4

27 : Distributed Monte Carlo Markov Chain. 1 Recap of MCMC and Naive Parallel Gibbs Sampling

Neutron inverse kinetics via Gaussian Processes

6.045: Automata, Computability, and Complexity Or, Great Ideas in Theoretical Computer Science Spring, Class 8 Nancy Lynch

EPISTEMOLOGY, COMPUTATION AND THE LAWS OF PHYSICS

Final Exam Comments. UVa - cs302: Theory of Computation Spring < Total

Stochastic Petri Nets. Jonatan Lindén. Modelling SPN GSPN. Performance measures. Almost none of the theory. December 8, 2010

Chapter 7 Turing Machines

Queueing systems. Renato Lo Cigno. Simulation and Performance Evaluation Queueing systems - Renato Lo Cigno 1

COMPARATIVE ANALYSIS ON TURING MACHINE AND QUANTUM TURING MACHINE

SE 3310b Theoretical Foundations of Software Engineering. Turing Machines. Aleksander Essex

Lecture 3. 1 Terminology. 2 Non-Deterministic Space Complexity. Notes on Complexity Theory: Fall 2005 Last updated: September, 2005.

Transcription:

Thermodynamics of computation. Dominique Chu School of Computing University of Kent, UK D.F.Chu@kent.ac.uk C 3 Symposium December 11, 2017

Outline 1 Computation and Life itself 2 Living computers 3 Energy usage of computers 4 Digital computers 5 Conclusion

Computation Theoretical computer science is a mathematical theory. Crucially, it is not making reference to the laws of physics. Some of its postulates/assumptions are physically implausible. D. Chu Thermodynamics of computation Dec 11, 2017 3 / 44

Turing machine A standard model in computer science is the idea of a Turing machine. It is believed that for every computable function there is a Turing machine that computes it. An input tape A reading head. Is always in a particular state. Reads a symbol from the input tape Moves to the left or right depending on the internal state and the input it received. Writes to the tape. The computation is finished when the machine enters the halting state. Taken from: https://commons.wikimedia.org/w/index.php?curid=1505152 Next slide D. Chu Thermodynamics of computation Dec 11, 2017 4 / 44

Formal systems Inference rules D. Chu Thermodynamics of computation Dec 11, 2017 5 / 44

Formal systems Inference rules Derive theorems D. Chu Thermodynamics of computation Dec 11, 2017 5 / 44

A basic assumption of computer science Assumption Software and hardware are separated. Specifically, in order to understand what a piece of software is doing, it is not necessary to understand how the hardware works. D. Chu Thermodynamics of computation Dec 11, 2017 6 / 44

Aristotelian causes Efficient cause Material cause Formal cause Final cause (telos) D. Chu Thermodynamics of computation Dec 11, 2017 7 / 44

Aristotelian causes Efficient cause (CPU) Material cause (silicon of which the CPU is made) Formal cause (the code) Final cause (the programmer who wrote the software with a purpose in mind) Causation in electronic computers The efficient cause of the computation is the hardware only and not connected to the software. D. Chu Thermodynamics of computation Dec 11, 2017 8 / 44

Robert Rosen: Efficient causation in organisms Robert Rosen 1 claims that living systems are different from computers because they are closed with respect to efficient causation. Assume a metabolite A which is converted by some reaction f into some component of type B f : A B A and f are the material and efficient cause of B, but what causes f? Extend the diagram to include: some function Φ that maps B to the mappings from A to B, i.e. f. What is then the efficient cause of Φ? We can now continue with infinite regress or close the system. 1 R. Rosen (1991). Life Itself. New York: Columbia University Press. D. Chu Thermodynamics of computation Dec 11, 2017 9 / 44

Taken from: D. http://panmere.com/?cat=8 Chu Thermodynamics of computation Dec 11, 2017 10 / 44

Rosen complexity Rosen s central argument is that these (M,R) systems are fundamentally different from computation. It is not possible to retain the separation between software and hardware, while also keeping closure with respect to efficient causation. Rosen complexity: Systems that are closed wrt efficient causation complex. D. Chu Thermodynamics of computation Dec 11, 2017 11 / 44

Don t trust me though on this topic! Taken from: http://panmere.com/?cat=8 D. Chu Thermodynamics of computation Dec 11, 2017 12 / 44

Are biological systems computers? Rosen s point is that biological systems are fundamentally different from computers. There can be simulations of living systems, but not accurate models. Artificial life is impossible. D. Chu Thermodynamics of computation Dec 11, 2017 13 / 44

Example: Dynamical Hierarchies Assume an artificial physical world consisting of a set of components of types {A 0, B 0,...}. Each of the components has certain rules how to interact with other components and with its environment. The question now is: How to design this world so that from the individual parts one gets aggregate components {A 1, B 1,...} formed of the lower level components, but with their own behaviours. How to get {A 2, B 2,...}, etc.. This turns out to be very difficult to do, but emerges naturally in the real world. One could think of simple molecules proteins cells organisms No need to bother Higher level components can, however, be simulated. D. Chu Thermodynamics of computation Dec 11, 2017 14 / 44

What does it mean for a biological/biochemical system to compute? Inference rules Formally this is similar to enzymatic reactions. E + A C E + B Only that the reactions should be reversible. E + A C E + B Armchair chemistries Computer simulations allow me to postulate physically implausible mechanisms. D. Chu Thermodynamics of computation Dec 11, 2017 15 / 44

Biochemical information processors Examples Kinetic proofreading Chemotaxis Transcription/translation Sensing... Previous slide D. Chu Thermodynamics of computation Dec 11, 2017 16 / 44

A candidate notion of computation in biological systems How can we recognise a biochemical system that computes (and distinguish it from one that does not)? D. Chu Thermodynamics of computation Dec 11, 2017 17 / 44

A candidate notion of computation in biological systems How can we recognise a biochemical system that computes (and distinguish it from one that does not)? Computation (in biochemical systems) A biochemical system computes iff there is a Turing machine that emulates its behaviour. D. Chu Thermodynamics of computation Dec 11, 2017 17 / 44

A simple example Chemical system Assume the following chemical system: A B For simplicity we assume that there is only a single A at the beginning. Turing machine Symbols on tape: {A,B,_}. Possible states: { 1 0,h}. Initial state of the TM is1 0. Tape is...,_,_,a,_,... If the symbolais on tape overwrite it withband go into halting state. Otherwise step to right. D. Chu Thermodynamics of computation Dec 11, 2017 18 / 44

Entropy production of biochemical reactions Assume the following system A k+ B k Whenever the forward reaction happens, then the heat dissipated to the environment is given by ( ) k + s ln This formula tells us: 1 Unidirectional reactions cannot exist! 2 The state B = 1 is not a halting state in our example above. k This means... The above example of a chemical system is implausible. D. Chu Thermodynamics of computation Dec 11, 2017 19 / 44

A simple example extended Chemical system Assume the following chemical system: A k+ B k For simplicity we assume that there is only a single A at the beginning. Turing machine Symbols on tape: {A,B,_}. Possible states: { 1 0,0 1,h}. Initial state of the TM is1 0. Tape is...,_,_,a,_,... If the symbolais on tape overwrite it withband go into state0 1, go to right. If the symbolbis on tape overwrite it withband go into state1 0, go to right. If you encounter symbol_go to left. The computation does not halt. D. Chu Thermodynamics of computation Dec 11, 2017 20 / 44

About Markov chains A set of states. Transition rates between them (CTMC). Initial state. Unique steady-state (equilibrium). Approaching the steady state produces entropy. Once in equilibrium, the system stays there. D. Chu Thermodynamics of computation Dec 11, 2017 21 / 44

Example Take as an example: A k+ B k Start with 20 A and no B. k = k +. Then the result will be, on average 10A, with some noise around this. Crucially, at equilibrium there will be ongoing chemical activity with reactions happening at random time points. D. Chu Thermodynamics of computation Dec 11, 2017 22 / 44

Computing with biochemical systems Postulate The halting state of a biochemical computer is its steady-state. Programming the computer means to specify a CTMC. D. Chu Thermodynamics of computation Dec 11, 2017 23 / 44

Computing with biochemical systems Postulate The halting state of a biochemical computer is its steady-state. Programming the computer means to specify a CTMC. Computing procedure 1 Specify your MC and (arbitrary) initial state. 2 Let the system relax to equilibrium. Entropy is produced in the process The relaxation takes technically infinite amounts of time, but is characterised by a characteristic time-scale τ. 3 Read out the result. D. Chu Thermodynamics of computation Dec 11, 2017 23 / 44

Understanding the resource cost of computation Energy cost of the computation entropy produced. Time required to compute τ. Accuracy noise. D. Chu Thermodynamics of computation Dec 11, 2017 24 / 44

van Kampen s linear noise approximation 2 Valid for mesoscopic chemical systems. Scale the volume to generate an equivalence class of systems. Deterministic equivalent: V. Mean behaviour of finite systems is the same as deterministic equivalent. Actual systems have Gaussian noise around deterministic equivalent. The noise scales like V 1 2, i.e. inverse with the volume. 2 N. van Kampen (2007). Stochastic Processes in Physics and Chemistry. Third edition. Amsterdam: Elsevier. D. Chu Thermodynamics of computation Dec 11, 2017 25 / 44

Time to compute Linear noise approximation implies that system size does not affect the computation time τ. τ only depends on the rate constants of the system (which are not constrained in a relevant way). D. Chu Thermodynamics of computation Dec 11, 2017 26 / 44

Time to compute Linear noise approximation implies that system size does not affect the computation time τ. τ only depends on the rate constants of the system (which are not constrained in a relevant way). No trade-off with time The computation time of mesoscopic biochemical computers is fixed. D. Chu Thermodynamics of computation Dec 11, 2017 26 / 44

Entropy production & Noise: Cost of the computation I assume now, for simplicity, that the steady state is an equilibrium state. Entropy production scales linearly with the system size. Noise scales like V 1 2. D. Chu Thermodynamics of computation Dec 11, 2017 27 / 44

Entropy production & Noise: Cost of the computation I assume now, for simplicity, that the steady state is an equilibrium state. Entropy production scales linearly with the system size. Noise scales like V 1 2. Accuracy-cost trade-off For analogue computations in biochemical systems the cost and accuracy of the computation are traded off against one another. D. Chu Thermodynamics of computation Dec 11, 2017 27 / 44

Previous findings There is a general trade-off in biochemical computers between the accuracy, the time taken for the computation and the energy usage/energy cost/dissipation rate. 3 3 N. Zabet and D. Chu (2010). Computational limits to binary genes. eng. In: Journal of the Royal Society Interface 7.47, pp. 945 954. D. Chu Thermodynamics of computation Dec 11, 2017 28 / 44

Measurement process How can we know the outcome of the computation? D. Chu Thermodynamics of computation Dec 11, 2017 29 / 44

Measurement process How can we know the outcome of the computation? We need to approximate the moments of the probability distribution by repeated sampling of the system. Each sampling event comes at a cost (which depends on the speed of the measurement). The sampling frequency is limited by the relaxation period of the system. The accuracy of the measurement is limited by the number of samples taken. D. Chu Thermodynamics of computation Dec 11, 2017 29 / 44

Measurement process How can we know the outcome of the computation? We need to approximate the moments of the probability distribution by repeated sampling of the system. Each sampling event comes at a cost (which depends on the speed of the measurement). The sampling frequency is limited by the relaxation period of the system. The accuracy of the measurement is limited by the number of samples taken. Time-trade-offs There is thus a trade-off between the time required to read the result and the accuracy of the result. D. Chu Thermodynamics of computation Dec 11, 2017 29 / 44

Summary: Analogue computation by mesoscopic biochemical computers Computation proper only leads to a trade-off between accuracy and cost. Time trade-offs are a result of the need to measure the outcome. D. Chu Thermodynamics of computation Dec 11, 2017 30 / 44

Improving the scaling: Digital computation Imagine that we already know that our system can be in one of two possible states. All we need to do then, is to distinguish between the two possible state. No more need to determine all moments. D. Chu Thermodynamics of computation Dec 11, 2017 31 / 44

0.0 0.1 0.2 0.3 0.4 0 5 10 15 20 D. Chu Thermodynamics of computation Dec 11, 2017 32 / 44

0.0 0.1 0.2 0.3 0.4 0 5 10 15 20 D. Chu Thermodynamics of computation Dec 11, 2017 33 / 44

Estimating the state Assume that the states are indicated by value of some Gaussian distributed random variable X. In state 1, the variable has a mean of µ 1 and in state 2 it has a mean of µ 2. Now draw a sample to obtain a value x. The likelihood that the sample belongs to state 1 is given by Equivalently for state 2. The ratio of the likelihoods exp( µ 1 µ 2 ). p µ1 (x)(1 p µ1 (x)) (1) D. Chu Thermodynamics of computation Dec 11, 2017 34 / 44

Estimating the state Assume that the states are indicated by value of some Gaussian distributed random variable X. In state 1, the variable has a mean of µ 1 and in state 2 it has a mean of µ 2. Now draw a sample to obtain a value x. The likelihood that the sample belongs to state 1 is given by Equivalently for state 2. The ratio of the likelihoods exp( µ 1 µ 2 ). Deterministic computation p µ1 (x)(1 p µ1 (x)) (1) It is therefore possible to determine the state of a stochastic system accurately by drawing a few samples only. D. Chu Thermodynamics of computation Dec 11, 2017 34 / 44

A machine that can reliably recognise 0 0 tape1 0 1 0 0 1 internal states tape2 1 0 Accepts input tape with symbols 0 and 1. Determines the majority of symbols with probability π. Machine can be tuned to be arbitrarily accurate. Finite time. Finite energy required to run the machine. The machine is heavily inspired by Barato and Seifert 4. 4 Andre C. Barato and Udo Seifert (2014). Stochastic thermodynamics with information reservoirs. In: Physical Review E 90.4. D. Chu Thermodynamics of computation Dec 11, 2017 35 / 44

Machine reading a 1 from tape Output 0 0 Threshold Tape 1 0 D. Chu Thermodynamics of computation Dec 11, 2017 36 / 44

Machine reading a 0 from tape Output 0 0 Threshold Tape 0 1 D. Chu Thermodynamics of computation Dec 11, 2017 37 / 44

Machine transitioning to output state 1 Output 0 1 Threshold Tape 1 0 D. Chu Thermodynamics of computation Dec 11, 2017 38 / 44

A machine that can reliably recognise input tape1 0 0 1 0 0 1 0 internalstates tape2 1 0 Entropy production S = lnπ 0 K, where K is the number of internal states. Accuracy (in the limit of infinite tapes) P(error) = ( ) K ǫ 2, 1 ǫ where ǫ is the proportion of majority symbols on tape. D. Chu Thermodynamics of computation Dec 11, 2017 39 / 44

Logic gates NOT gate trivial. Just relabel output. AND/OR gate: Use two machines independently. First machine now has a higher threshold. Disconnect both machines from input. Let the internal states equilibrate. Check whether the first machine has crossed the threshold. D. Chu Thermodynamics of computation Dec 11, 2017 40 / 44

AND gate Output: 1 Output: 0 Threshold Equilibrate M1 M2 M1 M2 D. Chu Thermodynamics of computation Dec 11, 2017 41 / 44

Writing output As a last step we also need to write the result of the computation to output. This restores the machine (logically). This can be achieved by running the reading machine in reverse. D. Chu Thermodynamics of computation Dec 11, 2017 42 / 44

Binary Computation Strict determinism is thermodynamically implausible. Analogue computation in cells has unfavourable scaling relationship, forcing a trade-off between accuracy and energy usage. Digital computation has a favourable scaling, allowing quasi-deterministic computation at finite (and small) cost. D. Chu Thermodynamics of computation Dec 11, 2017 43 / 44

Concluding question Biological computers Why do biological computers not universally take advantage of this benign scaling and compute deterministically? Instead, they seem to waste energy on poor computations. Or don t they? D. Chu Thermodynamics of computation Dec 11, 2017 44 / 44