Mysterious Rotation Keyframing

I have no idea what this problem is called, but it has something to do with random rotations getting thrown in when animating a robot arm I made.

Attached is an example of the problem. Are there any setting I could tweak to fix this?

Attachments

insane_rotation_demo.blend (728 KB)