In her book Artificial Intelligence - A Guide for Thinking Humans, Melanie Mitchell explains that convolutional neural networks fail to build a useful model for these two classes of images, yielding chance classification for unseen images.
Image from: https://www.foundalis.com/res/bps/bongard/p057.htm
This surprises me because convolutional networks look very close to the idea embedded in the images: they can detect an object regardless of its position. If splitted in two convenient regions, and taking any of them as a filter, the other region would be perfectly detected in the sameness case, and would yield a low match in the different class.
How should this additional step of splitting be added to the convnet classifier to be able to model sameness?