The most relevant connection between Gorbachev’s desire to improve the Soviet Union and the Soviet Union’s relationship with the United States is:
Their relationship had to improve for the Soviets to reduce military spending.
Gorbachev recognized that reducing military expenditures was essential for economic reform and modernization in the Soviet Union. Improving relations with the U.S. would create conditions for arms reduction agreements and help divert resources from military to domestic needs.