I think algorithmically they can only discount links from bad neighborhoods, etc... but if they catch you, they will manually penalize you.
I think we are a ways away from social signals being a "big factor." While google does claim that they look at social signals, I think from a practical standpoint the only value they provide is raising a red flag when someone manipulates social signals like buying likes and plus ones. The same way google looks at a link profile of a site, they can catch a bad social profile that seems unnatural.
In reality, links are almost never seen as a negative. Which is really a shame, because it makes it harder for good-guy SEO's to legitimately build links when you can just buy 10,000 on Fiverr and not worry about it. And most black-hat SEOs buy links from many players, so even if some are discounted they won't usually still come out on top.
Google is getting better at it though. Recently they've been cracking down on blog networks. This is purely conjecture, but I do believe that links are on their way out as the primary signal.
By buying links (undetected) you can manipulate the quality and relevancy of your website in Google's eyes and cause it to rank better than it should.