r/learnmachinelearning • • 16d ago

Help Catastrophic Forgetting while Fine-tuning a Piano Transcription Model for Guitar: What Am I Doing Wrong?

1 Upvotes

(Summary)

Fine tuning a piano transcription model for guitar made its performance worse, although I was attempting to recreate results

Hi everyone!

I'm a student interested in machine learning, and I've been exploring guitar transcription as a personal project. My goal is to eventually build a pipeline that goes from full song → guitar source separation → audio-to-MIDI → guitar tablature.

I've been particularly interested in three approaches:

  • Kong: High-resolution piano transcription using a CNN-BiGRU architecture, around 24M parameters.
  • Riley: Adapts Kong's architecture for guitar through augmented piano pretraining and guitar-specific fine-tuning.
  • TART: A four-stage guitar audio-to-tablature pipeline, with Stage 1 handling audio-to-MIDI retaining the same architecture.

Since Riley's model was available and performed considerably better on my test recordings than other implementations I tried, I wanted to investigate the training methodology myself.

My experiment

I started with the original piano-pretrained Kong model and attempted to reproduce TART's Stage 1 training approach using three guitar datasets used in their implementation:

  • GAPS
  • François Leduc
  • Guitar-TECHS

Unfortunately, I didn't have access to GOAT.

I segmented the recordings into 30-second clips with a 10-second hop, resulting in approximately:

  • 6,045 training segments
  • 1,153 validation segments
  • 874 test segments across 51 recordings

I fine-tuned the pretrained model on this combined dataset.

After the first 1511 updates, I continued training from this checkpoint with a fresh Adam optimiser, reducing the learning rate from 5e-6 to 1e-6.

UpdateValidation Frame AP
1,5110.650
2,2660.662
3,0220.670

However, evaluating all checkpoints on the same held-out test set revealed something concerning:

  • Frame AP improved from 0.728 to 0.743.
  • Onset F1 dropped from 0.400 to approximately 0.305.
  • Onset+offset F1 dropped from 0.132 to approximately 0.099.
  • Polyphony count MAE increased from 1.43 to 1.64.

For comparison, the original piano-pretrained Kong checkpoint achieved a Note F50 of 54.01%, considerably better than my fine-tuned model's 39.72%, while Riley's was benchmarked at an even higher percentage.

My training objective used four equally weighted, masked BCE losses for onset, offset, frame and velocity prediction, with velocity loss calculated only at note onsets and padded frames excluded.

What I'm trying to understand

TART reportedly fine-tuned Kong on a combination of guitar datasets, including GAPS, François Leduc, Guitar-TECHS and GOAT, achieving substantially better results on GuitarSet and EGDB.

My reproduction was incomplete: I lacked GOAT, used considerably fewer training updates and haven't implemented TART's additional guitar-specific noise augmentation, but hoped I could see tangible results towards the start of training.

I'm wondering:

  1. Am I making mistakes in my training methodology, target generation or loss implementation?
  2. Could there be an issue with my evaluation metrics, particularly the relationship between frame AP and note-level F-measure?
  3. Does the model simply need substantially more training, or could there be a more fundamental problem with adapting this architecture to heterogeneous guitar datasets?
  4. What important differences between my implementation and TART's actual training procedure might I be overlooking?

I'd also appreciate advice on what I should investigate first and how to approach debugging this systematically.

I've relied on reading papers and repositories, as well as heavily using ChatGPT and Claude to help with implementation and troubleshooting. I'm relatively inexperienced with training larger neural networks, so I'm conscious that I may have overlooked something fundamental.

I'm not necessarily expecting paper-level results on consumer hardware. I mainly want to understand why my experiment is performing worse rather than blindly throwing more training iterations at it.

Am I approaching this problem in the right direction? Are Kong, Riley and TART sensible starting points for this project?

Thanks!


r/learnmachinelearning • • 17d ago

Looking for an ML study buddy

6 Upvotes

Im looking for ML coders any level.

I am in university comp sci and AI student in London, a first year.

Ive been teaching myself AI for a year now

What I've done

Made grid world pygame agent, can plot own obstacles and start end blocks

basic chess movement in pygame - haven't done the AI part yet

Built a property tracker, in a database track how prices go down with time to see price drops with flask and sqlite3, identifies when a drop in house price has happened, a web scraper

MNIST dataset neural network w pytorch - only 30 % accuracy average

 

My Goals

Right now Im interested in computer vision, want to do a hackthon in future.

Im struggling to minimise the loss of my MNIST dataset, would like to get suggestions

I want to make an environment where we can learn from each other, share our accomplishments and goals, maybe hop on calls once in while .

I want to learn C++ aswell, - little to no experience

 

DM me if you are interested, Im not looking someone who knows everything, cus I sure don’t. We all have unique experiences so would be beneficial to learn from each other.


r/learnmachinelearning • • 16d ago

LLMs Are Not Actually Probabilistic

Thumbnail
lukasniessen.medium.com
0 Upvotes

r/learnmachinelearning • • 17d ago

Financial Reinforcement Learning as a beginner

6 Upvotes

Hi,
I'm currently a university student in my 3rd year. My aspiration is to get into the research field of Financial Reinforcment Learning (FinRL). Is there any good roadmap for this. Including the very basics, the maths, linear algebra, ML etc. I dont have much knowledge about those. But i have the time and willing to spend much of my time figuring these things out. Any suggestions regarding a roadmap or how i can start about these things would be appreciated.

Thanks


r/learnmachinelearning • • 16d ago

Request 2027 AI Governance: Operating Models, Not Policy Documents - Cybersecurity Insiders

0 Upvotes

Security teams keep writing AI governance policies. Agents keep acting before anyone reads them.

Not a failure of intent — a failure of physics. A policy document lives in a folder. An agent making a tool call does not consult the folder. The review cycle that catches a flag runs after the action completes, not before. By the time a human sees the alert, the data has moved and the transaction has cleared.

Security leaders are reaching a consistent conclusion: in 2027, governance maturity gets measured by outcomes, not by documentation completeness. Enterprises that treat the policy binder as the control surface are finding that their controls described incidents rather than prevented them.

The gap is not missing policy text. The gap lives in the window between an agent deciding to act and the action completing. That window exists in every agentic deployment today, regardless of how thorough the governance documentation is.

How are your teams actually handling this in practice? Are you finding enforcement closer to the model, the infrastructure, or somewhere else — and what has concretely stopped a bad action versus just logged it after the fact?


r/learnmachinelearning • • 16d ago

Learning Abstractions: The Next Frontier in AI

Post image
1 Upvotes

r/learnmachinelearning • • 17d ago

What mathematics should a beginner prioritize before learning Machine Learning?

37 Upvotes

I'm currently pursuing B.Tech in Artificial Intelligence and Machine Learning and am at the beginner stage of learning ML.

I've come across several mathematical topics that are used in Machine Learning:

Linear Algebra

Probability

Statistics

Calculus

I'm trying to understand which topics I should focus on first and how deeply I need to learn them before implementing basic ML algorithms.

For those who have already learned Machine Learning:

Which mathematical concepts were most useful?

Did you study mathematics first or learn it alongside ML?

Are there any beginner-friendly resources you would recommend?

I'd appreciate suggestions based on your learning experience!


r/learnmachinelearning • • 17d ago

Project 🚀 Project Showcase Day

3 Upvotes

Welcome to Project Showcase Day! This is a weekly thread where community members can share and discuss personal projects of any size or complexity.

Whether you've built a small script, a web application, a game, or anything in between, we encourage you to:

  • Share what you've created
  • Explain the technologies/concepts used
  • Discuss challenges you faced and how you overcame them
  • Ask for specific feedback or suggestions

Projects at all stages are welcome - from works in progress to completed builds. This is a supportive space to celebrate your work and learn from each other.

Share your creations in the comments below!


r/learnmachinelearning • • 16d ago

Request Perplexity's AI agents keep working after you close the tab - The New Stack

0 Upvotes

Perplexity shipped a persistent agent orchestration layer that keeps agents coordinating tasks and accessing systems after the user closes the browser. That is documented, intentional behavior — not a bug. The security implication is straightforward: enterprise access controls are almost universally designed around the assumption that a human session is present. An agent that keeps executing tool calls and data accesses after that session ends operates entirely outside the supervision window those controls assume. No session, no alert, no audit trail tied to an active user. The agent is not constrained by the same assumptions the security model is built on. If you're running agentic workloads in an enterprise environment, how are you handling the gap between agent execution time and human supervision time — especially for actions that fire after a user has disconnected?


r/learnmachinelearning • • 16d ago

Help Getting into computer vision — pretty lost with no idea where to start

Thumbnail reddit.com
1 Upvotes

r/learnmachinelearning • • 16d ago

[P] Cross-platform taste transfer from Instagram exports, and how my first eval result turned out to be an artifact

1 Upvotes

Project: build an interest profile from a GDPR Instagram export (Meta's interest categories, hashtags, captions), embed locally with bge-small, cluster, and recommend from a TMDB catalog of Netflix and Prime titles.

Lessons that might be useful:

- On ~400 short phrases, silhouette scores were flat (0.05 ± 0.01) at every k, so choosing k by silhouette was choosing on noise. I switched to a size-based k with weighted k-means, and detect the leftover grab-bag cluster by its low cohesion (z ≤ -1.5).

- Evaluated against my own Netflix history with popularity and random baselines. The first run showed recall@20 4× popularity, with a bootstrap interval excluding zero. The cause was that the candidate set was "trending titles + watched titles", so watched titles were identifiable by not being trending. Adding each service's most-voted titles removed that tell, and the result went to roughly a tie. A time split (tune on older watches, test on newer) confirmed it.

n=1, so it's a pilot. Code and write-up: https://github.com/aaryamanbisht22/taste-passport


r/learnmachinelearning • • 16d ago

Cross-platform taste transfer from Instagram exports, and how my first eval result turned out to be an artifact

Thumbnail
reddit.com
1 Upvotes

r/learnmachinelearning • • 16d ago

I benchmarked Logistic Regression, Random Forest and XGBoost beyond accuracy — here's what I measured

1 Upvotes

I've been experimenting with something that I think is often overlooked when evaluating machine learning models: their actual computational footprint.

Usually, when we compare models, we focus heavily on accuracy, precision, recall, F1, etc.

But what happens when you actually have to deploy these models?

I wanted to explore this by benchmarking three popular models:

* Logistic Regression

* Random Forest

* XGBoost

I used the Breast Cancer Wisconsin dataset from scikit-learn and evaluated them across multiple dimensions.

**What I measured:**

  1. Predictive accuracy
  2. P50, P95 and P99 inference latency
  3. Process RSS memory consumption
  4. Python-allocated memory
  5. Model loading time
  6. Inference execution time
  7. Serialized model size

One interesting observation from my experiment was that Logistic Regression performed best across the measured dimensions in this particular setup.

However, the goal wasn't to establish that one model is universally better than another.

I wanted to understand the trade-offs between predictive performance and computational requirements.

This experiment is also part of a project I've been working on called **ModelDiet**, an open-source Python toolkit focused on measuring the resource footprint of ML models.

I'm trying to make model profiling and benchmarking easier for developers and ML engineers.

GitHub: [https://github.com/modeldiet/modeldiet](https://github.com/modeldiet/modeldiet)

**I'd genuinely appreciate technical feedback on a few things:**

* Are there other metrics you consider essential when evaluating models for deployment?

* How do you measure peak memory consumption reliably?

* Do you prefer measuring individual inference latency or batch throughput?

* What would make a benchmarking tool like this genuinely useful in your ML workflow?

I'm particularly interested in feedback on the benchmarking methodology and what should be included in future iterations.

Thanks!


r/learnmachinelearning • • 17d ago

Tutorial Why LLMs return generic responses and how to fix vague AI output in 3 steps

Thumbnail interconnectd.com
1 Upvotes

r/learnmachinelearning • • 17d ago

Looking for people in the same boat as I am.

2 Upvotes

I am a freshman computer science student heavily interested in DS/ML. I am currently taking the Andrew Ng course on Machine learning. I am familiar with the basics of pandas numpy and matplotlib. I also know basic linear algebra and Multivariable calculus(Proficient with high school calculus). I am looking for dedicated studymates who are genuinely looking at DS/ML as their career path. I want people who can:

  • Meet weekly/daily to discuss the week’s material
  • Implement algorithms from scratch and compare approaches
  • Do Kaggle competitions or build projects together after the course

I am not looking for CS students who want to learn ML as a backup to their SWE path. Please DM if you feel like you are in the same boat as I am.


r/learnmachinelearning • • 17d ago

My first ml project

Thumbnail
github.com
1 Upvotes

r/learnmachinelearning • • 17d ago

Question I created a kit for AI Researcher interview prep

Thumbnail
github.com
1 Upvotes

I've put together a bunch of articles along with the practice notebooks as materials someone can use to prepare for an interview as a junior AI Researcher. It's been very fun working on this kit so I wanted to share. Do you think it is a representative set of topics for the interviews?


r/learnmachinelearning • • 17d ago

How to properly validate Gromov-Wasserstein distance as a measure of meaningful structural similarity?

1 Upvotes

Hi everyone,

I’m working on a project where I use Gromov-Wasserstein (GW) distance to compare latent representations of two entirely different physical systems (e.g., daily electricity consumption and traffic flow). The goal is to find a shared structural "isomorphism" (like a common diurnal cycle) rather than just a direct correlation.

I have a recurring problem: GW can be deceptively low for random noise.

When I compute the GW loss between my real latent spaces (from a PCA/WAE reduction), I get a loss around 0.05. But if I compute it against a random Gaussian noise cloud of the same dimensionality, the loss is sometimes 0.01–0.02. This completely breaks the interpretation. It seems the GW algorithm is just matching the geometric shape of the clouds (e.g., both being spherical/elliptical) rather than capturing the true semantic structure.

I’ve tried control experiments with shuffled data, but I’m not sure if that’s enough.

My questions to the community:

  1. Is there a standard protocol for validating GW results to avoid these geometric artifacts?
  2. Are there robust variants of GW (like Unbalanced GW or Fused GW) that are less susceptible to this, or do they just shift the problem elsewhere?
  3. How do you statistically prove that a low GW loss is meaningful (e.g., p-values, null models, permutation tests)?

Any advice, papers, or personal experiences would be greatly appreciated! I'm specifically looking at time-series forecasting of physical systems, so if you've done GW on time-series, I'm all ears.


r/learnmachinelearning • • 17d ago

vprojectx/Lewis-44M-Bert-V3 · Hugging Face

Thumbnail
huggingface.co
2 Upvotes

Hi I am a third year student pursuing Aiml ,
I made a Bert from scratch with ELECTRA-style replaced-token detection on ~2.7B unique tokens (one epoch) of curated multi-domain text.
It is called Lewis-44M-Bert-V3

GLUE dev average80.5
GLUE test-server score76.2 (9 tasks incl. WNLI) / 77.6 (8 tasks, WNLI excluded)
SQuAD v1.1 dev (EM / F1)75.2 / 83.8
CoNLL-2003 NER (entity F1, dev / test)92.6 / 87.8

I would really love if you all try it and give me a feedback on it


r/learnmachinelearning • • 17d ago

Discussion Debug the agent, not just the code

Thumbnail
kotrys.dev
0 Upvotes

A coding agent can finish a task and still waste most of the budget.

Saved sessions can show repeated failures, ignored instructions, and forgotten model settings. They also let us compare which instructions work across different models and harnesses.

This diagram shows what a session archive can contain. The useful part is going back to that evidence and improving the next run.

I wrote about this, with examples and backup locations.


r/learnmachinelearning • • 17d ago

Help Drug-response prediction with only 9 samples, is it even possible?

0 Upvotes

Title:

Hi everyone,

I'm working on a pancreatic ductal adenocarcinoma dataset, and I'd really appreciate some methodological advice from you guys, and especially if anybody has had some experience with machine learning with high-dimensional biological data.

Before spending months developing models, I'd like to better understand what is possible with my dataset.

My dataset:

  • 9 patients, with one continuous drug-response value per patient and drug. Due to experimental and sequencing constraints, increasing the number of patients is not an option.
  • Approximately 100,000 nuclei.
  • Continuous drug-response measurements (AUC) for gemcitabine, paclitaxel, irinotecan, 5-FU, and oxaliplatin.

The goal is theoretically "simple":

Predict continuous drug-response AUC from gene expression and chromatin accessibility, while identifying molecular features potentially associated with drug sensitivity or resistance.

The obvious challenge is that, despite having ~100,000 nuclei, I only have 9 samples with drug-response labels. I understand that treating individual cells as independent labeled observations is not a way to go with the dataset and specific set-up.

Knowing this, I'd really appreciate advice on a few questions that I had after some reading...:

  1. With this low amount of sample, is meaningful drug-response prediction even feasible? What would be a objective?
  2. Are there established methods to leverage thousands of cells/instances profiles when the response labels are available only at the patient level?
  3. Would you prioritize simple regularized regression, biologically informed features, transfer learning from external datasets, multiple-instance learning (MIL), or another approach?
  4. How would you evaluate a model with such a small number of independent samples without obtaining misleading performance estimates?
  5. Are there any papers, methodological resources you'd recommend to better understand this type of problem before starting?

Thanks!


r/learnmachinelearning • • 17d ago

Discussion Most people don't know you can mathematically prove a neural network is safe instead of just testing it

Thumbnail reddit.com
1 Upvotes