Breaking Semantic Artifacts for Generalized AI-generated Image Detection