The highest-ranking U.S. officer to visit Thailand since a 2014 coup will attend a military exercise next month in what the Thai army hailed on Wednesday as a sign of improving relations.

The United States scaled down its presence at Cobra Gold, Asia's largest annual multinational military exercise, as one of the former U.S. administration's measures to pressure the Thai government to restore democracy.

Relations have since improved as the junta has taken steps toward holding elections — and as Thailand has grown closer to dominant regional power China.