The Neural Net Tank Urban Legend
gwern.net
gwern.net
After a few weekends of iterating and improving the model/training set, we were convinced we’d win the next race… only to lose almost immediately by crossing the lines on the track.
We did some inverse model explanation work which quickly showed that our car was paying attention to the overhead skylights more than the actual tracks. Unlike the other weekends, it was a foggy day!
A quick hack to cut out the top 50% of each training image brought our car back to its prior reliability.
It took a while to get good resistor values, but the night before the project was due I managed to get it working really well. So that was cool, and I got to catch up on sleep. Well the funny thing was that the next day we tested our line followers in this big lecture hall and the courses were not directly under the lights. So my beautiful analog line follower started following its own shadow!
Of course, the more diligent students had already tested their cars under these conditions and found the need to put a little hood over the photoresistors so that they only saw the light reflected from the car's own LED.
Of course getting that to work with all-analog hardware is left as an exercise to the reader.
It must've been posted here before: this is exactly the strategy Andy Sloane used to localize his car.
We did this back in 2017(?) using an Nvidia Jetson TX2, allowing us to train the model on the car itself, avoiding a round-trip to our laptop!
In that version, the neural net is trained to manage the ventilation system of an underground train station, based on data about passenger movements. Unfortunately, it ends up simply paying attention to the display of a clock that happens to be visible through one of its cameras. And when the clock breaks, a bunch of people asphyxiate. A bit implausible, but memorable.
I took it less as a cautionary tale about NN and more about looking for simple solutions
It feels gratuitous and shocking, readers beware
https://jamanetwork.com/journals/jamadermatology/fullarticle...
https://venturebeat.com/business/when-ai-flags-the-ruler-not...
I never heard of the tanks story, but I vaguely remember stuff in radiology which was a similar story basically, it learned some spurious correlation to the label.
Or you train with images where those markers are already removed by another NN? Or use some photos without cancer but with markers in the mix.
What the researchers hadn't realised was that the samples were coming from two different models of MRI machine and that patients with more serious symptoms / worse expected outcomes were more often being sent to be scanned on the more advanced of the two.
The AI had just detected some hidden difference between the outputs and was infering that the patients scanned on the expensive machine were more likely to have a serious condition.
It's not the funniest tech urban legend story I've heard in a lecture -- that award would go to the kangaroos-with-grenade-launchers story -- but it is good.
I only remember it hazily but it was just very funny in the moment; the lecturer was one of the most naturally funny people. It concerned as I recall it a combat flight (helicopter I think) simulator that had been unsuccessful and was being hastily tweaked as a demo for a civilian contract.
The story went that elements of the simulator were closely tied to ground attack scenarios, and that there was not time to remove all the code concerning enemy soldiers, so the models of the soldiers were replaced with models of kangaroos (same sort of height, walk on two legs).
On the day of the demo, there was some impromptu change to the script — they flew lower and too close to the ground or something — and the kangaroos fired at them with rocket propelled grenades.
I don’t believe the story is really true, but as a cautionary tale about reskinning demos it has always stuck with me.
> “...we had not set any weapon or projectile types, so what the kangaroos fired at us was in fact the default object for the simulation, which happened to be large multicoloured beachballs.”
The lecture in question took place in late '94 or early '95, in the UK -- so four or five years before that telling.
The death of mythology in the age of science has really done a disservice to mankind.
These were basically dogs strapped with bombs which were trained to run towards enemy tanks, where a contact detonator would cause the bomb to explode, killing the dog and hopefully causing damage to the enemy tank.
The analogy comes from stories about why the dogs failed in their main purpose - one story says that the dogs were trained on friendly tanks, not enemy tanks, so on the battlefield turned around and ran towards friendly tanks instead of the intended targets.
One could imagine this story was retold, and eventually re-interpreted as being as a result of an artificial neural network, rather than a biological one :-)
(edit: the earliest refs for the tank story predate Feynman's, so this would be wrong)
https://en.wikipedia.org/wiki/Clever_Hans
>Clever Hans (German: der Kluge Hans; c. 1895 – c. 1916) was a horse that was claimed to have performed arithmetic and other intellectual tasks. After a formal investigation in 1907, psychologist Oskar Pfungst demonstrated that the horse was not actually performing these mental tasks, but was watching the reactions of his trainer. He discovered this artifact in the research methodology, wherein the horse was responding directly to involuntary cues in the body language of the human trainer, who was entirely unaware that he was providing such cues. In honour of Pfungst's study, the anomalous artifact has since been referred to as the Clever Hans effect and has continued to be important knowledge in the observer-expectancy effect and later studies in animal cognition. Pfungst was an assistant to German philosopher and psychologist Carl Stumpf, who incorporated the experience with Hans into his further work on animal psychology and his ideas on phenomenology.
NLP's Clever Hans Moment Has Arrived (thegradient.pub)
https://thegradient.pub/nlps-clever-hans-moment-has-arrived/
https://news.ycombinator.com/item?id=20861586
Finding and removing Clever Hans: Using explanation methods to debug and improve deep models:
https://www.sciencedirect.com/science/article/pii/S156625352...
Is your AI a “Clever Hans”?
https://medium.com/high-stakes-design/is-your-ai-a-clever-ha...
The Clever Hans Effect in Machine Learning: an overview by Bhusan Chettri
https://www.issuewire.com/the-clever-hans-effect-in-machine-...
Deep Learning, Meet Clever Hans
https://towardsdatascience.com/deep-learning-meet-clever-han...
Welcome to the cleverhans blog: This is a blog by Ian Goodfellow and Nicolas Papernot about security and privacy in machine learning.
>This is a blog by Ian Goodfellow and Nicolas Papernot about security and privacy in machine learning. We jointly created cleverhans, an open-source library for benchmarking the vulnerability of machine learning models to adversarial examples. The blog gives us a way to informally share ideas about machine learning security and privacy that are not yet concrete enough for traditional academic publishing, and to share news and updates relevant to the cleverhans library.
If we're still around in 2030, you're gonna have to rewrite this same post about the AI drone that blew up its controller.
Here's hoping!
The funny thing is he told us it was an urban legend but one that had a valid point.
RIP Edward Fredkin, who recently passed away on June 13, 9 days ago.
https://en.wikipedia.org/wiki/Edward_Fredkin
>Edward Fredkin (born October 2, 1934, died June 13, 2023) was a distinguished career professor at Carnegie Mellon University (CMU), and an early pioneer of digital physics.
>Fredkin's primary contributions include work on reversible computing and cellular automata. While Konrad Zuse's book, Calculating Space (1969), mentioned the importance of reversible computation, the Fredkin gate represented the essential breakthrough. In recent work, he uses the term digital philosophy (DP).
>During his career, Fredkin has been a professor of computer science at the Massachusetts Institute of Technology, a Fairchild Distinguished Scholar at Caltech, and Research Professor of Physics at Boston University.
Ed Fredkin - Reversible Computing (Keynote from the CCC's Workshop on Reversible Computing)
https://www.youtube.com/watch?v=ROv1HX-gdas
Fredkin tells a great story about making Stephen Wolfram's eyes pop out of his head by showing him how to transform his own rule into a reversible rule.
Reversible Computing
https://en.wikipedia.org/wiki/Reversible_computing
Fredkin Gate
https://en.wikipedia.org/wiki/Fredkin_gate
Digital Physics
https://en.wikipedia.org/wiki/Digital_physics
Conservative Logic, by Edward Fredkin and Tommaso Toffoli
https://web.archive.org/web/20061017232512/http://www.digita...
Digital Philosophy
https://web.archive.org/web/20170729191558/http://www.digita...
Google Scholar: Edward Fredkin
https://scholar.google.com/citations?user=5QMmygwAAAAJ&hl=en
Rudy Rucker writes about his CAM-6 in the CelLab manual:
Cellular Automata Laboratory: Fourmilab home: Origins of CelLab: Classical Era: Von Neumann to Gosper
http://www.fourmilab.ch/cellab/manual/chap5.html
>Computer science is still so new that many of the people at the cutting edge have come from other fields. Though Toffoli holds degrees in physics and computer science, Bennett's Ph.D. is in physical chemistry. And twenty-nine year old Margolus is still a graduate student in physics, his dissertation delayed by the work of inventing, with Toffoli, the CAM-6 Cellular Automaton Machine.
>After watching the CAM in operation at Margolus's office, I am sure the thing will be a hit. Just as the Moog synthesizer changed the sound of music, cellular automata will change the look of video.
>I tell this to Toffoli and Margolus, and they look unconcerned. What they care most deeply about is science, about Edward Fredkin's vision of explaining the world in terms of cellular automata and information mechanics. Margolus talks about computer hackers, and how a successful program is called “a good hack.” As the unbelievably bizarre cellular automata images flash by on his screen, Margolus leans back in his chair and smiles slyly. And then he tells me his conception of the world we live in.
>“The universe is a good hack.”
[...]
ON THE SOUL: Ed Fredkin, Unpublished Manuscript
http://www.digitalphilosophy.org/wp-content/uploads/2015/07/...
>The John Cocke Theory of Dreams was told to me, on the phone, late one night back in the early 1960’s. John’s complete description was contained in a very short conversation approximately as follows:
>“Hey Ed. You know about optimal encoding, right?”
>“Yup.”
>“Say the way we remember things is using a lossy optimal encoding scheme; you’d get efficient use of memory, huh?”
>“Uh huh.” “Well the decoding could take into account recent memories and sensory inputs, like sounds being heard, right?”
>“Sure!”
>“Well, if when you’re asleep, the decoder is decoding random bits (digital noise) mixed in with a few sensory inputs and taking into account recent memories and stuff like that, the output of the decoder would be a dream; huh?”
>I was stunned.