A scientist is trying to teach a neural network to cook—and the results are hilariously bad

Photo by Besjunior/Shutterstock

Please pass salmon beef-style chicken bottom.

One day, for certain, the machines will control us all. You know it, I know it, even those survivalists who swear their Ham Radios are unhackable deep down know it. But in the interregnum, while we foolishly and recklessly train artificial intelligence to exert its dominance, we might as well laugh at their foibles.

In fact, robots being bad at doing robot things is pretty much its own genre of humor. Perhaps it will bring us comfort when we are in the camps, looking back at these light-hearted days.

When our inevitable enslavement comes, what will the robots feed us?

That list comes from Janelle Shane, a research scientist who started playing around with char-rnn, an open-source program on GitHub that she (and others) can customize to build their own neural networks.

Artificial neural networks are customizable computational models that attempt to mimic the way a human brain works through defining associations and building relationships. Rather than being programmed to specifically do certain tasks, they attempt to learn on their own as they are fed information, and as they iterate, they grow in intelligence and ability.

Shane started plugging in cookbooks to see if her neural network could learn food and cooking association, like pasta goes in water, yogurt needs to be strained, and gelatinous dogs are gross.

“I started out with recipes because my initial neural network play was inspired by Tom Brewe’s neural network-generated recipes,” Shane told the Daily Dot. “But it turns out that recipes are a really good fit for computer-generated text. The neural network has an easier time with highly-structured inputs and very short phrases—prose with long-term coherence is particularly difficult for it. I’ve had some fun results with generating other types of text, like superhero names and lists of Pokemon and their abilities.”

As the network repeatedly runs, it learns more and more associations and is able to suss out relationships on its own. (If you are up for a fascinating read on how this really works, check out this.)

If you thought those options up there, like chocolate pickle sauce were bad, the early iterations were downright illogical. This was one of the very first trials.

ooi eb d1ec Nahelrs  egv eael
ns   hi  es itmyer
aceneyom aelse aatrol a
ho i nr  do base
e2
o cm raipre l1o/r Sp degeedB
twis  e ee s vh nean  ios  iwr vp  e
sase
pt e
i2h8
ePst   e na drea d epaesop
ee4seea .n anlp
o s1c1p  ,  e   tlsd
4upeehe
lwcc   eeta  p ri  bgl as eumilrt

But the more the program runs, the better it gets. Better being the operative word. Try some Pears Or To Garnestmeam.

Pears Or To Garnestmeam

meats

¼ lb bones or fresh bread; optional
½ cup flour
1 teaspoon vinegar
¼ teaspoon lime juice
2  eggs

Brown salmon in oil. Add creamed meat and another deep mixture.

Discard filets. Discard head and turn into a nonstick spice. Pour 4 eggs onto clean a thin fat to sink halves.

Brush each with roast and refrigerate.  Lay tart in deep baking dish in chipec sweet body; cut oof with crosswise and onions.  Remove peas and place in a 4-dgg serving. Cover lightly with plastic wrap.  Chill in refrigerator until casseroles are tender and ridges done.  Serve immediately in sugar may be added 2 handles overginger or with boiling water until very cracker pudding is hot.

Yield: 4 servings

Not bad. Here’s one recipe for some seriously flavorless and uninspired gruel.

¼ cup white seeds
1 cup mixture
1 teaspoon juice
1  chunks
¼ lb fresh surface
¼ teaspoon brown leaves
½ cup with no noodles
1  round meat in bowl

Drab. How about another?

¼ cup coconut fluff rings
1 teaspoon cooked buster grapes
½ cup shanked whipping peanuts
6 tablespoon lemon turn beans
1  seeds of the chocolate cheese
1 cup milk bat leaves
1 ½ cup sherry stick
¼ line phempherbly ice
½ cup shrimp white pine baking powder
1 teaspoon baking curny sauce
¼ cup milked salt
8 oz canned pomegranate crescents
12 oz can canned and chopped pistachio stock

Why not one more?

1 ½ teaspoon chicken brown water
1 teaspoon dry chopped leaves
1/3 cup shallows
10 oz brink custard
¼ cup bread liquid
2 cup chopped pureiped sauce
½ cup baconfroots
¼ teaspoon brown leaves
½ cup vanilla pish and sours
½ cup white pistry sweet craps
1 tablespoon mold water
¼ teaspoon paper
1 cup dried chicken grisser
15 cup dried bottom of peats
¼ teaspoon finely grated ruck

Why is this so funny and interesting, though? Shane thinks its fascinating, almost like watching the inside of a toddler’s brain as it starts to grasp the workings of the world.

“What I like about these failures are that they’re a window into the inner structure of things, in the same way that optical illusions give us clues about the workings of our visual systems,” she said. “What is it about the recipe-trained network that allows it to come up with ‘8 oz canned pomegranate crescents’ as an ingredient? Somehow it has associated pomegranates with oranges in a way that it was never explicitly taught, and made the leap that maybe pomegranates, too, could be put in cans. And then we have surrealist ingredients like ‘peeled rosemary’ or ‘crushed water’ or ‘julienned sherry,’ which are just fun to imagine someone trying.”

Shane said she’s limited because she’s simply running things on her Macbook, as opposed to a supercomputer that a lot of the neural networks require to fully flesh out relationships.

“It takes me all day to run what a modern GPU-accelerated system could do in half an hour,” she said. “This means I don’t have the luxury of tweaking my starting parameters and rerunning for better results. [But the] network is at its most hilarious when it falls short of perfection, so this works out okay in my case.”

If you want to see what a real neural network can do in terms of recipe generation, IBM put Watson—yes, Jeopardy! Watson—to use in the kitchen.

Which brings us back to our original premise: When robots do take over, will they be able to serve us something slightly palatable or will we be subsisting on shrimp white pine baking powder and seeds of the chocolate cheese?

“I could imagine a consciousness appreciating food even with no way of ingesting it—as long as they had sensors to pick out nuance and complexities the same way we might appreciate a symphony or a painting.”

So maybe the food after the robot apocalypse won’t be all that bad.

Either way, Shane is prepared.

“Just the other day, I made Crockpot Cold Water with a side of Beasy Mist.”

Parsec
How to make slime: Inside Instagram’s world of teen ‘slimers’
It's cheap, easy, and the possibilities are endless.
From Our VICE Partners

Pure, uncut internet. Straight to your inbox.