EVALUASI MAXIMUM SEQUENCE LENGTH PADA INDOBERT-BILSTM-CRF UNTUK NAMED ENTITY RECOGNITION BAHASA INDONESIA
EVALUATING THE IMPACT OF MAXIMUM SEQUENCE LENGTH ON INDOBERT-BILSTM-CRF FOR INDONESIAN NAMED ENTITY RECOGNITION
DOI:
https://doi.org/10.52972/hoaq.vol17no2.p241-251Keywords:
Named Entity Recognition, IndoBERT, BiLSTM-CRF, maximum sequence length, efisiensi komputasiAbstract
Maximum sequence length merupakan salah satu parameter penting pada model berbasis Transformer karena memengaruhi cakupan input sekaligus kebutuhan komputasi. Penelitian ini menganalisis pengaruh maximum sequence length terhadap kinerja dan efisiensi komputasi model IndoBERT-BiLSTM-CRF pada tugas Named Entity Recognition Bahasa Indonesia menggunakan dataset IDNer-News-2K. Empat konfigurasi diuji, yaitu 64, 128, 256, dan 512 token, dengan parameter model lainnya dipertahankan tetap. Setiap konfigurasi dijalankan menggunakan tiga random seed. Kinerja dievaluasi menggunakan Token Macro-F1 dan Entity F1, sedangkan efisiensi dianalisis berdasarkan training time, penggunaan GPU memory, training throughput, dan inference time. Hasil menunjukkan bahwa MAX_LEN=64 masih menyebabkan truncation sekitar 0,55% dan menghasilkan Entity F1 sebesar 0,9119. MAX_LEN=128 menghilangkan seluruh truncation serta mencapai 100% word coverage dan token coverage, dengan Entity F1 sebesar 0,9171. Nilai Entity F1 tertinggi diperoleh pada MAX_LEN=256 sebesar 0,9177, tetapi peningkatannya terhadap MAX_LEN=128 sangat kecil dan disertai kenaikan biaya komputasi. Pada MAX_LEN=512, waktu pelatihan dan penggunaan GPU memory meningkat secara substansial, sementara Entity F1 menurun menjadi 0,9159. Temuan ini menunjukkan bahwa peningkatan maximum sequence length setelah seluruh input tercakup memberikan diminishing return. Berdasarkan keseimbangan antara kinerja dan efisiensi, MAX_LEN=128 merupakan konfigurasi yang paling rasional untuk dataset yang digunakan.
Maximum sequence length is an important parameter in Transformer-based models because it affects both input coverage and computational requirements. This study analyzes the effect of maximum sequence length on the performance and computational efficiency of an IndoBERT-BiLSTM-CRF model for Indonesian Named Entity Recognition using the IDNer-News-2K dataset. Four configurations were evaluated, namely 64, 128, 256, and 512 tokens, while keeping the remaining model parameters unchanged. Each configuration was run using three random seeds. Model performance was evaluated using Token Macro-F1 and Entity F1, while computational efficiency was assessed based on training time, GPU memory usage, training throughput, and inference time. The results show that MAX_LEN=64 still caused approximately 0.55% truncation and achieved an Entity F1 of 0.9119. MAX_LEN=128 eliminated truncation completely and achieved 100% word coverage and token coverage, with an Entity F1 of 0.9171. The highest Entity F1 was obtained at MAX_LEN=256, reaching 0.9177, but the improvement over MAX_LEN=128 was marginal and accompanied by higher computational cost. At MAX_LEN=512, training time and GPU memory usage increased substantially, while Entity F1 decreased to 0.9159. These findings indicate that increasing maximum sequence length after full input coverage has been achieved results in diminishing returns. Considering the trade-off between performance and computational efficiency, MAX_LEN=128 provides the most practical configuration for the dataset used in this study.
References
E. Dave and A. Chowanda, “IPerFEX-2023: Indonesian Personal Financial Entity Extraction Using indoBERT-BiGRU-CRF model,” Journal of Big Data, vol. 11, no. 1, p. 139, Sep. 2024, doi: 10.1186/s40537-024-00987-6.
Z. Zainuddin, - Mudassir, and Z. Tahir, “Entity Extraction in Indonesian Online News Using Named Entity Recognition (NER) with Hybrid Method Transformer, Word2Vec, Attention and Bi-LSTM,” JOIV?: International Journal on Informatics Visualization, vol. 9, no. 3, p. 964, May 2025, doi: 10.62527/joiv.9.3.2902.
S. O. Khairunnisa, Z. Chen, and M. Komachi, “Dataset Enhancement and Multilingual Transfer for Named Entity Recognition in the Indonesian Language,” ACM Transactions on Asian and Low-Resource Language Information Processing, vol. 22, no. 6, pp. 1–21, Jun. 2023, doi: 10.1145/3592854.
N. Istiqomah and F. Novika, “Comparative Performance of IndoBERT and IndoLEM Baseline Models for Post-Disaster Health Information Extraction from Indonesian Online News,” Journal of Computer Science and Informatics Engineering, vol. 4, no. 3, pp. 158–174, Jul. 2025, doi: 10.55537/cosie.v4i3.1174.
A. Harnoune, M. Rhanoui, M. Mikram, S. Yousfi, Z. Elkaimbillah, and B. El Asri, “BERT Based Clinical Knowledge Extraction for Biomedical Knowledge Graph Construction and Analysis,” Computer Methods and Programs in Biomedicine Update, vol. 1, p. 100042, 2021, doi: 10.1016/j.cmpbup.2021.100042.
W. Sun, S. Liu, Y. Liu, L. Kong, and Z. Jian, “Named Entity Recognition Networks Based on Syntactically Constrained Attention,” Applied Sciences, vol. 13, no. 6, p. 3993, Mar. 2023, doi: 10.3390/app13063993.
R. Catelli, F. Gargiulo, V. Casola, G. De Pietro, H. Fujita, and M. Esposito, “Crosslingual named entity recognition for clinical de-identification applied to a COVID-19 Italian data set,” Applied Soft Computing, vol. 97, p. 106779, Dec. 2020, doi: 10.1016/j.asoc.2020.106779.
A. Roy, M. Saffar, A. Vaswani, and D. Grangier, “Efficient Content-Based Sparse Attention with Routing Transformers,” Transactions of the Association for Computational Linguistics, vol. 9, pp. 53–68, Feb. 2021, doi: 10.1162/tacl_a_00353.
Y. Tay, M. Dehghani, D. Bahri, and D. Metzler, “Efficient Transformers: A Survey,” ACM Computing Surveys, vol. 55, no. 6, pp. 1–28, Jun. 2023, doi: 10.1145/3530811.
A. van Engelenhoven, N. Strisciuglio, and E. Talavera, “CAST: Clustering self-Attention using Surrogate Tokens for Efficient Transformers,” Pattern Recognition Letters, vol. 186, pp. 30–36, Oct. 2024, doi: 10.1016/j.patrec.2024.08.024.
M. Yang, B. Namoano, M. Farsi, and J. Ahmet Erkoyuncu, “Named Entity Recognition in Aviation Products Domain Based on BERT,” IEEE Access, vol. 12, pp. 189710–189721, 2024, doi: 10.1109/ACCESS.2024.3516390.
S. O. Khairunnisa, A. Imankulova, and M. Komachi, “Towards a Standardized Dataset on Indonesian Named Entity Recognition,” in Proceedings of the 1st Conference of the Asia-Pacific Chapter of the Association for Computational Linguistics and the 10th International Joint Conference on Natural Language Processing: Student Research Workshop, Stroudsburg, PA, USA: Association for Computational Linguistics, 2020, pp. 64–71. doi: 10.18653/v1/2020.aacl-srw.10.
F. Koto, A. Rahimi, J. H. Lau, and T. Baldwin, “IndoLEM and IndoBERT: A Benchmark Dataset and Pre-trained Language Model for Indonesian NLP,” Nov. 2020, [Online]. Available: http://arxiv.org/abs/2011.00677.
S. Hochreiter and J. Schmidhuber, “Long Short-Term Memory,” Neural Computation, vol. 9, no. 8, pp. 1735–1780, Nov. 1997, doi: 10.1162/neco.1997.9.8.1735.
X. Ma and E. Hovy, “End-to-end Sequence Labeling via Bi-directional LSTM-CNNs-CRF,” in Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), Stroudsburg, PA, USA: Association for Computational Linguistics, 2016, pp. 1064–1074. doi: 10.18653/v1/P16-1101.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 HOAQ (High Education of Organization Archive Quality) : Jurnal Teknologi Informasi

This work is licensed under a Creative Commons Attribution 4.0 International License.
Jurnal HOAQ (High Education of Organization Archive Quality) : Jurnal Teknologi Informasi diterbitkan berdasarkan lisensi Creative Commons Attribution 4.0 International License (CC BY 4.0). Lisensi ini memungkinkan setiap orang untuk Berbagi: menyalin dan mendistribusikan kembali materi ini dalam format atau bentuk apapun; Adaptasi: merombak, mengubah, dan membuat turunan dari materi ini untuk keperluan apa pun, termasuk keperluan komersial, asalkan mereka memberikan pengakuan kepada Penulis Asli atas hasil karya aslinya.












