He started composing poetry at the age of 7, and by around 15 he was being compared to the yuefu master Li Yi.
Han Yu, who admired his poetry, wrote Hui Bian (諱弁) to encourage him to take the exam, but Li was ultimately unsuccessful.