The formation of AGEs begins with the initial glycation of a protein, lipid, or nucleic acid, leading to the creation of unstable intermediates known as Amadori products. Over time, these intermediates undergo further complex reactions, resulting in stable AGE compounds. Factors such as high temperatures, prolonged cooking times, and the presence of certain metals can accelerate AGE formation in foods.