IDEAS home Printed from https://ideas.repec.org/a/eee/phsmap/v682y2026ics0378437125007654.html

Learning mechanism underlying NLP pre-training and fine-tuning

Author

Listed:
  • Tzach, Yarden
  • Gross, Ronit D.
  • Koresh, Ella
  • Rosner, Shalom
  • Shpringer, Or
  • Halevi, Tal
  • Kanter, Ido

Abstract

Natural language processing (NLP) enables the understanding and generation of meaningful human language, typically using a pre-trained complex architecture on a large dataset to learn the language and next fine-tune its weights to implement a specific task. Twofold goals are examined; to understand the mechanism underlying successful pre-training and to determine the interplay between the pre-training accuracy and the fine-tuning of classification tasks. The following main results were obtained; the accuracy per token (APT) increased with its appearance frequency in the dataset, and its average over all tokens served as an order parameter to quantify pre-training success, which increased along the transformer blocks. Pre-training broke the symmetry among tokens and grouped them into finite, small, strong match token clusters, as inferred from the presented token confusion matrix. This feature was sharpened along the transformer blocks toward the output layer, enhancing its performance considerably compared with that of the embedding layer. Consequently, higher-order language structures were generated by pre-training, even though the learning cost function was directed solely at identifying a single token. These pre-training findings were reflected by the improved fine-tuning accuracy along the transformer blocks. Additionally, the output label prediction confidence was found to be independent of the average input APT, as the input meaning was preserved since the tokens are replaced primarily by strong match tokens. Finally, although pre-training is commonly absent in image classification tasks, its underlying mechanism is similar to that used in fine-tuning NLP classification tasks, hinting at its universality. The results were based on the BERT-6 architecture pre-trained on the Wikipedia dataset and fine-tuned on the FewRel and DBpedia classification tasks.

Suggested Citation

  • Tzach, Yarden & Gross, Ronit D. & Koresh, Ella & Rosner, Shalom & Shpringer, Or & Halevi, Tal & Kanter, Ido, 2026. "Learning mechanism underlying NLP pre-training and fine-tuning," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 682(C).
  • Handle: RePEc:eee:phsmap:v:682:y:2026:i:c:s0378437125007654
    DOI: 10.1016/j.physa.2025.131113
    as

    Download full text from publisher

    File URL: http://www.sciencedirect.com/science/article/pii/S0378437125007654
    Download Restriction: Full text for ScienceDirect subscribers only. Journal offers the option of making the article available online on Science direct for a fee of $3,000

    File URL: https://libkey.io/10.1016/j.physa.2025.131113?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to

    for a different version of it.

    References listed on IDEAS

    as
    1. Koresh, Ella & Halevi, Tal & Meir, Yuval & Dilmoney, Dolev & Dror, Tamar & Gross, Ronit & Tevet, Ofek & Hodassman, Shiri & Kanter, Ido, 2024. "Scaling in Deep and Shallow Learning Architectures," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 646(C).
    2. Koresh, Ella & Gross, Ronit D. & Meir, Yuval & Tzach, Yarden & Halevi, Tal & Kanter, Ido, 2025. "Unified CNNs and transformers underlying learning mechanism reveals multi-head attention modus vivendi," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 666(C).
    3. Tevet, Ofek & Gross, Ronit D. & Hodassman, Shiri & Rogachevsky, Tal & Tzach, Yarden & Meir, Yuval & Kanter, Ido, 2024. "Efficient shallow learning mechanism as an alternative to deep learning," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 635(C).
    4. Gross, Ronit D. & Halevi, Tal & Koresh, Ella & Tzach, Yarden & Kanter, Ido, 2025. "Low-latency vision transformers via large-scale multi-head attention," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 675(C).
    5. Xie, Xiao-Ran & Zhang, Run-Fa, 2025. "Neural network-based symbolic calculation approach for solving the Korteweg–de Vries equation," Chaos, Solitons & Fractals, Elsevier, vol. 194(C).
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Gross, Ronit D. & Tzach, Yarden & Halevi, Tal & Koresh, Ella & Kanter, Ido, 2026. "Tiny language models," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 681(C).
    2. Gross, Ronit D. & Halevi, Tal & Koresh, Ella & Tzach, Yarden & Kanter, Ido, 2025. "Low-latency vision transformers via large-scale multi-head attention," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 675(C).
    3. Meir, Yuval & Tevet, Ofek & Tzach, Yarden & Hodassman, Shiri & Kanter, Ido, 2024. "Role of delay in brain dynamics," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 654(C).
    4. Gross, Ronit & Koresh, Ella & Halevi, Tal & Hodassman, Shiri & Meir, Yuval & Tzach, Yarden & Kanter, Ido, 2025. "Multilabel classification outperforms detection-based technique," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 658(C).
    5. Koresh, Ella & Gross, Ronit D. & Meir, Yuval & Tzach, Yarden & Halevi, Tal & Kanter, Ido, 2025. "Unified CNNs and transformers underlying learning mechanism reveals multi-head attention modus vivendi," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 666(C).
    6. Koresh, Ella & Halevi, Tal & Meir, Yuval & Dilmoney, Dolev & Dror, Tamar & Gross, Ronit & Tevet, Ofek & Hodassman, Shiri & Kanter, Ido, 2024. "Scaling in Deep and Shallow Learning Architectures," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 646(C).
    7. Cao, Na & Li, XuHai & Yin, XiaoJun, 2025. "The control model of Rossby waves and dynamic characteristics in stratified fluids," Chaos, Solitons & Fractals, Elsevier, vol. 201(P1).

    More about this item

    Keywords

    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:eee:phsmap:v:682:y:2026:i:c:s0378437125007654. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Catherine Liu (email available below). General contact details of provider: http://www.journals.elsevier.com/physica-a-statistical-mechpplications/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.