wassnameandClaudypoo 1419c2e7df readme: the uplift did not replicate over three answers per question
+0.135 was one answer per arm, and it is draw 1 of three. Draws 2 and 3 read
-0.007 and -0.060, so the mean is +0.023 with sd 0.102. Not pushed: wassname
should read this before it goes public.

Co-Authored-By: Claudypoo <288921227+claudypoo@users.noreply.github.com>
2026-08-17 03:52:28 +08:00
2026-08-15 06:14:10 +08:00
2026-08-15 06:14:10 +08:00
2026-08-15 06:07:11 +08:00
2026-06-25 10:31:39 +08:00

wassname's ML Debugging Folklore

In an attempt to upskill the machine learning debugging on AI coding assistants (and humans), I've collected high quality sources on how to debug machine learning projects, focusing on the mindset and the "taste". When I started ML I went searching for discussions on best practices, and started a few discussions of my own and they helped me a lot, over the years I've collected good ones. I hope they can help others, as well as help in auto research setups. This intro is human written, and the below is AI written with human guidance.

Use as a Claude skill

/skills add https://github.com/wassname/ml_debug

Or paste SKILL.md into your system prompt / context when debugging.

What's here

  • SKILL.md -- the main artifact. Load into an LLM agent's context as a debugging skill. A short calibration note, then the folklore itself: verbatim sourced quotes from practitioners, general lessons first, modern transformers and LLM fine-tuning in their own section.

  • PLAYBOOK.md -- the synthesized long-form: mental models, practitioner priors, step catalogs, symptom tables, the agent debugging loop, triage, and anti-patterns. Menus of hypotheses distilled from the same sources, not quotes. Deeper one-off tricks (loss-surface analysis, stuck-metric diagnosis, sweep reliability) live in refs/.

  • docs/evidence/ -- frozen local copies of source material (blog posts, talks, papers, reddit threads). Claims in SKILL.md link back to exact quotes here.

Does it help?

Measured on ml-bench: 12 hard machine learning research problems from my own work, none of them in any training set, each answer graded against my own answer by a panel of five LLM judges. A score of 1.00 means the model matched me. The test gives the model this SKILL.md and nothing else, so the only change is the document.

No measurable gain, from three answers per question in each arm:

deepseek-v4-flash-0731, 12 questions bare with SKILL.md change
first answer +0.608 +0.746 +0.137
second answer +0.648 +0.641 -0.007
third answer +0.674 +0.614 -0.060
mean +0.643 +0.667 +0.023, sd 0.102

The same model answering the same question again moves its score by about this much, so +0.023 is not distinguishable from zero. Pairing by question rather than by answer gives the same +0.023, with a standard error of 0.031 over the 12 questions.

An earlier version of this section reported +0.135, or 59% of the distance to gpt-5.6-sol. That number was one answer per arm, and it is the first row of the table above. It did not survive the other two answers.

Two other readings. With SKILL.md the model writes 31% more text for the same score, so any verbosity bias in the judges makes the true effect smaller than +0.023, not larger. And only 1 answer in 36 uses the document's own vocabulary, so the document is in the context without changing much of what the model writes. The header does tell it not to quote the document back.

Caveats: one model, three answers per question, one judge panel, at bench version v96. The result is that this document did not help this model on these questions. It is not evidence about a stronger model, a longer task, or an agent that can run code.

Citation

@misc{wassname2026mldebug,
  title = {ML Debugging Folklore: A Practitioner Debugging Skill for LLM Agents},
  author = {Michael J. Clark},
  year = {2026},
  url = {https://github.com/wassname/ml_debug/}
}
S
Description
No description provided
Readme
5.7 MiB
Languages
Python 98.9%
Just 1.1%