Learn how to generate adversaries for convolutional neural networks (CNNs) in this informative article. The author shares how they manipulated an image of a cat to make it appear as a goldfish to an AI model used by the local municipal corporation for registering pets. The author used PyTorch to add noise to the original image within a restricted range to manipulate the final probability values without making the image appear different to the human eye. After manipulating the loss function, the AI correctly recognized the cat as a goldfish. The author was curious about the noise pattern but didn’t investigate further due to their immediate need to register their pet.
source update: My Cat Is a Goldfish, so Dont Tax It. – Towards AI