Can AI write recipes better than humans?

New York Times puts it to the ultimate test

By Priya Krishna and Cade Metz

Recipes can be passed down by word-of-mouth, scribbled on index cards, published in cookbooks. But they’ve always had one thing in common: They’re made by people.

Few things, in fact, are as packed with humanity as a recipe. Mixed and folded and baked into each one are their creators’ backgrounds, stories, tastes and feelings.

People have their limitations, though. They can’t read every mashed potato recipe on the internet before coming up with their own version. They can’t analyze thousands of techniques in search of the best way to make a pie crust.

Machines can. Computer systems driven by artificial intelligence can compose tweets and blog posts, create art, even generate computer code. And now they’re starting to write recipes.

These recipes have all the components of their handmade forebears: lists of ingredients, precise measurements, step-by-step instructions and introductory notes with (fabricated) personal touches. Their advantage, in theory, is that they draw on a vast trove of online information about food and cooking.

But are they any good? And can they improve on millenniums’ worth of lived culinary experience?

As home cooks, professional chefs and food-magazine editors know, the ultimate test for recipes is Thanksgiving dinner, a sprawling, varied spread that invites high expectations.

So we decided to enlist artificial intelligence — in this case, a technology called GPT-3 — to devise a holiday menu, which we then prepared and presented to a corps of taste testers: four New York Times cooking columnists.

The results say a lot about the technology’s potential, and the very purpose of a recipe.

Before we get to the verdict, let’s explain the science. Designed by OpenAI, one of the world’s most ambitious artificial intelligence labs, GPT-3 is a neural network, a mathematical system that can learn skills by analyzing enormous amounts of data.

Some systems study images; in September, an AI-generated work took the top prize at a state-fair art contest. GPT-3 analyzes digital text, including books, Wikipedia articles, tweets, chat logs, computer programs and, yes, recipes. It can identify billions of distinct patterns in the way people connect words, numbers and symbols, and then use that knowledge to generate its own content — like a Thanksgiving menu of original recipes.

Artificial intelligence is poised to reshape several fields, from email marketing to computer programming. Recipe writing is not a common area of study, but a handful of researchers, including a team at the Massachusetts Institute of Technology, have begun to explore whether AI can master the skill.

In 2016, Janelle Shane, an optics research scientist who runs a machine-learning humour blog called AI Weirdness, began using systems like GPT-3 to create recipes, and then posted them. Early versions of the technology, she said, produced recipes that were a bit, well, weird. They called for nonsensical ingredients like “peeled rice” or “chopped flour.”

Today, she said, many AI recipes can seem indistinguishable from human-made ones.

“What it does really well is sound plausible,” Shane said. “So if you weren’t paying attention and someone was just reading this recipe out loud to you, you would be, ‘Oh yeah, that sounds like a perfectly ordinary recipe.’”

To create our AI Thanksgiving menu, we began by introducing ourselves to the GPT-3 system — in a surprisingly human way.

Mark Chen, an OpenAI research scientist, advised me, Priya Krishna, to get personal. Tell the system about yourself, he said: your family background, what flavours you like, which ingredients you tend to use often.

“The more details you provide in the prompt,” he said, “generally, the better the model performs”.

So after logging into GPT-3 on my laptop, I typed: “I am originally from Texas, and I grew up in an Indian American household. I love spicy flavours, Italian and Thai food, and desserts that are not too sweet. Some ingredients I frequently cook with are chaat masala, miso, soy sauce, herbs and tomato paste.”

Then I wrote, “Show me a Thanksgiving menu made for me.”

The first recipe GPT-3 produced was called ‘pumpkin spice chaat’. I was confused by the concept yet impressed by the inventiveness.

I asked follow-up questions to spur GPT-3’s creativity: Show me a few desserts tailored to my taste preferences. Show me a non-traditional Thanksgiving recipe. Show me a recipe for cranberry sauce that’s not too sweet and a little spiced.

Minutes later, I had a complete menu that seemed both plausible and intriguing: pumpkin spice chaat, green beans with miso and sesame seeds, naan stuffing, roasted turkey with a soy-ginger glaze, cranberry sauce that’s not too sweet and a little spiced (yes, that’s the full recipe name) and pumpkin spice cake with orange cream cheese frosting.

The dishes looked appetizing enough. We used DALL-E, another OpenAI system that generates images, to create photos for each one. And we asked GPT-3 to provide introductions for each recipe, written from my point of view: “This roasted turkey recipe is inspired by the flavours of my childhood.” (It was not.)

Some of the ingredient lists seemed questionable. The naan stuffing called for 32 different components, including two cups of dried fruit. Most of the recipes were suspiciously light on salt and fat. Still, I was hopeful.

Cooking and tasting the recipes all but dashed that hope.

The cake was dense and more savoury than sweet. The naan stuffing tasted like a chana masala and a fruitcake that had gotten into a bar fight. The roast turkey recipe called for a single garlic clove to season a 12-pound bird, and no butter or oil; the result was dry and flavourless.

The chaat, laced with cilantro and baking spices, was a grassy-flavoured mush. The green beans and the cranberry sauce were edible but unremarkable.

Our taste-tasting columnists were even less kind.

“We’re not out of a job,” Melissa Clark said. “I don’t feel anything eating this food,” Yewande Komolafe added.

Genevieve Ko summed it up best: “There is no soul behind it.”

The recipes provided few clues on what cooks should look or smell for during the process, and no reasoning for why ingredients were added in a particular order.

Even before the tasting, Shane, the optics research scientist, suggested lowering our expectations. She called AI-generated dishes “the recipe equivalent of hotel room art”.

Yet the technology, even at this early stage, can have its uses. Chen, the OpenAI scientist, said it could help provide home cooks with some basic inspiration.

“You’ve got something in mind you want to make, you’re not quite sure how to make it, or you have a set of ingredients and I’m not quite sure how to combine it,” he said. “This could be a very quick way to give you a lot of different ideas.”

GPT-3 could also help to personalize an existing recipe by creating a version that’s less spicy, or that incorporates specific flavours, he said.

But cookbook author Nik Sharma, whose work intertwines food and science, worries about the inherent biases of these programs. They draw on the English-language internet, where Western recipes predominate. And when these programs do suggest non-Western dishes, he added, those may be the more generic ones familiar to Americans, like tandoori chicken.

“As food writers, our goal is to drive people into a new direction, to help challenge them, to help them understand the world,” he said. With artificial intelligence, “how do you do that?”

AI has already worked its way into the act of cooking. Home cooks use search engines to find recipes and ask virtual assistants like Amazon Alexa to convert teaspoons to tablespoons.

This technology is not a replacement for people, at least so far. It can nudge cooks in one direction or another. But it is still humanity — with its intuition, storytelling and warmth — that drives a good recipe.

The individual behind the dish is just as important as the recipe itself, Shane said. There is value in knowing that someone took the time to perfect a version of pie, stuffing or turkey, and share it.

“You want to know that these recipes mean something to somebody,” she said. That’s something artificial intelligence may never be able to provide.

Cook Like a Robot: A Sample Recipe

Here’s one of the six recipes that artificial intelligence generated — just as it was given to us, including a narrative introduction meant to sound like reporter Priya Krishna. The recipe hasn’t received the rigorous testing and editing we give the recipes in New York Times Cooking. So if you decide to make it, proceed with caution. (The real-life reporter called it “a grassy-flavored mush”.)

Pumpkin Spice Chaat

Written by the AI system GPT-3.

I grew up in an Indian-American household, and I love spicy flavours. I often do not enjoy traditional Thanksgiving food because it is too bland. I like recipes that have different kinds of flavours and textures, that balance savoury with sweet and spicy and tangy. This recipe for pumpkin spice chaat is perfect for my tastes! It is made with pumpkin purée, chaat masala, ginger, cloves, nutmeg, black pepper, honey, lime juice, cilantro, mango, red onion, and chickpeas. It is a delicious and easy snack or side dish that is perfect for Thanksgiving.”

Ingredients:

1 can pumpkin purée

1 tablespoon chaat masala

1 teaspoon ground ginger

1/4 teaspoon ground cloves

1/2 teaspoon ground cinnamon

1/2 teaspoon ground black pepper

1 tablespoon olive oil

1 tablespoon lime juice

2 tablespoons chopped cilantro

1/4 cup chopped roasted peanuts

1/2 cup yogurt

Instructions:

  1. In a bowl, mix together the pumpkin purée, chaat masala, ginger, cloves, cinnamon and black pepper.
  2. Heat the oil in a pan over medium heat. Add the pumpkin mixture and cook for 5 minutes.
  3. Add the lime juice and cilantro and cook for another minute.
  4. Serve with the peanuts, yogurt and lime wedges.

-New York Times

 

 

 

Comments are closed, but trackbacks and pingbacks are open.

otc high blood pressure treatment blood pressure guidelines medications blood pressure pills that is safe for the liver high blood pressure medication levothyroxine blood pressure medication that reduces blood pressure is there any difference in blood pressure pills high blood pressure child medication blood pressure medication recommendation nose blue blood pressure medication blood pressure is 150 68 should i take my medication blood pressure medication while nursing taking a bunch of high blood pressure pills aerobic exercise and blood pressure medication good blood pressure medication acupuncture treatment for low blood pressure best over the counter pills for high blood pressure blood pressure pill amlodipine besylate high blood pressure signs and treatment moderna vaccine blood pressure medication which blood pressure drugs do not cause tinnitus blood pressure medication fights cancer blood pressure medication skin rash side effects of high blood pressure medication impotence medication to avoid on blood pressure medications high blood pressure rx medication peripheral neuropathy caused by blood pressure medication high blood pressure in pregnancy treatment nice runny nose do to blood pressure medication how to get off of blood pressure pills hiv medication and high blood pressure niacin treatment for high blood pressure two drugs for blood pressure that caused cancer high blood pressure causing medications high blood pressure medication names canada blood pressure medication side effects alcohol i take 3 blood pressure medication blood pressure pills that help with anxiety what iv drug raises blood pressure list of doctors who formulated blood pressure medications how to remember blood pressure medications sleeping pills blood pressure how fast does blood pressure medication take effect sweet n low high blood pressure medication home treatment for blood pressure high blood pressure medication matrocet high blood pressure medication doses blood pressure drug bystolic iberstaron blood pressure medication blood pressure medications st alphabetical celexa and high blood pressure medication does blood pressure pills irritation skin can i take combivent with high blood pressure medication blood pressure medications beta blockers list what to do if blood pressure medication does not work drugs to lower your blood pressure red beet pills for blood pressure taurine and blood pressure medications how ling for garlic pills to lower blood pressure blood pressure medication list and side effects can i take aspirin with high blood pressure medication blood pressure medication teaching about hot tubs water pills high blood pressure over counter what is an arb medication for blood pressure resveratrol high blood pressure medication high blood pressure medication and weight loss gum disease and blood pressure medication benzenesulfonic acid in blood pressure medication taking two blood pressure pills by mistake allergy pills for high blood pressure blood pressure prescription drugs safety blood pressure medication in pregnancy trazodone and blood pressure medication which blood pressure medication is linked to skin cancer list of blood pressure medications with the least side effects could blood pressure medication make blood thicker disadvantages of high blood pressure medication blood pressure medications ludipril typical drugs for high blood pressure otc water pills for high blood pressure blood pressure medications that do not doncause bowel blockage high blood pressure after corrosion treatment how soon does high blood pressure medication work blood pressure medication teaching amertyrine high blood pressure medication increased blood pressure and heart rate after drug overdose over the counter drugs high blood pressure blood pressure medication 25 is blood pressure medication a nitrate most effective blood pressure pills blood pressure medical does red yeast rice interfere with high blood pressure medication can apple cider vinegar pills lower blood pressure does blood pressure medication give you headaches high blood pressure medication and driving should you take blood pressure pills with food inn blood pressure drugs can you eat bananas if taking blood pressure medication popular high blood pressure medication blood pressure medication los blood pressure medication second drug low blood pressure and hypertension medication do water pills lower blood pressure high blood pressure pill aqunadine high blood pressure cholesterol medication how does medication lower blood pressure acetaminophen blood pressure medication blood pressure medication 30 mg that works around the heart what does grapefruit do to blood pressure medication can red yeast rice be taken with blood pressure medication pharmaceutical treatment for high blood pressure are blood pressure pills statins blood pressure pills that start with r blood pressure medication and male impotence taking baby aspirin with other high blood pressure medications what is the medical name for a blood pressure cuff leg cramps and blood pressure medication blood pressure pill name starts with p natural high blood pressure treatments blood pressure medication names losartan higher blood pressure with radiation treatment medical marijauna high blood pressure how to avoid medication for high blood pressure what time is best to take blood pressure medication medication for palpitations and high blood pressure latest news on blood pressure treatment what if i take two blood pressure pills does xanax interfere with blood pressure medication amlipan blood pressure medication vitamin e and blood pressure medication tell me the side effects of high blood pressure medication herbs pills to lower blood pressure blood pressure medication urge to urinate what medication will safely replace lisop as blood pressure medicine active ingredient in high blood pressure medication blood pressure medications cause adrenal tumors is biktarvy ok to take with high blood pressure medication alembic blood pressure medication sandoz blood pressure medication exercise high blood pressure medication grapefruit pills blood pressure treatment for high blood pressure at home blood pressure medication for patients with osa cycle on off blood pressure medication blood pressure drugs that do not cause heat sensitivity blood pressure medications that do not cause coughing what blood pressure medications do not cause rosacea pfizer blood pressure medication side effects do garlic pills really help lower blood pressure should i take medication for anxiety induced blood pressure treatment for uncontrolled blood pressure decongestant medication high blood pressure can stiff days be used with high blood pressure medication how long does it take medication to lower blood pressure what if i miss a blood pressure pill tribenzor high blood pressure pills law lawsuit 2023 treatment of sudden drop in blood pressure zoloft and blood pressure medication orange high blood pressure pill cancer blood pressure pill why cant people with high blood pressure take keto pills how long for blood pressure to go down mini pill should i get second opinion before taking blood pressure medication blood pressure erectile dysfunction medication high blood pressure medication m lot ben medical device lowers blood pressure puppy ate blood pressure pill are there medications for low blood pressure dod blood pressure medication is losartan a blood pressure pill combination drugs for blood pressure marijuana and blood pressure medication interaction blood pressure medication interactions with grapefruit can you eat bananas while taking high blood pressure medication steps before going on high blood pressure medication blood pressure medication when to cut down foods to avoid on blood pressure medication blood pressure medications depression blood pressure medication non beta blocker tattoos and high blood pressure medication what is the medications used to lower blood pressure quickly high blood pressure medication leg swelling blood pressure medication men in your 40s blood pressure medication wieight loss blood pressure medication hy can blood pressure medication lower blood sugar does blood pressure medication make you pee natural treatment high blood pressure during pregnancy can you take l arginine with high blood pressure medication what class of blood pressure medication can can blood pressure pills reduce appetite faa approved medication for high blood pressure high blood pressure medication during pregnancy best blood pressure medication for type 2 diabetes blood pressure and pain medication pain medication that does not affect blood pressure best high blood pressure drugs on the market if you take incorrect medications to lower blood pressure low blood pressure treatments does your body have to adjust to blood pressure medication why water pill for high blood pressure drugs for treatment of very high blood pressure during pregnancy can i drink grapefruit juice with high blood pressure medication can blood pressure pills make you feel cold high blood pressure medication that helps with weight loss amlodipine blood pressure drug blood pressure medication for infants varicose veins blood pressure medication life extension high blood pressure medication does tylenol interfere with blood pressure medication can i take diamox with other high blood pressure medications prestige medical blood pressure cuff calibration drugs used for high blood pressure chamomile tea and high blood pressure medication narcotics stored alongside blood pressure medications in does nutrigrove blood pressure pills work extremely low blood pressure treatment blood pressure medication for iga nephropathy blood pressure medication low side effects can i increase my blood pressure medication what is the best blood pressure medication to take drugs that cause increased blood pressure does biotin interfere with high blood pressure medication cani od on high blood pressure pills blood pressure medication that also helps with jerking blood pressure medication categories first line treatment of high blood pressure medication for low blood pressure in usa armour thyroid drug interactions blood pressure meds hepatitis c treatment high blood pressure high blood pressure arb drugs low blood pressure treatment with essential oils high blood pressure medication list for pregnancy blood pressure medication and snake venom blood pressure medication low dose liquid blood pressure medications ivf drugs and high blood pressure left my blood pressure medication does it matter when you take blood pressure medication can you take blood pressure pills twice a day privilin blood pressure medication how big are blood pressure pills once you start blood pressure medication can you stop diuretic in blood pressure medication what medication reduce blood pressure new blood pressure treatment prescribed home medications for high blood pressure blood pressure medication side effects forums taking blood pressure pills dizzy when bend over a lot blood pressure medication and nyquil cinnamon pills and high blood pressure temporary high blood pressure treatment single agent blood pressure medication blood pressure medication made in china fda approved medications to reduce blood pressure immediate treatment for high blood pressure at home best time to take blood pressure pills muscle loss on high blood pressure medication blood pressure medication when needed treat high blood pressure without medication blood pressure medication side effects for men cbd pills for high blood pressure blood pressure regulation without medication blood pressure medication and pre workout high blood pressure alzheimer disease and antihypertensive treatment miss blood pressure medication blood pressure pills suicide peaceful emergency drugs for low blood pressure common blood pressure medications in canada systolic blood pressure define medical viril and high blood pressure pills can statin drugs help lower blood pressure do you have to wean off blood pressure medication new drugs for blood pressure when is high blood pressure medication necessary drugs for hi blood pressure cold medications and blood pressure taking 2 blood pressure pills mistake why doctors stopped prescribing blood pressure medication common high blood pressure medication canada what side effects does blood pressure medication have ulcer medication high blood pressure can high blood pressure medication elevate alkaline phosphatase blood pressure medication warning getting blood pressure medication jamaica alkaline water and blood pressure medication blood pressure going up and down with medication drugs reduce systolic blood pressure treatment for rapid high blood pressure low blood pressure alternative treatment do all high blood pressure medications cause weight gain medication for increasing blood pressure blood pressure medication for african american males vitamins for high blood pressure treatment aleve with blood pressure medication how to lower blood pressure without pills blood pressure triple pill who blood pressure guidelines for hygiene treatment what drug reduces blood pressure blood pressure medications enalapril met blood pressure medication