Ms. Le described an effort in which students write themselves motivational messages. The company then sends them back “later in the term, when we know motivation flags,” she wrote. The messages are part of a suite of interventions that have been found to improve student retention.