{
  "id": 90366,
  "title": "15th place solution [0.21074]",
  "content": "<p>My approach was quite straightforward for this competition I have used embeddings, extracted by BERT + some other features and fully connected NN to get the final predictions.</p>\n<p><strong>Embeddings:</strong>\nI have used Bert large uncased (without any finetuning) and extracted embeddings from 9 layers – from -1 to -9. I have concatenated all of them and used as a 1024*9 = 9216-dimension vectors as final embeddings. Other sets of layers gave me worse results.</p>\n<p><strong>Additional features:</strong></p>\n<ul>\n<li>Pronoun offset</li>\n<li>Pronoun token offset</li>\n<li>A and B tokens offsets</li>\n<li>A and B lengths</li>\n<li>Distance between a/b and pronoun (in symbols and tokens)</li>\n<li>Some features from this kernel <a href=\"https://www.kaggle.com/pheell/look-ma-no-embeddings\" target=\"_blank\">https://www.kaggle.com/pheell/look-ma-no-embeddings</a></li>\n</ul>\n<p><strong>Additional data:</strong></p>\n<ul>\n<li>Manually corrected labels from here <a href=\"https://www.kaggle.com/c/gendered-pronoun-resolution/discussion/81331\" target=\"_blank\">https://www.kaggle.com/c/gendered-pronoun-resolution/discussion/81331</a></li>\n</ul>\n<p><strong>Model:</strong></p>\n<ol>\n<li>All other (non-bert) features were passed through the linear layer:\nOther_features (separate A+P and B+P)-&gt; bn -&gt; linear -&gt; relu -&gt; preprocessed other features</li>\n<li>Concatenated other and bert features were passed through the FCNN:\n(A/B BERT emb + preprocessed other features) -&gt; linear(1800) -&gt; relu -&gt; dropout -&gt; bn -&gt; linear(500) -&gt; relu -&gt; dropout -&gt; linear(1) -&gt; A/B pred</li>\n<li>The final prediction = softmax(A pred, B pred, 0)</li>\n</ol>\n<p><strong>Training:</strong></p>\n<ul>\n<li>A have trained the model with Adam. Everything was highly regularized (~90% dropout, batch norm, weight decay ~6)</li>\n<li>The model was trained on all GAP data using 10-fold cv. The final prediction was just a blend of 10 predictions.</li>\n</ul>",
  "comments": [
    {
      "id": 523380,
      "author_name": "Prashanth Thangavel",
      "author_url": "",
      "post_date": "2019-04-26T05:52:27.070000",
      "content": "<p>Congratulations! Thanks for sharing the approach. </p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 522120,
      "author_name": "Yury Kashnitsky",
      "author_url": "",
      "post_date": "2019-04-23T22:04:55.200000",
      "content": "<p>Congrats, Ilya! I'm humbled :)</p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 521733,
      "author_name": "",
      "author_url": "",
      "post_date": "2019-04-23T10:50:10.013000",
      "content": "<p>Congratulations and thanks for sharing!</p>",
      "votes": 1,
      "replies": []
    },
    {
      "id": 522049,
      "author_name": "Stanislav Blinov",
      "author_url": "",
      "post_date": "2019-04-23T19:47:01.603000",
      "content": "<p>Congratulations and thanks for sharing!</p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 521875,
      "author_name": "dhaqui the kaggler",
      "author_url": "",
      "post_date": "2019-04-23T15:10:31.457000",
      "content": "<p>Thanks for sharing! Congratulations!</p>",
      "votes": 0,
      "replies": []
    }
  ],
  "comment_count": 5,
  "messages": [
    {
      "id": 521642,
      "postDate": "2019-04-23T07:24:29.450Z",
      "content": "<p>My approach was quite straightforward for this competition I have used embeddings, extracted by BERT + some other features and fully connected NN to get the final predictions.</p>\n<p><strong>Embeddings:</strong>\nI have used Bert large uncased (without any finetuning) and extracted embeddings from 9 layers – from -1 to -9. I have concatenated all of them and used as a 1024*9 = 9216-dimension vectors as final embeddings. Other sets of layers gave me worse results.</p>\n<p><strong>Additional features:</strong></p>\n<ul>\n<li>Pronoun offset</li>\n<li>Pronoun token offset</li>\n<li>A and B tokens offsets</li>\n<li>A and B lengths</li>\n<li>Distance between a/b and pronoun (in symbols and tokens)</li>\n<li>Some features from this kernel <a href=\"https://www.kaggle.com/pheell/look-ma-no-embeddings\" target=\"_blank\">https://www.kaggle.com/pheell/look-ma-no-embeddings</a></li>\n</ul>\n<p><strong>Additional data:</strong></p>\n<ul>\n<li>Manually corrected labels from here <a href=\"https://www.kaggle.com/c/gendered-pronoun-resolution/discussion/81331\" target=\"_blank\">https://www.kaggle.com/c/gendered-pronoun-resolution/discussion/81331</a></li>\n</ul>\n<p><strong>Model:</strong></p>\n<ol>\n<li>All other (non-bert) features were passed through the linear layer:\nOther_features (separate A+P and B+P)-&gt; bn -&gt; linear -&gt; relu -&gt; preprocessed other features</li>\n<li>Concatenated other and bert features were passed through the FCNN:\n(A/B BERT emb + preprocessed other features) -&gt; linear(1800) -&gt; relu -&gt; dropout -&gt; bn -&gt; linear(500) -&gt; relu -&gt; dropout -&gt; linear(1) -&gt; A/B pred</li>\n<li>The final prediction = softmax(A pred, B pred, 0)</li>\n</ol>\n<p><strong>Training:</strong></p>\n<ul>\n<li>A have trained the model with Adam. Everything was highly regularized (~90% dropout, batch norm, weight decay ~6)</li>\n<li>The model was trained on all GAP data using 10-fold cv. The final prediction was just a blend of 10 predictions.</li>\n</ul>",
      "rawMarkdown": "My approach was quite straightforward for this competition I have used embeddings, extracted by BERT + some other features and fully connected NN to get the final predictions.\n\n**Embeddings:**\nI have used Bert large uncased (without any finetuning) and extracted embeddings from 9 layers – from -1 to -9. I have concatenated all of them and used as a 1024*9 = 9216-dimension vectors as final embeddings. Other sets of layers gave me worse results.\n\n**Additional features:**\n-\tPronoun offset\n-\tPronoun token offset\n-\tA and B tokens offsets\n-\tA and B lengths\n-\tDistance between a/b and pronoun (in symbols and tokens)\n-\tSome features from this kernel https://www.kaggle.com/pheell/look-ma-no-embeddings\n\n**Additional data:**\n-\tManually corrected labels from here https://www.kaggle.com/c/gendered-pronoun-resolution/discussion/81331\n\n**Model:**\n1.\tAll other (non-bert) features were passed through the linear layer:\nOther_features (separate A+P and B+P)-&gt; bn -&gt; linear -&gt; relu -&gt; preprocessed other features\n2.\tConcatenated other and bert features were passed through the FCNN:\n(A/B BERT emb + preprocessed other features) -&gt; linear(1800) -&gt; relu -&gt; dropout -&gt; bn -&gt; linear(500) -&gt; relu -&gt; dropout -&gt; linear(1) -&gt; A/B pred\n3.\tThe final prediction = softmax(A pred, B pred, 0)\n\n**Training:**\n-\tA have trained the model with Adam. Everything was highly regularized (~90% dropout, batch norm, weight decay ~6)\n-\tThe model was trained on all GAP data using 10-fold cv. The final prediction was just a blend of 10 predictions.",
      "votes": 18
    },
    {
      "id": 523380,
      "postDate": "2019-04-26T05:52:27.070Z",
      "content": "<p>Congratulations! Thanks for sharing the approach. </p>",
      "rawMarkdown": "Congratulations! Thanks for sharing the approach. "
    },
    {
      "id": 522120,
      "postDate": "2019-04-23T22:04:55.200Z",
      "content": "<p>Congrats, Ilya! I'm humbled :)</p>",
      "rawMarkdown": "Congrats, Ilya! I'm humbled :)"
    },
    {
      "id": 521733,
      "postDate": "2019-04-23T10:50:10.013Z",
      "content": "<p>Congratulations and thanks for sharing!</p>",
      "rawMarkdown": "Congratulations and thanks for sharing!",
      "votes": 1
    },
    {
      "id": 522049,
      "postDate": "2019-04-23T19:47:01.603Z",
      "content": "<p>Congratulations and thanks for sharing!</p>",
      "rawMarkdown": "Congratulations and thanks for sharing!"
    },
    {
      "id": 521875,
      "postDate": "2019-04-23T15:10:31.457Z",
      "content": "<p>Thanks for sharing! Congratulations!</p>",
      "rawMarkdown": "Thanks for sharing! Congratulations!"
    }
  ],
  "complete": true,
  "source": "live",
  "fetched_at": "2026-10-19T22:42:24Z",
  "competition_id": 12797,
  "competition_slug": "gendered-pronoun-resolution",
  "team_id": 2726981,
  "solution_url": "/competitions/gendered-pronoun-resolution/writeups/ilia-15th-place-solution-0-21074"
}