Gao Shaoyi was the third son of
Emperor Wenxuan,
Northern Qi's first emperor. His mother was Emperor Wenxuan's
concubine Consort Feng, who carried the title of
Shifu (世婦), a title for third class imperial consorts. It is not known when he was born. On 30 September 559, Emperor Wenxuan created him the Prince of Guangyang. After Emperor Wenxuan's death later that year, Gao Shaoyi's older brother
Gao Yin became emperor (as Emperor Fei), and on 28 January 560, Emperor Fei changed Gao Shaoyi's title to Prince of Fanyang. During Emperor Fei's reign and the subsequent reigns of Gao Shaoyi's uncles
Emperor Xiaozhao and
Emperor Wucheng, Gao Shaoyi was gradually promoted through the official ranks, and, during Emperor Wucheng's reign, he was the mayor of the capital
Yecheng. He was said to like drinking with his associates, and he was accused of having his
eunuchs kill his teacher Ren Fangrong (任方榮). Emperor Wucheng caned him 200 times, and then sent him to Emperor Wenxuan's wife Empress
Li Zu'e, who further caned him 100 times. Nothing is known about Gao Shaoyi's activities in the following years. In 577, with rival
Northern Zhou having launched a major attack on Northern Qi, then-emperor
Gao Wei (Emperor Wucheng's son) fled from the secondary capital Jinyang (晉陽, in modern
Taiyuan,
Shanxi) back to Yecheng, and he made Gao Shaoyi the governor of Ding Province (定州, roughly modern
Baoding,
Hebei). Subsequently, after Gao Wei was captured by Northern Zhou forces, most Northern Qi provinces surrendered. However, Zhao Mu (趙穆), the former gubernatorial secretary of Northern Shuo Province (北朔州, roughly modern
Shuozhou,
Shanxi), captured the Northern Zhou general (and former Northern Qi general) Feng Fuxiang (封輔相), whom
Emperor Wu of Northern Zhou had made the military governor of the Northern Shuo Province and tried to welcome Gao Shaoyi's uncle Gao Jie (高湝) the Prince of Rencheng to Northern Shuo Province to head the resistance, but could not do so. He therefore welcomed Gao Shaoyi instead, and when Gao Shaoyi arrived at Mayi (馬邑), the capital of Northern Shuo Province, the people of the local region supported his resistance movement. He led his troops south to try to recapture Jinyang, but was unsuccessful in first sieging Xinxing (新興, in modern
Xinzhou,
Shanxi), and Northern Zhou's counterattack was successful in capturing Lu Qiong (陸瓊), the governor of Xian Province (顯州, part of modern Xinzhou), and Gao Shaoyi retreated to Mayi. As the Northern Zhou general Yuwen Shenju (宇文神舉) approached Mayi and defeated Gao Shaoyi, Gao Shaoyi decided to flee to
Tujue. At this time, he still had about 3,000 men, and he issued an order, "If you want to return, do so." More than half took up his offer and left him. When Gao Shaoyi arrived at Tujue, Tujue's
Tuobo Khan, who had long admired Emperor Wenxuan, saw that Gao Shaoyi, like Emperor Wenxuan, had a particularly large ankle, and therefore particularly favored and respected Gao Shaoyi. He transferred the former Northern Qi subjects, whether they fled to or were captured to Tujue, to be under Gao Shaoyi's command. ==Imperial claim in exile==