Shen earned his bachelor’s degree in arts from Shanghai Jiao Tong University. After that, he majored in mathematics from the University of Columbia, US, and later joined Yale University, the US, for his master's.