Moment Estimate and Variational Approach for Learning Generalized Diffusion with Non-gradient Structures