Robust AI generated text detection through multi-grained latent feature denoising and contrastive representation learning | Synapse