Check the clamp on the boot on the engine head. I had the same problem on my 450X. I found that clamp was loose allowing for an air leak. 60+ mile ride after that with no idle issues. I love simple fixes.
Another thought is maybe the thottle position sensor is bad or a loose connection?