Japan's trade deficit narrowed to 231.7 billion yen in October, beating market expectations of a 280 billion yen shortfall and signaling a modest improvement in the nation's trade balance.