Teaching Language Models to Self-Improve through Interactive Demonstrations