r/programming • u/youngian • 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
100
u/techstuff34534 Dec 10 '13 edited Dec 10 '13
As far as I understand this isn't due to caching or load balancing. It is there to make it hard for spammers to know if their votes are being counted or not. I don't have a source offhand or know exactly how it prevents spammers, but I have heard several times they give plus or minus X votes to make the true number less obvious. X is based on the total votes, so on a brand new post its just a few but on popular posts it can fluctuate a lot.
Edit:
That's how it is supposed to work. If one post gets -2 votes in 10 minutes, and another one get -2 votes in 15 minutes, the first one is, theoretically, a worse post.
Definitely a bug in my opinion
72
u/NYKevin Dec 10 '13
What happened 8 years ago yesterday? That's not reddit's birthday.
25
u/perciva Dec 10 '13
One argument in favour of this behaviour is that a post which is so horrible that it gets 10 downvotes in its first hour is nowhere near as bad as a post which takes a whole day to get the same number of downvotes.
34
u/iemfi Dec 10 '13
Perhaps it is by design that they want posts with more absolute votes nearer the top? They could reason that a much hated post is "hotter" than a post that is just rather banal. It is something of a guilty pleasure to read particularly terrible troll comments.
3
u/youngian Dec 10 '13
Author here. Thanks for all the interest! I posted a quick follow-up with some corrections and other items of interest that came out of the discussion: http://technotes.iangreenleaf.com/posts/2013-12-10-the-reddi....
And of course, if you would like more articles written by me and an extremely high signal-to-noise ratio (because I post so rarely...), consider subscribing: http://technotes.iangreenleaf.com. RSS is not dead, dammit.
343
u/BenSalama21 Dec 10 '13
I noticed this with my own posts too.. As soon as it is down voted seconds after posting, it never does well.
215
u/IAmSnort Dec 10 '13
So, when browsing new, always downvote?
223
u/[deleted] Dec 09 '13
I've reported a UX issue a bunch of times (how many times do you click on a link only to see a comment with no attached link?)
That's because the UX they used implies that you can fill out both the "link" and "text" panels, when in actuality you can only fill in one.
Super easy fix, and I still click on submissions missing the actual link all the fucking time.
121
u/raldi Dec 10 '13 edited Dec 10 '13
The real flawed reddit algorithm is "controversy". It's something like:
...which means something with 1000 upvotes and 500 downvotes will be considered less controversial than something with 2 upvotes and 2 downvotes.
A much better algorithm for controversy would be:
(Edited to change 999 to 500.)
27
u/dashed Dec 10 '13
tl;dr: Posts whose net score ever becomes negative essentially vanish permanently due to a quirk in the algorithm. So an attacker can disappear posts he doesn't like by constantly watching the "New" page and downvoting them as soon as they appear.
33
u/redditfellow Dec 10 '13
Interesting find. So I need to make 10 socks to remove all these damn cat pictures. Got it
4
u/[deleted] Dec 10 '13 edited Dec 10 '13
Have you tried discussing this with Randall Monroe (of XKCD fame)... ? He designed the algorithm. He either might be a good ally on this issue, or have an explanation of why this method persists.
edit: Shit.. Sorry folks, I mixed up my algorithms.
9
u/Ostwind Dec 10 '13
Downvoting to the frontpage so that everyone understands
42
u/raldi Dec 10 '13
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.
43
u/[deleted] Dec 10 '13 edited Dec 10 '13
yes.
i had this exact same argument with reddit devs about five years ago. once a score goes negative - the more negative it is the higher it is ranked.
i could not, for the life of me, understand how they didn't see this for the obvious flaw which it is. they said the same things to me that they said to you "we like it that way."
it was at that point i realized that the reddit devs are not very bright.
EDIT: the discussion in question: http://www.reddit.com/comments/6ph35/reddits_collaborative_filtering_algorithm/c04ixtd
5
u/mjbauer95 Dec 10 '13
As seconds get bigger, the "freshness" of Reddit matters more and more while votes matter even less. As seconds approach infinity, Reddit hot will be identical to Reddit new.
9
u/Shakakai Dec 10 '13
Solid technical breakdown but I had a couple comments on the conclusions:
12
u/[deleted] Dec 10 '13
It reads like a way to cut down on noise.
Have you ever been on reddit when a major win/death happens? When a Starcraft tournament/election/sporting event announces a winner, you want the single post that gets the most attention early to be the "real" discussion thread, and all other threads to get crushed into ignominy quickly so that the front page doesn't get too cluttered too quickly. Your proposed change would make janitorial work that much harder.
I'd suggest that around -1 or -2, a post is probably getting all the downvotes it needs. Whereas if a post is at -389, it's probably got a lot of good discussion, or something else newsworthy happening inside.
Think of spam: Do you need 5-10 people deciding if viagra spam is worth reading? Don't you think 3 people are enough? But if 5-10 people see each spammy post, then reddit might get a reputation as a spammy site. Keep in mind that the word of the admins is that 50%+ of all submissions are from spammers. Do you see those links, ever? Yet a major job of the site admins is keeping reddit spam-free. IT people here should understand the idea of a thankless task: as long as the site has mostly content, you assume the admins aren't doing much, but in reality you would never know what they're doing if they're doing it well.
Yet, if I'm reading through reddit and looking for things of interest, a post with two positive votes will probably be more interesting to me than anything with a negative score, regardless of when it was submitted. The only way that negative-scored posts should get seen is chronologically (via the new feed) or by a specific search... in both cases, the person seeing the post wants to. (Remember, the huge majority of reddit users are consumers, not voters.) If I see negative-scored posts while simply paging through a reddit's submissions, I'm going to be turned off and assume there's nothing more out there that will be interesting to me.
Look at it this way: what's hotter, a post with +1,000 votes from a month ago, or a post with -2 votes from a second ago? Your article assumes that people would rather see new, crappy content than old, good content, which is generally not the case.
8
u/lost_my_pw_again Dec 10 '13
Should be fixed. Won't be fixed.
17
u/ketralnis Dec 10 '13
This comes up all of the time, see my comments at http://www.reddit.com/r/programming/comments/td4tz/reddits_actual_story_ranking_algorithm_explained/
6
u/aazav Dec 10 '13
I can't believe they won't fix a bug that can be solved by one set of parenthesis.
4
u/infodawg Dec 10 '13
I feel like I've been living in the Truman show.. thanks reddit..
4
u/chester_keto Dec 10 '13
Once upon a time there was a site that was similar to slashdot.org but instead of having a team of editors all users could vote stories up or down, and a story would be published once it reached a certain threshold. But the threshold was based on the number of active accounts on the site, and as it grew in popularity the magic number kept getting larger and larger. Eventually it got to the point where the amount of noise in the voting process prevented anything from ever reaching the "publish" threshold. Stories would languish in the queue for weeks or months, and everyone was baffled that the system didn't work. And then when someone pointed out why this was happening and how to fix it, they were downvoted for being an arrogant troll.
5
u/mcnuggetrage Dec 10 '13
I thought sorting by 'best' removed the issues that sorting by hot produced.
0
u/dahbearz Dec 10 '13
The math makes sense to me. If something has more downvotes, than another, it would be technically "hotter" than one with a less negative score because more people are chiming in on the post with more downvotes. This means more eyes are looking at the one with more votes and have the need to voice their opinion. I would agree with Reddit's math on this one.
2
u/ekapalka Dec 10 '13
Soo... it seems like a lot of people have an intricate knowledge of the inner workings of the Reddit system. Why is it that nearly every front page post in the last few years tops out at 2000-3000, while years before comments had the potential to reach two or three times that? Is it the auto up/down voting, or are (totalRedditors/2)-3000 just extra cynical? Even the thread about Nelson Mandela's death (which was at one point over 7000) has been normalized to 3900 or so.
2
u/not_sloane Dec 10 '13
The big question is what happened on Thu Dec 8 07:46:43 UTC 2005?
bash for the curious:
2
u/[deleted] Dec 10 '13
Why not allow the mods of every subreddit to assign a "default upvote" number that gets added to every new post secretly? So if you have a downvote problem in your sub, you say every new post gets 50 upvotes. Those votes aren't shown, but they are added to the upvote count in the ranking algorithm behind the scenes.
You could make it so that the modified ranking only applies to subreddit views and not aggregated views in the interest of fairness to prevent a visibility war among subs.
2
u/peruytu Dec 10 '13
Why change the rules of the empire if this works for the emperor?
2
u/dr00min Dec 10 '13
Empire?
Maybe wait till they're in profit before giving them that name.
2
u/TerrorBite Dec 10 '13
I love how /r/birdpics is now filled with pictures of puffins.
2
u/treerex Dec 10 '13
Comments in the source code say that the Python implementation should match the one in Postgres. Has anyone had a chance to compare that implementation with the one in the Python code to see if the actually match?
2
u/iopq Dec 11 '13
Damn, wasn't in time to downvote this when it was first posted. Then nobody would know about it and I would rule Reddit!
3
u/theseekerofbacon Dec 10 '13
/r/all browser here with no programming background.
EILI5?
3
u/[deleted] Dec 10 '13 edited Jun 12 '23
I deleted my account because Reddit no longer cares about the community -- mass edited with https://redact.dev/
2
u/[deleted] Dec 10 '13
Meta. [7]
2
u/fireraptor1101 Dec 10 '13
It is hard to believe that his is accidental, as it is so beneficial. This feature makes it too easy for a small group of people to manipulate how reddit works. Over the years, I've learned that to never attribute something to ignorance that can be attributed to malice.
2
u/jobriath85 Dec 10 '13
What I liked most about this article was how, in the denouement, the author falls apart in a kind of existential despair.
2
u/Rockytriton Dec 10 '13
quick, go write your reddit-killer website with your perfect algorithm
1
u/sleazebang Dec 10 '13
Never knew Reddit's algorithm was based on Python. Nice.
1
u/rabbitlion Dec 10 '13
My proposed algorithm:
This would sort net positive posts the same as before, but give net negative posts some chance of showing up. I penalized the negative posts much more than the "simple fix" (just switching the signs) since in general a heavilt downvoted post is fairly terrible and does not deserve to frontpage even if existing posts are fairly old. Negative totals are not log10'd, so each single downvote gives a 12.5 hour penalty instead of it being 12.5 hour when going from -1 to -10 or -10 to -100. This would allow newness to overcome small downvote totals but not large ones.
1
u/kspacey Dec 10 '13
I guess not a lot of people frequent both /r/programming and /r/birdpics ...
1
u/ninsega Dec 10 '13
This might be to allow negative topics to rise up and be thoroughly discussed. This process seems to still allow what is "popular," rather than what is "liked."
1
u/cosworth99 Dec 10 '13
Al Gore Rhythm.
1
u/dashboard82 Dec 10 '13
I got confused at seconds =
I'm lost.
1
u/brainburger Dec 10 '13
Oh so that's why reddit fails to be interesting so quickly!
1
u/bmay Dec 10 '13
You mean Reddit's website? Reddit is not an "empire."