Moving Faster and Reducing Risk: Using LLMs in Release Deployment

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Abreu, Rui, Murali, Vijayaraghavan, Rigby, Peter C, Maddila, Chandra, Sun, Weiyan, Ge, Jun, Chinniah, Kaavya, Mockus, Audris, Mehta, Megh, Nagappan, Nachiappan
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913538540306432
author Abreu, Rui
Murali, Vijayaraghavan
Rigby, Peter C
Maddila, Chandra
Sun, Weiyan
Ge, Jun
Chinniah, Kaavya
Mockus, Audris
Mehta, Megh
Nagappan, Nachiappan
author_facet Abreu, Rui
Murali, Vijayaraghavan
Rigby, Peter C
Maddila, Chandra
Sun, Weiyan
Ge, Jun
Chinniah, Kaavya
Mockus, Audris
Mehta, Megh
Nagappan, Nachiappan
contents Release engineering has traditionally focused on continuously delivering features and bug fixes to users, but at a certain scale, it becomes impossible for a release engineering team to determine what should be released. At Meta's scale, the responsibility appropriately and necessarily falls back on the engineer writing and reviewing the code. To address this challenge, we developed models of diff risk scores (DRS) to determine how likely a diff is to cause a SEV, i.e., a severe fault that impacts end-users. Assuming that SEVs are only caused by diffs, a naive model could randomly gate X% of diffs from landing, which would automatically catch X% of SEVs on average. However, we aimed to build a model that can capture Y% of SEVs by gating X% of diffs, where Y >> X. By training the model on historical data on diffs that have caused SEVs in the past, we can predict the riskiness of an outgoing diff to cause a SEV. Diffs that are beyond a particular threshold of risk can then be gated. We have four types of gating: no gating (green), weekend gating (weekend), medium impact on end-users (yellow), and high impact on end-users (red). The input parameter for our models is the level of gating, and the outcome measure is the number of captured SEVs. Our research approaches include a logistic regression model, a BERT-based model, and generative LLMs. Our baseline regression model captures 18.7%, 27.9%, and 84.6% of SEVs while respectively gating the top 5% (weekend), 10% (yellow), and 50% (red) of risky diffs. The BERT-based model, StarBERT, only captures 0.61x, 0.85x, and 0.81x as many SEVs as the logistic regression for the weekend, yellow, and red gating zones, respectively. The generative LLMs, iCodeLlama-34B and iDiffLlama-13B, when risk-aligned, capture more SEVs than the logistic regression model in production: 1.40x, 1.52x, 1.05x, respectively.
format Preprint
id arxiv_https___arxiv_org_abs_2410_06351
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Moving Faster and Reducing Risk: Using LLMs in Release Deployment
Abreu, Rui
Murali, Vijayaraghavan
Rigby, Peter C
Maddila, Chandra
Sun, Weiyan
Ge, Jun
Chinniah, Kaavya
Mockus, Audris
Mehta, Megh
Nagappan, Nachiappan
Software Engineering
Release engineering has traditionally focused on continuously delivering features and bug fixes to users, but at a certain scale, it becomes impossible for a release engineering team to determine what should be released. At Meta's scale, the responsibility appropriately and necessarily falls back on the engineer writing and reviewing the code. To address this challenge, we developed models of diff risk scores (DRS) to determine how likely a diff is to cause a SEV, i.e., a severe fault that impacts end-users. Assuming that SEVs are only caused by diffs, a naive model could randomly gate X% of diffs from landing, which would automatically catch X% of SEVs on average. However, we aimed to build a model that can capture Y% of SEVs by gating X% of diffs, where Y >> X. By training the model on historical data on diffs that have caused SEVs in the past, we can predict the riskiness of an outgoing diff to cause a SEV. Diffs that are beyond a particular threshold of risk can then be gated. We have four types of gating: no gating (green), weekend gating (weekend), medium impact on end-users (yellow), and high impact on end-users (red). The input parameter for our models is the level of gating, and the outcome measure is the number of captured SEVs. Our research approaches include a logistic regression model, a BERT-based model, and generative LLMs. Our baseline regression model captures 18.7%, 27.9%, and 84.6% of SEVs while respectively gating the top 5% (weekend), 10% (yellow), and 50% (red) of risky diffs. The BERT-based model, StarBERT, only captures 0.61x, 0.85x, and 0.81x as many SEVs as the logistic regression for the weekend, yellow, and red gating zones, respectively. The generative LLMs, iCodeLlama-34B and iDiffLlama-13B, when risk-aligned, capture more SEVs than the logistic regression model in production: 1.40x, 1.52x, 1.05x, respectively.
title Moving Faster and Reducing Risk: Using LLMs in Release Deployment
topic Software Engineering
url https://arxiv.org/abs/2410.06351