Charformer: Fast Character Transformers via Gradient-based Subword Tokenization. Tay, Y., Tran, V. Q., Ruder, S., Gupta, J., Chung, H. W., Bahri, D., Qin, Z., Baumgartner, S., Yu, C., & Metzler, D. February, 2022. arXiv:2106.12672 [cs]
Paper doi abstract bibtex State-of-the-art models in natural language processing rely on separate rigid subword tokenization algorithms, which limit their generalization ability and adaptation to new settings. In this paper, we propose a new model inductive bias that learns a subword tokenization end-to-end as part of the model. To this end, we introduce a soft gradient-based subword tokenization module (GBST) that automatically learns latent subword representations from characters in a data-driven fashion. Concretely, GBST enumerates candidate subword blocks and learns to score them in a position-wise fashion using a block scoring network. We additionally introduce Charformer, a deep Transformer model that integrates GBST and operates on the byte level. Via extensive experiments on English GLUE, multilingual, and noisy text datasets, we show that Charformer outperforms a series of competitive byte-level baselines while generally performing on par and sometimes outperforming subword-based models. Additionally, Charformer is fast, improving the speed of both vanilla byte-level and subword-level Transformers by 28%-100% while maintaining competitive quality. We believe this work paves the way for highly performant token-free models that are trained completely end-to-end.
@misc{tay_charformer_2022,
title = {Charformer: {Fast} {Character} {Transformers} via {Gradient}-based {Subword} {Tokenization}},
shorttitle = {Charformer},
url = {http://arxiv.org/abs/2106.12672},
doi = {10.48550/arXiv.2106.12672},
abstract = {State-of-the-art models in natural language processing rely on separate rigid subword tokenization algorithms, which limit their generalization ability and adaptation to new settings. In this paper, we propose a new model inductive bias that learns a subword tokenization end-to-end as part of the model. To this end, we introduce a soft gradient-based subword tokenization module (GBST) that automatically learns latent subword representations from characters in a data-driven fashion. Concretely, GBST enumerates candidate subword blocks and learns to score them in a position-wise fashion using a block scoring network. We additionally introduce Charformer, a deep Transformer model that integrates GBST and operates on the byte level. Via extensive experiments on English GLUE, multilingual, and noisy text datasets, we show that Charformer outperforms a series of competitive byte-level baselines while generally performing on par and sometimes outperforming subword-based models. Additionally, Charformer is fast, improving the speed of both vanilla byte-level and subword-level Transformers by 28\%-100\% while maintaining competitive quality. We believe this work paves the way for highly performant token-free models that are trained completely end-to-end.},
urldate = {2024-06-28},
publisher = {arXiv},
author = {Tay, Yi and Tran, Vinh Q. and Ruder, Sebastian and Gupta, Jai and Chung, Hyung Won and Bahri, Dara and Qin, Zhen and Baumgartner, Simon and Yu, Cong and Metzler, Donald},
month = feb,
year = {2022},
note = {arXiv:2106.12672 [cs]},
keywords = {Computer Science - Artificial Intelligence, Computer Science - Computation and Language, Computer Science - Machine Learning},
}
Downloads: 0
{"_id":"5Q8Mzkae5xu3cKfRZ","bibbaseid":"tay-tran-ruder-gupta-chung-bahri-qin-baumgartner-etal-charformerfastcharactertransformersviagradientbasedsubwordtokenization-2022","author_short":["Tay, Y.","Tran, V. Q.","Ruder, S.","Gupta, J.","Chung, H. W.","Bahri, D.","Qin, Z.","Baumgartner, S.","Yu, C.","Metzler, D."],"bibdata":{"bibtype":"misc","type":"misc","title":"Charformer: Fast Character Transformers via Gradient-based Subword Tokenization","shorttitle":"Charformer","url":"http://arxiv.org/abs/2106.12672","doi":"10.48550/arXiv.2106.12672","abstract":"State-of-the-art models in natural language processing rely on separate rigid subword tokenization algorithms, which limit their generalization ability and adaptation to new settings. In this paper, we propose a new model inductive bias that learns a subword tokenization end-to-end as part of the model. To this end, we introduce a soft gradient-based subword tokenization module (GBST) that automatically learns latent subword representations from characters in a data-driven fashion. Concretely, GBST enumerates candidate subword blocks and learns to score them in a position-wise fashion using a block scoring network. We additionally introduce Charformer, a deep Transformer model that integrates GBST and operates on the byte level. Via extensive experiments on English GLUE, multilingual, and noisy text datasets, we show that Charformer outperforms a series of competitive byte-level baselines while generally performing on par and sometimes outperforming subword-based models. Additionally, Charformer is fast, improving the speed of both vanilla byte-level and subword-level Transformers by 28%-100% while maintaining competitive quality. We believe this work paves the way for highly performant token-free models that are trained completely end-to-end.","urldate":"2024-06-28","publisher":"arXiv","author":[{"propositions":[],"lastnames":["Tay"],"firstnames":["Yi"],"suffixes":[]},{"propositions":[],"lastnames":["Tran"],"firstnames":["Vinh","Q."],"suffixes":[]},{"propositions":[],"lastnames":["Ruder"],"firstnames":["Sebastian"],"suffixes":[]},{"propositions":[],"lastnames":["Gupta"],"firstnames":["Jai"],"suffixes":[]},{"propositions":[],"lastnames":["Chung"],"firstnames":["Hyung","Won"],"suffixes":[]},{"propositions":[],"lastnames":["Bahri"],"firstnames":["Dara"],"suffixes":[]},{"propositions":[],"lastnames":["Qin"],"firstnames":["Zhen"],"suffixes":[]},{"propositions":[],"lastnames":["Baumgartner"],"firstnames":["Simon"],"suffixes":[]},{"propositions":[],"lastnames":["Yu"],"firstnames":["Cong"],"suffixes":[]},{"propositions":[],"lastnames":["Metzler"],"firstnames":["Donald"],"suffixes":[]}],"month":"February","year":"2022","note":"arXiv:2106.12672 [cs]","keywords":"Computer Science - Artificial Intelligence, Computer Science - Computation and Language, Computer Science - Machine Learning","bibtex":"@misc{tay_charformer_2022,\n\ttitle = {Charformer: {Fast} {Character} {Transformers} via {Gradient}-based {Subword} {Tokenization}},\n\tshorttitle = {Charformer},\n\turl = {http://arxiv.org/abs/2106.12672},\n\tdoi = {10.48550/arXiv.2106.12672},\n\tabstract = {State-of-the-art models in natural language processing rely on separate rigid subword tokenization algorithms, which limit their generalization ability and adaptation to new settings. In this paper, we propose a new model inductive bias that learns a subword tokenization end-to-end as part of the model. To this end, we introduce a soft gradient-based subword tokenization module (GBST) that automatically learns latent subword representations from characters in a data-driven fashion. Concretely, GBST enumerates candidate subword blocks and learns to score them in a position-wise fashion using a block scoring network. We additionally introduce Charformer, a deep Transformer model that integrates GBST and operates on the byte level. Via extensive experiments on English GLUE, multilingual, and noisy text datasets, we show that Charformer outperforms a series of competitive byte-level baselines while generally performing on par and sometimes outperforming subword-based models. Additionally, Charformer is fast, improving the speed of both vanilla byte-level and subword-level Transformers by 28\\%-100\\% while maintaining competitive quality. We believe this work paves the way for highly performant token-free models that are trained completely end-to-end.},\n\turldate = {2024-06-28},\n\tpublisher = {arXiv},\n\tauthor = {Tay, Yi and Tran, Vinh Q. and Ruder, Sebastian and Gupta, Jai and Chung, Hyung Won and Bahri, Dara and Qin, Zhen and Baumgartner, Simon and Yu, Cong and Metzler, Donald},\n\tmonth = feb,\n\tyear = {2022},\n\tnote = {arXiv:2106.12672 [cs]},\n\tkeywords = {Computer Science - Artificial Intelligence, Computer Science - Computation and Language, Computer Science - Machine Learning},\n}\n\n\n\n","author_short":["Tay, Y.","Tran, V. Q.","Ruder, S.","Gupta, J.","Chung, H. W.","Bahri, D.","Qin, Z.","Baumgartner, S.","Yu, C.","Metzler, D."],"key":"tay_charformer_2022","id":"tay_charformer_2022","bibbaseid":"tay-tran-ruder-gupta-chung-bahri-qin-baumgartner-etal-charformerfastcharactertransformersviagradientbasedsubwordtokenization-2022","role":"author","urls":{"Paper":"http://arxiv.org/abs/2106.12672"},"keyword":["Computer Science - Artificial Intelligence","Computer Science - Computation and Language","Computer Science - Machine Learning"],"metadata":{"authorlinks":{}}},"bibtype":"misc","biburl":"https://bibbase.org/zotero/abhishek-p","dataSources":["h7kKWXpJh2iaX92T5"],"keywords":["computer science - artificial intelligence","computer science - computation and language","computer science - machine learning"],"search_terms":["charformer","fast","character","transformers","via","gradient","based","subword","tokenization","tay","tran","ruder","gupta","chung","bahri","qin","baumgartner","yu","metzler"],"title":"Charformer: Fast Character Transformers via Gradient-based Subword Tokenization","year":2022}