The U.S. and Russia failed to come to a deal Monday on how to end the bloodshed between U.S.-backed rebels and Syria’s Russian-aligned regime, but vowed to keep up negotiations as the G20 summit in China came to an end.

President Barack Obama and Russian leader Vladimir Putin attended an economic summit as pressure mounted to get a deal done. Obama and Putin huddled for 90 minutes on the sidelines of the G20, according to a senior White House official.

The official told the Associated Press that the two sides clarified some of the large gaps in how a deal would be implemented. The two leaders directed their teams to schedule a meeting for some time later this week.

Secretary of State John Kerry and Russian Foreign Minister Sergey Lavrov also met, but came out of their meeting without a deal to announce. The two diplomats met for an hour but emerged still at oods on certain issues, a senior State Department official said.

The talks culminated a several weeks of searching for a cease-fire between Syrian President Bashar Assad's government and moderate rebels that would expand access for hundreds of thousands of civilians caught in the crossfire. The strategy has hinged on an unlikely U.S.-Russian militarily partnership against extremist groups operating in Syria.

But beyond the Islamic State and Al Qaeda, the two powers have conflicting views about who fits in that category - as well as a deep and mutual distrust that the other party will hold up its end of the bargain.

"We're not there yet," Obama told reporters Sunday. "It's premature for us to say that there is a clear path forward, but there is the possibility at least for us to make some progress on that front."

Kerry and Lavrov hoped that a deal could come together and even scheduled a press conference to announce what they were speaking about. Those plans were canceled after both parties couldn’t reach an agreement.

"I've said all along we're not going to rush," said Kerry, who has negotiated several failed truces with Russia in recent months.

Kerry said the two sides had worked through many technical issues but said the U.S. didn't want to enter into an illegitimate agreement. In recent days, the State Department has said it only wants a nationwide cease-fire between Assad's military and the rebels, and not another "cessation of hostilities" that is time-limited and only stops fighting in some cities and regions.

The talks faltered Sunday when Russia pulled back from agreement on issues the U.S. negotiators believed had been settled, the State Department official said.

As the diplomats were negotiating, Syrian pro-government forces backed by airstrikes launched an offensive in the northern city of Aleppo, capturing areas they lost last month and besieging rebel-held neighborhoods. It was a major blow to insurgent groups that was likely to raise fresh concerns about Russian support for the Syrian military's attacks on Assad's opponents.

The Syria conflict has killed as many as a half-million people since 2011 and caused millions of Syrians to flee their homes, contributing to a global migration crisis. Amid the chaos, IS has emerged as a global terror threat.

Kerry and Lavrov's talks represent their third significant attempt since July to finalize a new U.S.-Russian military partnership that Moscow has long sought. The package would include provisions so aid can reach besieged areas of Syria and measures to prevent Assad's government from bombing areas where U.S.-backed rebels are operating.

U.S. officials have said that as part of a deal, Russia would have to halt offensives by Assad's government, something it has failed to do over months of diplomatic efforts. And the U.S. must get rebels to break ranks with the Al Qaeda-linked Nusra Front, a task that grew tougher after its fighters last month successfully broke the siege of Aleppo, Syria's largest city and the site of fierce recent fighting.

Negotiators on both sides have spent weeks poring over maps of potential areas where opposition groups operate and where Assad's forces would be prohibited from launching airstrikes. The idea is for Russia to use its significant influence over Assad to ensure compliance with the deal.

But the U.S. has long been skeptical of the military coordination part of the deal, because it says Russia has mainly targeted moderate, U.S.-backed opposition groups in a bid to prop up Assad. The U.S. wants Russia to focus exclusively on ISIS and Al Qaeda-linked groups. Both Defense Secretary Ash Carter and National Intelligence Director James Clapper have expressed misgivings about sharing intelligence and targeting information with Moscow.

Neither side explained Sunday in detail what sticking points remain. Kerry said the U.S. wanted a deal with the best chance for survival. Lavrov's deputy, Sergei Ryabkov, said a deal was "close" but that Washington had to dissociate itself from Nusra.

"Many of the groups considered acceptable by the U.S. have actually affiliated with the Nusra Front, while the Nusra Front is using them to avoid being attacked," Ryabkov told Russian media, citing a longstanding complaint of his government.

The Associated Press contributed to this report.