TOKYO, JUNE 27 -- Japan has long been pressing Washington to raise taxes to cut the U.S. federal deficit, and a senior Tokyo official today said that may have helped get President Bush to agree to the idea of ''tax revenue increases.''

Misoji Sakamoto, chief Cabinet secretary, said Japanese officials strongly supported U.S. measures to cut the budget deficit in talks with U.S. negotiators here this week.

Until late tonight, however, U.S. officials were questioning whether Japanese leaders were ready to take the same kind of hard political decision Bush did in shifting on taxes.

Tonight, following a telephone conversation between Bush and Prime Minister Toshiki Kaifu, there were suggestions of a compromise on the critical question of Japanese spending on public works.

The Tokyo talks are aimed at reducing Japan's $49 billion trade surplus with the United States by making structural changes in the economies of both nations.

''President Bush may have paid consideration to such an opinion'' regarding higher taxes, an official of the prime minister's office quoted Sakamoto as telling a news conference.

The U.S. budget deficit is regarded as a spur to U.S. consumption that increases demand for Japanese imports and thus contributes to the trade imbalance.

Early Tuesday, a U.S. official involved in the talks said that Japan had failed to show political will to match Bush's statement that tax revenues must be increased to help cut the U.S. budget deficit.

''It took more political courage to raise {tax} revenues than it would to increase public spending,'' the U.S. official said. ''The president made an important decision. We hope our Japanese friends realize that.''

After the Bush-Kaifu talks, however, the U.S. official said, ''This represents a breakthrough. Without an agreement on public works spending {Wednesday}, I doubt we could finish the talks by {Thursday}.''

The talks had been extended by a day because of failure to decide major issues.