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

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개 올림 이 장 3316낱말
← 앞 장 다음 장 →

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

21장 · Technology — Evaluation

Introduction

Evaluation gives context to machine learning models: it serves as a means for (1) tracking progress — how do we we measure the performance of models and how do we design improved models (§4.1: modeling); (2) understanding — what behaviors do models exhibit (§4.11: interpretability) and how do they perform on different slices of data (§4.8: robustness); and (3) documentation — how do we efficiently summarize model behavior and communicate this to diverse stakeholders. For foundation models, each of these purposes for evaluation are critical but the nature of foundation models introduces new challenges that are not generally encountered in other AI or ML settings:

• (1) Tracking progress requires relative comparison, but comparing foundation models is complicated by the fact that foundation models must be adapted (potentially in different ways) to perform tasks.

• (2) Understanding requires specified in-advance knowledge (e.g., taxonomies) of what is being evaluated for, but foundation models acquire emergent skills (e.g., in-context learning) that will be difficult to anticipate in designing evaluations.

• (3) Documentation requires clear desiderata to meaningfully inform decision-making, but foundation models can be adapted for myriad applications, which makes comprehensive documentation challenging.

To orient the discussion of evaluating foundation models, we distinguish two classes of evaluation that arise from the abstraction of foundation models: intrinsic evaluation of the foundation model, which is inherently divorced from a specific task due to the task-agnosticity of these models, and extrinsic evaluation of task-specific models, which is necessarily dependent on both the foundation model and the adaptation mechanism. Further, we recognize that due to the anticipated impact and scope of foundation models, a variety of stakeholders (e.g., foundation model providers and application developers, auditors and policymakers, practitioners and researchers) will require evaluation of both foundation models and task-specific derivatives, with these evaluations serving different purposes and involving different desiderata based on the stakeholder. With this in mind, standard paradigms for the evaluation of machine learning models are not designed explicitly for the setting of foundation models. Therefore, we emphasize intrinsic evaluation (§4.4.2: evaluation-intrinsic), the importance of adaptation in extrinsic evaluation (§4.4.3: evaluation-adaptation), and evaluation design (§4.4.4: evaluation-design) as clear steps towards an evaluation framework that is better suited to foundation models. This discussion contributes to broader dialogue surrounding the role of evaluation of machine learning systems (Galliers and Spärck Jones, 1993; Lipton and Steinhardt, 2019; Ribeiro et al., 2020; Linzen, 2020; Kiela et al., 2021; Milli et al., 2021; Jacobs and Wallach, 2021; Bowman and Dahl, 2021; Dehghani et al., 2021; Ma et al., 2021a, inter alia) and, given the complexities of evaluation, may benefit from drawing upon theories of measurement and evaluation that exist beyond machine learning (Messick, 1987; Jackman, 2008; Loevinger, 1957; Messick, 1988; Hand, 2010; Brewer and Crano, 2014).

Intrinsic evaluation

Evaluation of machine learning systems has traditionally been grounded in tasks, often ones that are envisioned as functions specifically useful for applications (e.g., translation, object recognition). In contrast, since foundation models are intermediary assets that must be further adapted or specialized to perform useful tasks, the standard evaluation paradigm must be altered to facilitate the direct understanding and comparison of foundation models.

One approach is to evaluate foundation models in terms of the task associated with the training objective. For example, a language model like GPT-3, which was trained by predicting the next word given the preceding context, may be evaluated based on the probabilities it assigns words given their preceding context in held-out test data (i.e., perplexity on language modelling benchmarks like LAMBADA (Paperno et al., 2016)). This approach has shown promise in NLP thus far, but we identify two fundamental limitations it exhibits. First, relying on the training objective for evaluation lacks generality: foundation models trained using different incompatible objectives cannot be readily compared or understood in a consistent frame. Second, evaluation in this way relies upon a proxy relationship to be meaningful, i.e., measurements in terms of the training objective should correlate with other more meaningful and intelligible quantities (e.g., the quality of content generated via a foundation model). While this proxy relationship has proven to be robust in the past in some contexts, it likely will break down when assessing more diverse capabilities of foundation models, their behavior in more diverse environments or domains, and considerations beyond in-domain accuracy (we discuss this more extensively in §4.4.4: evaluation-design). In light of these limitations, we anticipate that two approaches will need to be considered, offering complementary benefits.

Imputing intrinsic evaluation from broad extrinsic evaluation

One route towards evaluating foundation models is to adapt them to a wide range of tasks and measure the performance of the resulting task-specific models. As the foundation model is the shared basis across all of these models, the performance in aggregate reflects on the nature, and quality, of this shared basis. At present, many subareas of AI have begun to construct meta-benchmarks, i.e., a single evaluation that consolidates individual evaluations across a number of different tasks or domains (Wang et al., 2019b; Wang et al., 2019a; Hu et al., 2020; Santurkar et al., 2020; Gehrmann et al., 2021; Hendrycks et al., 2021b; Koh et al., 2021; Tamkin et al., 2021b). Given the growing adoption of this paradigm and its established strengths, here we note why it is likely insufficient to fully satisfy the goals of evaluations with respect to foundation models. Meta-benchmark evaluation requires adaptation (minimally to specialize the foundation model to each of the tasks in the meta-benchmark), which makes reasoning about the foundation model itself challenging given the addition process (i.e., adaptation) involved. Specifically, this complicates matters of progress, both in terms of tracking (e.g., is performance attributable to potent foundation models or well-designed adaption practices) and in terms of identifying improvements in the process used to learn foundation models (e.g., fundamental improvements in data selection (§4.6: data), training objectives (§4.2: training), and model architectures (§4.1: modeling) may be difficult to identify by comparing the performance on a meta-benchmark between two foundation models). In addition, this evaluation paradigm makes it difficult to understand or document properties and capabilities specific to the foundation model, which may make it unwieldy to convey to certain stakeholders (e.g., SuperGLUE performance may not be sufficiently informative, or may be misleading, for policymakers) or use as grounds for anticipating their behavior for new tasks or domains.

Direct evaluation of intrinsic properties

To complement the use of meta-benchmarks, we also argue for why measuring the properties (e.g., specific capabilities or biases) of foundations models directly is valuable, divorced from specific tasks. For example, we may endeavor to directly measure the linguistic capabilities of foundation models to identify syntactically valid and invalid sentences. To motivate the value of this approach, we return to the purposes for evaluation. Notably, articulating the presence and intensity of capabilities, skills, and biases identifies concrete areas for improvement (progress), elucidates the current potential (understanding), and expresses relevant aspects efficiently (documentation). Such an approach also is in service of broadly comprehensible evaluation, i.e., evaluation that can be understood by both technical experts, non-technical experts (e.g., policymakers or social scientists) and the general purpose. For example, characterizing the persuasive or rhetorical capabilities of these models may especially intuitive for internalizing their potential for disinformation and misuse (§5.2: misuse) (Buchanan et al., 2021).

Direct evaluation of properties also serves as an important pathway towards better handling of the emergent properties of foundation models; to demonstrate this, we take in-context learning as a case study. In particular, Brown et al. (2020) not only demonstrated GPT-3’s signature capability of robust in-context learning, but also were the first to specifically identify in-context learning as a specific way to adapt and interact with models (through their exploration of GPT-3). Traditional task-based extrinsic evaluation does not provide a clear means by which in-context learning could have been identified; directly interacting with the foundation model appears to be necessary in this case. More generally, while it appears inevitable that many unanticipated phenomena like in-context learning will be recognized through the unstructured or loosely structured exploration of these models and their capabilities, we believe new approaches to evaluation should be sought out that structure this exploration or, more ambitiously, suggest new properties that can then be more rigorously tested for. Intrinsic evaluation may also lower the threshold for demonstrating the potential of foundation models; new approaches for foundation models may be sufficiently promising if they demonstrate improvements in intrinsic evaluation, even if they are not immediately accompanied by corresponding well-suited adaptation methods for eliciting these capabilities in extrinsic evaluation.

There is a significant open question of how intrinsic evaluation should be implemented; the mechanics of such evaluation are unclear. We enumerate a few general principles and considerations that may help inform the design and execution of intrinsic evaluation.

• (1) Inspiration from evaluation of humans. Many of the relevant properties, capabilities, and biases we are interested in for foundation models are also of interest for humans, which suggests that methods for measuring these properties in humans may prove to be instructive, or even directly translatable, for evaluating foundation models. For example, psycholinguistic measures of human linguistic competencies can be modified to evaluate foundation model linguistic competencies (Levy, 2008; Frank et al., 2013; Linzen et al., 2016; Ettinger and Linzen, 2016; Marvin and Linzen, 2018; van Schijndel and Linzen, 2018; Futrell et al., 2019; Prasad et al., 2019; Ettinger, 2020) or psychological measures of human social biases can be modified to evaluate foundation model social biases (Greenwald et al., 1998; Caliskan et al., 2017; May et al., 2019; Guo and Caliskan, 2021).

• (2) Human-in-the-loop evaluation. Human-in-the-loop evaluation may prove to be critical to provide a more exploratory means for understanding foundation models, including assessing their generative or interactive capabilities. In particular, human interaction with foundation models directly may better identify their emergent capabilities and limitations and direct auditing of foundation models (e.g., Raji and Buolamwini, 2019, §5.6: ethics) may advances goals for documentation and transparency.

• (3) Validity of intrinsic measures. While intrinsic measures allow for direct measurement at the source, i.e., measurement and evaluation of the properties of a foundation model independent of adaptation and specific tasks, they pose challenges for building trust in the validity (Messick, 1987; Messick, 1988) of the evaluation. In particular, extrinsic evaluation outcomes may also be important in validating intrinsic measure design, e.g., the predictive validity of intrinsic measures (i.e., their ability to (statistically) predicted related downstream outcomes) may prove to be a central criterion.

Extrinsic evaluation and adaptation

Evaluating task-specific models has historically involved reporting the performance (generally meaning the accuracy) of the model on a specific held-out test set. While this paradigm may partially suffice to understand or document a model, it often amounts to unfair comparisons between task-specific models produced with different (and, potentially, unequal) resources, making it difficult to gauge how much progress has been made. The concern of unfair comparisons is exacerbated in the foundation model regime: different foundation models (e.g., BERT and GPT-3) may form the foundation for different task-specific models, and these foundation models may involve vastly different amounts of training data and computation.

To account for the resources required to achieve specific levels of performance, Linzen (2020) argues that (pre)training resources should be acknowledged and tracked in evaluation. We believe this is a scientifically principled proposal; comparing different approaches for training foundation models without accounting for training resources is likely to be misleading. However, given that the process for creating foundation models is especially expensive (e.g., requiring significant human and financial capital), and often governed by societal factors (e.g., commercial incentives) in addition to scientific factors, it may be the case that the foundation models in practice will vary greatly in the training resources afforded, making controlled comparison difficult. Here, we consider an alternative, which may be more pervasively viable, to partially account for the resources involved to complement the proposal of Linzen (2020). In particular, we consider why extrinsic evaluation should acknowledge adaptation resources, which is critical for ensuring that extrinsic evaluation is able to identify the most performant adaptation methods (which intrinsic evaluation, fundamentally, cannot do). We draw attention to the fact that adaptation resources often are construed as the data used to adapt models, but additional resources (Perez et al., 2021, e.g., data used to choose adaptation methods;) and constraints (e.g., the level of access required to adapt the foundation model; see §4.3: adaptation and §5.6: ethics for further discussion) should also be accounted for.

Accounting for adaptation resources

Accounting for the resources expended to adapt foundation models for specific tasks requires a complete understanding of what resources or constraints are used for different adaptation methods, i.e., evaluations that endeavor to account for these resources must evolve alongside developments in what resources are used in adaptation (§4.3: adaptation). In existing task-specific evaluations, most evaluations specify the amount of data that can be used to adapt a (foundation) model to the task. However, Perez et al. (2021) identify a key nuance here that has been discounted in past work, in that this should encapsulate all data used to inform adaptation, i.e., both the data used to adapt the foundation model and the data used to choose the adaptation method. Further, in the foundation model regime, the notion of access requirements for different adaptation methods is also a new consideration that should be factored into evaluation. Concretely, some adaptation methods may generally outperform others but may require greater ability to access or modify the foundation model compared to others (e.g., fine-tuning requires foundation model gradients to modify a foundation model, whereas prompting may only require blackbox access in specifying inputs).

Accounting for the resources involved in adaptation enriches what conclusions can be reasonably drawn from evaluation of task-specific models. At present, task-specific evaluation may provide sufficient clarity for certain types of understanding or documentation of particular task-specific artifacts (i.e., the exact models being evaluated) but do not provide clear signal for how different adaptation methods perform and how to select a specific adaptation method in a given context. In contrast, by accounting for the resources and access requirements involved in adaptation, evaluation better enables research to identify which adaptation methods or processes make best use of the resources provided, i.e., signal is offered not just for the specific artifacts being evaluated but the more general processes by which they were derived. The proposed evaluation protocol, therefore, clearly works towards identifying which adaptation methods should be used; we note that all of these conclusions should always be taken as specific to a given foundation model, as evaluation in this form does not provide sufficient evidence to conclude an adaptation method is uniformly the best across foundation models.

Evaluation design

In theory, the goal of evaluation is to measure and characterize various theoretical constructs (e.g., accuracy, robustness (§4.8: robustness), fairness (§5.1: fairness), efficiency (§4.5: systems), environmental impact (§5.3: environment)) in service of various purposes (i.e., progress, understanding, documentation). However, in practice, the utility of evaluation will be determined by how evaluations are designed and executed. For example, automated measurements of the generative capabilities of foundation models (e.g., their factual correctness) may poorly capture the nature of these qualities and, instead, human-in-the-loop evaluation may better contextualize these capabilities.

In considering the evaluation design we envision for foundation models and their adapted derivatives, we begin with the mechanics of evaluation. Traditionally, the evaluation of machine learning models has involved a large training set that is used to learn the model, an optional validation set that is used to set hyperparameters, and a test set to evaluate the generalization of the learned model to held-out data (Bishop, 2006). As a result, creating benchmarks to evaluate models has historically required large amounts of data, most of which is allocated towards training, which complicates the design of certain diagnostic or nuanced evaluations when data is scarce or expensive to attain (Rogers, 2020; Rogers, 2021). In contrast, because the benefits of foundation models will often coincide with the sample efficiency of adaptation (i.e., few-shot or zero-shot capabilities) and the diversity of possible applications, we instead envision a regime where benchmarks for individual tasks are much smaller (since far less data needs to be provided as “training", i.e., adaptation, data) and are far more diverse (both to capture various capabilities in intrinsic evaluation and more strongly ground evaluation in ecologically valid ways (Bronfenbrenner, 1977; de Vries et al., 2020) during extrinsic evaluation). This suggests that the nature of foundation models may cause a shift in nature of benchmarks (and the mentality of those constructing benchmarks), de-emphasizing quantity as a key priority in benchmarks as opposed to quality and diversity. The NLP community has begun to see the beginnings of such a regime with expansive and diverse benchmarks like BIG-Bench and FLEX (Bragg et al., 2021); this paradigm lowers the barrier for benchmark design, thereby enabling the broader community to partake in evaluation design.

Alongside the mechanics of evaluation, the presentation of and interface to the evaluation results informs how these results will be used inform decision-making (e.g., new modelling approaches, model selection, auditing). Leaderboards have become the de facto paradigm in machine learning, whereby models are ranked by a specific and singular criterion (generally a form of accuracy). This approach has generally led to significant and rapid progress in system quality over time (e.g. Wang et al., 2019a), but significant concerns have been raised of whether this yields more general improvements (e.g. Linzen, 2020; Bowman and Dahl, 2021). As is true for all machine learning models, it is rarely the case that the desiderata for foundation models and their derivatives will be singular; instead, we anticipate the breadth of their application and societal impact necessitates heightened consideration of criteria beyond accuracy (e.g., robustness, fairness, efficiency and environmental impact). To this end, we note that evaluation of foundation models should report measurements across these diverse fronts; existing benchmarks are increasingly designed to reflect more than just accuracy (e.g., robustness (Koh et al., 2021; Goel et al., 2021), fairness (Nadeem et al., 2021; Nangia et al., 2020), efficiency and environmental impact (Coleman et al., 2017)). Further, we note that if the reporting of performance across this different categories is done in the form of a leaderboard, mechanisms to disambiguate potential trade-offs (to induce a ranking) will be especially necessary (Ethayarajh and Jurafsky, 2020). In particular, since different stakeholders will have different preferences (e.g., the weight they ascribe to different properties) and values (Birhane et al., 2020), leaderboard design should allow stakeholders to interact and manipulate how the ranking is done to align with their values; Ma et al. (2021a) presents an early attempt to enable this by comparing the utility of models using an economic framing based on a user’s specified utility function.

Takeaways

Evaluation performs several roles (i.e., progress, understanding, documentation) that are vital for all machine learning paradigms, including the foundation model paradigm. Foundation models introduce new challenges for existing evaluation frameworks; designing evaluations that directly target the foundation model regime will better serve not only the multiple purposes of evaluation, but also the myriad of stakeholders involved.

• (1) While machine learning evaluation traditionally has considered task-specific models, evaluating foundation models involves engaging with the fact that these models are not specific to a task. Evaluation of these models likely will involve integrating two complementary approaches: (a) imputing the properties of foundation models from broad evaluation of task-specific derivatives and (b) direct measurement of these properties in foundation models.

• (2) Existing evaluation frameworks often do not account for the resources required to create the models being evaluated, leading to unfair comparisons. For foundation models, we discuss an evaluation paradigm that emphasizes accounting for adaptation resources (e.g., all data used in adaptation, access requirements for the foundation model), which appears to lead to more informative evaluations that better shape how adaptation is conducted.

• (3) Existing evaluation design often is limited in the diversity of metrics considered and requires large adaptation datasets. For foundation models, we echo growing calls for evaluation to consider a broader range of desiderata (e.g., robustness, fairness, efficiency, environmental impact) to capture the wide range of stakeholder values/preferences, as well highlight how the sample efficiency of adapting adaption models may allow for more diverse evaluations by re-allocating resources involved in designing evaluations.

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