Naive, silly solution:
Talk to them! Explain the situation and them put some food nearby (but outside your home)
I noticed that talking to plants, water and vegetables can help (remember my Masaru Emoto rice experiment?)
https://steemit.com/experiment/@andrew0/the-masaru-emoto-rice-experiment-my-home-made-test-and-its-results
Yes I remember your experiment. It's one of the most awesome things I've ever seen! Hey who knows maybe the ants will listen!
I had ants invasions years ago, just because I left some candies in the kitchen near the window, so they were able to arrive, I think giving them some yummy alternative nearby may solve the problem without mass-killing, but I also believe that talking them (even if they don't understand your language) may be an additional attempt to dissuade them :) call me crazy, I am!
Inventors, poets, artists, musicians are all crazy and who wants a world without them?