WASHINGTON — Suicides in the U.S. military increased in 2023, continuing a long-term trend that the Pentagon has struggled to abate, according to a Defense Department report released Thursday. The increase is a bit of a setback after the deaths dipped slightly the previous year.

The number of suicides and the rate per 100,000 active-duty service members went up, but that the rise was not statistically significant. The number also went up among members of the Reserves, while it decreased a bit for the National Guard.

Defense Secretary Lloyd Austin has declared the issue a priority, and top leaders in the Defense Department and across the services have worked to develop programs both to increase mental health assistance for troops and bolster education on gun safety, locks and storage. Many of the programs, however, have not been fully implemented yet, and the moves fall short of more drastic gun safety measures recommended by an independent commission.

In a statement Thursday, Austin said the new figures “urgently demonstrate the need for the Department to redouble its work in the complex fields of suicide prevention and postvention.” The department is urgently putting in changes, he said, adding: “There’s still much more work to do, and we won’t let up.”

The increase was fueled by spikes in the number of Army and Air Force deaths, while the Marine Corps and Navy saw a small dip.

Overall, there were 523 reported suicides in 2023, compared with 493 in 2022. The number of active-duty troops who died by suicide increased to 363 from 331.

Officials have said that due to the decreasing size of the active-duty force in recent years, they believe the rate of suicides, rather than the number, is a more accurate measure. The suicide rate is calculated based on an active-duty force of about 1.28 million, plus about 330,000 Reserves and nearly 430,000 in the Guard. The rate for active-duty service members and Reserves went up, while the Guard was lower.

More broadly, however, the trend since 2011 has been an increase in suicides among active-duty service members, while the Guard and Reserve have stayed largely stable.

The analysis in the annual report also shows continuing trends for those who die by suicide and how they do it. The report shows that young, male enlisted troops still make up the vast majority of the suicides, and that the bulk of the deaths involve the use of a firearm.