Scaling Laws Behind Code Understanding Model

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Lin, Jiayi, Dong, Hande, Xie, Yutao, Zhang, Lei
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913237611577344
author Lin, Jiayi
Dong, Hande
Xie, Yutao
Zhang, Lei
author_facet Lin, Jiayi
Dong, Hande
Xie, Yutao
Zhang, Lei
contents The scaling law is becoming a fundamental law in many machine learning areas. That is, test error falls off with the power law when increasing training data, model size, and computing resource. However, whether this law is suitable for the task of code understanding is not well studied, and most current language models for code understanding are about 100M parameters, which are relatively "small" compared to large language models. In this paper, we conduct extensive experiments to investigate the scaling law for the code understanding task by varying training data, model size, and computing resource. We validate that the test error of code understanding models falls off with the power law when using larger models, indicating that the scaling law is suitable for the code understanding task. Besides, we apply different scales of models to two downstream code understanding tasks, and find that the performance increases with larger scale of models. Finally, we train a large-scale code understanding model named CoLSBERT with 1.5B parameters on a large dataset using more computing resource, which outperforms previous work by a large margin. We will release our code and the CoLSBERT model when our paper is published.
format Preprint
id arxiv_https___arxiv_org_abs_2402_12813
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Scaling Laws Behind Code Understanding Model
Lin, Jiayi
Dong, Hande
Xie, Yutao
Zhang, Lei
Software Engineering
The scaling law is becoming a fundamental law in many machine learning areas. That is, test error falls off with the power law when increasing training data, model size, and computing resource. However, whether this law is suitable for the task of code understanding is not well studied, and most current language models for code understanding are about 100M parameters, which are relatively "small" compared to large language models. In this paper, we conduct extensive experiments to investigate the scaling law for the code understanding task by varying training data, model size, and computing resource. We validate that the test error of code understanding models falls off with the power law when using larger models, indicating that the scaling law is suitable for the code understanding task. Besides, we apply different scales of models to two downstream code understanding tasks, and find that the performance increases with larger scale of models. Finally, we train a large-scale code understanding model named CoLSBERT with 1.5B parameters on a large dataset using more computing resource, which outperforms previous work by a large margin. We will release our code and the CoLSBERT model when our paper is published.
title Scaling Laws Behind Code Understanding Model
topic Software Engineering
url https://arxiv.org/abs/2402.12813