Skip to content

Wrong leaderboard ordering and N/a scores discussion #1540

Closed

Description

@ihsaan-ullah

1. Wrong leaderboard ordering

Sometimes the ranking on the leaderboard does not follow the order from the primary column. It happens several times and we can hardly reproduce it. Once a competition starts to have a scrambled ordered, it stays this way, but the problem does not appear again when re-uploading the same bundle and submissions.

Issues:

2. N/a scores

We have several issues that report N/a scores on the leaderboard. N/a is a replacement of score shown for a task not found. The problem is that the scores and tasks are separate and are sent to the frontend where they are matched and then scores are shown for a task or several tasks. This opens room for inconsistencies.

I propose to make the leaderboard on the backend and just send it to be displayed without any extraction or computation. This way we will never have n/a scores.

3. Other leaderboard problems

4. When multiple tasks, how should we order the entries?

Right now it seems that the ordering is based on a sum of scores across tasks.

Activity

  1. added
    Discussion
    on Jul 18, 2024
  2. Didayolo commented on Jul 18, 2024

    @Didayolo
    Member

    How much work does this change represent?

  3. ihsaan-ullah commented on Jul 19, 2024

    @ihsaan-ullah
    CollaboratorAuthor

    I guess quite amount of work. It may also disclose some hidden bugs. But it seems important because this problem is hanging there from a long time.

    This is just the start of the discussion. We may want to discuss in detail how things are done now in the code and what we want to do change there and discuss the benefits.

    One thing I insist on is to move the logic to the backend. Frontend should not have logic (unless really needed). This simplifies the front-end and less buggy and makes the backend strong. Additionally, backend should be written in a clear way so that in this effort we don't make it buggy.

  4. added
    P1
    on Jul 24, 2024
  5. ihsaan-ullah commented on Feb 25, 2025

    @ihsaan-ullah
    CollaboratorAuthor

    Some more problems I discovered:

    • When you have more than one task and leaderboard rule is Force last or Force last multiple, you see n/a because one of the child submission is on the leaderboard and the other one shows n/a. We should NOT show the child submission on the leaderboard. Only the parent submission should be shown with scores from child submissions. It looks like when the rule is applied, it is applied to submissions regardless of if they are parent or child

    • It looks like for all the tasks you must have the same columns in the leaderboard

    • Computation columns are populated once (when submission is processed). If you change e.g. avg computation to sum, that will work for future submissions but not for that past (already processed) ones.

    • Submission ID is different in submission panel and leaderboard. This happens when you have multiple tasks

  6. changed the title [-]`n/a` scores discussion[/-] [+]`n/a` scores discussion and leaderboard ordering[/+] on Mar 20, 2025
  7. Didayolo commented on Jun 5, 2025

    @Didayolo
    Member

    The problem with leaderboard ordering is still happening:

    Yesterday a participant realized the Leaderboard was wrong, as it is suddenly not ranking the participants correctly. I haven’t changed the ranking scheme or the code:

    Image

    Still don't know how to reproduce this and why it happens.

  8. changed the title [-]`n/a` scores discussion and leaderboard ordering[/-] [+]Wrong leaderboard ordering and `n/a` scores discussion[/+] on Jun 9, 2025
  9. noamrotenberg commented on Dec 21, 2025

    @noamrotenberg

    Hello,
    Thank you for your work.

    I just wanted to check in on this issue. I'm soon going to start a benchmark that has 2 tasks, which prioritize 2 different metrics. Is it possible to have 1 leaderboard for each task or phase?

    Thank you,
    Noam

  10. Didayolo commented on Feb 2, 2026

    @Didayolo
    Member

    Hello, Thank you for your work.

    I just wanted to check in on this issue. I'm soon going to start a benchmark that has 2 tasks, which prioritize 2 different metrics. Is it possible to have 1 leaderboard for each task or phase?

    Thank you, Noam

    Hello, thank you for your message. Right now you can have only one leaderboard per phase. Each leaderboard support having several tasks though.

    Phases are used when your challenge phases are distinct in time (phase B starts after phase A is over). Each phase has its own leaderboard and tasks.

    Feel free to ask if you have more questions.

  11. Didayolo commented on Feb 3, 2026

    @Didayolo
    Member

    Wrong leaderboard ordering happened again in this competition: https://www.codabench.org/competitions/11178/#/results-tab

    Image

    Now it is back to normal:

    Image

    Message from the organizer:

    I could sort it out manually changing the leaderboard option, deleting the submission, rerunning the submission, and then getting back to "best_option".

  12. changed the title [-]Wrong leaderboard ordering and `n/a` scores discussion[/-] [+]Wrong leaderboard ordering and `N/a` scores discussion[/+] on Mar 7, 2026
  13. Didayolo commented on Jul 21, 2026

    @Didayolo
    Member
  14. self-assigned this
    on Oct 2, 2026
  15. ihsaan-ullah commented on Oct 3, 2026

    @ihsaan-ullah
    CollaboratorAuthor

    Leaderboard ordering problem

    Sometimes the leaderboard ranked submissions in the wrong order: a submission with a lower score appeared above submissions with higher scores.

    Why it happened.

    Each submission should have one set of scores. The compute worker, which runs submissions and sends back their results, could send the scores for the same submission more than once. Each time, the platform stored another copy instead of keeping just one, so a submission could end up with several copies of its scores.

    The leaderboard ranks submissions using the total of all stored copies, not the actual score. A submission with three copies of a score of 0.17 was ranked as if it had scored 0.51. The leaderboard still displayed 0.17, so a low-scoring submission could appear at the top of the leaderboard.

    Reproducing it.

    The first screenshot shows a correctly ordered leaderboard, with scores from highest to lowest:

    Image

    The next screenshot shows submission 19 ranked first, after we uploaded its scores two more times so it had three copies. It still shows a score of 0.17, but it is ranked on the total of the three copies (0.17 + 0.17 + 0.17 = 0.51), which puts it above submissions scoring 0.42, 0.41 and so on:

    Image

    The fix

    PR #2608 changes the score upload so that each submission's scores can be uploaded only once. If scores are sent again for a submission that already has them, the platform refuses them and keeps the original scores. This stops duplicate copies from being created, so future leaderboards rank submissions by their real scores.

    The PR also adds tests for the score upload, covering normal uploads, refused repeat uploads, and multi-task submissions.

  16. Didayolo commented on Oct 7, 2026

    @Didayolo
    Member

    Thanks for your work Ihsan. I'll review the PRs asap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugDiscussionP1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions