Alex's training used a model/rival technique, where the student (Alex) observes trainers interacting.
This technique helped Pepperberg succeed with Alex where other scientists had failed in facilitating two-way communication with parrots.