Beyond bag of words NLP

I have tried RNN’s and Multi Size CNN architectures but can you pls explain on how RNN and CNN will be able to do beyond bag of words model since we have used vocab_sizes in all of them ?