[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-345128-105":59,"doc-detail-345128-en":130,"doc-similar-345128":163},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","length-adaptive-transformer-train-once-with-length-drop-use-anytime-with-search","Length-Adaptive Transformer - Train Once with Length Drop, Use Anytime with Search","","Transformers deliver strong accuracy but can be too costly for real deployments under tight compute and memory limits. Length-Adaptive Transformer addresses this by training once and supporting multiple inference-time efficiency scenarios without separate models per budget. It uses LengthDrop to stochastically determine sequence length at each layer, then applies multi-objective evolutionary search to maximize accuracy while minimizing an efficiency metric under a given computational budget. It also extends PoWER-BERT from sequence-level classification to token-level classification via a Drop-and-Restore mechanism for broader NLP coverage, validated on span-based question answering and text classification.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/length-adaptive-transformer-train-once-with-length-drop-use-anytime-with-search/345128/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/length-adaptive-transformer-train-once-with-length-drop-use-anytime-with-search/345128.png","ImageObject",300,407,{"name":92,"@type":93},"Adam","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-27","2026-09-22",true,{"@type":102,"interactionType":103,"userInteractionCount":39},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"Why are standard transformers difficult to use under limited resources?","Question",{"text":112,"@type":113},"Their inference time and memory consumption are often prohibitively high, which also raises concerns about energy usage in real applications.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How does Length-Adaptive Transformer support different computational budgets after one-shot training?",{"text":117,"@type":113},"It trains a single model using LengthDrop, which stochastically selects a sequence length at each layer, and then uses evolutionary search to choose a length configuration for a target computational budget.",{"name":119,"@type":110,"acceptedAnswer":120},"What limitation of PoWER-BERT is addressed by the Drop-and-Restore process?",{"text":121,"@type":113},"PoWER-BERT is designed for sequence-level classification, but span-based question answering requires representations for the full sequence. Drop-and-Restore restores dropped word vectors at the final layer, enabling token-level tasks.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},345128,1790624882,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":39,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":144,"read_time":145,"preview_page_count":19,"preview_urls":146},1374404737137,"https://ap-avatar.wpscdn.com/davatar_155a257f0dc6eb9ab79c44ca47cae57d","Length-Adaptive Transformer: Train Once with Length Drop, Use Anytime with Search  \nGyuwan Kim  \nClova AI, NAVER Corp. [gyuwan.kim@navercorp.com](gyuwan.kim@navercorp.com)  \nKyunghyun Cho  \nNew York University [kyunghyun.cho@nyu.edu](kyunghyun.cho@nyu.edu)  \nAbstract  \nDespite transformers' impressive accuracy, their computational cost is often prohibitive to use with limited computational resources. Most previous approaches to improve inference efﬁciency require a separate model for each possible computational budget. In this paper, we extend PoWER-BERT (Goyal et al., 2020) and propose Length-Adaptive Transformer that can be used for various inference scenarios after one-shot training. We train a transformer with LengthDrop, a structural variant of dropout, which stochastically determines a sequence length at each layer. We then conduct a multi-objective evolutionary search to ﬁnd a length conﬁguration that maximizes the accuracy and minimizes the efﬁciency metric under any given computational budget. Additionally, we signiﬁcantly extend the applicability of PoWER-BERT beyond sequence-level classiﬁcation into tokenlevel classiﬁcation with Drop-and-Restore process that drops word-vectors temporarily in intermediate layers and restores at the last layer if necessary. We empirically verify the utility of the proposed approach by demonstrating the superior accuracy-efﬁciency trade-off under various setups, including span-based question answering and text classiﬁcation. Code is available at [https://github.com/clovaai/length](https://github.com/clovaai/length)adaptive-transformer.  \n1 Introduction  \nPre-trained language models (Peters et al., 2018 ; Devlin et al., 2018 ; Radford et al., 2019 ; Yang et al., 2019 ; He et al., 2020) have achieved notable improvements in various natural language processing (NLP) tasks. Most of them rely on transformers (Vaswani et al., 2017), and the number of model parameters ranges from hundreds of millions to billions (Shoeybi et al., 2019 ; Raffel et al., 2019 ; Kaplan et al., 2020 ; Brown et al., 2020) . Despite this high accuracy, excessive computational overhead  \nduring inference, both in terms of time and memory, has hindered its use in real applications. This level of excessive computation has further raised the concern over energy consumption as well (Schwartz et al., 2019 ; Strubell et al., 2019 ; Cao et al., 2020) . Recent studies have attempted to address these concerns regarding large-scale transformers' computational and energy efﬁciency (see x7 for a more extensive discussion.) Among these, we focus on PoWER-BERT (Goyal et al., 2020) which progressively reduces sequence length by eliminating word-vectors based on the attention values as passing layers. PoWER-BERT establishes the superiority of accuracy-time trade-off over earlier approaches (Sanh et al., 2019 ; Sun et al., 2019 ; Michel et al., 2019) . However, it requires us to train a separate model for each efﬁciency constraint.  \nIn this paper, we thus develop a framework based on PoWER-BERT such that we can train a single model that can be adapted in the inference time to meet any given efﬁciency target.  \nIn order to train a transformer to cope with a diverse set of computational budgets in the inference time, we propose to train once while reducing the sequence length with a random proportion at each layer. We refer to this procedure as LengthDrop, which was motivated by the nested dropout (Rippel et al., 2014) . We can extract sub-models of shared weights with any length conﬁguration without requiring extra post-processing nor additional ﬁne-tuning.  \nIt is not trivial to ﬁnd an optimal length conﬁguration given the inference-time computational budget, although it is extremely important in order to deploy these large-scale transformers in practice. Once a transformer is trained with the proposed LengthDrop, we search for the length conﬁguration that maximizes the accuracy given a computational budget. Because this search is co","cbCaidpBkrGuvJIg","https://ap.wps.com/l/cbCaidpBkrGuvJIg","pdf",435131,11,"English","# Introduction\n## LengthDrop for one-shot multi-budget training\n## Evolutionary search for length configuration\n## Extending PoWER-BERT with Drop-and-Restore\n## Contributions and empirical verification","[{\"question\":\"Why are standard transformers difficult to use under limited resources?\",\"answer\":\"Their inference time and memory consumption are often prohibitively high, which also raises concerns about energy usage in real applications.\"},{\"question\":\"How does Length-Adaptive Transformer support different computational budgets after one-shot training?\",\"answer\":\"It trains a single model using LengthDrop, which stochastically selects a sequence length at each layer, and then uses evolutionary search to choose a length configuration for a target computational budget.\"},{\"question\":\"What limitation of PoWER-BERT is addressed by the Drop-and-Restore process?\",\"answer\":\"PoWER-BERT is designed for sequence-level classification, but span-based question answering requires representations for the full sequence. Drop-and-Restore restores dropped word vectors at the final layer, enabling token-level tasks.\"}]","Length-Adaptive Transformer - Train Once with Length Drop, Use Anytime with Search | PDF",1790056585,28,[147,151,155,159],{"page_no":8,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/adf3f96df5bf6389ef0e062427679c7d.webp",983,1390,{"page_no":14,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/5cd7a80de2402509fd5a03653f6c9380.webp",982,1388,{"page_no":81,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/72ff061a6a0820f4c312e176c08eee1d.webp",981,1387,{"page_no":19,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/aef1a1a59400377106680918d89f61e2.webp",980,1385,{"list":164,"token":66},[165,172,179,186,192,199,206,213,219,225],{"doc_id":166,"doc_title":167,"file_type":137,"home_preview_img_url":168,"slug":169,"view_count":170,"category_name":40,"create_tm":171},121450,"Performance Benchmarking of Traditional Machine Learning and Transformer Models for Multi-Class Text - Classification","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229835488441/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796177459&Signature=qJXxzU5iwMW92IRSa4uenxlDuBs%3D","performance-benchmarking-of-traditional-machine-learning-and-transformer-models-for-multi-class-text-classification",29,1785735716,{"doc_id":173,"doc_title":174,"file_type":137,"home_preview_img_url":175,"slug":176,"view_count":177,"category_name":40,"create_tm":178},328056,"ResonatorLM - Causal Resonant Field Mixing for Efficient Long-Context Language Modeling - Abstract and Related Work","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229909361157/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796177459&Signature=dntEmIyZEJMRjdik7h1eDj9vKzw%3D","resonatorlm-causal-resonant-field-mixing-for-efficient-long-context-language-modeling-abstract-and-related-work",12,1789978580,{"doc_id":180,"doc_title":181,"file_type":137,"home_preview_img_url":182,"slug":183,"view_count":184,"category_name":40,"create_tm":185},489641,"Improving Bengali and Hindi Large Language Models - Paper","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229927045738/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796177459&Signature=C33De%2B7DGHtYkslLRea6wT%2BnFKM%3D","improving-bengali-and-hindi-large-language-models-paper",13,1790825548,{"doc_id":187,"doc_title":188,"file_type":137,"home_preview_img_url":189,"slug":190,"view_count":184,"category_name":40,"create_tm":191},293167,"Text speaks louder - Insights into personality from natural language processing","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229904017996/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796177459&Signature=Ncu%2FqRqLGm24eAOTvs5Dxzvt0bU%3D","text-speaks-louder-insights-into-personality-from-natural-language-processing",1789660552,{"doc_id":193,"doc_title":194,"file_type":137,"home_preview_img_url":195,"slug":196,"view_count":197,"category_name":40,"create_tm":198},273357,"The Intrinsic Dimension of Prompts in Internal Representations of Large Language Models","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229899545758/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796177459&Signature=zvxP84IbbKIrnPuZ4N1qhHU0sQI%3D","the-intrinsic-dimension-of-prompts-in-internal-representations-of-large-language-models",15,1789471037,{"doc_id":200,"doc_title":201,"file_type":137,"home_preview_img_url":202,"slug":203,"view_count":204,"category_name":40,"create_tm":205},81600,"Untied Ulysses: Memory-Efficient Context Parallelism via Headwise Chunking","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808460841/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796177459&Signature=3NIVbcqKS1KD610wOZW2C3PwNm8%3D","untied-ulysses-memory-efficient-context-parallelism-via-headwise-chunking",31,1784174632,{"doc_id":207,"doc_title":208,"file_type":137,"home_preview_img_url":209,"slug":210,"view_count":211,"category_name":40,"create_tm":212},82182,"Subtoken Vision Transformer for Fine-grained Recognition","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808719008/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796177459&Signature=pRlnkuhEACr5lV68BzYlxliykTY%3D","subtoken-vision-transformer-for-fine-grained-recognition",24,1784178649,{"doc_id":214,"doc_title":215,"file_type":137,"home_preview_img_url":216,"slug":217,"view_count":46,"category_name":40,"create_tm":218},293159,"Myers-Briggs personality classification from social media text using pre-trained language models - Journal of Universal Computer Science - vol. 28, no. 4 (2022)","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229904016858/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796177459&Signature=nNqkYTF1sphdaWlcZ8xYly5Grtk%3D","myers-briggs-personality-classification-from-social-media-text-using-pre-trained-language-models-journal-of-universal-computer-science-vol-28-no-4-2022",1789660408,{"doc_id":220,"doc_title":221,"file_type":137,"home_preview_img_url":222,"slug":223,"view_count":52,"category_name":40,"create_tm":224},515832,"On the (Intuitionistic) Logic of Next-Token Prediction","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229937446520/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796177459&Signature=y6h1fR8Skb7GFISGlWAHKJjO%2B9A%3D","on-the-intuitionistic-logic-of-next-token-prediction",1791322670,{"doc_id":226,"doc_title":227,"file_type":137,"home_preview_img_url":228,"slug":229,"view_count":44,"category_name":40,"create_tm":230},488425,"Alvin Hou - Resume","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229926855722/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796177459&Signature=1l1dBIVIkJBjfievvbJbtADHc28%3D","alvin-hou-resume",1790814034]