๋ค์๋ค์ ๊ฐ์ด๋
RLHF๋ฅผ ์ํ ์ธ๊ฐ ์ ํธ๋ ๋ฐ์ดํฐ ์์ง
์ธ์ด AI
๊ธฐ์ ๊ฐ์ด๋
CLIP ์ ์๋ ์์ฑ๋ ์ด๋ฏธ์ง๊ฐ ํ ์คํธ ํ๋กฌํํธ์ ์ผ๋ง๋ ์ ์ผ์นํ๋์ง ์ธก์ ํฉ๋๋ค.
์ด ๊ฐ์ด๋๋ฅผ ๋ค์ด๋ณด์ธ์AI ๋ด๋ ์ด์ ยท ~3 min
์ด ์งํ๋ OpenAI์ CLIP ๋ชจ๋ธ์ ์ฌ์ฉํ์ฌ ์ด๋ฏธ์ง์ ํ๋กฌํํธ๋ฅผ ์๋ฒ ๋ฉํ๊ณ ๋ ์๋ฒ ๋ฉ์ ๋น๊ตํฉ๋๋ค. ImageReward, HPS, PickScore ๊ฐ์ ์ธ๊ฐ ์ ํธ๋ ์ธก์ ์งํ๋ ์ฌ๋๋ค์ด ์ฌ๋ฌ ์ด๋ฏธ์ง ์ค ์ด๋ค ๊ฒ์ ์ ํํ ์ง ์์ธกํ๋๋ก ํ๋ จ๋ ๋ชจ๋ธ์ ๋๋ค. FID ๋จ๋ ์ผ๋ก๋ ์ด๋ฏธ์ง๊ฐ ํ๋กฌํํธ๋ฅผ ๋ฐ๋ฅด๋์ง ๋๋ ์ฌ๋๋ค์ ๋ง์์ ๋๋์ง ์ ์ ์๊ธฐ ๋๋ฌธ์ ์ด๋ฌํ ์ ์๊ฐ ์ค์ํ๋ฉฐ, ์ด์ ํ ์คํธ-์ด๋ฏธ์ง ๋ ผ๋ฌธ, ๋ฆฌ๋๋ณด๋, ํ์ธํ๋ ํ์ดํ๋ผ์ธ์ ํ์ค์ด ๋์์ต๋๋ค.
For years the headline number in image generation papers was FID (Frechet Inception Distance). FID compares the statistics of Inception network features from generated images with those from real photos. It captures realism and diversity at the level of a whole dataset, but it never looks at the prompt, and it cannot tell you whether a single image is good. CLIP score fills the prompt gap. OpenAI released CLIP in 2021, trained on image-caption pairs so that matching images and text sit close together in a shared embedding space. To score a generation, you embed the image and its prompt and take the cosine similarity between them. The result is usually multiplied by 100, or rescaled as in the CLIPScore paper by Hessel and colleagues. Averaged over a prompt set, a higher score means better text alignment. Human preference metrics go a step further by learning from people's choices. ImageReward (2023) trained a reward model on expert rankings of generated images. Human Preference Score (HPS, later HPS v2) fine-tuned CLIP on large collections of human choices between images made from the same prompt. PickScore was trained on Pick-a-Pic, a dataset collected from users of a web app who picked their favorite of two generated images. These models capture aesthetics, coherence and appeal as well as alignment. Each metric has blind spots. CLIP behaves partly like a bag of words: it often misses counts, spatial relations, negation and which color belongs to which object. Preference models inherit the tastes of their annotators and can favor a polished, saturated look. All of these scores can be gamed. If you optimize a model directly against a score, it may learn to please the scorer rather than people. A common misconception is that a higher CLIP score always means a better image. Small differences are often within noise, and careful evaluations pair automatic scores with compositional benchmarks and human studies.
ํ ์คํธ-์ด๋ฏธ์ง ๋ชจ๋ธ์ ๋ ์ฒดํฌํฌ์ธํธ๋ฅผ ๋น๊ตํ๋ ์ฐ๊ตฌํ์ ๋์ผํ ๊ณ ์ ํ๋กฌํํธ ์ธํธ์ ๋ํ ์ด๋ฏธ์ง๋ฅผ ์์ฑํ๊ณ FID์ ํจ๊ป ํ๊ท CLIP ์ ์๋ฅผ ๋ณด๊ณ ํฉ๋๋ค. ์ด๋ ์ฌ์ค๊ฐ์ ํด์น์ง ์์ผ๋ฉด์ ํ๋กฌํํธ ์ค์๋๊ฐ ํฅ์๋์์์ ๋ณด์ฌ์ค๋๋ค.
์ด๋ฏธ์ง ์์ฑ ์ฑ์ ์์ฒญ๋น 4๊ฐ์ ํ๋ณด๋ฅผ ์์ฑํ๊ณ , PickScore๋ก ์์๋ฅผ ๋งค๊ธด ํ ๊ฐ์ฅ ๋์ ์ ์์ ์ด๋ฏธ์ง๋ฅผ ๋จผ์ ๋ณด์ฌ์ค๋๋ค.
ํ์ธํ๋ ํ๋ก์ ํธ๋ ImageReward๋ฅผ ๋ณด์ ์ ํธ๋ก ์ฌ์ฉํ์ฌ Stable Diffusion ๋ชจ๋ธ์ ์ ํธ๋๋ ์ถ๋ ฅ์ผ๋ก ์ ๋ํฉ๋๋ค. ๊ทธ ํ ํ์ ๊ณผ๋ํ๊ฒ ์ฑ์๋ ์์๊ณผ ๊ฐ์ ๋ณด์ ํดํน์ ์ฐพ์๋ด๊ธฐ ์ํด ์ํ์ ์๋์ผ๋ก ํ์ธํฉ๋๋ค.
ํ๊ฐ์๋ ์์์ด ๋ฐ๋์๋ ๋ถ๊ตฌํ๊ณ 'ํ๋์ ๊ตฌ ์์ ์๋ ๋นจ๊ฐ์ ์์'๋ผ๋ ํ๋กฌํํธ์ ๋ํด ๋ชจ๋ธ์ด CLIP ์ ์์์ ๋์ ์ ์๋ฅผ ๋ฐ๋ ๊ฒ์ ํ์ธํฉ๋๋ค. ์ด๋ค์ ์ด๋ฌํ ์์ฑ ๊ฒฐํฉ ์ค๋ฅ๋ฅผ ์ฐพ์๋ด๊ธฐ ์ํด GenEval๊ณผ ๊ฐ์ ๊ฐ์ง๊ธฐ ๊ธฐ๋ฐ ๊ตฌ์ฑ์ ๋ฒค์น๋งํฌ๋ฅผ ์ถ๊ฐํฉ๋๋ค.
ํ๊ฐ๋ ๋จ์ผ ์ ์ญ ์ ์ฌ๋ ์์น์ ์์กดํ๋ ๋์ ์ด๋ฏธ์ง์ ํน์ ์ฃผ์ฅ์ ํ์ธํ๋ ๋ฐฉ๋ฒ์ผ๋ก ์ด๋ํ๊ณ ์์ต๋๋ค. TIFA์ ๊ฐ์ ์ง์์๋ต ์ ๊ทผ ๋ฐฉ์๊ณผ GenEval๊ณผ ๊ฐ์ ๊ฐ์ง๊ธฐ ๊ธฐ๋ฐ ๋ฒค์น๋งํฌ๋ ํ๋กฌํํธ์ ๊ฐ ๊ฐ์ฒด, ๊ฐ์, ์์ฑ์ด ์ค์ ๋ก ๋ํ๋๋์ง ๋ฌป์ต๋๋ค. ๋ฉํฐ๋ชจ๋ฌ ์ธ์ด ๋ชจ๋ธ๋ ์ฌ์ฌ์์์ผ๋ก ์ ์ ๋ ๋ง์ด ์ฌ์ฉ๋๊ณ ์์ต๋๋ค. ์ด๋ฌํ ๋๊ตฌ๋ ์์ฒด์ ์ธ ์ค๋ฅ์ ํธํฅ์ ๊ฐ์ง๊ณ ์์ผ๋ฏ๋ก ์๋ฒ ๋ฉ ์ ์๋ฅผ ๋์ฒดํ๊ธฐ๋ณด๋ค๋ ๋ณด์ํ ๊ฐ๋ฅ์ฑ์ด ๋์ต๋๋ค. ์ธ๊ฐ ์ฐ๊ตฌ์ ๊ณต๊ฐ ์๋ ๋๋ ์ฌ์ ํ ๊ธฐ์ค์ ์ญํ ์ ํฉ๋๋ค. ์ฐ๊ตฌ์๋ค์ ์์์ ์ฃผ์ ์์ฑ์ ๊ทธ๋ฃน์ด ์๋ ๊ด๋ฒ์ํ ์ฌ์ฉ์๋ฅผ ๋ฐ์ํ๋ ์ ํธ๋ ๋ฐ์ดํฐ๋ฅผ ์์งํ๋ ๋ฐฉ๋ฒ์ ๋ํด ์ฌ์ ํ ๋ ผ์ ์ค์ ๋๋ค.
๋ฌด๋ฃ ๋ด์ค๋ ํฐ
๋งค์ฃผ ํ์ผ ์์นจ๋ง๋ค 3๊ฐ์ ๊ฒ์ฆ๋ AI ์คํ ๋ฆฌ๋ฅผ ์ผ๋ฐ ์์ด๋ก ์์ฑํฉ๋๋ค. ๋ฌด๋ฃ์ด๋ฉฐ, ๊ด๊ณ ์์.
๋งค์ฃผ ํ์ผ๋ง๋ค ํ ๋ฒ ์ด๋ฉ์ผ์ ๋ฐ์ต๋๋ค. ํ ๋ฒ ํด๋ฆญ์ผ๋ก ๊ตฌ๋ ํด์ง. ์ฃผ์๋ฅผ ํ๋งคํ๊ฑฐ๋ ๊ณต์ ํ์ง ์์ต๋๋ค.
์์ ์ ํ ์คํธํด ๋ณด์ธ์
๋ชจ๋ ๋ต๋ณ์ ์ฆ๊ฐ์ ์ธ ํผ๋๋ฐฑ๊ณผ, ๊ณผ์ ์ ํต๊ณผํ๋ฉด ๊ฒ์ฆ ๊ฐ๋ฅํ ID๊ฐ ์๋ ๊ณต์ ๊ฐ๋ฅํ ์ธ์ฆ์๋ฅผ ์ ๊ณตํฉ๋๋ค.
๋ฌด๋ฃ AI ๊ต์ก์ ์ง์ํฉ๋๋ค. AI Understanding๋ 501(c)(3) ๋น์๋ฆฌ ๋จ์ฒด์ ๋๋ค โ ๊ด๊ณ ์์, ์ ๋ฃ ์ฅ๋ฒฝ ์์, ์์ํ. ๊ธฐ๋ถํ๊ธฐ
CLIP ์ ์๋ ์์ฑ๋ ์ด๋ฏธ์ง๊ฐ ํ ์คํธ ํ๋กฌํํธ์ ์ผ๋ง๋ ์ ์ผ์นํ๋์ง ์ธก์ ํฉ๋๋ค. ์ด ์งํ๋ OpenAI์ CLIP ๋ชจ๋ธ์ ์ฌ์ฉํ์ฌ ์ด๋ฏธ์ง์ ํ๋กฌํํธ๋ฅผ ์๋ฒ ๋ฉํ๊ณ ๋ ์๋ฒ ๋ฉ์ ๋น๊ตํฉ๋๋ค. ImageReward, HPS, PickScore ๊ฐ์ ์ธ๊ฐ ์ ํธ๋ ์ธก์ ์งํ๋ ์ฌ๋๋ค์ด ์ฌ๋ฌ ์ด๋ฏธ์ง ์ค ์ด๋ค ๊ฒ์ ์ ํํ ์ง ์์ธกํ๋๋ก ํ๋ จ๋ ๋ชจ๋ธ์ ๋๋ค. FID ๋จ๋ ์ผ๋ก๋ ์ด๋ฏธ์ง๊ฐ ํ๋กฌํํธ๋ฅผ ๋ฐ๋ฅด๋์ง ๋๋ ์ฌ๋๋ค์ ๋ง์์ ๋๋์ง ์ ์ ์๊ธฐ ๋๋ฌธ์ ์ด๋ฌํ ์ ์๊ฐ ์ค์ํ๋ฉฐ, ์ด์ ํ ์คํธ-์ด๋ฏธ์ง ๋ ผ๋ฌธ, ๋ฆฌ๋๋ณด๋, ํ์ธํ๋ ํ์ดํ๋ผ์ธ์ ํ์ค์ด ๋์์ต๋๋ค.
FID๋ ๋ฐ์ดํฐ์ ์ ๋ฐ์์ ์์ฑ๋ ์ด๋ฏธ์ง์ ์ค์ ์ด๋ฏธ์ง์ ํน์ง ํต๊ณ๋ฅผ ๋น๊ตํฉ๋๋ค. ์ด๋ ์ฌ์ค๊ฐ๊ณผ ๋ค์์ฑ์ ํฌ์ฐฉํ์ง๋ง ํ๋กฌํํธ๋ ์์ ํ ๋ฌด์ํ๋ฉฐ, ์ด๋ CLIP ์ ์๊ฐ ์ฑ์ฐ๊ธฐ ์ํด ๋์ ๋ ๊ณต๋ฐฑ์ ๋๋ค.
CLIP์ ์ด๋ฏธ์ง์ ํ ์คํธ๋ฅผ ๊ณต์ ์๋ฒ ๋ฉ ๊ณต๊ฐ์ ๋ฐฐ์นํฉ๋๋ค. ์ ์๋ ์ด๋ฏธ์ง ์๋ฒ ๋ฉ๊ณผ ํ๋กฌํํธ ์๋ฒ ๋ฉ ๊ฐ์ ์ฝ์ฌ์ธ ์ ์ฌ๋์ด๋ฉฐ, ์ข ์ข 100์ ๊ณฑํ์ฌ ์ค์ผ์ผ๋งํฉ๋๋ค.
PickScore๋ Pick-a-Pic์ผ๋ก ํ์ต๋์์ผ๋ฉฐ, ์ด๋ ์น ์ฑ ์ฌ์ฉ์๊ฐ ๋์ผํ ํ๋กฌํํธ์ ๋ํด ์์ฑ๋ ๋ ์ด๋ฏธ์ง ์ค ๊ฐ์ฅ ๋ง์์ ๋๋ ๊ฒ์ ์ ํํ ๋ฐ์ดํฐ์ ์ ๋๋ค.
CLIP์ ๋ถ๋ถ์ ์ผ๋ก ๋จ์ด ์ฃผ๋จธ๋(bag of words)์ฒ๋ผ ์๋ํฉ๋๋ค. ์ด๋ค ๊ฐ๋ ์ด ์กด์ฌํ๋์ง๋ ํ์ ํ์ง๋ง, ๊ฐ์, ์์น, ์์ ๊ฒฐํฉ๊ณผ ๊ฐ์ด ๊ฐ๋ ๋ค์ด ์ด๋ป๊ฒ ์ฐ๊ด๋๋์ง๋ ์ข ์ข ๋์นฉ๋๋ค.
๊ฐ ์ธ์ฝ๋๋ ๊ณ ์ ํ ์๋ฒ ๋ฉ ๊ณต๊ฐ์ ํ์ตํ๋ฏ๋ก, ๋์ผํ ์ด๋ฏธ์ง์ ํ๋กฌํํธ๋ผ๋ ์ธ์ฝ๋์ ๋ฐ๋ผ ๋ค๋ฅธ ์ ์๊ฐ ๋์ต๋๋ค. ๋ ผ๋ฌธ์์๋ ์ด๋ค ์ธ์ฝ๋๋ฅผ ์ฌ์ฉํ๋์ง ๋ช ์ํด์ผ ํฉ๋๋ค.
๊ณ์ ํ์ตํ์ธ์
์ด ์ฃผ์ ์ ๋ํด ์ ํ๋ ์ถ๊ฐ ๊ฐ์ด๋
๋ค์๋ค์ ๊ฐ์ด๋
RLHF๋ฅผ ์ํ ์ธ๊ฐ ์ ํธ๋ ๋ฐ์ดํฐ ์์ง
์ธ์ด AI