TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Quality News – Towards a fairer ranking algorithm for Hacker News

140 pointsby manxabout 2 years ago
Hello HN!<p>TLDR;<p>- Quality News is a Hacker News client that provides additional data and insights on submissions, notably, the upvoteRate metric.<p>- We propose that this metric could be used to improve the Hacker News ranking score.<p>- In-depth explanation: <a href="https:&#x2F;&#x2F;github.com&#x2F;social-protocols&#x2F;news#readme">https:&#x2F;&#x2F;github.com&#x2F;social-protocols&#x2F;news#readme</a><p>The Hacker News ranking score is directly proportional to upvotes, which is a problem because it creates a feedback loop: higher rank leads to more upvotes leads to higher rank, and so on...<p><pre><code> → ↗ ↘ Higher Rank More Upvotes ↖ ↙ ← </code></pre> As a consequence, success on HN depends almost entirely on getting enough upvotes in the first hour or so to make the front page and get caught in this feedback loop. And getting these early upvotes is largely a matter of timing, luck, and moderator decisions. And so the best stories don&#x27;t always make the front page, and the stories on the front page are not always the best.<p>Our proposed solution is to use upvoteRate instead of upvotes in the ranking formula. upvoteRate is an estimate of how much more or less likely users are to upvote a story compared to the average story, taking account how much attention the story as received, based on a history of the ranks and times at which it has been shown. You can read about how we calculate this metric in more detail here: <a href="https:&#x2F;&#x2F;github.com&#x2F;social-protocols&#x2F;news#readme">https:&#x2F;&#x2F;github.com&#x2F;social-protocols&#x2F;news#readme</a><p>About 1.5 years ago, we published an article with this basic idea of counteracting the rank-upvotes feedback loop by using attention as negative feedback. We received very valuable input from the HN community (<a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=28391659" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=28391659</a>). Quality News has been created based largely on this feedback.<p>Currently, Quality News shows the upvoteRate metric for live Hacker News data, as well as charts of the rank and upvote history of each story. We have not yet implemented an alternative ranking algorithm, because we don&#x27;t have access to data on flags and moderator actions, which are a major component of the HN ranking score.<p>We&#x27;d love to see the Hacker News team experiment with the new formula, perhaps on an alternative front page. This will allow the community to evaluate whether the new ranking formula is an improvement over the current one.<p>We look forward discussing our approach with you!<p>Links:<p>Site: <a href="https:&#x2F;&#x2F;news.social-protocols.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;news.social-protocols.org&#x2F;</a><p>Readme: <a href="https:&#x2F;&#x2F;github.com&#x2F;social-protocols&#x2F;news#readme">https:&#x2F;&#x2F;github.com&#x2F;social-protocols&#x2F;news#readme</a><p>Previous Blog Post: <a href="https:&#x2F;&#x2F;felx.me&#x2F;2021&#x2F;08&#x2F;29&#x2F;improving-the-hacker-news-ranking-algorithm.html" rel="nofollow">https:&#x2F;&#x2F;felx.me&#x2F;2021&#x2F;08&#x2F;29&#x2F;improving-the-hacker-news-ranking...</a><p>Previous Discussion: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=28391659" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=28391659</a>

19 comments

PaulHouleabout 2 years ago
When my RSS reader shows me an arXiv paper about ML with ‘fair’ in the title I hit the reject button. What is ‘fair’ is subjective and what I want is a feed relevant to my interests (also subjective.)<p>This is 2023 and text classification problems that I struggled with at a startup 5 years ago are now <i>easy</i> and the power of transformer models is obscured by the ChatGPT hype. It is time that we turn our back in the collaborative filtering algorithms that made social media a hellscape and embrace content-based filtering.<p>I have a model that predicts if an article will front page or get a high ratio of comments&#x2F;votes. It has a terrible ROCAUC because it is such a fuzzy problem but it is well calibrated and just today my RSS reader told me a story I thought was a nothingburger would succeed on both metrics and… It did!<p>I did make an attempt to take into account the factors you’re concerned about and I was surprised that the AUC didn’t go up. Probably I did it wrong though.<p>Look up my profile, I’d love to chat about it.
评论 #35184312 未加载
评论 #35186046 未加载
评论 #35184043 未加载
评论 #35183950 未加载
评论 #35184519 未加载
sokoloffabout 2 years ago
There&#x27;s a related question of &quot;what&#x27;s the <i>purpose</i> of the ranking algorithm?&quot;<p>Is it to ensure that the #1 article is strictly &quot;better&quot; (via whatever function) than the #2 and the #2 better than the #3?<p>Or is it to ensure that at least N of the top 30 (page 1) submissions will tend to be interesting to many users on the site (driving engagement and discussion)?<p>As a user, I&#x27;m a lot more interested in the second goal than I am the first goal. This change seems to serve the first goal much more than it serves the second goal. The reinforcement loop of &quot;on the front page =&gt; gets more votes&quot; is a property that supports the second goal more than it supports the first. Looking at the top 30 on social-protocols (this algorithm) vs the front page on HN, I saw 1 additional story on HN that would motivate me to click through (5 vs 4), so not a massive difference.
评论 #35187597 未加载
woollyhatabout 2 years ago
I think it would be interesting if users could spend their karma on performing moderator actions, perhaps with some sort of algorithmic exchange rate that converts acquired karma into modcoins.<p>For example, it might cost 1000 modcoins to pin an article to the top of the page for ten minutes. Or perhaps more of a bold change: 2000 modcoins to make the text of your comment glow with a golden hue to make it more noticeable. 5000 modcoins to display an image of Paul Graham at the top of the thread, smiling beatifically at all the comments below Him. And so on.<p>This would of course be of no interest to users such as myself who habitually generate throwaway accounts and discard them, but I would be curious to see how high karma users would use such a feature.
评论 #35195632 未加载
评论 #35188628 未加载
abecedariusabout 2 years ago
Idea: if you know all of a user&#x27;s votes, you can estimate that they at least glanced over the items up to the lowest-placed one they voted on on the same page. This is a bit more information than &quot;users tend to read higher-placed items following a known distribution&quot; like the formula from your readme. I guess you&#x27;d have to be HN to implement this.
评论 #35184579 未加载
supernova87aabout 2 years ago
Are you sure &#x2F; do you have info that HN doesn&#x27;t use some kind of &quot;holding pen&quot; for stories to have a fixed amount of time to see if they get a certain % of votes before being kicked down the list?<p>This is a classic problem with forums, and I wonder if HN already has something in place that you might not have factored in (which could then just be tuned better).
评论 #35187831 未加载
MilnerRouteabout 2 years ago
I&#x27;d like to see these alternate algorithms implemented. The API exists - and isn&#x27;t that really the only way to ultimately judge if it&#x27;s better or worse?<p>Another random idea: have the parameters affecting rankings be visible and adjustable with interactive sliders- so you could customize the various weights to try to attain the ideal mix of stories for you.<p>Or does that defeat the purpose. Is the joy of HN in knowing that when a story reaches the front page, you know it&#x27;s on everyone&#x27;s front page...
评论 #35184345 未加载
评论 #35185128 未加载
password4321about 2 years ago
I wonder how long this project will run. So many Hacker News interface reimplementations have gone dark over the years.<p>Success to you!
评论 #35188942 未加载
23B1about 2 years ago
I guess I don&#x27;t understand what the problem is with the current way of doing things? Like, HN is one of the few communities online now where the content and the conversation seem interesting, varied, and polite.<p>Whats the core problem you&#x27;re trying to solve here?
评论 #35187028 未加载
评论 #35186960 未加载
评论 #35187747 未加载
评论 #35187341 未加载
troydavisabout 2 years ago
How does your model compare to using:<p>(Users who upvoted a given submission &#x2F; Users who saw a page that includes the submission and its vote icon)<p>This would be a percent between 0 (no one who saw a page containing a given submission upvoted it) and 100 (everyone who saw it upvoted it). Receiving more impressions wouldn’t change that percentage.<p>Weaknesses: It can only be calculated by HN itself. On pages that list lots of submissions (like the home page), it need may to compensate for relative position on the page. These pages may already randomize position enough for this not to be an issue, or to only be an issue for the first 3-5 items on the home page.
评论 #35184044 未加载
mtVesselabout 2 years ago
This is interesting, but it would even better if I could see it sorted by descending upvoteRate.
评论 #35194817 未加载
评论 #35189145 未加载
mostcallmeytabout 2 years ago
See also <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=23286140" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=23286140</a>
jrussinoabout 2 years ago
Lots of discussion here about this approach and alternatives. Not sure how feasible this is but I think it would be even cooler to turn this into a site where users can define their own custom ranking algorithm and&#x2F;or select from a set of available algorithms (including the one you&#x27;re currently using). Maybe even provide a meta-ranking of the most popular ranking algorithms?
评论 #35195574 未加载
taubekabout 2 years ago
Can I somehow see the historical data for some of mine old submits? I seems to me that on <a href="https:&#x2F;&#x2F;news.social-protocols.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;news.social-protocols.org&#x2F;</a> I can get the data for past 24 hours.<p>I think that you have point with feedback loop.
评论 #35183582 未加载
akomtuabout 2 years ago
HN needs to separate emotion from reason in upvotes and downvotes. I bet that many readers here confuse the upvote button with &quot;I like it&quot; and the downvote button with &quot;I dislike it&quot; while it should be about &quot;is this comment truthful and informative, does it add something novel to the discussion?&quot;<p>HN could implement this with a cosmetic change: all upvotes and downvotes would show a form to provide explanation. Those explanations will be reviewed, randomly, to spot emotional users and suspend their voting power for a month or two. As for those who can&#x27;t be botheted with explaining their voting decision, they shouldn&#x27;t be able to influence the global ranking. Rage downvoting and hive-mind upvoting will be gone very quickly.
评论 #35186073 未加载
评论 #35186684 未加载
unethical_banabout 2 years ago
I would like the HN UI to have a &quot;favorite&quot; button equally accessible to the &quot;upvotes&quot; button.<p>I know favorites are a feature, but they require clicking into the comments. I end up using upvote as a bookmark function, not as a method of approving of a post, because that&#x27;s easier.<p>As it relates to this post, the HN UI encourages the feedback loop this submission is trying to fix.<p>Put a bookmark icon next to the upvote icon. Provide a unified view of upvotes+bookmarked for a user so they can see everything that got their interest.
评论 #35184853 未加载
评论 #35189503 未加载
mhbabout 2 years ago
Would just increasing the number of posts on the front page be an improvement?
评论 #35189004 未加载
4dayworkweek4uabout 2 years ago
HN really needs tags per story submitted too.
exolymphabout 2 years ago
I like <a href="https:&#x2F;&#x2F;hckrnews.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;hckrnews.com&#x2F;</a> as an alternative front page
wpietriabout 2 years ago
As long as we&#x27;re talking about redoing this, let me suggest letting authors see the names of upvoters (and only upvoters).<p>Quora had this and it did a fair bit to create positive community feelings for me. It also let people signal agreement&#x2F;support without having to create a comment to do so, which I would find handy.
评论 #35184187 未加载
评论 #35184330 未加载
评论 #35186820 未加载