journal article·2026-02-05Open access

Knowledge-Injected Transformer (KIT): A Modular Encoder–Decoder Architecture for Efficient Knowledge Integration and Reliable Question Answering

Lyudmyla Kirichenko, Daniil Maksymenko, Olena Turuta, Sergiy Yakovlev, Oleksii Turuta

Applied Sciences· Volume 16· Issue 3

Abstract

Decoder-only language models (LMs) store factual knowledge directly in their parameters, resulting in large model sizes, costly retraining when facts change, and limited controllability in knowledge-intensive information systems. These models frequently mix stored knowledge with user-provided context, which leads to hallucinations and reduces reliability. To address these limitations, we propose KIT (Knowledge-Injected Transformer), a modular encoder–decoder architecture that separates syntactic competence from factual knowledge representation. In KIT, the decoder is pre-trained on knowledge-agnostic narrative corpora to learn language structure, while the encoder is trained independently to compress structured facts into compact latent representations. During joint training, the decoder learns to decompress these representations and generate accurate, fact-grounded responses. The modular design provides three key benefits: (1) factual knowledge can be updated by retraining only the encoder, without modifying decoder weights; (2) strict domain boundaries can be enforced, the modular design provides a structural foundation for reducing knowledge source confusion and hallucinations, with its actual effectiveness awaiting future validation on standard hallucination benchmarks; and (3) interpretability is improved because each generated token can be traced back to encoder activations. A real-world experimental evaluation demonstrates that KIT achieves competitive answer accuracy while offering superior controllability and substantially lower update costs compared to decoder-only baselines. These results indicate that modular encoder–decoder architectures represent a promising and reliable alternative for explainable, adaptable, and domain-specific question answering in modern information systems.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Topic Modeling · Advanced Graph Neural Networks · Explainable Artificial Intelligence (XAI)

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Institute of Computer Science and Artificial Intelligence, V.N. Karazin Kharkiv National University, 61022 Kharkiv, Ukraine

Institute of Mathematics, Lodz University of Technology, 90-924 Lodz, Poland

Faculty of Computer Engineering and Control, Kharkiv National University of Radio Electronics, 61022 Kharkiv, Ukraine

Funding

Ministry of Education and Science of Ukraine

References (42)

Show source-provided references
1. Li, M., Zhao, Y., Zhang, W., Li, S., Xie, W., Ng, S.-K., Chua, T.-S., and Deng, Y. (August, January 27). Knowledge Boundary of Large Language Models: A Survey. Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), Vienna, Austria.
2. Wang, M., Stoll, A., Lange, L., Adel, H., Schuetze, H., and Strötgen, J. (August, January 31). Bring Your Own Knowledge: A Survey of Methods for LLM Knowledge Expansion. Proceedings of the First Workshop on Large Language Model Memorization (L2M2), Vienna, Austria.
3. Chen, Z., Wang, S., Xiao, T., Wang, Y., Chen, S., Cai, X., He, J., and Wang, J. (August, January 27). Revisiting Scaling Laws for Language Models: The Role of Data Quality and Training Strategies. Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), Vienna, Austria.
4. Dai, D., Dong, L., Hao, Y., Sui, Z., Chang, B., and Wei, F. (2022, January 22–27). Knowledge Neurons in Pretrained Transformers. Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), Dublin, Ireland.10.18653/v1/2022.acl-long.581 ↗
5. Yang, W., Sun, F., Tan, J., Ma, X., Su, D., Yin, D., and Shen, H. (2024, January 12–16). The Fall of ROME: Understanding the Collapse of LLMs in Model Editing. Proceedings of the Findings of the Association for Computational Linguistics: EMNLP 2024, Miami, FL, USA.10.18653/v1/2024.findings-emnlp.236 ↗
6. Tamayo, D., Gonzalez-Agirre, A., Hernando, J., and Villegas, M. (2024, January 11–16). Mass-Editing Memory with Attention in Transformers: A Cross-Lingual Exploration of Knowledge. Proceedings of the Findings of the Association for Computational Linguistics ACL 2024, Bangkok, Thailand.10.18653/v1/2024.findings-acl.347 ↗
7. Hu, E.J., Shen, Y., Wallis, P., Allen-Zhu, Z., Li, Y., Wang, S., Wang, L., and Chen, W. (2021). LoRA: Low-Rank Adaptation of Large Language Models. arXiv.
8. Pletenev, S., Marina, M., Moskovskiy, D., Konovalov, V., Braslavski, P., Panchenko, A., and Salnikov, M. (May, January 29). How Much Knowledge Can You Pack into a LoRA Adapter without Harming LLM?. Proceedings of the Findings of the Association for Computational Linguistics: NAACL 2025, Albuquerque, NM, USA.10.18653/v1/2025.findings-naacl.243 ↗
9. Dong, Q., Li, L., Dai, D., Zheng, C., Ma, J., Li, R., Xia, H., Xu, J., Wu, Z., and Chang, B. (2024, January 12–16). A Survey on In-Context Learning. Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, Miami, FL, USA.10.18653/v1/2024.emnlp-main.64 ↗
10. Wang, Y., Ren, R., Li, J., Zhao, X., Liu, J., and Wen, J.-R. (2024, January 12–16). REAR: A Relevance-Aware Retrieval-Augmented Framework for Open-Domain Question Answering. Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, Miami, FL, USA.10.18653/v1/2024.emnlp-main.321 ↗
11. Feng, S., Park, C.Y., Liu, Y., and Tsvetkov, Y. (2023, January 9–14). From Pretraining Data to Language Models to Downstream Tasks: Tracking the Trails of Political Biases Leading to Unfair NLP Models. Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), Toronto, ON, Canada.10.18653/v1/2023.acl-long.656 ↗
12. Calderon, N., and Reichart, R. (May, January 29). On Behalf of the Stakeholders: Trends in NLP Model Interpretability in the Era of LLMs. Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), Albuquerque, NM, USA.10.18653/v1/2025.naacl-long.29 ↗
13. Gururangan, S., Marasović, A., Swayamdipta, S., Lo, K., Beltagy, I., Downey, D., and Smith, N.A. (2020, January 5–10). Don’t Stop Pretraining: Adapt Language Models to Domains and Tasks. Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, Online.10.18653/v1/2020.acl-main.740 ↗
14. Hoffmann, J., Borgeaud, S., Mensch, A., Buchatskaya, E., Cai, T., Rutherford, E., de Las Casas, D., Hendricks, L.A., Welbl, J., and Clark, A. (2022). Training Compute-Optimal Large Language Models. arXiv.
15. Grattafiori, A., Dubey, A., Jauhri, A., Pandey, A., Kadian, A., Al-Dahle, A., Letman, A., Mathur, A., Schelten, A., and Vaughan, A. (2024). The Llama 3 Herd of Models. arXiv.
16. Li, J., Yin, L., Shen, L., Xu, J., Xu, L., Huang, T., Wang, W., Liu, S., and Wang, X. (2025). LOST: Low-Rank and Sparse Pre-Training for Large Language Models. arXiv.
17. He, L., Chen, P., Nie, E., Li, Y., and Brennan, J.R. (2024). Decoding Probing: Revealing Internal Linguistic Structures in Neural Language Models Using Minimal Pairs. arXiv.
18. BLiMP: The Benchmark of Linguistic Minimal Pairs for English10.1162/tacl_a_00321 ↗
19. Meng, K., Bau, D., Andonian, A., and Belinkov, Y. (2022). Locating and Editing Factual Associations in GPT. arXiv.
20. Dong, Z., Shen, X., and Xia, R. (August, January 27). MEMIT-Merge: Addressing MEMIT’s Key-Value Conflicts in Same-Subject Batch Editing for LLMs. Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics: ACL 2025, Vienna, Austria.10.18653/v1/2025.findings-acl.415 ↗
21. Eldan, R., and Li, Y. (2023). TinyStories: How Small Can Language Models Be and Still Speak Coherent English?. arXiv.
22. de Vries, W., and Nissim, M. (2021, January 1–6). As Good as New. How to Successfully Recycle English GPT-2 to Make Models for Other Languages. Proceedings of the Findings of the Association for Computational Linguistics: ACL-IJCNLP 2021, Online Event.10.18653/v1/2021.findings-acl.74 ↗
23. Kalyan, K.S. (2023). A Survey of GPT-3 Family Large Language Models Including ChatGPT and GPT-4. arXiv.10.2139/ssrn.4593895 ↗
24. Achiam, J., Adler, S., Agarwal, S., Ahmad, L., Akkaya, I., Aleman, F.L., Almeida, D., Altenschmidt, J., and Altman, S. (2023). GPT-4 Technical Report. arXiv.
25. Zhang, B., Moiseev, F., Ainslie, J., Suganthan, P., Ma, M., Bhupatiraju, S., Lebron, F., Firat, O., Joulin, A., and Dong, Z. (2025). Encoder– Decoder Gemma: Improving the Quality-Efficiency Trade-Off via Adaptation. arXiv.
26. Zhang, B., Suganthan, P., Liu, G., Philippov, I., Dua, S., Hora, B., Black, K., Martins, G., Sanseviero, O., and Pathak, S. (2025). T5Gemma 2: Seeing, Reading, and Understanding Longer. arXiv.
27. Cobbe, K., Kosaraju, V., Bavarian, M., Chen, M., Jun, H., Kaiser, L., Plappert, M., Tworek, J., Hilton, J., and Nakano, R. (2021). Training Verifiers to Solve Math Word Problems. arXiv.
28. Warner, B., Chaffin, A., Clavié, B., Weller, O., Hallström, O., Taghadouini, S., Gallagher, A., Biswas, R., Ladhak, F., and Aarsen, T. (August, January 27). Smarter, Better, Faster, Longer: A Modern Bidirectional Encoder for Fast, Memory Efficient, and Long Context Finetuning and Inference. Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), Vienna, Austria.
29. Fu, J., Ng, S.-K., Jiang, Z., and Liu, P. (2024, January 16–21). GPTScore: Evaluate as You Desire. Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), Mexico City, Mexico.10.18653/v1/2024.naacl-long.365 ↗
30. Black, S., Biderman, S., Hallahan, E., Anthony, Q., Gao, L., Golding, L., He, H., Leahy, C., McDonell, K., and Phang, J. (2022). GPT-NeoX-20B: An Open-Source Autoregressive Language Model. Proceedings of BigScience Episode #5—Workshop on Challenges & Perspectives in Creating Large Language Models.10.18653/v1/2022.bigscience-1.9 ↗
31. Lewis, M., Liu, Y., Goyal, N., Ghazvininejad, M., Mohamed, A., Levy, O., Stoyanov, V., and Zettlemoyer, L. (2020, January 5–10). BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehension. Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, Online.10.18653/v1/2020.acl-main.703 ↗
32. Split Learning for Distributed Collaborative Training of Deep Learning Models in Health Informatics
33. Rajpurkar, P., Zhang, J., Lopyrev, K., and Liang, P. (2016). SQuAD: 100,000+ Questions for Machine Comprehension of Text. arXiv.10.18653/v1/D16-1264 ↗
34. Monteiro, J., Noel, P.-A., Marcotte, E., Rajeswar, S., Zantedeschi, V., Vazquez, D., Chapados, N., Pal, C., and Taslakian, P. (2024). RepLiQA: A Question-Answering Dataset for Benchmarking LLMs on Unseen Reference Content. arXiv.
35. Rykov, E., Petrushina, K., Savkin, M., Olisov, V., Vazhentsev, A., Titova, K., Panchenko, A., Konovalov, V., and Belikova, J. (2025). When Models Lie, We Learn: Multilingual Span-Level Hallucination Detection with PsiloQA. arXiv.10.18653/v1/2025.findings-emnlp.626 ↗
36. Allard, M.-A., Ansaripour, M., Yuffa, M., and Teiletche, P. (2024). LLaMa-SciQ: An Educational Chatbot for Answering Science MCQ. arXiv.
37. Gliwa, B., Mochol, I., Biesek, M., and Wawer, A. (2019, January 4). SAMSum Corpus: A Human-Annotated Dialogue Dataset for Abstractive Summarization. Proceedings of the 2nd Workshop on New Frontiers in Summarization, Hong Kong, China.10.18653/v1/D19-5409 ↗
38. Bauer, A., Trapp, S., Stenger, M., Leppich, R., Kounev, S., Leznik, M., Chard, K., and Foster, I. (2024). Comprehensive Exploration of Synthetic Data Generation: A Survey. arXiv.
39. Lee, J., Chen, F., Dua, S., Cer, D., Shanbhogue, M., Naim, I., Ábrego, G.H., Li, Z., Chen, K., and Vera, H.S. (2025). Gemini Embedding: Generalizable Embeddings from Gemini. arXiv.
40. Lin, C.Y. (2004, January 25–26). ROUGE: A Package for Automatic Evaluation of Summaries. Proceedings of the Workshop on Text Summarization Branches Out, Barcelona, Spain.
41. Papineni, K., Roukos, S., Ward, T., and Zhu, W.J. (2002, January 6–12). Bleu: A Method for Automatic Evaluation of Machine Translation. Proceedings of the 40th Annual Meeting of the Association for Computational Linguistics, Philadelphia, PA, USA.10.3115/1073083.1073135 ↗
42. Gu, J., Jiang, X., Shi, Z., Tan, H., Zhai, X., Xu, C., Li, W., Shen, Y., Ma, S., and Liu, H. (2024). A Survey on LLM-as-a-Judge. arXiv.