The big banks are spending around $1.5 billion a year each on technology and AI, and smaller lenders are struggling to keep up.