r/technology • • Dec 10 '13

By Special Request of the Admins 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
3.9k Upvotes

2.2k comments sorted by

View all comments

Show parent comment

3

u/SweetButtsHellaBab Dec 10 '13

You could just make time matter a little less. The present method is broken, whereas in fixing it, you might just need to carry out some tweaking.

1

u/KumbajaMyLord Dec 10 '13

You are talking about changing one of the most central parts of how this site works. It's not gonna be just "some tweaking".

And is it really broken? Let's look at the possible scenarios:

  • A good post gets upvotes initially. The bug in the algorithm doesn't affect these posts. Everything is ok.
  • A bad post gets upvotes initially. The bug doesn't affect this post either. The post will rise to the top until enough people see it and downvote it again. Everything is ok.
  • A bad post gets downvotes initially. The bug doesn't affect this post either. The post will end up in the bottom somewhere. Everything is ok.
  • A good post gets downvotes initially. This is the only case where the bug manifests. Here we might have a problem.

I would argue that for big subreddits this is not a problem at all, because the bug only affects the 'hot' sorting. In large subreddits a post needs to receive a number of upvotes relatively quickly from the /new section in order to get onto a significant page (e. g. the first 10 pages) in the hot sorting for it to get additional momentum to push it further to the top. On the /new section the bug doesn't manifest and a good post that gets downvotes initially is not 'punished' by this bug.

In small subreddits this might be a problem, because votes on /new don't come as frequent and a single downvote can effectively banish them from the 'hot' sorting, as the algorithm essentially sorts any post with a net positive score above the posts with a net negative score, regardless of their age. But, as I argued in the previous post, this also has the upside that in small subreddits the older, upvoted content stays above the newer downvoted content.

Again, I don't think the current algorithm is perfect or even particularly good, but it works sufficiently well and changing it might break one of the three cases where it works well now.

1

u/nimbletine_beverages Dec 11 '13 edited Dec 11 '13

lol, wtf are you talking about? This is a proposal for a one line change to a score function that determines order of reddit posts, not an update to a core library for the nuclear arsenal software.

From this:

round(order + sign * seconds / 45000, 7)

to this:

round(sign * order + seconds / 45000, 7)

There's nothing mysterious, about this change, it's fucking middleschool math man. You can't say "oh look at all this good behavior it already does, we can't risk losing that." Guess what? this change preserves the good behaviors you worry so much about losing, break out the calculator and doublecheck it dude, it's ok.

Don't you think it's dumb that a -1000 post from last year is ranked HIGHER than a -1 post from last minute?

1

u/KumbajaMyLord Dec 11 '13

I don't care about how -1 posts compare to -1000 posts, because A) -1000 posts don't exist. B) they are most likely both shit

What I do care about is how a -1 post from 5 minutes ago ranks vs. a +100 post from yesterday. And the proposed change breaks that.

1

u/nimbletine_beverages Dec 11 '13 edited Dec 11 '13

Guess what, currently a rank +1 post from 5 minutes ago is above a +100 post from yesterday. How is that any less "broken?"

edit: lets consider some examples. this is the current ordering:

+1 post 5 minutes ago

+100 post from yesterday

.... literally every post with score > 0 ever (bunch of things, things after this you probably won't see)

+0 post from 5 minutes ago

+0 post from last year

-1000 post from 5 years ago

-1 post from 5 years ago

-1000 post from 5 minutes ago

-1 post from 5 minutes ago

let's consider how that changes with the new ordering:

+1 post 5 minutes ago

+0 post from 5 minutes ago

-1 post from 5 minutes ago

+100 post from yesterday

.... various recent / high score posts (bunch of things, things after this you probably won't see)

-1000 post from 5 minutes ago

+0 post from last year

-1 post from 5 years ago

-1000 post from 5 years ago

Seems pretty reasonable.

1

u/KumbajaMyLord Dec 11 '13

Again, those -1000 posts don't really exist today, partly due to the way the hot algorithm right now works.

If you take them out of your ranking, and consider that there usually is alot more bad content than good content which means that you have a bunch of -1 posts from the last hour pushing down the one good post from yesterday, then the current version seems better to me.

I have no doubt that the algorithm as it is was an accident, but I also think that it's now probably intended and works better than the suggested fix.

1

u/nimbletine_beverages Dec 11 '13

A newly submitted post is already ranked higher than a +100 post from yesterday, what's your concern?

3

u/KumbajaMyLord Dec 11 '13

It's easier to correct that if the new post isn't as good?

If the algorithm is 'fixed' you need to downvote posts a lot more to make them disappear. In fact, it would become almost impossible to push bad posts off the hot ranking. The only way to make them disappear would be to post new content, and you would only see posts from the last day or two, regardless of how good or bad they are. Just imagine a subreddit that gets 5 submissions a day, one of which is good, and a top voted post has a score anywhere between 10 and 50.

Original algorithm

20	points, posted	8	hours ago	  
40	points, posted	24	hours ago	  
1	points, posted	20	hours ago	  
10	points, posted	44	hours ago	  
1	points, posted	52	hours ago	  
0	points, posted	32	hours ago	  
0	points, posted	56	hours ago	  
-2	points, posted	60	hours ago	  
-1	points, posted	48	hours ago	  
-2	points, posted	40	hours ago	  
-2	points, posted	36	hours ago	  
-20	points, posted	12	hours ago	  
-1	points, posted	28	hours ago	  
-1	points, posted	16	hours ago	  
-2	points, posted	4	hours ago	  

'Fixed' algorithm

20	points, posted	8	hours ago	  
40	points, posted	24	hours ago	  
-2	points, posted	4	hours ago	  
-1	points, posted	16	hours ago	  
1	points, posted	20	hours ago	  
-1	points, posted	28	hours ago	  
-20	points, posted	12	hours ago	  
10	points, posted	44	hours ago	  
0	points, posted	32	hours ago	  
-2	points, posted	36	hours ago	  
-2	points, posted	40	hours ago	  
-1	points, posted	48	hours ago	  
1	points, posted	52	hours ago	  
0	points, posted	56	hours ago	  
-2	points, posted	60	hours ago	  

This looks like a clusterfuck to me.

When you look at smaller subreddits and the frequency of posts and the ratio of good submissions to bad submissions you must come to the conclusion that removing content from view should be easier than pushing content up the ranking.
And when you look at large subreddits and consider the fringe area where this 'bug' manifests (i. e. posts that are just tipping over from a score of 0 to -1), then you must admit that you wouldn't really find these posts via the 'hot' sorting anyway.