The costs of adopting artificial intelligence are soaring, but so are some executives’ expectations.