{
  "id": 333887,
  "title": "Longformer (taking more tokens as inputs for our model)",
  "url": "/competitions/AI4Code/discussion/333887",
  "author_name": "",
  "post_date": "2022-06-28T18:12:17.984986200Z",
  "votes": 1,
  "comment_count": 2,
  "views": 0,
  "content": "<p>So based on some of the information here, I am trying to explore different ways so that I can have codebert take in more inputs than a few hundred or less. (<a href=\"https://underline.io/events/122/sessions/4103/lecture/22352-beyond-paragraphs-nlp-for-long-sequences-part-4\" target=\"_blank\">https://underline.io/events/122/sessions/4103/lecture/22352-beyond-paragraphs-nlp-for-long-sequences-part-4</a>)<br>\nHas anyone looked into this, is considering this and thinks it's a dead end? I'm new to this field so I wanted to know if anyone had experiences with them.</p>",
  "messages": [
    {
      "id": "1836512",
      "postDate": "06/28/2022 18:12:17",
      "content": "<p>So based on some of the information here, I am trying to explore different ways so that I can have codebert take in more inputs than a few hundred or less. (<a href=\"https://underline.io/events/122/sessions/4103/lecture/22352-beyond-paragraphs-nlp-for-long-sequences-part-4\" target=\"_blank\">https://underline.io/events/122/sessions/4103/lecture/22352-beyond-paragraphs-nlp-for-long-sequences-part-4</a>)<br>\nHas anyone looked into this, is considering this and thinks it's a dead end? I'm new to this field so I wanted to know if anyone had experiences with them.</p>",
      "rawMarkdown": "So based on some of the information here, I am trying to explore different ways so that I can have codebert take in more inputs than a few hundred or less. (https://underline.io/events/122/sessions/4103/lecture/22352-beyond-paragraphs-nlp-for-long-sequences-part-4)\nHas anyone looked into this, is considering this and thinks it's a dead end? I'm new to this field so I wanted to know if anyone had experiences with them.",
      "votes": null
    },
    {
      "id": "1839815",
      "postDate": "07/01/2022 17:52:38",
      "content": "<p>The longformer paper describes how to modify existing transformers to be used for long inputs (without resorting to truncation). It has a modification of the original transformer's attention layer,which is quite simple, so it should be easily adaptable to any existing transformer model.</p>\n<p>check <a href=\"https://github.com/ccdv-ai/convert_checkpoint_to_lsg\" target=\"_blank\">this</a> out.</p>",
      "rawMarkdown": "The longformer paper describes how to modify existing transformers to be used for long inputs (without resorting to truncation). It has a modification of the original transformer's attention layer,which is quite simple, so it should be easily adaptable to any existing transformer model.\n\ncheck [this](https://github.com/ccdv-ai/convert_checkpoint_to_lsg) out.",
      "votes": null
    },
    {
      "id": "1859409",
      "postDate": "07/17/2022 15:53:15",
      "content": "<p>I actually tried copying the weights and positional embeddings from codebert to longformer and for some reason even with more parameters it seems to be performing worse. Any ideas on what could be potential causes?</p>",
      "rawMarkdown": "I actually tried copying the weights and positional embeddings from codebert to longformer and for some reason even with more parameters it seems to be performing worse. Any ideas on what could be potential causes?",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1839815,
      "author_name": "thedevastator",
      "author_url": "",
      "post_date": "07/01/2022 17:52:38",
      "content": "<p>The longformer paper describes how to modify existing transformers to be used for long inputs (without resorting to truncation). It has a modification of the original transformer's attention layer,which is quite simple, so it should be easily adaptable to any existing transformer model.</p>\n<p>check <a href=\"https://github.com/ccdv-ai/convert_checkpoint_to_lsg\" target=\"_blank\">this</a> out.</p>",
      "votes": null,
      "replies": [
        {
          "id": 1859409,
          "author_name": "brianyoon",
          "author_url": "",
          "post_date": "07/17/2022 15:53:15",
          "content": "<p>I actually tried copying the weights and positional embeddings from codebert to longformer and for some reason even with more parameters it seems to be performing worse. Any ideas on what could be potential causes?</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "1836512": "So based on some of the information here, I am trying to explore different ways so that I can have codebert take in more inputs than a few hundred or less. (https://underline.io/events/122/sessions/4103/lecture/22352-beyond-paragraphs-nlp-for-long-sequences-part-4)\nHas anyone looked into this, is considering this and thinks it's a dead end? I'm new to this field so I wanted to know if anyone had experiences with them.",
    "1839815": "The longformer paper describes how to modify existing transformers to be used for long inputs (without resorting to truncation). It has a modification of the original transformer's attention layer,which is quite simple, so it should be easily adaptable to any existing transformer model.\n\ncheck [this](https://github.com/ccdv-ai/convert_checkpoint_to_lsg) out.",
    "1859409": "I actually tried copying the weights and positional embeddings from codebert to longformer and for some reason even with more parameters it seems to be performing worse. Any ideas on what could be potential causes?"
  },
  "source": "meta"
}