Global investment in artificial intelligence is expected to continue expanding in 2027, although technology companies could face increasing pressure to demonstrate that the massive spending is translating into sustainable financial returns, according to UBS.