The production of ketone bodies by the liver which occurs during starvation, diabetes, or low carbohydrate diet.