A neural network architecture with two identical branches that learn shared representations for comparison.