Deviation refers to the bending of light as it passes through a medium or interface between two different mediums, causing the light to change direction. Refraction specifically refers to the bending of light as it passes from one medium to another, due to a change in the speed of light. So, deviation is a broader concept that includes refraction as a specific type.