r/programming • • Dec 09 '13

Reddit’s empire is founded on a flawed algorithm

http://technotes.iangreenleaf.com/posts/2013-12-09-reddits-empire-is-built-on-a-flawed-algorithm.html
2.9k Upvotes

503 comments sorted by

View all comments

42

u/raldi Dec 10 '13

Our hypothetical subreddit only averages 10 people on the New page, so our attacker can defeat them simply by maintaining 10 sock puppet accounts

Maintaining ten sockpuppet accounts, and successfully using them together to manipulate votes, is harder than you think. And reddit's immune system has only gotten craftier in the three years since I ran it.

46

u/payco Dec 10 '13

You know what would make it even harder? A rank system that doesn't immediately penalize a post over 11000 points (and counting) for changing from +1 to -1 in combined score.

4

u/[deleted] Dec 10 '13

technically it goes from +1 to 0

8

u/payco Dec 10 '13 edited Dec 10 '13

Well, it loses half that 11000 on the +1->0 shift, and the other half on 0->-1. Neither of those steps is good, but that two-step delta is SUCH an outlier compared to the fractional points any other vote changes, so I just grouped them together.

8

u/raldi Dec 10 '13

The point is to make sure the first 20 or so items are good. If the site accidentally puts the 87th-best post in spot #13862, 99.99999% of redditors won't care or even notice.

5

u/payco Dec 10 '13

And if #20 on a small sub is a month (or even a week) old with a very stable score, how much good is it doing there?

2

u/payco Dec 10 '13

Besides, I have to imagine that more than 0.00001% of reddit users read more than 4 pages of their overall feed in a sitting, based on all the complaints I see of all-purple links. I know I've let RES sweep me away well into the double digits. I'd be willing to bet a post correctly placed on page 5 will be seen by well over half of its potential audience. I don't think the same could be said if it were placed on page 693.

5

u/raldi Dec 10 '13

> 99% of redditors never visit anything except the front page and the comments on the front-page links.

2

u/payco Dec 10 '13

I see. I'll defer to you on that.

So >99% of redditors only view the top 20 posts each day. Why do you even bother saving anything but the top 20 of each subreddit? So do <1% of redditors ever sub to non-default subs? If so, why bother hosting any but the defaults, much less user-generated subs? I'm pretty sure <1% of users vote. Why not eliminate voting, at least as a way of effecting change? May as well

1

u/[deleted] Dec 10 '13

You guys are developing for the lowest common denominator? Seems like the wrong attitude to have.

1

u/Golden_Kumquat Dec 10 '13

What post are we talking about?

5

u/payco Dec 10 '13 edited Dec 10 '13

Any given young post. A brand new post starts at +1 karma with a bonus of (seconds since December 2005)/45000 to boost it above old content. That time-based bonus is worth about 5500 points (if I did my math right earlier). If that brand new post immediately gets a downvote, it loses the time bonus, so it has a total score of 0. If it gets another downvote, it actually get the time-bonus subtracted from it. That's a total penalty of 11000 points for two downvotes.

4

u/lost_my_pw_again Dec 10 '13

That is dodging the issue. With 10 accounts you dominate that subreddit (either human or bots). That clearly can't be intended given you have 300 real users waiting on /hot to make it so much harder to mess with the system.

4

u/passthefist Dec 10 '13

The quickmeme guy did something similar to manipulate non-quickmeme posts. So unless something changed (that guy got caught, but it was people sleuthing, not automatic detection), I'm pretty sure it's still easy to control content.

Suppose I have some bots, and I want to game the system to kill posts with some criteria. If a post matches my criteria, then some but not all bots downvote with say 60% probability, otherwise 50/50 up-down. That'd look fairly normal to most people looking over the voting pattern other than them only voting in new, but because even a small negative difference kills things quickly, it would let me selectively prevent content from bubbling to a front page.

There's stuff in place to look for vote manipulation, but would a scheme like this be caught? A much dumber one worked for /u/gtw08, he might still be gaming advice animals if he was clever.

3

u/raldi Dec 10 '13

Beats me. My point wasn't that reddit can't be gamed; it was that the article is wrong when it implies it's trivial.

0

u/passthefist Dec 10 '13

I think that idea would be fairly trivial. It's not much different than quickmeme.

I wonder how difficult it'd be to downvote my own submissions... I might have to POC that. Doesn't seem like that'd violate the TOS.

8

u/monochr Dec 10 '13

It really isn't. If I were interested I could do it by just infecting 10 computers with a McVirus I can buy for $200 for some other reason and use a cnc server somewhere to tell them what to downvote. IP's aren't connected, they are all running java/flash, the chances of them ever being discovered are zero.

You also have the voting brigades like /r/bitcoin with their irc's and the like. Try and post a negative bitcoin story and see it languish in limbo for ever. Or any number of other topic with people with more time than sense interested in them.

This makes subreddits turn into echo chambers and makes only the least populated ones useful. If you want world news that aren't just sensationalist bullshit you're better off finding a non-default subreddit with less than 20 substitution per day so all of them show up on the front page.

6

u/[deleted] Dec 10 '13

That's a little over the top.

I could reasonably just manually run 10 accounts out of 10 IP addresses. If I'm using this small botnet to get paid, it'd be super easy to maintain 10 "real" accounts.

I guess the trick would come at the actual time of vote, but I'm a clever guy, and there are even cleverer folks out there than I. I feel like I could figure something out.

16

u/FredFnord Dec 10 '13

It really isn't. If I were interested I could do it by just infecting 10 computers with a McVirus I can buy for $200 for some other reason and use a cnc server somewhere to tell them what to downvote. IP's aren't connected, they are all running java/flash, the chances of them ever being discovered are zero.

You make some interesting assumptions about how they detect such things. If I were one of them (I'm not) I'd be kind of insulted that you are assuming that, after say 30 seconds of thought, you have already come up with all the possible ways that they could have in their bag of tricks to detect such things.

Spend a little more time thinking about it, and thinking about what kind of information they have access to. Perhaps you can come up with some other ways that they could figure out what machines you control.

Alas, voting brigades of actual people take longer and are more difficult, for reasons that should be obvious. But they do eventually get shadowbanned too.

If you want world news that aren't just sensationalist bullshit you're better off finding a non-default subreddit with less than 20 substitution per day so all of them show up on the front page.

Alas, I am afraid that this has nothing whatever to do with vote brigades or armies of downvote-bots, and everything to do with people. If you don't like people, or at least don't like the behavior patterns of large groups of frankly quite similar people, then most reddit comment sections aren't for you.

10

u/raldi Dec 10 '13

If I were one of them (I'm not) I'd be kind of insulted that you are assuming that, after say 30 seconds of thought, you have already come up with all the possible ways that they could have in their bag of tricks to detect such things.

I wish I could do more than just upvote this.

Oh wait, I can.

7

u/raldi Dec 10 '13

If I were interested I could do it by just infecting 10 computers with a McVirus I can buy for $200 for some other reason and use a cnc server somewhere to tell them what to downvote.

You could make an awful lot of money if that were true, but it's not.

-9

u/monochr Dec 10 '13

You really shouldn't tempt bored people who know how to code with idle boasts like that. You've gotten me half way to putting aside my graduate work and coding up a upvote-at-home client that uses nothing but mouse movements and firefox as a proof of concept just to prove someone smug on the internet wrong.

The next step would be to write one up that's distributed, has a centralized control server and shares the revenue with the people who install it, probably by using bitcoin micro-payments.

→ More replies (27)

3

u/Kalium Dec 10 '13

It really isn't. If I were interested I could do it by just infecting 10 computers with a McVirus I can buy for $200 for some other reason and use a cnc server somewhere to tell them what to downvote. IP's aren't connected, they are all running java/flash, the chances of them ever being discovered are zero.

Such brigades are very, very obvious when you have logs to look at. Which reddit does. This might have been clever is 1995.