Similar Items: Simulating Hard Attention Using Soft Attention