r/compsci • u/zhengqunkoo • Jan 22 '18
Logic and guaranteeing machine performance
Regarding the coming Fourth Industrial Revolution, which will see machines take over some intellectual jobs, there are a few concerns on the security and behavioral guarantees of those machines.
How relevant is Formal Logic and Programming Languages in ensuring those guarantees? Or will careful software engineering be enough? Will it be similar to current technologies, where the field of logic plays a small role?
2
Upvotes
2
u/zergling_Lester Jan 22 '18
The bad news is that in the field of self-driving cars for example the actual relevant algorithms are not designed by humans but are grown and trained like pets. You can have a 100% formally verified algorithm that runs a pedestrian detection neural network, but the real algorithm that makes decisions is embedded in that neural network's weights, and nobody knows how it really works.
Really, nobody knows. For example, relatively recently (a year or two ago) big news in the field were that it turns out that you can confuse image recognition deep-learning NNs with an image of whatever, like a toaster, by changing the brightness of some pixels by less than 1%, to make it recognize that toaster as a dog. Using another NN that was trained to fool the recognizing NN.
The mindblowing part was that such images fooled not only the particular instance of a NN they were produced against, but also other instances of the same NN-training algorithm, and other instances of completely different architecturally NN-training algorithms, with a smaller but still >50% probability. And nobody knows why, as far as I know.
We know that our NN-training regiments produce really good NNs, like 99% accuracy on usual data, but we don't know how or why exactly, and we do know that it's possible to fool them with adversarial data at 50%+ probability (also produced by NNs) and we don't know why or how it really works either.
2
u/iwantashinyunicorn Jan 22 '18
Depends upon what the consequences for screwing up are. Right now you can kill a few people and not get in trouble for it, so software engineering wins. If anyone is ever held responsible for the consequences of bugs, things might change.