The ketogenic and Paleolithic diets both restrict whole grains and legumes. Their differences lie in fats and carbs.