惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

月光博客
月光博客
罗磊的独立博客
The GitHub Blog
The GitHub Blog
V
V2EX
Last Week in AI
Last Week in AI
博客园 - 聂微东
MyScale Blog
MyScale Blog
美团技术团队
L
LangChain Blog
博客园 - Franky
腾讯CDC
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园_首页
S
SegmentFault 最新的问题
爱范儿
爱范儿
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Stack Overflow Blog
Stack Overflow Blog
量子位
小众软件
小众软件
宝玉的分享
宝玉的分享
J
Java Code Geeks
Google DeepMind News
Google DeepMind News
D
Docker
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报

OpenAI News

Using custom GPTs ChatGPT for customer success teams Applications of AI at OpenAI Research with ChatGPT Analyzing data with ChatGPT Financial services Responsible and safe use of AI Writing with ChatGPT ChatGPT for research Creating images with ChatGPT Personalizing ChatGPT ChatGPT for finance teams Getting started with ChatGPT Working with files in ChatGPT Learn ChatGPT workflows for sales teams Prompting fundamentals ChatGPT for managers Using projects in ChatGPT Learn ChatGPT workflows for marketing teams Brainstorming with ChatGPT AI fundamentals ChatGPT for operations teams Healthcare Our response to the Axios developer tool compromise Using skills OpenAI Full Fan Mode Contest: Terms & Conditions CyberAgent moves faster with ChatGPT Enterprise and Codex The next phase of enterprise AI 儿童安全蓝图正式发布 推出 OpenAI 安全研究员计划
Measuring Goodhart’s law
2022-04-13 · via OpenAI News

Let’s study best-of-n n sampling more formally. Suppose we have some sample space S S  (such as the set of possible question-answer pairs), some probability distribution P P over S S , a true objective (or “reward”) Rtrue:SR R_{\text{true}}:S\to\mathbb R , and a proxy objective Rproxy:SR R_{\text{proxy}}:S\to\mathbb R. Let’s say that we somehow optimize Rproxy R_{\text{proxy}} and thereby obtain some new distribution P P^\prime . Then:

  • The expectation ExP[Rtrue(x)] \mathbb E_{x^\prime\sim P^\prime}\left[R_{\text{true}}\left(x^\prime\right)\right]  measures how well we have optimized the true objective.
  • The KL divergence(opens in a new window) DKL(PP) D_{\text{KL}}\left(P^\prime\parallel P\right) measures how much optimization we have done. For example, if P P^\prime is obtained by taking the first sample from P P that lies in some subset SS S^\prime\subseteq S , then this KL divergence is just the negative log probability that a sample from P P  lies in S S^\prime .

It turns out that in the case of best-of- n n sampling, both of these quantities can be estimated efficiently using samples from P P .

Let’s look at the expectation first. The naive approach is to use a Monte Carlo estimator: run best-of- n n sampling many times, measure the true objective on those samples, and average the results. However, there is a better estimator. If we have Nn N\geq n samples from P P overall, then we can simultaneously consider every possible subset of these samples of size n n , weight each sample by the number of subsets for which it is the best according to the proxy objective, and then take the weighted average true objective score. This weight is just the binomial coefficient (k1n1) \binom{k-1}{n-1} , where k k is the rank of the sample under the proxy objective, from 1 1 (worst) up to N N (best).A

The sum of these weights is (Nn) \binom{N}{n} , giving a proof of the Hockey-stick identity(opens in a new window). For a formal derivation of the estimator described here, see Appendix I of the WebGPT paper(opens in a new window).

As well as using samples more efficiently, this also allows us to reuse samples for different values of n n . As for the KL divergence, surprisingly, this turns out to have an exact formula that works for any continuous probability distribution P P (i.e., as long as P P has no point masses). One might naively guess that the answer is logn \log n , since best-of-n n is doing something like taking the top 1n \frac 1n of the distribution, and this is roughly correct: the exact answer is lognn1n \log n-\frac{n-1}n . B

Together, these estimators allow us to easily analyze how the true objective varies with the amount of optimization applied to the proxy objective.

Here’s a real-life example from WebGPT: