Perverse instantiation is a type of AI failure mode involving the satisfaction of an AI's goals in ways contrary to the intentions of those who programmed it.