The ketogenic diet, consisting of high-fat foods and very few carbohydrates, is believed to trigger biochemical changes that eliminate seizure-causing short circuits in the brain's signaling system.