How useful is Turing completeness? are neural nets turing complete?

前端 未结 11 1182
迷失自我
迷失自我 2021-01-30 04:55

While reading some papers about the Turing completeness of recurrent neural nets (for example: Turing computability with neural nets, Hava T. Siegelmann and Eduardo D. Sontag, 1

11条回答
  •  孤城傲影
    2021-01-30 05:48

    Regular feedforward neural networks are not turing complete. They are, in effect, equivalent to a single complicated mathematical function that may do quite a lot of calculations but doesn't have any ability perform looping or other control flow operations.

    However, if you wire up a neural network with some way to access a stateful environment then it can be be made into a turing complete machine.

    As a most trivial example, you could recreate a classic-style Turing machine where:

    • the input to the neural network is the value on the tape and the previous state
    • the output of the neural network is the next state and the action

    You could then train the neural network to emulate the actions of any desired turing machine state table / configuration (perhaps by supervised learning on the actions of another turing machine?)

    Note: The idea of running a feedforward net repeatedly with some form of state feedback is essentially equivalent to a recurrent neural network. So you can think of a recurrent neural network plus the logic that runs it repeatedly as being Turing complete. You need the extra logic (over and above the network itself) to ensure Turing completeness because it is necessary to handle things like termination, repetition and IO.

提交回复
热议问题