Skip to content

Use musical-beat evaluation - #29

Merged
laurenceyoon merged 3 commits into
mainfrom
musical-beat-eval
Nov 13, 2026
Merged

laurenceyoon merged 3 commits into
mainfrom
musical-beat-eval

Conversation

@laurenceyoon

@laurenceyoon laurenceyoon commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

Count the tracking-rate (TR) tolerance in musical beats: 1.0 for audio and 0.1 for MIDI, with compound meters (6/8, 9/8, 12/8, …) grouping three denominator-note beats. The meter is looked up at each ground-truth onset, including meter changes within a piece.
Only TR changes; accuracy metrics stay in denominator-note beats. Each run saves meter_<index>.json, and the per-piece plot draws the meter-dependent tolerance.

@laurenceyoon
laurenceyoon force-pushed the musical-beat-eval branch 2 times, most recently from 61d1ac5 to 80dcbc8 Compare November 10, 2026 01:25
@laurenceyoon laurenceyoon changed the title Use musical-beat tracking criteria and consolidate CI evaluation workflows Use musical-beat evaluation and publish CI results as releases Nov 10, 2026
@laurenceyoon
laurenceyoon marked this pull request as ready for review November 11, 2026 12:41
@laurenceyoon
laurenceyoon removed the request for review from darth-alexus November 12, 2026 15:14
Comment thread docs/ci-evaluation.md Outdated

Open **Actions → Evaluate references → Run workflow** and select the code
branch to evaluate. Every shard and the merge use the same Matchmaker sources
from `.github/install_matchmaker.py`, including the 3 kHz SPARC implementation.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this paragraph necessary? The paragraph would be obsolete in the next update in matchmaker. Or maybe I don't understand who is the target audience for this document. It contains a lot of local details about the latest update in Matchmaker, but it would be out of date whenever something changes.

Comment thread matchmaker_eval/diagnostics.py Resolved
@darth-alexus

Copy link
Copy Markdown
Collaborator

Thanks for putting this together, there's a lot of good work in here! I really like the update to musical beats: counting the tolerance the way musicians count makes the TR much fairer across meters, and I think it's a great improvement. 🥳

Before we merge I have one bigger point and a few small ones.

What I checked:

  • The musical-beat TR works really well: it's correct on all 54 eval scores, including the compound meters and the one meter change (kv331_1), and only TR is affected while the other metrics stay unchanged. Really nice work! 🎉
  • The Nov 10 reference runs match the matchmaker version this PR installs.

The submission workflow changes a lot

As I understand it:

  • Before: contributors open a PR against submissions. When we merge it, CI automatically runs the full evaluation, and we publish by merging submissions into main.
  • Now: a maintainer has to start every full evaluation by hand, and results only go live through "Publish leaderboard". The docs also disagree on which branch contributors should target (docs/submitting.md L3–7 vs. L165).

Why that worries me:

  • Contributor instructions: we've already told contributors, especially the MIWS26 students, to submit against submissions. Those instructions should either stay valid, or people need to be properly informed of the change.
  • Automatic evaluation was the point of the setup: "merge the PR, and CI evaluates it". With manual dispatch, every submission means starting the run, checking it, and publishing it with its run ID and a new tag. With a whole class submitting, that adds up quickly, and it's easy to forget one.

I still do see the benefits:

  • no result commits (no more leaderboard.json conflicts or repo growth)
  • full results kept permanently in Releases
  • no write access in the evaluation workflows.

I'd just like to keep those new benefits without losing the automatic evaluation.

Suggestion:

  1. Contributors keep opening PRs against submissions, and docs/submitting.md says so consistently.
  2. Merging into submissions still triggers the full evaluation automatically. It just uploads the result as an artifact instead of committing it.
  3. Publishing is the only new step: now and then (e.g. after a class deadline) a maintainer runs "Publish leaderboard" with several run IDs at once. Even better if it could pick up all successful runs since the last release by itself.

It might also be easier to split this PR? It's quite big. The musical-beat TR and the paper experiments in CI are what we need now, and they're super nice and important. The workflow/Releases change could be its own PR so we can discuss it with Carlos and Suhit as well. What do you think?

Small things:

  • The fold description in evaluate-references.yml L39 is missing ophmm_playthrough.
  • +1 to Carlos on keeping the version-specific details out of docs/ci-evaluation.md.

For later (separate PRs are fine, happy to help):

  • Publishing accepts runs from any branch (release_results.py L82).
  • The ek2 key doesn't cover shared matchmaker code like utils/misc.py or io/ (provenance.py L55).
  • One crashed piece blocks a whole method from being published (release_results.py L97).
  • There's no way to withdraw a published entry yet.
  • The installer patch only lives on a matchmaker feature branch (install_matchmaker.py L19).

Since we want a fresh rerun for the paper anyway: once this is merged, we can rerun on main and publish that as the first release (within 30 days, before the artifacts expire).

@darth-alexus

Copy link
Copy Markdown
Collaborator

@laurenceyoon Just saw your new commit ("trim the changes") right after posting, sorry! 🫠

It already takes care of a few of my points: ci-evaluation.md is gone, and the evaluation key is back to ek1 hashing the whole matchmaker package, so please ignore those two. The submission workflow part and the rest still apply. Two line numbers moved: release_results.py L82 → L76 and L97 → L91. :)

@laurenceyoon laurenceyoon changed the title Use musical-beat evaluation and publish CI results as releases Use musical-beat evaluation Nov 13, 2026
@laurenceyoon
laurenceyoon merged commit c3bf995 into main Nov 13, 2026
2 checks passed
@laurenceyoon
laurenceyoon deleted the musical-beat-eval branch November 13, 2026 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants