An unofficial, read-only Hacker News reader. Join the beta →

Claude sabotaging ML research tasks? (opens external site)

733 points by baobabKoodaa 1 day ago | twitter.com | 322 comments on HN

View full thread · View on Hacker News

Comment thread (5)

  1. > wasted a week of my time waiting for training runs to complete

    A tip i got from a machine learning researcher: if you have a new training pipeline always run it with “toy-problem” sized parameters first. Where you can run the whole training in less than 10 minutes. Because it stings a lot less to find out that your loss is not comming down if you can learn that in minutes vs days.

    The other advice he gave me was to try to overfit your model. Which is counter intuitive because you usually try to avoid that. But if you have way less training data than what you think your model would need it should learn that fast while of course not generalising well outside of it. And if that is not what you are seeing then probably you still have some bugs.

    Replies (1)
    1. Interesting. If I'm reading this right, overfitting intentionally can be used to validate a training pipeline. i.e. if you expect it to overfit, and it doesn't, that reveals a problem?
      Replies (3)
      1. Yeah I tell people to validate and test on your training at first. See how high you can get the recall. If it can't remember the training set, it's not going to be any good on the test set. Once it's great at remembering the training set, then you want to start with regularisation and validate on a separate set and test on a yet distinct set.
      2. Yes, this is usually done on a very small amount of data. Generally 1-4 batches and a large number of epochs (e.g 1000 and you can kill the run if loss goes to zero)
      3. https://karpathy.github.io/2019/04/25/recipe/

        > overfit one batch: Overfit a single batch of only a few examples (e.g. as little as two). To do so we increase the capacity of our model (e.g. add layers or filters) and verify that we can reach the lowest achievable loss (e.g. zero). I also like to visualize in the same plot both the label and the prediction and ensure that they end up aligning perfectly once we reach the minimum loss. If they do not, there is a bug somewhere and we cannot continue to the next stage.