{
  "id": 209842,
  "title": "Contrastive Learning is working?",
  "url": "/competitions/cassava-leaf-disease-classification/discussion/209842",
  "author_name": "manoj akondi",
  "post_date": "2021-01-08T18:21:12.514000",
  "votes": 2,
  "comment_count": 7,
  "views": 0,
  "content": "<p>Did anybody try contrastive learning things like simsaim or something?</p>",
  "messages": [
    {
      "id": 1144889,
      "postDate": "2021-01-08T18:21:12.513Z",
      "content": "<p>Did anybody try contrastive learning things like simsaim or something?</p>",
      "rawMarkdown": "Did anybody try contrastive learning things like simsaim or something?",
      "votes": 2
    },
    {
      "id": 1144930,
      "postDate": "2021-01-08T18:49:54.083Z",
      "rawMarkdown": "",
      "votes": 1,
      "isDeleted": true,
      "replies": [
        {
          "id": 1144984,
          "postDate": "2021-01-08T19:47:37.293Z",
          "content": "<p>Ohh, I tried SIMSAIM, and yea it also didn't perform well.<br>\nContrastive learning methods are supposed to be good for noisy labels rit?</p>",
          "rawMarkdown": "Ohh, I tried SIMSAIM, and yea it also didn't perform well.\nContrastive learning methods are supposed to be good for noisy labels rit?"
        },
        {
          "id": 1145482,
          "postDate": "2021-01-09T07:12:03.700Z",
          "content": "<p>There are two things which you assume wrong. <br>\n1) Both SIMSAIM and SWAV are self supervised methods which were trained with a large batch size like 4092, thus ensuring variability of images in a single batch to generate better representations.<br>\n2) These are self supervised methods which will learn good representations but here may not be applicable since when you finetune the good representation version of model, you will still have noisy labels thus models wont learn to distunguish between noise. </p>\n<p>The ideas are good but used in just different settings.</p>",
          "rawMarkdown": "There are two things which you assume wrong. \n1) Both SIMSAIM and SWAV are self supervised methods which were trained with a large batch size like 4092, thus ensuring variability of images in a single batch to generate better representations.\n2) These are self supervised methods which will learn good representations but here may not be applicable since when you finetune the good representation version of model, you will still have noisy labels thus models wont learn to distunguish between noise. \n\nThe ideas are good but used in just different settings.",
          "votes": 4
        },
        {
          "id": 1145811,
          "postDate": "2021-01-09T11:04:23.287Z",
          "content": "<p>Well, I totally agree to your last point \"The model still won't learn to distinguish between noise\".<br>\nBut What I thought is wat if we are capable of learning perfect representations and then add a simple MLP on top of the bacbone to finetune on less data which are manually sampled(few shot learning may be).<br>\nI am not aware of SWAV, but SIMSAIM paper reported decent accuracy on ImageNet with batch size 64. Rest of the representation learning methods mostly are using large batch sizes as you told.</p>",
          "rawMarkdown": "Well, I totally agree to your last point \"The model still won't learn to distinguish between noise\".\nBut What I thought is wat if we are capable of learning perfect representations and then add a simple MLP on top of the bacbone to finetune on less data which are manually sampled(few shot learning may be).\nI am not aware of SWAV, but SIMSAIM paper reported decent accuracy on ImageNet with batch size 64. Rest of the representation learning methods mostly are using large batch sizes as you told."
        },
        {
          "id": 1145821,
          "postDate": "2021-01-09T11:08:21.127Z",
          "content": "<p>Again, the question arises how do you create a clean dataset :P. </p>",
          "rawMarkdown": "Again, the question arises how do you create a clean dataset :P. "
        },
        {
          "id": 1175693,
          "postDate": "2021-01-29T09:37:32.673Z",
          "content": "<p>Someone who is <strong>new to self-supervised learning</strong>, refer this :<br>\n<a href=\"https://ai.stackexchange.com/questions/10623/what-is-self-supervised-learning-in-machine-learning\" target=\"_blank\">https://ai.stackexchange.com/questions/10623/what-is-self-supervised-learning-in-machine-learning</a></p>\n<p>I got introduced to this new method, after going through the above discussion.</p>",
          "rawMarkdown": "Someone who is **new to self-supervised learning**, refer this :\nhttps://ai.stackexchange.com/questions/10623/what-is-self-supervised-learning-in-machine-learning\n\nI got introduced to this new method, after going through the above discussion.",
          "votes": 1
        },
        {
          "id": 1175989,
          "postDate": "2021-01-29T12:42:28.963Z",
          "content": "<p>Yes, self supervision learning is a way to cleverly use the unlabeled data to get a significant boost in the performance. Representation techniques like simsaim,simclr will learn compatible representations(if provided with good amount of augmentation) without even looking to their respective labels. I tried using SIMSAIM on our cassava data <a href=\"https://www.kaggle.com/saimanojakondi/selfsupervision-cassava\" target=\"_blank\">here</a> and clustered the representations <a href=\"https://www.kaggle.com/saimanojakondi/explore-the-rep\" target=\"_blank\">here</a>. <br>\nI would love to listen your comments on these!<br>\nThanks!</p>",
          "rawMarkdown": "Yes, self supervision learning is a way to cleverly use the unlabeled data to get a significant boost in the performance. Representation techniques like simsaim,simclr will learn compatible representations(if provided with good amount of augmentation) without even looking to their respective labels. I tried using SIMSAIM on our cassava data [here](https://www.kaggle.com/saimanojakondi/selfsupervision-cassava) and clustered the representations [here](https://www.kaggle.com/saimanojakondi/explore-the-rep). \nI would love to listen your comments on these!\nThanks!"
        }
      ]
    }
  ],
  "comments": [
    {
      "id": 1144930,
      "author_name": "",
      "author_url": "",
      "post_date": "2021-01-08T18:49:54.083000",
      "content": "",
      "votes": 1,
      "replies": [
        {
          "id": 1144984,
          "author_name": "manoj akondi",
          "author_url": "",
          "post_date": "2021-01-08T19:47:37.293000",
          "content": "<p>Ohh, I tried SIMSAIM, and yea it also didn't perform well.<br>\nContrastive learning methods are supposed to be good for noisy labels rit?</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1145482,
          "author_name": "Atharva Phatak",
          "author_url": "",
          "post_date": "2021-01-09T07:12:03.700000",
          "content": "<p>There are two things which you assume wrong. <br>\n1) Both SIMSAIM and SWAV are self supervised methods which were trained with a large batch size like 4092, thus ensuring variability of images in a single batch to generate better representations.<br>\n2) These are self supervised methods which will learn good representations but here may not be applicable since when you finetune the good representation version of model, you will still have noisy labels thus models wont learn to distunguish between noise. </p>\n<p>The ideas are good but used in just different settings.</p>",
          "votes": 4,
          "replies": []
        },
        {
          "id": 1145811,
          "author_name": "manoj akondi",
          "author_url": "",
          "post_date": "2021-01-09T11:04:23.287000",
          "content": "<p>Well, I totally agree to your last point \"The model still won't learn to distinguish between noise\".<br>\nBut What I thought is wat if we are capable of learning perfect representations and then add a simple MLP on top of the bacbone to finetune on less data which are manually sampled(few shot learning may be).<br>\nI am not aware of SWAV, but SIMSAIM paper reported decent accuracy on ImageNet with batch size 64. Rest of the representation learning methods mostly are using large batch sizes as you told.</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1145821,
          "author_name": "Atharva Phatak",
          "author_url": "",
          "post_date": "2021-01-09T11:08:21.127000",
          "content": "<p>Again, the question arises how do you create a clean dataset :P. </p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1175693,
          "author_name": "Kishan Joshi",
          "author_url": "",
          "post_date": "2021-01-29T09:37:32.673000",
          "content": "<p>Someone who is <strong>new to self-supervised learning</strong>, refer this :<br>\n<a href=\"https://ai.stackexchange.com/questions/10623/what-is-self-supervised-learning-in-machine-learning\" target=\"_blank\">https://ai.stackexchange.com/questions/10623/what-is-self-supervised-learning-in-machine-learning</a></p>\n<p>I got introduced to this new method, after going through the above discussion.</p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 1175989,
          "author_name": "manoj akondi",
          "author_url": "",
          "post_date": "2021-01-29T12:42:28.963000",
          "content": "<p>Yes, self supervision learning is a way to cleverly use the unlabeled data to get a significant boost in the performance. Representation techniques like simsaim,simclr will learn compatible representations(if provided with good amount of augmentation) without even looking to their respective labels. I tried using SIMSAIM on our cassava data <a href=\"https://www.kaggle.com/saimanojakondi/selfsupervision-cassava\" target=\"_blank\">here</a> and clustered the representations <a href=\"https://www.kaggle.com/saimanojakondi/explore-the-rep\" target=\"_blank\">here</a>. <br>\nI would love to listen your comments on these!<br>\nThanks!</p>",
          "votes": 0,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "1144889": "Did anybody try contrastive learning things like simsaim or something?",
    "1144930": ""
  }
}