Two goals from Salomon Kalou and one by Marko Basa put the home team 3-0 up inside 48 minutes.
Lille, the 2011 champions, were then booed off the pitch after Sochaux hit back with a double from Vincent Nogueira and a goal by Cedric Kante.
The draw kept Lille in fifth spot, level on 57 points with fourth-placed St Etienne who visit third-placed Lyon (59) on Sunday.
The top two qualify for the Champions League and the team in third go through to the preliminary round.
Marseille, in second spot on 61 points, travel to Lorient on Saturday while leaders Paris St Germain (70) meet Evian Thonon Gaillard on Sunday.