{
  "id": 257756,
  "title": "[88th place] solution - Team DilBERT",
  "content": "<h1>Acknowledgement</h1>\n<p>First of all, my team-mate <a href=\"https://www.kaggle.com/mananjhaveri\" target=\"_blank\">@mananjhaveri</a> and I would like to thank the competition organizers for organizing this competition.</p>\n<p>We would also like to thank <a href=\"https://www.kaggle.com/rhtsingh\" target=\"_blank\">@rhtsingh</a> and <a href=\"https://www.kaggle.com/andretugan\" target=\"_blank\">@andretugan</a> for their amazing notebooks. Special thanks to <a href=\"https://www.kaggle.com/abhishek\" target=\"_blank\">@abhishek</a> for his awesome book called Approaching Almost Any Machine Learning Problem. The chapter on NLP helped us a lot.</p>\n<h1>The breakthrough (best single-model)</h1>\n<p>Our best single model was RoBERTa-Large with attention head. We also added layer wise learning rate decay and layer reinitialization used from <a href=\"https://www.kaggle.com/rhtsingh/on-stability-of-few-sample-transformer-fine-tuning\" target=\"_blank\">this amazing notebook</a> which boosted our score.</p>\n<p>Configuration for our best single model -  </p>\n<pre><code>NUM_EPOCHS = 5\nNUM_FOLDS = 5\nBATCH_SIZE = 12\nMAX_LEN = 256\nLEARNING_RATE = 3e-5\nWEIGHT_DECAY = 1e-2\nNUM_WARMUP_STEPS = 50\nEVAL_SCHEDULE = [(0.51, 50), (0.49, 25)]\n</code></pre>\n<p>With this, our best single model reached a score of 0.467 in Public LB and 0.468 in Private LB. </p>\n<h1>The breakthrough (ensemble)</h1>\n<p>We used 3 models for this - </p>\n<ul>\n<li><p>Model 1 =  LB 0.467 - <a href=\"https://www.kaggle.com/andretugan/pre-trained-roberta-solution-in-pytorch\" target=\"_blank\">https://www.kaggle.com/andretugan/pre-trained-roberta-solution-in-pytorch</a></p></li>\n<li><p>Model 2 = LB 0.466 - <a href=\"https://www.kaggle.com/rajat95gupta/clrp-mean-pooling-inference\" target=\"_blank\">https://www.kaggle.com/rajat95gupta/clrp-mean-pooling-inference</a></p></li>\n<li><p>Model 3 = Our best single model</p></li>\n</ul>\n<table>\n<thead>\n<tr>\n<th>Model</th>\n<th>Ratio</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Model 1</td>\n<td>0.35</td>\n</tr>\n<tr>\n<td>Model 2</td>\n<td>0.35</td>\n</tr>\n<tr>\n<td>Model 3</td>\n<td>0.3</td>\n</tr>\n</tbody>\n</table>\n<p>This gave us a score of 0.457 on public as well as private LB. </p>\n<p>A big thank you to the Kaggle community for being so supportive. This was our first competition where we landed in the medal zone and it was a very exciting journey. We look forward to more competitions like this and hopefully contribute to this community.</p>",
  "comments": [
    {
      "id": 1423191,
      "author_name": "Manan Jhaveri",
      "author_url": "",
      "post_date": "2021-08-03T05:28:50.957000",
      "content": "<p><code>Team DilBERT</code><br>\nFind our final inference notebook here: <a href=\"https://www.kaggle.com/mananjhaveri/rank-88-clrp-lb-0-457-solution\" target=\"_blank\">https://www.kaggle.com/mananjhaveri/rank-88-clrp-lb-0-457-solution</a></p>",
      "votes": 1,
      "replies": []
    }
  ],
  "comment_count": 1,
  "messages": [
    {
      "id": 1422955,
      "postDate": "2021-08-03T05:17:13.253Z",
      "content": "<h1>Acknowledgement</h1>\n<p>First of all, my team-mate <a href=\"https://www.kaggle.com/mananjhaveri\" target=\"_blank\">@mananjhaveri</a> and I would like to thank the competition organizers for organizing this competition.</p>\n<p>We would also like to thank <a href=\"https://www.kaggle.com/rhtsingh\" target=\"_blank\">@rhtsingh</a> and <a href=\"https://www.kaggle.com/andretugan\" target=\"_blank\">@andretugan</a> for their amazing notebooks. Special thanks to <a href=\"https://www.kaggle.com/abhishek\" target=\"_blank\">@abhishek</a> for his awesome book called Approaching Almost Any Machine Learning Problem. The chapter on NLP helped us a lot.</p>\n<h1>The breakthrough (best single-model)</h1>\n<p>Our best single model was RoBERTa-Large with attention head. We also added layer wise learning rate decay and layer reinitialization used from <a href=\"https://www.kaggle.com/rhtsingh/on-stability-of-few-sample-transformer-fine-tuning\" target=\"_blank\">this amazing notebook</a> which boosted our score.</p>\n<p>Configuration for our best single model -  </p>\n<pre><code>NUM_EPOCHS = 5\nNUM_FOLDS = 5\nBATCH_SIZE = 12\nMAX_LEN = 256\nLEARNING_RATE = 3e-5\nWEIGHT_DECAY = 1e-2\nNUM_WARMUP_STEPS = 50\nEVAL_SCHEDULE = [(0.51, 50), (0.49, 25)]\n</code></pre>\n<p>With this, our best single model reached a score of 0.467 in Public LB and 0.468 in Private LB. </p>\n<h1>The breakthrough (ensemble)</h1>\n<p>We used 3 models for this - </p>\n<ul>\n<li><p>Model 1 =  LB 0.467 - <a href=\"https://www.kaggle.com/andretugan/pre-trained-roberta-solution-in-pytorch\" target=\"_blank\">https://www.kaggle.com/andretugan/pre-trained-roberta-solution-in-pytorch</a></p></li>\n<li><p>Model 2 = LB 0.466 - <a href=\"https://www.kaggle.com/rajat95gupta/clrp-mean-pooling-inference\" target=\"_blank\">https://www.kaggle.com/rajat95gupta/clrp-mean-pooling-inference</a></p></li>\n<li><p>Model 3 = Our best single model</p></li>\n</ul>\n<table>\n<thead>\n<tr>\n<th>Model</th>\n<th>Ratio</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Model 1</td>\n<td>0.35</td>\n</tr>\n<tr>\n<td>Model 2</td>\n<td>0.35</td>\n</tr>\n<tr>\n<td>Model 3</td>\n<td>0.3</td>\n</tr>\n</tbody>\n</table>\n<p>This gave us a score of 0.457 on public as well as private LB. </p>\n<p>A big thank you to the Kaggle community for being so supportive. This was our first competition where we landed in the medal zone and it was a very exciting journey. We look forward to more competitions like this and hopefully contribute to this community.</p>",
      "rawMarkdown": "# Acknowledgement\n\nFirst of all, my team-mate @mananjhaveri and I would like to thank the competition organizers for organizing this competition.\n\nWe would also like to thank @rhtsingh and @andretugan for their amazing notebooks. Special thanks to @abhishek for his awesome book called Approaching Almost Any Machine Learning Problem. The chapter on NLP helped us a lot.\n\n# The breakthrough (best single-model)\n\nOur best single model was RoBERTa-Large with attention head. We also added layer wise learning rate decay and layer reinitialization used from [this amazing notebook](https://www.kaggle.com/rhtsingh/on-stability-of-few-sample-transformer-fine-tuning) which boosted our score.\n\nConfiguration for our best single model -  \n\n```python\nNUM_EPOCHS = 5\nNUM_FOLDS = 5\nBATCH_SIZE = 12\nMAX_LEN = 256\nLEARNING_RATE = 3e-5\nWEIGHT_DECAY = 1e-2\nNUM_WARMUP_STEPS = 50\nEVAL_SCHEDULE = [(0.51, 50), (0.49, 25)]\n```\n\nWith this, our best single model reached a score of 0.467 in Public LB and 0.468 in Private LB. \n\n# The breakthrough (ensemble)\n\nWe used 3 models for this - \n\n- Model 1 =  LB 0.467 - https://www.kaggle.com/andretugan/pre-trained-roberta-solution-in-pytorch\n\n- Model 2 = LB 0.466 - https://www.kaggle.com/rajat95gupta/clrp-mean-pooling-inference\n\n- Model 3 = Our best single model\n\n\n| Model | Ratio |\n| --- | --- |\n| Model 1 | 0.35 |\n| Model 2 | 0.35 |\n| Model 3 | 0.3 |\n\nThis gave us a score of 0.457 on public as well as private LB. \n\nA big thank you to the Kaggle community for being so supportive. This was our first competition where we landed in the medal zone and it was a very exciting journey. We look forward to more competitions like this and hopefully contribute to this community.\n",
      "votes": 8
    },
    {
      "id": 1423191,
      "postDate": "2021-08-03T05:28:50.957Z",
      "content": "<p><code>Team DilBERT</code><br>\nFind our final inference notebook here: <a href=\"https://www.kaggle.com/mananjhaveri/rank-88-clrp-lb-0-457-solution\" target=\"_blank\">https://www.kaggle.com/mananjhaveri/rank-88-clrp-lb-0-457-solution</a></p>",
      "rawMarkdown": "`Team DilBERT`\nFind our final inference notebook here: https://www.kaggle.com/mananjhaveri/rank-88-clrp-lb-0-457-solution",
      "votes": 1
    }
  ],
  "complete": true,
  "source": "live",
  "fetched_at": "2026-10-19T23:45:13Z",
  "competition_id": 25914,
  "competition_slug": "commonlitreadabilityprize",
  "team_id": 7087196,
  "solution_url": "/competitions/commonlitreadabilityprize/writeups/dilbert-88th-place-solution-team-dilbert"
}