이 문서에서는 XAI라고도 하는 Explainable AI(인공지능)를 BigQuery ML이 어떻게 지원하는지를 설명합니다.
Explainable AI는 데이터 행의 각 특성이 예측 결과에 어떻게 기여했는지 정의하여 예측 머신러닝 모델이 분류 및 회귀 태스크에 대해 생성하는 결과를 이해하는 데 도움을 줍니다. 이 정보를 특성 기여 분석이라고도 합니다. 이 정보를 활용하여 모델이 예상대로 작동하는지 확인하고, 모델의 편향을 인식하고, 모델 및 학습 데이터를 개선할 방법을 모색할 수 있습니다.
BigQuery ML과 Vertex AI는 모두 특성 기반 설명을 제공하는 기존 Explainable AI 서비스를 제공합니다. BigQuery ML에서 설명 가능성을 실행하거나 Vertex AI에 모델을 등록하고 거기에서 설명 가능성을 실행할 수 있습니다.
BigQuery ML 모델이 Model Registry에 등록되어 있고 Explainable AI를 지원하는 모델 유형인 경우 엔드포인트에 배포할 때 모델에 Explainable AI를 사용 설정할 수 있습니다. BigQuery ML 모델을 등록하면 연결된 모든 메타데이터가 자동으로 채워집니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-09-04(UTC)"],[[["\u003cp\u003eBigQuery ML supports Explainable AI (XAI), which helps users understand how individual features contribute to predictions in classification and regression models.\u003c/p\u003e\n"],["\u003cp\u003eXAI in BigQuery ML offers both local explainability, detailing the impact of features on individual predictions, and global explainability, showing a feature's overall influence on the model across a dataset.\u003c/p\u003e\n"],["\u003cp\u003eBigQuery ML provides Explainable AI support for various models, including time series and non-time series, with different methods like Shapley values, Tree SHAP, and Integrated Gradients, depending on the model type.\u003c/p\u003e\n"],["\u003cp\u003eBigQuery ML models can be registered in Vertex AI, where Explainable AI can be enabled during deployment, allowing users to obtain explanations through online predictions with an extra cost.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eML.EXPLAIN_PREDICT\u003c/code\u003e and \u003ccode\u003eML.GLOBAL_EXPLAIN\u003c/code\u003e SQL functions are supported to achieve explainability, with time-series models also having \u003ccode\u003eML.EXPLAIN_FORECAST\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# BigQuery Explainable AI overview\n================================\n\nThis document describes how BigQuery ML supports\nExplainable artificial intelligence (AI), sometimes called XAI.\n\nExplainable AI helps you understand the results that\nyour predictive machine learning model generates for classification and\nregression tasks by defining how each feature in a row of data contributed to\nthe predicted result. This information is often referred to as feature\nattribution. You can use this information to verify that the model is behaving\nas expected, to recognize biases in your models, and to inform ways to\nimprove your model and your training data.\n\nBigQuery ML and Vertex AI both have Explainable AI\nofferings which offer feature-based explanations. You can perform\nexplainability in BigQuery ML, or you can\n[register your model](/bigquery/docs/managing-models-vertex#register_models)\nin Vertex AI and perform explainability there.\n\nFor information about the supported SQL statements and functions for each\nmodel type, see\n[End-to-end user journey for each model](/bigquery/docs/e2e-journey).\n\nLocal versus global explainability\n----------------------------------\n\nThere are two types of explainability: local explainability and global\nexplainability. These are also known respectively as\n*local feature importance* and *global feature importance*.\n\n- Local explainability returns feature attribution values for each explained example. These values describe how much a particular feature affected the prediction relative to the baseline prediction.\n- Global explainability returns the feature's overall influence on the model and is often obtained by aggregating the feature attributions over the entire dataset. A higher absolute value indicates the feature had a greater influence on the model's predictions.\n\nExplainable AI offerings in BigQuery ML\n---------------------------------------\n\nExplainable AI in BigQuery ML supports a variety of machine\nlearning models, including both time series and non-time series models. Each of\nthe models takes advantage of a different explainability method.\n\n^1^`ML_EXPLAIN_PREDICT` is an extended version of `ML.PREDICT`.\n\n^2^`ML.GLOBAL_EXPLAIN` returns the global explainability\nobtained by taking the mean absolute attribution that each feature receives for\nall the rows in the evaluation dataset.\n\n^3^`ML.EXPLAIN_FORECAST` is an extended version of `ML.FORECAST`.\n\n^4^`ML.ADVANCED_WEIGHTS` is an extended version of `ML.WEIGHTS`.\n\nExplainable AI in Vertex AI\n---------------------------\n\nExplainable AI is available in Vertex AI for the following\nsubset of exportable supervised learning models:\n\nSee\n[Feature Attribution Methods](/vertex-ai/docs/explainable-ai/overview#feature-attribution-methods)\nto learn more about these methods.\n\n### Enable Explainable AI in Model Registry\n\nWhen your BigQuery ML model is registered in\nModel Registry, and if it is a type of model that supports\nExplainable AI, you can enable Explainable AI on the model when deploying to an\nendpoint. When you register your BigQuery ML model, all of the\nassociated metadata is populated for you.\n| **Note:** Explainable AI incurs a minor additional cost. See [Vertex AI pricing](/vertex-ai/pricing) to learn more.\n\n1. [Register your BigQuery ML model to the Model Registry](/bigquery/docs/managing-models-vertex#register_models).\n2. Go to the **Model Registry** page from the BigQuery section in the Google Cloud console.\n3. From the Model Registry, select the BigQuery ML model and click the model version to redirect to the model detail page.\n4. Select **More actions** from the model version. more_vert\n5. Click **Deploy to endpoint**.\n6. Define your endpoint - create an endpoint name and click continue.\n7. Select a machine type, for example, `n1-standard-2`.\n8. Under **Model settings**, in the logging section, select the checkbox to enable Explainability options.\n9. Click **Done** , and then **Continue** to deploy to the endpoint.\n\nTo learn how to use XAI on your models from the\nModel Registry, see\n[Get an online explanation using your deployed model](/vertex-ai/docs/tabular-data/classification-regression/get-online-predictions#online-explanation).\nTo learn more about XAI in Vertex AI, see\n[Get explanations](/vertex-ai/docs/explainable-ai/getting-explanations).\n\nWhat's next\n-----------\n\n- Learn how to [manage BigQuery ML models in Vertex AI](/bigquery/docs/managing-models-vertex)."]]