본문 바로가기
읽기 · 학술 · 공개 라이선스 원문

On the Opportunities and Risks of Foundation Models

Rishi Bommasani et al. · 2021

스탠퍼드 대학의 연구자 100여 명이 대규모 자료로 학습해 여러 일에 두루 쓰이는 AI 모형을 파운데이션 모델이라고 이름 붙이고, 그 능력 · 기술 · 응용 · 사회적 영향을 정리한 보고서입니다. 법 · 의료와 함께 교육 분야의 가능성과 위험도 한 장을 들여 다룹니다.

출처 Bommasani et al. (2021), arXiv (Stanford Center for Research on Foundation Models), 2108.07258 · 라이선스 CC BY 4.0 · 원문

장 33개 올림 이 장 2481낱말
← 앞 장 다음 장 →

이 장은 원문만 있습니다. 문장별 해석은 앞 장부터 차례로 붙입니다.

31장 · Society — Environment

Foundation models can potentially lead to many social and environmental benefits, for example in legal domains (§3.2: law), healthcare (§3.1: healthcare), or even tackling climate change (Rolnick et al., 2019). But because of their scale, they themselves can negatively impact the environment through increased carbon emissions if model creators are not careful (Strubell et al., 2019; Lottick et al., 2019; Schwartz et al., 2019; Lacoste et al., 2019; Cao et al., 2020; Henderson et al., 2020; Bender et al., 2021; Patterson et al., 2021; Lannelongue et al., 2021; Parcollet and Ravanelli, 2021). Addressing such emissions is an imperative: current forecasts show that climate change is occurring more rapidly than previously thought (Masson-Delmotte et al., 2021).

To understand where such emissions can occur in foundation models, we consider their lifecycle. First, they are trained on vast amounts of data, possibly for up to months of time and often distributed across hundreds to thousands of GPUs. Afterwards, they may be adapted to new domains or perhaps distilled into smaller models. All of this can be considered part of the training regime. Models used purely for research may not move beyond these steps. After models have been adapted and/or distilled, they might move on to be deployed into production. At this point many rounds of inference will run through the model until a new model is trained and the cycle repeats.

Each one of these steps has the potential to utilize large amounts of energy and can contribute to carbon emissions. Foundation models can generate large, one-time energy costs and carbon emissions during the initial training phase. For example, the amount of emissions from training one BERT-base model, under some conditions, would only be offset by 40 trees grown for 10 years. And if deployed at scale, foundation models can require substantial energy to service millions of requests — translating to large carbon emissions if nonrenewable resources are used.

Therefore, the environmental impacts of certain design decisions for both training and deploying foundation models can be substantial. Even seemingly minuscule decisions, like reducing the number of layers a model has, may lead to significant environmental cost reductions at scale. For example, based on calculations from Henderson et al. (2020), a slightly more energy efficient translation model deployed at the scale of a commercial translation service could save between 78 kgCO2eq and 12,768 kgCO2eq of carbon emissions per day depending on the energy grid used. This is roughly equivalent to the carbon sequestered by 1 to 211 trees grown for 10 years, or the carbon sequestered by.35 to 57.4 acres of forest in one year. Thus the design, deployment, and post-deployment monitoring of foundation models should adequately reflect these risks.

There are of course uncertainties in calculating the amount of energy used or carbon emitted by any given model (Henderson et al., 2020; Cao et al., 2020; Patterson et al., 2021), and other sources of emissions may currently be much greater than those generated by foundation models (Mora et al., 2018). But if foundation models continue to scale and gain in popularity, they may very well become a significant contributor to carbon emissions. Our goal is to provide a framework for foundation model developers and large-scale deployers to consider how they can mitigate any unnecessary carbon emissions and keep the net social impact of these models positive. We recommend that:

• (1) Carbon impacts can and should be mitigated in many cases. This can be accomplished by training models in low-carbon intensity regions, or by using more efficient models and hardware (§5.3.1: environment-mitigation).

• (2) When all mechanisms for mitigation have been exhausted and mitigation is no longer possible, the costs and benefits to society should be assessed to determine if and when a larger foundation model should be deployed over a smaller, more efficient, model — with the understanding that the up-front costs of a large foundation model may be amortized over the lifetime of the model (§5.3.2: environment-costs).

• (3) Energy, computational, and carbon costs — as well as any efforts taken to mitigate negative impacts — should be clearly reported to inform policymaking and research (§5.3.3: environment-reporting).

Carbon impacts can and should be mitigated in many cases

The carbon impacts of training foundation models differ from the impacts of deploying them for inference. Model training has no latency requirements, so training can be moved across energy grids with relative ease in cloud environments. Every energy grid has its own carbon intensity — the amount of carbon emitted per kilowatt-hour of energy used. For example, Québec has an extremely low carbon intensity due to its reliance on hydroelectricity, while Estonia’s energy grid has an extremely high carbon intensity due to its reliance on shale oil (though that is changing quickly) (Henderson et al., 2020). Recent research has even suggested that the top 5% of polluting power plants contributed 73% of all electricity-based emissions (Grant et al., 2021). Thus, while training foundation models can be quite energy intensive, researchers have demonstrated that the carbon impacts of these models can be partly mitigated by selecting energy grids with minimal carbon emissions (Henderson et al., 2020; Lacoste et al., 2019; Patterson et al., 2021).

Carbon offsets have also been proposed as a stopgap until carbon-free renewable electricity is available at all data centers. This strategy involves reducing carbon emissions in one activity to offset the emissions from another. But most — if not all — carbon offsets are a strictly worse solution than not emitting CO2 in the first place (Holl and Brancalion, 2020). Some carbon offset programs can even have a negative impact. For example, studies of forest planting campaigns (often a source of carbon offsetting) show that they can do more harm than good. They can yield monocultures (the use of one particular species of tree) that diminish the biodiversity of the region and reduce carbon storage in the forest soil (Heilmayr et al., 2020; Hong et al., 2020b). This could result in more carbon emissions when using carbon offsets than if the original carbon had never been emitted in the first place. Therefore, when training or deploying a foundation model, we recommend designing for as little carbon emission as possible up-front, rather than simply relying on carbon offsets to cancel emissions.

When it is not possible to run in low-carbon regions, other mitigation strategies should be leveraged, reducing unnecessary energy usage. This includes:

• • using more efficient hardware,

• • using mixed-precision training (Micikevicius et al., 2017) or quantization (Gholami et al., 2021),

• • using more efficient architectures (e.g., using an evolved transformer over a vanilla transformer architecture; or using sparse models) (So et al., 2019; Patterson et al., 2021; Mostafa and Wang, 2019),

• • distilling models and using distilled models (e.g., (Sanh et al., 2019)),

• • and utilizing other optimization strategies that will reduce energy costs (see more discussion in §4.5: systems).

Maintainers of open source projects and cloud compute should strive to set their default settings to the most efficient possible, since “green defaults” are known to be the most effective mitigation strategies (see discussion in (Henderson et al., 2020)). Other mitigation strategies can be found in recent literature (Strubell et al., 2019; Lacoste et al., 2019; Schwartz et al., 2019; Henderson et al., 2020). We also note that reducing and mitigating energy usage also has the added benefit of making models more accessible to those with limited compute access (see §5.6: ethics for more discussion).

However, when a model is mainly used for inference, e.g., deployed in a production application, it often cannot be moved to a less carbon-intensive energy grid for low-latency applications. In addition to using the mitigation strategies specified above, in this case it is important to weigh the benefits of the proposed foundation model versus a more energy efficient alternative. We discuss this further in the subsequent section.

Costs and benefits should be assessed before using foundation models

After taking as many steps as possible towards mitigation (or where mitigation is not possible), it is vital to assess the required size of a foundation model — or whether a foundation model should be used at all. This cost-benefit analysis should consider:

• (1) Is the social cost and environmental cost from deploying the foundation model greater than the social benefit of the model?

• (2) Would another, computationally simpler and cheaper approach achieve comparable social benefit (e.g., a much more efficient foundation model, or perhaps simple baseline)?

A simplified scheme for assessing this trade-off considers the overall impact of a model M as:

Figure 26 represents this equation and the costs and benefits that may enter each variable. Here, M is the model and S is the net social benefit, as well as environmental benefit, in dollars. S can be increased by improving healthcare, access to justice, decreasing poverty, improving environmental monitoring, aiding ecosystem conservation efforts, and so on.

C is the social cost of carbon from energy use. This represents the future harm to society from the carbon released as a present-day monetary value. The upper bound U.S. Environmental Protection Agency (EPA) estimate from 2017 for the social cost of carbon was $105 (in 2007 U.S. dollars) per metric ton of CO2 emitted.

E is the energy cost of the model. For example, in April 2021, the average U.S. residential energy cost was about $0.1376 per kWh. Added to this variable could be the costs from increased strain on the energy grid. For example, a recent study suggested that the cost per energy grid interruption event, normalized by average demand, could be as high as $15.9 per average kW (Sullivan et al., 2015).

O is the social cost of other second order environmental effects. This could include:

• • The compounding carbon impacts from increased chip demand and chip production (Gupta et al., 2021a).

• • Other environmental impacts of chip manufacturing, like the creation of toxic waste sites in Silicon Valley, whose health effects are unequally distributed to socially vulnerable populations (Stewart et al., 2014), or pollution from manufacturing in Taiwan that has been linked to chronic health problems (Tu and Lee, 2009; Lin et al., 2016).

• • The compounding effects of climate change that are not already included in the SCC model. For example, these effects could include accelerated desertification (Huang et al., 2016), rapid ecosystem changes that put many species at risk of extinction (Urban, 2015), and increased carbon emissions due to melting permafrost (Schuur et al., 2015).

• • Unnecessary strain on chip production capacities. Recent chip shortages have led to work stoppages in automobile manufacturing. There is no evidence to suggest that increasing demand for ML-optimized chips led to this shortage. But such considerations fall into second order effects, where researchers might weigh whether the risks, however slight, of contributing to such negative impacts are worth using or deploying a large model.

It is important to consider in this analysis that the economic benefits and social costs of carbon could be distributed unequally across communities, with poorer communities being impacted more heavily by climate change and wealthier communities being benefited by a model (Bender et al., 2021). As such, when conducting the Equation analysis, one should consider the benefits and harms to society more broadly rather than for a given organization or country. In this case V⁡(M) can be viewed as a distribution and should ideally be evenly distributed across the population. In cases where the distribution is highly uneven — for example where all the benefits fall to the model designer while all the harms fall to populations that will never benefit from the model — the designer should spend substantially more effort on mitigation before deploying the model.

There is, of course, some uncertainty in which methodology to use when valuing each component of Equation. Empirical estimates for many of these terms can range in multiple magnitudes depending on the data source and modeling choice for the phenomena, such as the different mechanisms for evaluating the social cost of carbon. And of course additional externalities, that may be difficult to quantify monetarily, will continue to need to be considered. The key takeaway of this cost-benefit analysis, however, is not the dollar valuation of each term in the equation, but rather the existence of and relative importance of each of these effects. Our goal is to provide a high-level framework for beginning to consider these trade-offs. Future research may give more guidance on how to quantify each of these values.

Finally, we note that these factors should also be evaluated over the lifetime of the model, not on a per-run basis. Consider an alternative baseline model that must be trained from scratch for every new task. The baseline may well require an expensive hyperparameter search to achieve equivalent performance on downstream tasks. In contrast, the foundation model places the brunt of the costs on the initial pretraining procedure, with fine-tuning perhaps being much simpler and more energy efficient. Over the lifetime of the foundation model, it could be more carbon efficient than the baseline (Figure 27). Even more efficient adaptation mechanisms could improve this amortization further (see §4.3: adaptation).

The efficiency of adaptation, however, is not guaranteed. It may be true that some foundation models will never be more efficient than a particular baseline, even when amortized over many tasks. For example, it cannot be assumed that a smaller model with fewer parameters will translate to energy efficiency improvements. Due to increased hyperparameter tuning costs or other optimizations, the number of parameters has been shown not to correlate with energy efficiency in some cases (Zhou et al., 2020; Henderson et al., 2020). Therefore, foundation model developers should rigorously assess the efficiency of their models and adaptation mechanisms before beginning large-scale training efforts.

The framework in this section is meant to guide the reader in thinking about the environmental and societal trade-offs in training and deploying their model, but there are other substantial social justice considerations involved in deploying a foundation model, discussed in §5.6: ethics. §5.5: economics also discusses in more detail the dynamics of social welfare from algorithm deployment.

Carbon/energy impacts should be systematically reported

A cost-benefit analysis cannot be conducted unless researchers and engineers working on foundation models report the computational, energy, and carbon costs of their models. We encourage foundation model developers, providers, and curators to report these metrics, as well as what carbon reduction strategies were used in the making of the foundation model. See (Henderson et al., 2020; Lottick et al., 2019; Lacoste et al., 2019; Schmidt et al., 2021; Anthony et al., 2020) for examples of a Carbon Impact Statement and for tools that can facilitate this reporting. For researchers, such reporting can occur at publication time, but we also encourage industry actors to adopt transparency mechanisms to report these metrics for their deployed models. This will help set policy recommendations within industry and academia, as well as help downstream users identify carbon-friendly usage patterns. Standardized reporting will also aid in determining which models are accessible to those with limited compute access (see §5.6: ethics for more discussion on accessibility).

To encourage more reporting of energy and carbon impacts, we suggest, among other strategies: giving green badges at conferences, requiring reporting of relevant metrics for submission to conference venues, lobbying large-scale deployers of foundation models to provide more transparency, and generally shifting professional norms in academia and industry towards standard reporting of these metrics (see more discussion on professional norms in §5.6: ethics and more discussion on reporting mechanisms by Henderson et al. (2020)).

이 글은 위 출처의 원문을 그 라이선스(CC BY 4.0)에 따라 옮겼습니다. 참고문헌 목록과 인용 번호, 그림 · 표 · 각주 · 수식 · 부록은 빼고 절별로 나누어 실었으며, 그 밖의 문장은 원문 그대로입니다. 원 저작자와 발행 기관은 이 화면을 만들거나 검토하지 않았고, 이곳의 해석과 낱말 풀이는 공식 번역이 아닙니다.