Related Experiment Video
Updated: Jun 4, 2025

Surrogate Model Development for Digital Experiments in Welding
Published on: March 28, 2025
Promises and perils of using Transformer-based models for SE research
Yan Xiao1, Xinyue Zuo2, Xiaoyue Lu1
1Shenzhen Campus of Sun Yat-sen University, No. 66, Gongchang Road, Guangming District, Shenzhen, 518107, Guangdong, China.
This study analyzes transformer models for code, finding encoder-only models excel at general tasks and decoder-only models at generation. Performance varies, with less popular models sometimes outperforming, and generalization remains a challenge.
Area of Science:
- Computer Science
- Software Engineering
Background:
- Transformer-based pre-trained models are increasingly used for code-related tasks.
- A comprehensive analysis of these models' performance, resource consumption, and generalization is needed.
Purpose of the Study:
- To empirically analyze 519 papers on transformer models for code (2017-2023).
- To evaluate model architectures (CodeBERT, CodeGPT, CodeT5) on key software engineering tasks (Bug Fixing, Bug Detection, Code Summarization, Code Search).
- To assess resource consumption and generalization capabilities.
Main Methods:
- Systematic literature review of 519 papers.
- Empirical experiments with CodeBERT, CodeGPT, and CodeT5.
- Evaluation across four software engineering tasks.
Main Results:
- Encoder-only models (CodeBERT) can outperform encoder-decoder models on general tasks.
- Decoder-only models (CodeGPT) show promise for specific generation tasks.
- Less popular models may offer superior performance.
- CodeBERT is efficient for understanding tasks; CodeT5's efficiency is inconsistent for generation.
- Poor model generalization observed on popular Bug Fixing and Code Summarization benchmarks.
Conclusions:
- Transformer models offer significant potential but face practical challenges.
- Model architecture choice is critical and task-dependent.
- Generalization remains a key area for improvement in code intelligence research.
Related Concept Videos
Transformers with Off-Nominal Turns Ratios
Three-Winding Transformers
In the per-unit equivalent circuit of a grounded Y-Y three-phase...
Equivalent Circuits for Practical Transformers
In a practical transformer, each winding exhibits resistance and leakage reactance. The...
Types Of Transformers
If the ratio of the number of turns in the secondary winding to that of the primary winding is greater than one, then the transformer is said to be a step-up transformer. In a step-up transformer, the voltage at the secondary winding is greater than the voltage applied at the primary winding.
However, if this ratio is less than one, the transformer is said to be a step-down...
Energy Losses in Transformers
There are four main reasons for energy losses in transformers.
The first cause can be the high resistance of the...
Transformers
The iron core has a substantial relative permeability. Therefore, the magnetic field lines generated due to the current in one winding are almost entirely confined within the core, such that the same magnetic flux permeates each turn of both...

