页面简介
正文摘录
Home Products Machine Learning Send feedback Machine Learning Glossary: Generative AI Page Summary outlined_flag Generative AI encompasses models that produce original content like text and images, using techniques like pre-training and fine-tuning to achieve this. Prompt engineering is crucial for guiding LLMs, involving crafting effective prompts to elicit desired outputs, with methods like zero-shot, one-shot, and few-shot prompting. Fine-tuning techniques, including distillation, instruction tuning, and parameter-efficient methods like LoRA, adapt pre-trained models for specific tasks while optimizing performance and resource usage. LLMs utilize context windows to process information, employ contextualized language embeddings for nuanced understanding, and can be integrated into systems like RAG and model cascading for enhanced capabilities. Prompt-based learning allows LLMs to adapt to tasks without extensive retraining, leveraging their knowledge base to respond to various instructions and inputs. This page contains Generative AI glossary terms. For all glossary terms, click here. A adaptation #generativeAI Synonym for tuning or fine-tuning. agent #generativeAI #agent Software that can reason about user inputs in order to plan and execute actions on behalf of the user. In reinforcement learning, an agent is the entity that uses a policy to maximize the expected return gained from transitioning between states of the environment. agentic #generativeAI #agent The adjective form of agent. Agentic refers to the qualities that agents possess (such as autonomy). agentic workflow #generativeAI #agent A dynamic process in which an agent autonomously plans and executes actions to achieve a goal. The process may involve reasoning, invoking external tools, and self-correcting its plan. AI slop #generativeAI Output from a generative AI system that favors quantity over quality. For example, a web page with AI slop is filled with cheaply produced, AI-generated, low-quality content. automatic evaluation #generativeAI Using software to judge the quality of a model's output. When model output is relatively straightforward, a script or program can compare the model's output to a golden response. This type of automatic evaluation is sometimes called programmatic evaluation. Metrics such as ROUGE or BLEU are often useful for programmatic evaluation. When model output is complex or has no one right answer, a separate ML program called an autorater sometimes performs the automatic evaluation. Contrast with human evaluation. autorater evaluation #generativeAI A hybrid mechanism for judging the quality of a generative AI model's output that combines human evaluation with automatic evaluation. An autorater is an ML model trained on data created by human evaluation. Ideally, an autorater learns to mimic a human evaluator. Prebuilt autoraters are available, but the best autoraters are fine-tuned specifically to the task you are evaluating. auto-regressive model #generativeAI A model that infers a prediction based on its own previous predictions. For example, auto-regressive language models predict the next token based on the previously predicted tokens. All Transformer-based large language models are auto-regressive. In contrast, GAN-based image models are usually not auto-regressive since they generate an image in a single forward-pass and not iteratively in steps. However, certain image generation models are auto-regressive because they generate an image in steps. B base model #generativeAI A pre-trained model that can serve as the starting point for fine-tuning to address specific tasks or applications. See also pre-trained model and foundation model. C chain-of-thought prompting #generativeAI A prompt engineering technique that encourages a large language model (LLM) to explain its reasoning, step by step. For example, consider the following prompt, paying particular attention to the second sentence: How many g forces would a driver experience in a car that goes from 0 to 60 miles per hour in 7 seconds? In the answer, show all relevant calculations. The LLM's response would likely: Show a sequence of physics formulas, plugging in the values 0, 60, and 7 in appropriate places. Explain why it chose those formulas and what the various variables mean. Chain-of-thought prompting forces the LLM to perform all the calculations, which might lead to a more correct answer. In addition, chain-of-thought prompting enables the user to examine the LLM's steps to determine whether or not the answer makes sense. chat #generativeAI The contents of a back-and-forth dialogue with an ML system, typically a large language model. The previous interaction in a chat (what you typed and how the large language model responded) becomes the context for subsequent parts of the chat. A chatbot is an application of a large language model. contextualized language embedding #generativeAI An embedding that comes close to "understanding" words and phrases in ways that fluent human speakers can. Contextualized language embeddings can understand complex syntax, semantics, and context. For example, consider embeddings of the English word cow. Older embeddings such as word2vec can represent English words such that the distance in the embedding space from cow to bull is similar to the distance from ewe (female sheep) to ram (male sheep) or from female to male. Contextualized language embeddings can go a step further by recognizing that English speakers sometimes casually use the word cow to mean either cow or bull. context window #generativeAI The number of tokens a model can process in a given prompt. The larger the context window, the more information the model can use to provide coherent and consistent responses to the prompt. conversational coding #generativeAI An iterative dialog between you and a generative AI model for the purpose of creating software. You issue a prompt describing some software. Then, the model uses that description to generate code. Then, you issue a new prompt to address the flaws in the previous prompt or in the generated code, and the model generates updated code. You two keep going back and forth until the generated software is good enough. Conversation coding is essentially the original meaning of vibe coding. Contrast with specificational coding. D direct prompting #generativeAI Synonym for zero-shot prompting. distillation #generativeAI The process of reducing the size of one model (known as the teacher) into a smaller model (known as the student) that emulates the original model's predictions as faithfully as possible. Distillation is useful because the smaller model has two key benefits over the larger model (the teacher): Faster inference time Reduced memory and energy usage However, the student's predictions are typically not as good as the teacher's predictions. Distillation trains the student model to minimize a loss function based on the difference between the outputs of the predictions of the student and teacher models. Compare and contrast distillation with the following terms: fine-tuning prompt-based learning See LLMs: Fine-tuning, distillation, and prompt engineering in Machine Learning Crash Course for more information. E evals #generativeAI #Metric Primarily used as an abbreviation for LLM evaluations. More broadly, evals is an abbreviation for any form of evaluation. evaluation #generativeAI #Metric The process of measuring a model's quality or comparing different models against each other. To evaluate a supervised machine learning model, you typically judge it against a validation set and a test set. Evaluating a LLM typically involves broader quality and safety assessments. F factuality #generativeAI Within the ML world, a property describing a model whose output is based on reality. Factuality is a concept rather than a metric. For example, suppose you send the following prompt to a large language model: What is the chemical formula for table salt? A model optimizing factuality would respond: NaCl It is tempting to assume that all models should be based on factuality. However, some prompts, such as the following, should cause a generative AI model to optimize creativity rather than factuality. Tell me a limerick about an astronaut and a caterpillar. It is unlikely that the resulting limerick would be based on reality. Contrast with groundedness. fast decay #generativeAI A training technique to improve the performance of LLMs. Fast decay involves rapidly decreasing the learning rate during training. This strategy helps prevent the model from overfitting to the training data, and improves generalization. few-shot prompting #generativeAI A prompt that contains more than one (a "few") example demonstrating how the large language model should respond. For example, the following lengthy prompt contains two examples showing a large language model how to answer a query. Parts of one prompt Notes What is the official currency of the specified country? The question you want the LLM to answer. France: EUR One example. United Kingdom: GBP Another example. India: The actual query. Few-shot prompting generally produces more desirable results than zero-shot prompting and one-shot prompting. However, few-shot prompting requires a lengthier prompt. Few-shot prompting is a form of few-shot learning applied to prompt-based learning. See Prompt engineering in Machine Learning Crash Course for more information. fine-tuning #generativeAI A second, task-specific training pass performed on a pre-trained model to refine its parameters for a specific use case. For example, the full training sequence for some large language models is as follows: Pre-training: Train a large language model on a vast general dataset, such as all the English language Wikipedia pages. Fine-tuning: Train the pre-trained model to perform a specific task, such as responding to medical queries. Fine-tuning typically involves hundreds or thousands of examples focused o