text
stringlengths
62
4.5k
arxiv-translator
stringlengths
51
2.86k
\(\bullet\)_Webpages._ Owing to the proliferation of the Internet, various types of data have been created, which enables LLMs to gain diverse linguistic knowledge and enhance their generalization capabilities [82, 26]. For convenient use of these data resources, a large amount of data is crawled from the web in previous work, such as CommonCrawl [163]. However, the crawled web data tends to contain both high-quality text, such as Wikipedia and low-quality text, like spam mail, thus it is important to filter and process webpages for improving the data quality.
\(\bullet\)_Webpages._ ์ธํ„ฐ๋„ท์˜ ํ™•์‚ฐ์œผ๋กœ ์ธํ•ด ๋‹ค์–‘ํ•œ ์œ ํ˜•์˜ ๋ฐ์ดํ„ฐ๊ฐ€ ์ƒ์„ฑ๋˜์—ˆ์œผ๋ฉฐ, ์ด๋Š” LLM์ด ๋‹ค์–‘ํ•œ ์–ธ์–ด ์ง€์‹์„ ์–ป๊ณ  ์ผ๋ฐ˜ํ™” ๋Šฅ๋ ฅ์„ ํ–ฅ์ƒ์‹œํ‚ฌ ์ˆ˜ ์žˆ๊ฒŒ ํ•œ๋‹ค[82, 26]. ์ด๋Ÿฌํ•œ ๋ฐ์ดํ„ฐ ์ž์›์˜ ํŽธ๋ฆฌํ•œ ์‚ฌ์šฉ์„ ์œ„ํ•ด CommonCrawl[163]๊ณผ ๊ฐ™์ด ์ด์ „ ์ž‘์—…์—์„œ ์›น์œผ๋กœ๋ถ€ํ„ฐ ๋Œ€๋Ÿ‰์˜ ๋ฐ์ดํ„ฐ๋ฅผ ํฌ๋กค๋งํ•œ๋‹ค. ๊ทธ๋Ÿฌ๋‚˜ ํฌ๋กค๋ง๋œ ์›น ๋ฐ์ดํ„ฐ๋Š” ์ŠคํŒธ ๋ฉ”์ผ๊ณผ ๊ฐ™์ด ์œ„ํ‚คํ”ผ๋””์•„์™€ ๊ฐ™์€ ๊ณ ํ’ˆ์งˆ ํ…์ŠคํŠธ์™€ ์ €ํ’ˆ์งˆ ํ…์ŠคํŠธ๋ฅผ ๋ชจ๋‘ ํฌํ•จํ•˜๋Š” ๊ฒฝํ–ฅ์ด ์žˆ์œผ๋ฏ€๋กœ ๋ฐ์ดํ„ฐ ํ’ˆ์งˆ์„ ํ–ฅ์ƒ์‹œํ‚ค๊ธฐ ์œ„ํ•ด์„œ๋Š” ์›น ํŽ˜์ด์ง€๋ฅผ ํ•„ํ„ฐ๋งํ•˜๊ณ  ์ฒ˜๋ฆฌํ•˜๋Š” ๊ฒƒ์ด ์ค‘์š”ํ•˜๋‹ค.
1. We curate the largest, most recent dataset of real-world forecasting questions to date, for evaluating and optimizing automated forecasting systems. 2. We build a retrieval-augmented LM system that significantly improves upon the baseline and approaches the human crowd performance on competitive forecasting platforms. 3. We propose and apply a self-supervised fine-tuning method to improve LM's capability in reasoning about forecasting tasks.
1. ์ž๋™ํ™”๋œ ์˜ˆ์ธก ์‹œ์Šคํ…œ์„ ํ‰๊ฐ€ํ•˜๊ณ  ์ตœ์ ํ™”ํ•˜๊ธฐ ์œ„ํ•ด ํ˜„์žฌ๊นŒ์ง€ ์‹ค์„ธ๊ณ„ ์˜ˆ์ธก ์งˆ๋ฌธ์˜ ๊ฐ€์žฅ ํฐ ์ตœ์‹  ๋ฐ์ดํ„ฐ ์„ธํŠธ๋ฅผ ์„ ๋ณ„ํ•œ๋‹ค. 2. ๊ธฐ์ค€์„ ์„ ํฌ๊ฒŒ ๊ฐœ์„ ํ•˜๊ณ  ๊ฒฝ์Ÿ ์˜ˆ์ธก ํ”Œ๋žซํผ์—์„œ ์ธ๊ฐ„ ๊ตฐ์ค‘ ์„ฑ๋Šฅ์— ์ ‘๊ทผํ•˜๋Š” ๊ฒ€์ƒ‰ ๊ฐ•ํ™” LM ์‹œ์Šคํ…œ์„ ๊ตฌ์ถ•ํ•œ๋‹ค. 3. ์šฐ๋ฆฌ๋Š” ์˜ˆ์ธก ์ž‘์—…์— ๋Œ€ํ•œ ์ถ”๋ก ์—์„œ LM์˜ ๋Šฅ๋ ฅ์„ ํ–ฅ์ƒ์‹œํ‚ค๊ธฐ ์œ„ํ•ด ์ž๊ธฐ ์ง€๋„ ๋ฏธ์„ธ ์กฐ์ • ๋ฐฉ๋ฒ•์„ ์ œ์•ˆํ•˜๊ณ  ์ ์šฉํ•œ๋‹ค.
PersonA: Vascepa is used together with a low-fat diet and other treatments to lower total cholesterol in people with severe high cholesterol.
PersonA: ๋ฐ”์„ธํŒŒ๋Š” ์‹ฌ๊ฐํ•œ ๊ณ ์ฝœ๋ ˆ์Šคํ…Œ๋กค์„ ๊ฐ€์ง„ ์‚ฌ๋žŒ๋“ค์˜ ์ด ์ฝœ๋ ˆ์Šคํ…Œ๋กค์„ ๋‚ฎ์ถ”๊ธฐ ์œ„ํ•ด ์ €์ง€๋ฐฉ ์‹๋‹จ๊ณผ ๋‹ค๋ฅธ ์น˜๋ฃŒ๋ฒ•๊ณผ ํ•จ๊ป˜ ์‚ฌ์šฉ๋œ๋‹ค.
* **Natural Questions**[179] is a QA dataset that consists of real anonymized, aggregated queries submitted to the Google search engine as questions. An annotator is presented with a question along with a Wikipedia page from the top \(5\) search results, and annotates a long answer (typically a paragraph) and a short answer (one or more entities) if present on the page, or marks null if no long/short answer is present. * **MMLU**[180] is intended to evaluate the knowledge gained in zero-shot and few-shot scenarios. That means that MMLU assesses both the general knowledge and problem-solving ability of a model. It covers 57 subjects in STEM, humanities, social sciences, and other areas. The benchmark varies in complexity, ranging from elementary to advanced professional. It is worth mentioning that the main contribution of this dataset is for multi-task language understanding, question answering, and arithmetic reasoning. * **MBPP**[181] stands for "Mostly Basic Python Problems" and provides a benchmark for evaluating the performance of models designed for code generation. The benchmark encompasses \(974\) short Python programs including a wide range of topics, including fundamental programming concepts and standard library usage, and more. Each challenge comprises a task description, a code solution, and three automated test cases. * **HumanEval**[182] is a dataset for code generation task. This dataset consists of \(164\) hand-crafted programming challenges. Each challenge is accompanied by a function signature, docstring, code body, and multiple unit tests. The main intuition behind developing this dataset is to guarantee the exclusion of its contents from training datasets for code generation models. * **APPS**[183] is designed for code generation task focusing on the Python programming language. The APPS dataset contains a collection of \(232,444\) Python programs. Each program in the dataset has an average of \(18\) lines of Python code. Additionally, APPS offers access to a repository of \(10,000\) unique programming exercises, each with text-based problem descriptions. The final aspect to highlight is that the it includes test cases. * **WikiSQL**[184] is crafted for code generation task and it has 87,726 carefully labeled pairs of SQL queries and corresponding natural language questions from Wikipedia tables. The SQL queries comprise three subsets: test sets (\(17,284\) examples), development (\(9,145\) examples), and training (\(61,297\) examples). * **TriviaQA**[185] is designed for QA task. This dataset comprises more than \(650,000\) question-answer-evidence triples. There are \(95,000\) question-answer pairs in this dataset, each authored by trivia enthusiasts and supported by an average of six independently sourced evidence documents. These documents are automatically acquired from Wikipedia or broader web search results. The dataset is categorized into two segments, including those with authentic answers from Wikipedia and web domains, and verified sets embody the accurately answered questions along with their associated documents from both Wikipedia and online.
* **๋‚ด์ถ”๋Ÿด ์ฟผ๋ฆฌ**[179]๋Š” ์งˆ๋ฌธ์œผ๋กœ Google ๊ฒ€์ƒ‰ ์—”์ง„์— ์ œ์ถœ ๋œ ์‹ค์ œ ์ต๋ช…ํ™” ๋œ ์ง‘๊ณ„ ๋œ ์ฟผ๋ฆฌ๋กœ ๊ตฌ์„ฑ ๋œ QA ๋ฐ์ดํ„ฐ ์„ธํŠธ์ž…๋‹ˆ๋‹ค. ์ฃผ์„์ž๋Š” ์ƒ์œ„ \(5\) ๊ฒ€์ƒ‰ ๊ฒฐ๊ณผ์—์„œ ์œ„ํ‚คํ”ผ๋””์•„ ํŽ˜์ด์ง€์™€ ํ•จ๊ป˜ ์งˆ๋ฌธ์„ ์ œ์‹œํ•˜๋ฉฐ, ํŽ˜์ด์ง€์— ์กด์žฌํ•˜๋Š” ๊ฒฝ์šฐ ๊ธด ๋‹ต๋ณ€(์ผ๋ฐ˜์ ์œผ๋กœ ๋ฌธ๋‹จ)๊ณผ ์งง์€ ๋‹ต๋ณ€(ํ•˜๋‚˜ ์ด์ƒ์˜ ์—”ํ‹ฐํ‹ฐ)์— ์ฃผ์„์„ ๋‹ฌ๊ฑฐ๋‚˜, ๊ธด/์งง์€ ๋‹ต๋ณ€์ด ์—†๋Š” ๊ฒฝ์šฐ null๋กœ ํ‘œ์‹œํ•œ๋‹ค. * **MMLU**[180]์€ zero-shot ๋ฐ few-shot ์‹œ๋‚˜๋ฆฌ์˜ค์—์„œ ์–ป์€ ์ง€์‹์„ ํ‰๊ฐ€ ํ•˜๊ธฐ ์œ„ํ•œ ๊ฒƒ์ž…๋‹ˆ๋‹ค. ์ด๋Š” MMLU๊ฐ€ ๋ชจ๋ธ์˜ ์ผ๋ฐ˜์ ์ธ ์ง€์‹๊ณผ ๋ฌธ์ œ ํ•ด๊ฒฐ ๋Šฅ๋ ฅ์„ ๋ชจ๋‘ ํ‰๊ฐ€ํ•œ๋‹ค๋Š” ๊ฒƒ์„ ์˜๋ฏธํ•œ๋‹ค. STEM, ์ธ๋ฌธ, ์‚ฌํšŒ๊ณผํ•™ ๋ฐ ๊ธฐํƒ€ ๋ถ„์•ผ์˜ 57๊ฐœ ๊ณผ๋ชฉ์„ ๋‹ค๋ฃจ๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฒค์น˜๋งˆํฌ๋Š” ์ดˆ๋“ฑ์—์„œ ๊ณ ๊ธ‰ ์ „๋ฌธ๊ฐ€์— ์ด๋ฅด๊ธฐ๊นŒ์ง€ ๋ณต์žก์„ฑ์ด ๋‹ค์–‘ํ•˜๋‹ค. ์ด ๋ฐ์ดํ„ฐ ์„ธํŠธ์˜ ์ฃผ์š” ๊ธฐ์—ฌ๋Š” ๋‹ค์ค‘ ์ž‘์—… ์–ธ์–ด ์ดํ•ด, ์งˆ๋ฌธ ์‘๋‹ต ๋ฐ ์‚ฐ์ˆ  ์ถ”๋ก ์— ์žˆ๋‹ค๋Š” ์ ์„ ์–ธ๊ธ‰ํ•  ๊ฐ€์น˜๊ฐ€ ์žˆ๋‹ค. * **MBPP**[181]์€ "๋Œ€๋ถ€๋ถ„ ๊ธฐ๋ณธ Python ๋ฌธ์ œ"์˜ ์•ฝ์ž์ด๋ฉฐ ์ฝ”๋“œ ์ƒ์„ฑ์„ ์œ„ํ•ด ์„ค๊ณ„๋œ ๋ชจ๋ธ์˜ ์„ฑ๋Šฅ์„ ํ‰๊ฐ€ํ•˜๊ธฐ ์œ„ํ•œ ๋ฒค์น˜๋งˆํฌ๋ฅผ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค. ๋ฒค์น˜๋งˆํฌ๋Š” ๊ธฐ๋ณธ ํ”„๋กœ๊ทธ๋ž˜๋ฐ ๊ฐœ๋… ๋ฐ ํ‘œ์ค€ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ์‚ฌ์šฉ ๋“ฑ ๊ด‘๋ฒ”์œ„ํ•œ ์ฃผ์ œ๋ฅผ ํฌํ•จํ•˜๋Š” \(974\) ์งง์€ ํŒŒ์ด์ฌ ํ”„๋กœ๊ทธ๋žจ์„ ํฌํ•จํ•œ๋‹ค. ๊ฐ ์ฑŒ๋ฆฐ์ง€๋Š” ์ž‘์—… ์„ค๋ช…, ์ฝ”๋“œ ์†”๋ฃจ์…˜ ๋ฐ 3๊ฐœ์˜ ์ž๋™ํ™”๋œ ํ…Œ์ŠคํŠธ ์ผ€์ด์Šค๋กœ ๊ตฌ์„ฑ๋ฉ๋‹ˆ๋‹ค. * **HumanEval**[182]๋Š” ์ฝ”๋“œ ์ƒ์„ฑ ์ž‘์—…์— ๋Œ€ ํ•œ ๋ฐ์ดํ„ฐ ์ง‘ํ•ฉ์ž…๋‹ˆ๋‹ค. ์ด ๋ฐ์ดํ„ฐ ์„ธํŠธ๋Š” \(164\) ์†์œผ๋กœ ๋งŒ๋“  ํ”„๋กœ๊ทธ๋ž˜๋ฐ ๋ฌธ์ œ๋กœ ๊ตฌ์„ฑ๋ฉ๋‹ˆ๋‹ค. ๊ฐ ์ฑŒ๋ฆฐ์ง€์—๋Š” ํ•จ์ˆ˜ ์„œ๋ช…, docstring, ์ฝ”๋“œ ๋ณธ๋ฌธ ๋ฐ ์—ฌ๋Ÿฌ ๋‹จ์œ„ ํ…Œ์ŠคํŠธ๊ฐ€ ๋™๋ฐ˜๋ฉ๋‹ˆ๋‹ค. ์ด ๋ฐ์ดํ„ฐ ์„ธํŠธ๋ฅผ ๊ฐœ๋ฐœํ•˜๋Š” ์ฃผ์š” ์ง๊ด€์€ ์ฝ”๋“œ ์ƒ์„ฑ ๋ชจ๋ธ์„ ์œ„ํ•œ ํ›ˆ๋ จ ๋ฐ์ดํ„ฐ ์„ธํŠธ์—์„œ ํ•ด๋‹น ์ฝ˜ํ…์ธ ์˜ ๋ฐฐ์ œ๋ฅผ ๋ณด์žฅํ•˜๋Š” ๊ฒƒ์ด๋‹ค. * **APPS**[183]์€ Python ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์–ธ์–ด์— ์ดˆ์ ์„ ๋งž์ถ˜ ์ฝ”๋“œ ์ƒ์„ฑ ์ž‘์—…์„ ์œ„ํ•ด ์„ค๊ณ„๋˜์—ˆ์Šต๋‹ˆ๋‹ค. APPS ๋ฐ์ดํ„ฐ ์„ธํŠธ์—๋Š” \(232,444\) Python ํ”„๋กœ๊ทธ๋žจ ์ปฌ๋ ‰์…˜์ด ํฌํ•จ๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐ์ดํ„ฐ ์„ธํŠธ์˜ ๊ฐ ํ”„๋กœ๊ทธ๋žจ์—๋Š” ํ‰๊ท  \(18\) ์ค„์˜ Python ์ฝ”๋“œ๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค. ๋˜ํ•œ, APPS๋Š” ๊ฐ๊ฐ ํ…์ŠคํŠธ ๊ธฐ๋ฐ˜ ๋ฌธ์ œ ์„ค๋ช…์ด ํฌํ•จ๋œ \(10,000\) ๊ณ ์œ  ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์—ฐ์Šต์˜ ๋ฆฌํฌ์ง€ํ† ๋ฆฌ์— ๋Œ€ํ•œ ์•ก์„ธ์Šค๋ฅผ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค. ๋งˆ์ง€๋ง‰์œผ๋กœ ๊ฐ•์กฐํ•  ์ ์€ ํ…Œ์ŠคํŠธ ์ผ€์ด์Šค๋ฅผ ํฌํ•จํ•œ๋‹ค๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค. * **WikiSQL**[184]๋Š” ์ฝ”๋“œ ์ƒ์„ฑ ์ž‘์—…์„ ์œ„ํ•ด ๋งŒ๋“ค์–ด์กŒ์œผ๋ฉฐ ์œ„ํ‚คํ”ผ๋””์•„ ํ…Œ์ด๋ธ”์—์„œ 87,726๊ฐœ์˜ ์‹ ์ค‘ํ•˜๊ฒŒ ๋ ˆ์ด๋ธ”์ด ์ง€์ •๋œ SQL ์ฟผ๋ฆฌ ์Œ ๋ฐ ํ•ด๋‹น ์ž์—ฐ์–ด ์งˆ๋ฌธ์ด ์žˆ์Šต๋‹ˆ๋‹ค. SQL ์ฟผ๋ฆฌ๋Š” ํ…Œ์ŠคํŠธ ์„ธํŠธ(\(17,284\) ์˜ˆ), ๊ฐœ๋ฐœ(\(9,145\) ์˜ˆ) ๋ฐ ํ›ˆ๋ จ(\(61,297\) ์˜ˆ)์˜ ์„ธ ๊ฐ€์ง€ ํ•˜์œ„ ์ง‘ํ•ฉ์œผ๋กœ ๊ตฌ์„ฑ๋œ๋‹ค. * **TriviaQA**[185]๋Š” QA ์ž‘์—…์„ ์œ„ํ•ด ์„ค๊ณ„๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ์ด ๋ฐ์ดํ„ฐ ์„ธํŠธ๋Š” \(650,000\) ์ด์ƒ์˜ ์งˆ๋ฌธ-์‘๋‹ต-์ฆ๊ฑฐ ํŠธ๋ฆฌํ”Œ์„ ํฌํ•จํ•œ๋‹ค. ์ด ๋ฐ์ดํ„ฐ ์„ธํŠธ์—๋Š” \(95,000\)๊ฐœ์˜ ์งˆ๋ฌธ-์‘๋‹ต ์Œ์ด ์žˆ์œผ๋ฉฐ, ๊ฐ๊ฐ์€ ํ€ด์ฆˆ ์• ํ˜ธ๊ฐ€๋“ค์— ์˜ํ•ด ์ž‘์„ฑ๋˜๊ณ  ํ‰๊ท  6๊ฐœ์˜ ๋…๋ฆฝ์ ์œผ๋กœ ์ถœ์ฒ˜๋œ ์ฆ๊ฑฐ ๋ฌธ์„œ์— ์˜ํ•ด ์ง€์›๋œ๋‹ค. ์ด๋Ÿฌํ•œ ๋ฌธ์„œ๋Š” ์œ„ํ‚คํ”ผ๋””์•„ ๋˜๋Š” ๊ด‘๋ฒ”์œ„ํ•œ ์›น ๊ฒ€์ƒ‰ ๊ฒฐ๊ณผ์—์„œ ์ž๋™์œผ๋กœ ํš๋“๋ฉ๋‹ˆ๋‹ค. ๋ฐ์ดํ„ฐ์„ธํŠธ๋Š” ์œ„ํ‚คํ”ผ๋””์•„์™€ ์›น ๋„๋ฉ”์ธ์˜ ์ •๋‹ต์„ ํฌํ•จํ•˜๋Š” ๋‘ ๊ฐœ์˜ ์„ธ๊ทธ๋จผํŠธ๋กœ ๋ถ„๋ฅ˜๋˜๋ฉฐ, ๊ฒ€์ฆ๋œ ์„ธํŠธ๋Š” ์œ„ํ‚คํ”ผ๋””์•„์™€ ์˜จ๋ผ์ธ์˜ ๊ด€๋ จ ๋ฌธ์„œ์™€ ํ•จ๊ป˜ ์ •ํ™•ํ•˜๊ฒŒ ๋‹ตํ•œ ์งˆ๋ฌธ์„ ๊ตฌํ˜„ํ•œ๋‹ค.
\(\bullet\)_ShareGPT_[148] is collected from a data collection platform where users can upload their conversations with ChatGPT or GPT-4 through the ShareGPT API. Currently, this dataset consists of approximately 90,000 conversations, including real instructions or inquiries from human and responses from ChatGPT.
\(\bullet\)_ShareGPT_[148]์€ ์‚ฌ์šฉ์ž๊ฐ€ ShareGPT API๋ฅผ ํ†ตํ•ด ChatGPT ๋˜๋Š” GPT-4์™€ ๋Œ€ํ™”๋ฅผ ์—…๋กœ๋“œํ•  ์ˆ˜ ์žˆ๋Š” ๋ฐ์ดํ„ฐ ์ˆ˜์ง‘ ํ”Œ๋žซํผ์—์„œ ์ˆ˜์ง‘๋œ๋‹ค. ํ˜„์žฌ ์ด ๋ฐ์ดํ„ฐ ์„ธํŠธ๋Š” ์ธ๊ฐ„์˜ ์‹ค์ œ ์ง€์‹œ ๋˜๋Š” ๋ฌธ์˜์™€ ChatGPT์˜ ์‘๋‹ต์„ ํฌํ•จํ•˜์—ฌ ์•ฝ 90,000๊ฐœ์˜ ๋Œ€ํ™”๋กœ ๊ตฌ์„ฑ๋œ๋‹ค.
In this section, we present RAFT, a novel way of training LLMs for domain specific open-book exams. We first introduce the classical technique of supervised fine-tuning, fol
์ด ์„น์…˜์—์„œ๋Š” ๋„๋ฉ”์ธ ํŠน์ • ์˜คํ”ˆ ๋ถ ํ…Œ์ŠคํŠธ๋ฅผ ์œ„ํ•œ LLM์„ ํ›ˆ๋ จํ•˜๋Š” ์ƒˆ๋กœ์šด ๋ฐฉ๋ฒ•์ธ RAFT๋ฅผ ์ œ์‹œํ•œ๋‹ค. ์šฐ๋ฆฌ๋Š” ๋จผ์ € ๊ฐ๋… ๋ฏธ์„ธ ์กฐ์ •, fol์˜ ๊ณ ์ „์  ๊ธฐ์ˆ ์„ ์†Œ๊ฐœํ•œ๋‹ค.
However, when running the model in higher float64 precision, we find that indeed all dimensions are used, but that the smallest dozen or so singular values are much smaller than the other singular values, an observation made by concurrent work (Cancedda, 2024).
๊ทธ๋Ÿฌ๋‚˜ ๋” ๋†’์€ float64 ์ •๋ฐ€๋„๋กœ ๋ชจ๋ธ์„ ์‹คํ–‰ํ•  ๋•Œ ์‹ค์ œ๋กœ ๋ชจ๋“  ์ฐจ์›์ด ์‚ฌ์šฉ๋˜์ง€๋งŒ ๊ฐ€์žฅ ์ž‘์€ 12๊ฐœ ๋˜๋Š” ๊ทธ ์ •๋„์˜ ํŠน์ด๊ฐ’์ด ๋™์‹œ ์ž‘์—…์— ์˜ํ•ด ์ด๋ฃจ์–ด์ง„ ๊ด€์ฐฐ์ธ ๋‹ค๋ฅธ ํŠน์ด๊ฐ’๋ณด๋‹ค ํ›จ์”ฌ ์ž‘๋‹ค๋Š” ๊ฒƒ์„ ๋ฐœ๊ฒฌํ–ˆ๋‹ค(Cancedda, 2024).
In this method, the FT process is viewed as a direct continuation of the pre-training phase. We start with a saved checkpoint of the original LLM and train it in a causal auto-regressive manner, i.e., predicting the next token. One major difference in comparison to actual pre-training is the learning rate. Usually, one would need a much lower learning rate when continuing the pre-training of the model to avoid catastrophic forgetting (Kirkpatrick et al., 2017).
์ด ๋ฐฉ๋ฒ•์—์„œ FT ๊ณผ์ •์€ ์‚ฌ์ „ ํ›ˆ๋ จ ๋‹จ๊ณ„์˜ ์ง์ ‘์ ์ธ ์—ฐ์†์œผ๋กœ ๋ณธ๋‹ค. ์šฐ๋ฆฌ๋Š” ์›๋ž˜ LLM์˜ ์ €์žฅ๋œ ์ฒดํฌํฌ์ธํŠธ๋กœ ์‹œ์ž‘ํ•˜์—ฌ ์ธ๊ณผ์  ์ž๋™ ํšŒ๊ท€ ๋ฐฉ์‹, ์ฆ‰ ๋‹ค์Œ ํ† ํฐ์„ ์˜ˆ์ธกํ•˜๋Š” ๋ฐฉ์‹์œผ๋กœ ํ›ˆ๋ จํ•œ๋‹ค. ์‹ค์ œ ์‚ฌ์ „ ํ›ˆ๋ จ๊ณผ ๋น„๊ตํ–ˆ์„ ๋•Œ ํฐ ์ฐจ์ด์  ์ค‘ ํ•˜๋‚˜๋Š” ํ•™์Šต๋ฅ ์ด๋‹ค. ์ผ๋ฐ˜์ ์œผ๋กœ, ์žฌ์•™์ ์ธ ๋ง๊ฐ์„ ํ”ผํ•˜๊ธฐ ์œ„ํ•ด ๋ชจ๋ธ์˜ ์‚ฌ์ „ ํ›ˆ๋ จ์„ ๊ณ„์†ํ•  ๋•Œ ํ›จ์”ฌ ๋‚ฎ์€ ํ•™์Šต๋ฅ ์ด ํ•„์š”ํ•  ๊ฒƒ์ด๋‹ค(Kirkpatrick et al., 2017).
* 1 Introduction * 2 Pretraining * 2.1 Data Processing * 2.2 Tokenization * 2.3 Model Architecture * 3 Finetuning * 3.1 Data Preprocessing * 3.2 Training Method * 4 Infrastructure * 5 Safety * 6 Evaluations * 6.1 Base Model Performance * 6.1.1 Main Results * 6.1.2 Discussions * 6.1.3 In-Context Learning Study * 6.2 Chat Model Performance * 6.2.1 Automatic Evaluations * 6.2.2 Human Evaluations * 7 Capability Extension * 7.1 Long Context Modeling * 7.2 Vision-Language * 7.3 Depth Upscaling * 8 Final Discussions * A Author List and Contributions
* 1 ์†Œ๊ฐœ * 2 ํ”„๋ฆฌํŠธ๋ ˆ์ด๋‹ * 2.1 ๋ฐ์ดํ„ฐ ์ฒ˜๋ฆฌ * 2.2 Tokenization * 2.3 ๋ชจ๋ธ ์•„ํ‚คํ…์ฒ˜ * 3 Finetuning * 3.1 ๋ฐ์ดํ„ฐ ์ „์ฒ˜๋ฆฌ * 3.2 ํ›ˆ๋ จ๋ฐฉ๋ฒ• * 4 Infrastructure * 5 ์•ˆ์ „์„ฑ * 6 ํ‰๊ฐ€ * 6.1 ๊ธฐ๋ณธ ๋ชจ๋ธ ์„ฑ๋Šฅ * 6.1.1 ์ฃผ์š” ๊ฒฐ๊ณผ * 6.1.2 ํ† ๋ก  * 6.1.3 In-Context Learning Study * 6.2 ์ฑ„ํŒ… ๋ชจ๋ธ ์„ฑ๋Šฅ * 6.2.1 ์ž๋™ ํ‰๊ฐ€ * 6.2.2 ์ธ๊ฐ„ ํ‰๊ฐ€ *7 ๋Šฅ๋ ฅ ํ™•์žฅ * 7.1 Long Context Modeling * 7.2 Vision-Language * 7.3 Depth Upscaling * 8 ์ตœ์ข… ํ† ๋ก  * ์ €์ž‘์ž ๋ชฉ๋ก ๋ฐ ๊ธฐ์—ฌ๋„
1. Pre-training on larger datasets helps improve performance, by presumably exposing the LLM to more "knowledge". For instance, the Pythia (300B) model achieves an average score of 44.6%, outperforming the smaller C4 (85B) dataset's score of 43.5%.
1. ๋” ํฐ ๋ฐ์ดํ„ฐ ์„ธํŠธ์— ๋Œ€ํ•œ ์‚ฌ์ „ ํ›ˆ๋ จ์€ ์•„๋งˆ๋„ LLM์„ ๋” ๋งŽ์€ "์ง€์‹"์— ๋…ธ์ถœ์‹œํ‚ด์œผ๋กœ์จ ์„ฑ๋Šฅ์„ ํ–ฅ์ƒ์‹œํ‚ค๋Š” ๋ฐ ๋„์›€์ด ๋œ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด, ํ”ผํ‹ฐ์•„(300B) ๋ชจ๋ธ์€ ํ‰๊ท  44.6%์˜ ์ ์ˆ˜๋ฅผ ๋‹ฌ์„ฑํ•˜์—ฌ ๋” ์ž‘์€ C4(85B) ๋ฐ์ดํ„ฐ ์„ธํŠธ์˜ ์ ์ˆ˜ 43.5%๋ฅผ ๋Šฅ๊ฐ€ํ•œ๋‹ค.
Long-context models overemphasize book endings:One interesting observation is that Claude-3-Opus and GPT-4-Turbo, which both have chunk sizes \(\geq\) 100K, tend to place more emphasis on the endings of the books to the detriment of the beginning. Since these models were often provided with the entire book context during prompting, this
ํ•œ ๊ฐ€์ง€ ํฅ๋ฏธ๋กœ์šด ๊ด€์ฐฐ์€ ์ฒญํฌ ํฌ๊ธฐ \(\geq\) 100K๋ฅผ ๊ฐ€์ง„ Claude-3-Opus์™€ GPT-4-Turbo๊ฐ€ ์ฑ…์˜ ๊ฒฐ๋ง์„ ๋” ๊ฐ•์กฐํ•˜๋Š” ๊ฒฝํ–ฅ์ด ์žˆ๋‹ค๋Š” ๊ฒƒ์ด๋‹ค. ์ด ๋ชจ๋ธ๋“ค์€ ํ”„๋กฌํ”„ํŠธ ๋™์•ˆ ์ข…์ข… ์ „์ฒด ์ฑ… ์ปจํ…์ŠคํŠธ์™€ ํ•จ๊ป˜ ์ œ๊ณต๋˜์—ˆ๊ธฐ ๋•Œ๋ฌธ์—, ์ด๊ฒƒ์€
We begin with a simpler case where \(g_{\theta}\) does not have residual connections but a fully connected (FC) final layer. In this case, for any invertible \(h\times h\) matrix \(\mathbf{S}\), we have that \(g_{\theta}\left(p\right)=\mathbf{S}_{g\theta^{\prime}}\left(p\right)\) where \(\theta^{\prime}\) is the same as \(\theta\) except that the weights of the final FC layer are pre-multiplied by \(\mathbf{S}^{-1}\). Hence, if \(g_{\theta}\) has a final FC layer, it is impossible to distinguish between the embedding projection layer \(\mathbf{W}\) acting on \(g_{\theta}\) and the embedding projection layer \(\mathbf{W}\cdot\mathbf{S}\) acting on \(g_{\theta^{\prime}}\), given access to the output of the API \(\mathcal{O}\) only.
์šฐ๋ฆฌ๋Š” \(g_{\theta}\)๊ฐ€ ์ž”๋ฅ˜ ์—ฐ๊ฒฐ์ด ์•„๋‹ˆ๋ผ ์™„์ „ ์—ฐ๊ฒฐ(FC) ์ตœ์ข… ๋ ˆ์ด์–ด๋ฅผ ๊ฐ–๋Š” ๋” ๊ฐ„๋‹จํ•œ ๊ฒฝ์šฐ๋กœ ์‹œ์ž‘ํ•œ๋‹ค. ์ด ๊ฒฝ์šฐ, ์ž„์˜์˜ ๊ฐ€์—ญ์ ์ธ \(h\times h\) ํ–‰๋ ฌ \(\mathbf{S}\)์— ๋Œ€ํ•ด, \(g_{\theta}\left(p\right)=\mathbf{S}_{g\theta^{\prime}}\left(p\right)\)๋ฅผ ๊ฐ€์ง€๋ฉฐ, ์—ฌ๊ธฐ์„œ \(\theta^{\prime}\)๋Š” ์ตœ์ข… FC ์ธต์˜ ๊ฐ€์ค‘์น˜๊ฐ€ \(\mathbf{S}^{-1}\)์— ๋ฏธ๋ฆฌ ๊ณฑํ•ด์ง„ ๊ฒƒ์„ ์ œ์™ธํ•˜๊ณ ๋Š” \(\theta\)์™€ ๋™์ผํ•˜๋‹ค. ๋”ฐ๋ผ์„œ, \(g_{\theta}\)๊ฐ€ ์ตœ์ข… FC ๋ ˆ์ด์–ด๋ฅผ ๊ฐ–๋Š” ๊ฒฝ์šฐ, API \(\mathcal{O}\)์˜ ์ถœ๋ ฅ์—๋งŒ ์ ‘๊ทผํ•  ๊ฒฝ์šฐ, \(g_{\theta}\)์— ์ž‘์šฉํ•˜๋Š” ์ž„๋ฒ ๋”ฉ ํˆฌ์˜ ๋ ˆ์ด์–ด \(\mathbf{W}\)์™€ \(g_{\theta^{\prime}\)์— ์ž‘์šฉํ•˜๋Š” ์ž„๋ฒ ๋”ฉ ํˆฌ์˜ ๋ ˆ์ด์–ด \(\mathbf{W}\cdot\mathbf{S}\)๋ฅผ ๊ตฌ๋ณ„ํ•  ์ˆ˜ ์—†๋‹ค.
\(\bullet\)_GPT-3_. GPT-3 [55] was released in 2020, which scaled the model parameters to an ever larger size of 175B. In the GPT-3's paper, it formally introduced the concept of in-context learning (ICL)17, which utilizes LLMs in a few-shot or zero-shot way. ICL can teach (or instruct) LLMs to understand the tasks in the form of natural language text. With ICL, the pre-training and utilization of LLMs converge to the same language modeling paradigm: pre-training predicts the following text sequence conditioned on the context, while ICL predicts the correct task solution, which can be also formatted as a text sequence, given the task description and demonstrations. GPT-3 not only demonstrates very excellent performance in a variety of NLP tasks, but also on a number of specially designed tasks that require the abilities of reasoning or domain adaptation. Although the GPT-3's paper does not explicitly discuss the emergent abilities of LLMs, we can observe large performance leap that might transcend the basic scaling law [30], _e.g.,_ larger models have significantly stronger ICL ability (illustrated in the original Figure 1.2 of the GPT-3's paper [55]). Overall, GPT-3 can be viewed as a remarkable landmark in the journey evolving from PLMs to LLMs. It has empirically proved that scaling the neural networks to a significant size can lead to a huge increase in model capacity.
\(\bullet\)_GPT-3_. GPT-3 [55]๋Š” 2020๋…„์— ์ถœ์‹œ๋˜์—ˆ์œผ๋ฉฐ ๋ชจ๋ธ ๋งค๊ฐœ๋ณ€์ˆ˜๋ฅผ 175B์˜ ํ›จ์”ฌ ๋” ํฐ ํฌ๊ธฐ๋กœ ์กฐ์ •ํ–ˆ๋‹ค. GPT-3์˜ ๋…ผ๋ฌธ์—๋Š” LLMs์„ ๋ช‡ ๋ฒˆ์˜ ์ƒท ๋˜๋Š” ์ œ๋กœ ์ƒท ๋ฐฉ์‹์œผ๋กœ ํ™œ์šฉํ•˜๋Š” ์ธ์ปจํ…์ŠคํŠธ ํ•™์Šต(ICL)17์ด๋ผ๋Š” ๊ฐœ๋…์ด ๊ณต์‹์ ์œผ๋กœ ์†Œ๊ฐœ๋˜์–ด ์žˆ๋‹ค. ์ „๋ฐ˜์ ์œผ๋กœ GPT-3๋Š” PLM์—์„œ LLM์œผ๋กœ ์ง„ํ™”ํ•˜๋Š” ์—ฌ์ •์—์„œ ์ฃผ๋ชฉํ•  ๋งŒํ•œ ๋žœ๋“œ๋งˆํฌ๋กœ ๋ณผ ์ˆ˜ ์žˆ๋‹ค. ์‹ ๊ฒฝ๋ง์„ ์ƒ๋‹นํ•œ ํฌ๊ธฐ๋กœ ํ™•์žฅํ•˜๋ฉด ๋ชจ๋ธ ์šฉ๋Ÿ‰์ด ํฌ๊ฒŒ ์ฆ๊ฐ€ํ•  ์ˆ˜ ์žˆ์Œ์„ ๊ฒฝํ—˜์ ์œผ๋กœ ์ž…์ฆํ–ˆ๋‹ค.
scale of losses on both the overall validation data and different validation domains. While the overall loss helps optimize the overall performance, losses on different domains show model capabilities in various aspects. We suppose that this facilitates further mixture curating for the nuanced balance of model capabilities.
์ „์ฒด ๊ฒ€์ฆ ๋ฐ์ดํ„ฐ์™€ ๋‹ค๋ฅธ ๊ฒ€์ฆ ๋„๋ฉ”์ธ ๋ชจ๋‘์— ๋Œ€ํ•œ ์†์‹ค ๊ทœ๋ชจ. ์ „์ฒด ์†์‹ค์ด ์ „์ฒด ์„ฑ๋Šฅ์„ ์ตœ์ ํ™”ํ•˜๋Š” ๋ฐ ๋„์›€์ด ๋˜์ง€๋งŒ, ๋‹ค๋ฅธ ๋„๋ฉ”์ธ์˜ ์†์‹ค์€ ๋‹ค์–‘ํ•œ ์ธก๋ฉด์—์„œ ๋ชจ๋ธ ๊ธฐ๋Šฅ์„ ๋ณด์—ฌ์ค๋‹ˆ๋‹ค. ์šฐ๋ฆฌ๋Š” ์ด๊ฒƒ์ด ๋ชจ๋ธ ๋Šฅ๋ ฅ์˜ ๋ฏธ๋ฌ˜ํ•œ ๊ท ํ˜•์„ ์œ„ํ•œ ์ถ”๊ฐ€ ํ˜ผํ•ฉ ํ๋ ˆ์ดํŒ…์„ ์šฉ์ดํ•˜๊ฒŒ ํ•œ๋‹ค๊ณ  ๊ฐ€์ •ํ•œ๋‹ค.
As the field of LLMs is moving fast, with new findings, models and techniques being published in a matter of months or weeks [7, 8, 9, 10, 11], AI researchers and practitioners often find it challenging to figure out the best recipes to build LLM-powered AI systems for their tasks. This paper gives a timely survey of the recent advances on LLMs. We hope this survey will prove a valuable and accessible resource for students, researchers and developers.
LLM ๋ถ„์•ผ๊ฐ€ ๋น ๋ฅด๊ฒŒ ๋ฐœ์ „ํ•˜๊ณ  ์žˆ์œผ๋ฉฐ ์ƒˆ๋กœ์šด ๋ฐœ๊ฒฌ, ๋ชจ๋ธ ๋ฐ ๊ธฐ์ˆ ์ด ๋ช‡ ๋‹ฌ ๋˜๋Š” ๋ช‡ ์ฃผ ์•ˆ์— ๋ฐœํ‘œ๋˜๊ณ  ์žˆ๋‹ค[7, 8, 9, 10, 11]. AI ์—ฐ๊ตฌ์ž์™€ ์‹ค๋ฌด์ž๋Š” ์ข…์ข… ์ž‘์—…์— ๋Œ€ํ•œ LLM ๊ธฐ๋ฐ˜ AI ์‹œ์Šคํ…œ์„ ๊ตฌ์ถ•ํ•˜๊ธฐ ์œ„ํ•œ ์ตœ์ƒ์˜ ๋ ˆ์‹œํ”ผ๋ฅผ ํŒŒ์•…ํ•˜๋Š” ๋ฐ ์–ด๋ ค์›€์„ ๊ฒช๋Š”๋‹ค. ์ด ๋…ผ๋ฌธ์€ LLMs์— ๋Œ€ํ•œ ์ตœ๊ทผ์˜ ์ง„๋ณด์— ๋Œ€ํ•œ ์‹œ๊ธฐ์ ์ ˆํ•œ ์กฐ์‚ฌ๋ฅผ ์ œ๊ณตํ•œ๋‹ค. ์ด ์กฐ์‚ฌ๊ฐ€ ํ•™์ƒ, ์—ฐ๊ตฌ์› ๋ฐ ๊ฐœ๋ฐœ์ž์—๊ฒŒ ๊ฐ€์น˜ ์žˆ๊ณ  ์ ‘๊ทผ ๊ฐ€๋Šฅํ•œ ์ž์›์ด ๋  ์ˆ˜ ์žˆ๊ธฐ๋ฅผ ๋ฐ”๋ž๋‹ˆ๋‹ค.
Footnote 6: For instance, suppose Hoffmann et al. conducted 500 training runs, each generating 1,000 intermediate loss values. To account for the variance both between and within these training runs, we use the intra-group correlation coefficient, denoted as \(\rho\). Conservatively assuming \(\rho=0.5\), the effective number of data points can be calculated using the formula:
๊ฐ์ฃผ 6: ์˜ˆ๋ฅผ ๋“ค์–ด, ํ˜ธํ”„๋งŒ ๋“ฑ์ด ๊ฐ๊ฐ 1,000๊ฐœ์˜ ์ค‘๊ฐ„ ์†์‹ค ๊ฐ’์„ ์ƒ์„ฑํ•˜๋Š” 500๊ฐœ์˜ ํ›ˆ๋ จ ์‹คํ–‰์„ ์ˆ˜ํ–‰ํ–ˆ๋‹ค๊ณ  ๊ฐ€์ •ํ•˜์ž. ์ด๋Ÿฌํ•œ ํ›ˆ๋ จ ์‹คํ–‰ ๊ฐ„์˜ ๋ถ„์‚ฐ์„ ์„ค๋ช…ํ•˜๊ธฐ ์œ„ํ•ด \(\rho\)๋กœ ํ‘œ์‹œ๋œ ๊ทธ๋ฃน ๋‚ด ์ƒ๊ด€ ๊ณ„์ˆ˜๋ฅผ ์‚ฌ์šฉํ•œ๋‹ค. ๋ณด์กด์ ์œผ๋กœ \(\rho=0.5\)๋ฅผ ๊ฐ€์ •ํ•˜๋ฉด, ์œ ํšจ ๋ฐ์ดํ„ฐ ํฌ์ธํŠธ ์ˆ˜๋Š” ์ˆ˜์‹์„ ์‚ฌ์šฉํ•˜์—ฌ ๊ณ„์‚ฐ๋  ์ˆ˜ ์žˆ๋‹ค:
Accompanied by the exponential growth in the agent quantity and complexity, there is an increasing strain on the functionalities of LLM and OS. For example, scheduling and prioritizing agent requests in limited LLM resources poses a significant challenge. Moreover, the LLM's generation process can become time-intensive when dealing with lengthy contexts, occasionally resulting in the generation being suspended by the scheduler. This raises the problem of devising a mechanism to snapshot the LLM's current generation result, thereby enabling pause/resume behavior even when the LLM has not finalized the response generation for the current request. Furthermore, once an agent has obtained the list of available calling tools, determining the optimal sequence for invoking these tools presents yet another challenge since multiple agents may need to call the same tool. Additionally, the concurrent operation of multiple agents necessitates a robust system for memory management across different agents, while also ensuring stringent enforcement of privacy and access control measures.
์ œ์ œ ์–‘๊ณผ ๋ณต์žก์„ฑ์˜ ๊ธฐํ•˜๊ธ‰์ˆ˜์ ์ธ ์ฆ๊ฐ€์™€ ํ•จ๊ป˜ LLM ๋ฐ OS์˜ ๊ธฐ๋Šฅ์— ๋Œ€ํ•œ ๋ถ€๋‹ด์ด ์ฆ๊ฐ€ํ•˜๊ณ  ์žˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด, ์ œํ•œ๋œ LLM ๋ฆฌ์†Œ์Šค๋“ค์—์„œ ์—์ด์ „ํŠธ ์š”์ฒญ๋“ค์„ ์Šค์ผ€์ค„๋งํ•˜๊ณ  ์šฐ์„ ์ˆœ์œ„ํ™”ํ•˜๋Š” ๊ฒƒ์€ ์ƒ๋‹นํ•œ ๋„์ „์„ ์ œ๊ธฐํ•œ๋‹ค. ๋”์šฑ์ด, LLM์˜ ์ƒ์„ฑ ํ”„๋กœ์„ธ์Šค๋Š” ๊ธด ์ปจํ…์ŠคํŠธ๋“ค์„ ๋‹ค๋ฃฐ ๋•Œ ์‹œ๊ฐ„ ์ง‘์•ฝ์ ์ด ๋  ์ˆ˜ ์žˆ๊ณ , ๋•Œ๋•Œ๋กœ ์Šค์ผ€์ค„๋Ÿฌ์— ์˜ํ•ด ์ƒ์„ฑ์ด ์ค‘๋‹จ๋˜๋Š” ๊ฒฐ๊ณผ๋ฅผ ์ดˆ๋ž˜ํ•œ๋‹ค. ์ด๋Š” LLM์˜ ํ˜„์žฌ ์ƒ์„ฑ ๊ฒฐ๊ณผ๋ฅผ ์Šค๋ƒ…์ƒทํ•˜๋Š” ๋ฉ”์ปค๋‹ˆ์ฆ˜์„ ๊ณ ์•ˆํ•˜์—ฌ LLM์ด ํ˜„์žฌ ์š”์ฒญ์— ๋Œ€ํ•œ ์‘๋‹ต ์ƒ์„ฑ์„ ์™„๋ฃŒํ•˜์ง€ ์•Š์€ ๊ฒฝ์šฐ์—๋„ ์ผ์‹œ ์ค‘์ง€/์žฌ์‹œ์ž‘ ๋™์ž‘์„ ๊ฐ€๋Šฅํ•˜๊ฒŒ ํ•˜๋Š” ๋ฌธ์ œ๋ฅผ ์•ผ๊ธฐํ•œ๋‹ค. ๋˜ํ•œ ์—์ด์ „ํŠธ๊ฐ€ ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ ํ˜ธ์ถœ ๋„๊ตฌ ๋ชฉ๋ก์„ ์–ป์œผ๋ฉด ์—ฌ๋Ÿฌ ์—์ด์ „ํŠธ๊ฐ€ ๋™์ผํ•œ ๋„๊ตฌ๋ฅผ ํ˜ธ์ถœํ•ด์•ผ ํ•  ์ˆ˜ ์žˆ๊ธฐ ๋•Œ๋ฌธ์— ์ด๋Ÿฌํ•œ ๋„๊ตฌ๋ฅผ ํ˜ธ์ถœํ•˜๊ธฐ ์œ„ํ•œ ์ตœ์ ์˜ ์ˆœ์„œ๋ฅผ ๊ฒฐ์ •ํ•˜๋Š” ๊ฒƒ์€ ๋˜ ๋‹ค๋ฅธ ๊ณผ์ œ๋ฅผ ์ œ์‹œํ•œ๋‹ค. ๋˜ํ•œ, ๋‹ค์ˆ˜์˜ ์—์ด์ „ํŠธ๋“ค์˜ ๋™์‹œ ๋™์ž‘์€ ์ƒ์ดํ•œ ์—์ด์ „ํŠธ๋“ค์— ๊ฑธ์ณ ๋ฉ”๋ชจ๋ฆฌ ๊ด€๋ฆฌ๋ฅผ ์œ„ํ•œ ๊ฐ•๋ ฅํ•œ ์‹œ์Šคํ…œ์„ ํ•„์š”๋กœ ํ•˜๋Š” ๋™์‹œ์—, ํ”„๋ผ์ด๋ฒ„์‹œ ๋ฐ ์•ก์„ธ์Šค ์ œ์–ด ์กฐ์น˜๋“ค์˜ ์—„๊ฒฉํ•œ ์ง‘ํ–‰์„ ๋ณด์žฅํ•œ๋‹ค.
**500K length book summarization (BookSum).** We further scaled our approach by continuously pre-training a 8B LLM model with 8K input length for 30K steps. We then fine-tuned on a book summarization task, BookSum (Kryscinski et al., 2021) where the goal is to generate a summary of an entire book text.
**500K ๊ธธ์ด์˜ ์ฑ… ์š”์•ฝ(BookSum).** 30K ๋‹จ๊ณ„์— ๋Œ€ํ•ด 8K ์ž…๋ ฅ ๊ธธ์ด์˜ 8B LLM ๋ชจ๋ธ์„ ์ง€์†์ ์œผ๋กœ ์‚ฌ์ „ ํ›ˆ๋ จํ•˜์—ฌ ์ ‘๊ทผ ๋ฐฉ์‹์„ ํ™•์žฅํ–ˆ์Šต๋‹ˆ๋‹ค. ๊ทธ๋Ÿฐ ๋‹ค์Œ ์ฑ… ์š”์•ฝ ํƒœ์Šคํฌ์ธ BookSum(Kryscinski et al., 2021)์— ๋Œ€ํ•ด ๋ฏธ์„ธ ์กฐ์ •ํ–ˆ๋Š”๋ฐ, ์—ฌ๊ธฐ์„œ ๋ชฉํ‘œ๋Š” ์ „์ฒด ์ฑ… ํ…์ŠคํŠธ์˜ ์š”์•ฝ์„ ์ƒ์„ฑํ•˜๋Š” ๊ฒƒ์ด๋‹ค.
The story then matches back to Jurning childhood, producing context about her children and the relationship with my.
๊ทธ ์ด์•ผ๊ธฐ๋Š” ๋‹ค์‹œ ์ €๋‹์˜ ์–ด๋ฆฐ ์‹œ์ ˆ๊ณผ ์ผ์น˜ํ•˜์—ฌ ๊ทธ๋…€์˜ ์•„์ด๋“ค๊ณผ ๋‚˜์˜ ๊ด€๊ณ„์— ๋Œ€ํ•œ ๋งฅ๋ฝ์„ ์ƒ์‚ฐํ•œ๋‹ค.
BERT (Birectional Encoder Representations from Transformers) [24] is one of the most widely used encoder-only language models. BERT consists of three modules: (1) an embedding module that converts input text into a sequence of embedding vectors, (2) a stack of Transformer encoders that converts embedding vectors into contextual representation vectors, and (3) a fully connected layer that converts the representation vectors (at the final layer) to one-hot vectors. BERT is pre-trained uses two objectives: masked language modeling (MLM) and next sentence prediction. The pre-trained BERT model can be fine-tuned by adding a classifier layer for many language understanding tasks, ranging from text
BERT(Birectional Encoder Representations from Transformers) [24]๋Š” ๊ฐ€์žฅ ๋„๋ฆฌ ์‚ฌ์šฉ๋˜๋Š” ์ธ์ฝ”๋” ์ „์šฉ ์–ธ์–ด ๋ชจ๋ธ ์ค‘ ํ•˜๋‚˜์ด๋‹ค. BERT๋Š” (1) ์ž…๋ ฅ ํ…์ŠคํŠธ๋ฅผ ์ž„๋ฒ ๋”ฉ ๋ฒกํ„ฐ์˜ ์‹œํ€€์Šค๋กœ ๋ณ€ํ™˜ํ•˜๋Š” ์ž„๋ฒ ๋”ฉ ๋ชจ๋“ˆ, (2) ์ž„๋ฒ ๋”ฉ ๋ฒกํ„ฐ๋ฅผ ๋ฌธ๋งฅ์  ํ‘œํ˜„ ๋ฒกํ„ฐ๋กœ ๋ณ€ํ™˜ํ•˜๋Š” ํŠธ๋žœ์Šคํฌ๋จธ ์ธ์ฝ”๋” ์Šคํƒ, (3) ํ‘œํ˜„ ๋ฒกํ„ฐ๋ฅผ (์ตœ์ข… ๊ณ„์ธต์—์„œ) ์›-ํ•ซ ๋ฒกํ„ฐ๋กœ ๋ณ€ํ™˜ํ•˜๋Š” ์™„์ „ ์—ฐ๊ฒฐ ๊ณ„์ธต์œผ๋กœ ๊ตฌ์„ฑ๋œ๋‹ค. BERT๋Š” ๋งˆ์Šคํ‚น ์–ธ์–ด ๋ชจ๋ธ๋ง(Masked Language Modeling, MMLM)๊ณผ ๋‹ค์Œ ๋ฌธ์žฅ ์˜ˆ์ธก์˜ ๋‘ ๊ฐ€์ง€ ๋ชฉ์ ์„ ์‚ฌ์šฉํ•˜์—ฌ ์‚ฌ์ „ ํ›ˆ๋ จ๋œ๋‹ค. ์‚ฌ์ „ ํ•™์Šต๋œ BERT ๋ชจ๋ธ์€ ํ…์ŠคํŠธ๋ถ€ํ„ฐ ์‹œ์ž‘ํ•ด์„œ ๋งŽ์€ ์–ธ์–ด ์ดํ•ด ์ž‘์—…์„ ์œ„ํ•œ ๋ถ„๋ฅ˜๊ธฐ ๊ณ„์ธต์„ ์ถ”๊ฐ€ํ•จ์œผ๋กœ์จ ๋ฏธ์„ธ ์กฐ์ •๋  ์ˆ˜ ์žˆ๋‹ค.
Footnote 1: Note that a LLM is not necessarily more capable than a small PLM, and emergent abilities may not occur in some LLMs.
๊ฐ์ฃผ 1: LLM์ด ๋ฐ˜๋“œ์‹œ ์ž‘์€ PLM๋ณด๋‹ค ๋” ๋Šฅ๋ ฅ์ด ์žˆ๋Š” ๊ฒƒ์€ ์•„๋‹ˆ๋ฉฐ ์ผ๋ถ€ LLM์—์„œ๋Š” ์ถœํ˜„ ๋Šฅ๋ ฅ์ด ๋ฐœ์ƒํ•˜์ง€ ์•Š์„ ์ˆ˜ ์žˆ๋‹ค.
**Models.** We train 1B, 3B, and 7B parameters autoregressive decoder-only models, based on configurations and hyperparameters similar to GPT-3 (Brown et al., 2020), diverging mostly on our use of ALiBi (Press et al., 2021). We use FlashAttention (Dao et al., 2022) in a custom codebase. We train internal models on both The Pile and RefinedWeb to control for deviations caused by our pretraining setup-we found The Pile models to perform in-line with others. For small-scale and ablation studies (first half of Section 4.2; Section 4.3), we train models to optimality according to the scaling laws of Hoffmann et al. (2022): on 27B and 60B tokens respectively for our 1B and 3B parameters models. For the main experiments demonstrating our approach (Falcon-RW models in Section 4.2), we train the models to 350GT, in line with popular public models (Brown et al., 2020; Wang and Komatuszaki, 2021; Scao et al., 2022). Note that we do not compare against the recently introduced LLaMA models (Touvron et al., 2023), as the smallest of them is trained on x2.5 more compute than our largest model, preventing a meaningful comparison from being made dataset-wise. For a more in-depth overview of the models and pretraining datasets with which we compare, see Appendix F.
**๋ชจ๋ธ.** GPT-3(Brown ๋“ฑ, 2020)๊ณผ ์œ ์‚ฌํ•œ ๊ตฌ์„ฑ ๋ฐ ํ•˜์ดํผํŒŒ๋ผ๋ฏธํ„ฐ๋ฅผ ๊ธฐ๋ฐ˜์œผ๋กœ 1B, 3B ๋ฐ 7B ๋งค๊ฐœ ๋ณ€์ˆ˜ ์ž๋™ ํšŒ๊ท€ ๋””์ฝ”๋” ์ „์šฉ ๋ชจ๋ธ์„ ํ•™์Šตํ•˜๋ฉฐ ์ฃผ๋กœ ALiBi(Press ๋“ฑ, 2021) ์‚ฌ์šฉ์— ๋”ฐ๋ผ ๋ถ„๊ธฐ๋ฉ๋‹ˆ๋‹ค. ์šฐ๋ฆฌ๋Š” ์‚ฌ์šฉ์ž ์ง€์ • ์ฝ”๋“œ ๋ฒ ์ด์Šค์—์„œ FlashAttention (Dao et al., 2022)๋ฅผ ์‚ฌ์šฉํ•œ๋‹ค. ์‚ฌ์ „ ํ›ˆ๋ จ ์„ค์ •์œผ๋กœ ์ธํ•œ ํŽธ์ฐจ๋ฅผ ์ œ์–ดํ•˜๊ธฐ ์œ„ํ•ด The Pile ๋ฐ RefinedWeb์—์„œ ๋‚ด๋ถ€ ๋ชจ๋ธ์„ ํ›ˆ๋ จํ–ˆ์œผ๋ฉฐ, ๋‹ค๋ฅธ ๋ชจ๋ธ๊ณผ ์ธ๋ผ์ธ์œผ๋กœ ์ˆ˜ํ–‰ํ•  The Pile ๋ชจ๋ธ์„ ๋ฐœ๊ฒฌํ–ˆ๋‹ค. ์†Œ๊ทœ๋ชจ ๋ฐ ์ ˆ์ œ ์—ฐ๊ตฌ์˜ ๊ฒฝ์šฐ(์„น์…˜ 4.2์˜ ์ „๋ฐ˜๋ถ€; ์„น์…˜ 4.3) 1B ๋ฐ 3B ๋งค๊ฐœ๋ณ€์ˆ˜ ๋ชจ๋ธ์— ๋Œ€ํ•ด ๊ฐ๊ฐ 27B ๋ฐ 60B ํ† ํฐ์— ๋Œ€ํ•ด Hoffmann ๋“ฑ(2022)์˜ ์Šค์ผ€์ผ๋ง ๋ฒ•์น™์— ๋”ฐ๋ผ ์ตœ์ ์„ฑ์œผ๋กœ ๋ชจ๋ธ์„ ํ›ˆ๋ จํ•œ๋‹ค. ์šฐ๋ฆฌ์˜ ์ ‘๊ทผ๋ฒ•์„ ์ž…์ฆํ•˜๋Š” ์ฃผ์š” ์‹คํ—˜(์„น์…˜ 4.2์˜ Falcon-RW ๋ชจ๋ธ)์„ ์œ„ํ•ด, ์šฐ๋ฆฌ๋Š” ์ธ๊ธฐ ์žˆ๋Š” ๊ณต๊ฐœ ๋ชจ๋ธ(Brown et al., 2020; Wang and Komatuszaki, 2021; Scao et al., 2022)์— ๋”ฐ๋ผ 350GT๋กœ ๋ชจ๋ธ์„ ํ›ˆ๋ จ์‹œํ‚จ๋‹ค. ์ตœ๊ทผ์— ๋„์ž…๋œ LLaMA ๋ชจ๋ธ(Touvron et al., 2023)๊ณผ ๋น„๊ตํ•˜์ง€ ์•Š๋Š”๋ฐ, ๊ทธ ์ค‘ ๊ฐ€์žฅ ์ž‘์€ ๋ชจ๋ธ์ด ๊ฐ€์žฅ ํฐ ๋ชจ๋ธ๋ณด๋‹ค x2.5 ๋” ๋งŽ์€ ์ปดํ“จํŒ…์— ๋Œ€ํ•ด ํ›ˆ๋ จ๋˜์–ด ๋ฐ์ดํ„ฐ ์„ธํŠธ๋ณ„๋กœ ์œ ์˜๋ฏธํ•œ ๋น„๊ต๊ฐ€ ์ด๋ฃจ์–ด์ง€์ง€ ์•Š๊ธฐ ๋•Œ๋ฌธ์ด๋‹ค. ๋น„๊ตํ•˜๋Š” ๋ชจ๋ธ ๋ฐ ์‚ฌ์ „ ํ›ˆ๋ จ ๋ฐ์ดํ„ฐ ์„ธํŠธ์— ๋Œ€ํ•œ ๋ณด๋‹ค ์‹ฌ์ธต์ ์ธ ๊ฐœ์š”๋Š” ๋ถ€๋ก F๋ฅผ ์ฐธ์กฐํ•˜์‹ญ์‹œ์˜ค.
**Lemma 2**.: _Two reward functions from the same equivalence class induce the same optimal policy under the constrained RL problem._
**Lemma 2**.: _๋™์ผํ•œ ๋™๋“ฑ์„ฑ ํด๋ž˜์Šค์˜ ๋‘ ๋ณด์ƒ ํ•จ์ˆ˜๋Š” ์ œ์•ฝ๋œ RL ๋ฌธ์ œ์—์„œ ๋™์ผํ•œ ์ตœ์  ์ •์ฑ…์„ ์œ ๋„ํ•ฉ๋‹ˆ๋‹ค._
**RMSNorm** Same to Llama2 model (Touvron et al., 2023) 7B serious. We normalize the input of each transformer sub-layer, the attention layer, and the feedforward layer, with RMSNorm (Zhang and Sennrich, 2019).
**RMSNorm** Llama2 ๋ชจ๋ธ(Touvron ๋“ฑ, 2023) 7B์™€ ๋™์ผํ•ฉ๋‹ˆ๋‹ค. RMSNorm(Zhang and Sennrich, 2019)์„ ์‚ฌ์šฉํ•˜์—ฌ ๊ฐ ๋ณ€์••๊ธฐ ํ•˜์œ„ ๊ณ„์ธต, ์ฃผ์˜ ๊ณ„์ธต ๋ฐ ํ”ผ๋“œํฌ์›Œ๋“œ ๊ณ„์ธต์˜ ์ž…๋ ฅ์„ ์ •๊ทœํ™”ํ•œ๋‹ค.
Footnote 20: The modelโ€™s ability to learn from junk data is negligible; each person in bioS(\(N^{\prime}\)) appears only 0.2 times during training when \(N=200k\), or 0.05 times when \(N=50k\).
๊ฐ์ฃผ 20: ์ •ํฌ ๋ฐ์ดํ„ฐ์—์„œ ํ•™์Šตํ•˜๋Š” ๋ชจ๋ธ์˜ ๋Šฅ๋ ฅ์€ ๋ฌด์‹œํ•  ์ˆ˜ ์žˆ์œผ๋ฉฐ, ๋ฐ”์ด์˜คS(\(N^{\prime}\))์˜ ๊ฐ ์‚ฌ๋žŒ์€ \(N=200k\)์ผ ๋•Œ ํ›ˆ๋ จ ์ค‘ 0.2ํšŒ, \(N=50k\)์ผ ๋•Œ 0.05ํšŒ๋งŒ ๋‚˜ํƒ€๋‚œ๋‹ค.
Not all models report their performance on all datasets, and because of that, the number of models for which performance is reported in different tables varies.
๋ชจ๋“  ๋ชจ๋ธ์ด ๋ชจ๋“  ๋ฐ์ดํ„ฐ ์„ธํŠธ์— ๋Œ€ํ•œ ์„ฑ๋Šฅ์„ ๋ณด๊ณ ํ•˜๋Š” ๊ฒƒ์€ ์•„๋‹ˆ๋ฉฐ, ๊ทธ ๋•Œ๋ฌธ์— ์„ฑ๋Šฅ์ด ๋‹ค๋ฅธ ํ…Œ์ด๋ธ”์—์„œ ๋ณด๊ณ ๋˜๋Š” ๋ชจ๋ธ์˜ ์ˆ˜๊ฐ€ ๋‹ค๋ฅด๋‹ค.
For general-purpose language models, diversity and quality of instruction are crucial Cao et al. (2023); Zhou et al. (2023). However, in specialized domains it is crucial to incorporate task-specific and specialized prompts to enhance performance. Our instruction fine-tuning stage involves \(2\) key components: generic (ie, non-legal) and legal instructions. The former help enhance the model's understanding and following of commands, and includes data from diverse domains such as coding, mathematics, and general conversations. For the latter we employ an extensive collection of datasets tailored to the nuances of legal domains, covering legal question answering and summarization, among others. Through this metic lous fine-tuning on instructional data, our model, SaulLM-7B-Instruct, is able to grasp legal intricacies and excels in a wide range of associated tasks.
๋ฒ”์šฉ ์–ธ์–ด ๋ชจ๋ธ์˜ ๊ฒฝ์šฐ, ๋‹ค์–‘์„ฑ๊ณผ ์ˆ˜์—…์˜ ์งˆ์€ Cao et al.(2023); Zhou et al.(2023)์ด ๋งค์šฐ ์ค‘์š”ํ•˜๋‹ค. ๊ทธ๋Ÿฌ๋‚˜ ์ „๋ฌธํ™”๋œ ๋„๋ฉ”์ธ์—์„œ๋Š” ์„ฑ๋Šฅ์„ ํ–ฅ์ƒ์‹œํ‚ค๊ธฐ ์œ„ํ•ด ์ž‘์—…๋ณ„ ๋ฐ ์ „๋ฌธํ™”๋œ ํ”„๋กฌํ”„ํŠธ๋ฅผ ํ†ตํ•ฉํ•˜๋Š” ๊ฒƒ์ด ์ค‘์š”ํ•˜๋‹ค. ์šฐ๋ฆฌ์˜ ์ง€์นจ ๋ฏธ์„ธ ์กฐ์ • ๋‹จ๊ณ„๋Š” \(2\) ํ•ต์‹ฌ ๊ตฌ์„ฑ ์š”์†Œ, ์ฆ‰ ์ผ๋ฐ˜(์ฆ‰, ๋น„๋ฒ•) ๋ฐ ๋ฒ•์  ์ง€์นจ์„ ํฌํ•จํ•œ๋‹ค. ์ „์ž๋Š” ๋ช…๋ น์— ๋Œ€ํ•œ ๋ชจ๋ธ์˜ ์ดํ•ด์™€ ํ›„์†์„ ํ–ฅ์ƒ์‹œํ‚ค๋Š” ๋ฐ ๋„์›€์ด ๋˜๋ฉฐ ์ฝ”๋”ฉ, ์ˆ˜ํ•™, ์ผ๋ฐ˜ ๋Œ€ํ™”์™€ ๊ฐ™์€ ๋‹ค์–‘ํ•œ ์˜์—ญ์˜ ๋ฐ์ดํ„ฐ๋ฅผ ํฌํ•จํ•œ๋‹ค. ํ›„์ž์˜ ๊ฒฝ์šฐ ๋ฒ•๋ฅ  ์งˆ๋ฌธ ์‘๋‹ต ๋ฐ ์š”์•ฝ ๋“ฑ์„ ํฌํ•จํ•˜์—ฌ ๋ฒ•๋ฅ  ๋„๋ฉ”์ธ์˜ ๋‰˜์•™์Šค์— ๋งž์ถ˜ ๊ด‘๋ฒ”์œ„ํ•œ ๋ฐ์ดํ„ฐ ์„ธํŠธ๋ฅผ ์‚ฌ์šฉํ•œ๋‹ค. ์šฐ๋ฆฌ์˜ ๋ชจ๋ธ SaulLM-7B-Instruct๋Š” ๊ต์ˆ˜ ๋ฐ์ดํ„ฐ์— ๋Œ€ํ•œ ์ด๋Ÿฌํ•œ ์ ์ ˆํ•œ ๋ฏธ์„ธ ์กฐ์ •์„ ํ†ตํ•ด ๋ฒ•์  ๋ณต์žก์„ฑ์„ ํŒŒ์•…ํ•  ์ˆ˜ ์žˆ์œผ๋ฉฐ ๊ด‘๋ฒ”์œ„ํ•œ ๊ด€๋ จ ์ž‘์—…์—์„œ ํƒ์›”ํ•˜๋‹ค.
As language models continue to evolve at an accelerated pace, an increasing number of large models with high parameter counts and exceptional performance are emerging. Tuning the parameters and internal structure of these models has become increasingly difficult and inefficient, making instruction tuning more important than ever.
์–ธ์–ด ๋ชจ๋ธ๋“ค์ด ๊ฐ€์†ํ™”๋œ ์†๋„๋กœ ๊ณ„์† ๋ฐœ์ „ํ•จ์— ๋”ฐ๋ผ, ๋†’์€ ํŒŒ๋ผ๋ฏธํ„ฐ ์นด์šดํŠธ ๋ฐ ํƒ์›”ํ•œ ์„ฑ๋Šฅ์„ ๊ฐ–๋Š” ๋Œ€ํ˜• ๋ชจ๋ธ๋“ค์ด ์ฆ๊ฐ€ํ•˜๊ณ  ์žˆ๋‹ค. ์ด๋Ÿฌํ•œ ๋ชจ๋ธ์˜ ๋งค๊ฐœ๋ณ€์ˆ˜ ๋ฐ ๋‚ด๋ถ€ ๊ตฌ์กฐ๋ฅผ ์กฐ์ •ํ•˜๋Š” ๊ฒƒ์€ ์ ์  ๋” ์–ด๋ ต๊ณ  ๋น„ํšจ์œจ์ ์ด ๋˜์–ด ๋ช…๋ น์–ด ํŠœ๋‹์„ ์–ด๋Š ๋•Œ๋ณด๋‹ค ์ค‘์š”ํ•˜๊ฒŒ ๋งŒ๋“ ๋‹ค.
Due to their sparsity, MoE models often require higher learning rates compared to dense models. Consequently, we adjust the optimizer parameters as follows:
MoE ๋ชจ๋ธ์€ ํฌ์†Œ์„ฑ ๋•Œ๋ฌธ์— ๋ฐ€์ง‘ ๋ชจ๋ธ์— ๋น„ํ•ด ๋†’์€ ํ•™์Šต๋ฅ ์„ ์š”๊ตฌํ•˜๋Š” ๊ฒฝ์šฐ๊ฐ€ ๋งŽ๋‹ค. ๊ฒฐ๊ณผ์ ์œผ๋กœ ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ตœ์ ํ™” ๋งค๊ฐœ ๋ณ€์ˆ˜๋ฅผ ์กฐ์ •ํ•ฉ๋‹ˆ๋‹ค.
In addition to the above basic evaluation tasks, LLMs also exhibit some superior abilities that require special consider tions for evaluation. In this part, we discuss several representative advanced abilities and the corresponding evaluation approaches, including human alignment, interaction with the external environment, and tool manipulation. Next, we discuss these advanced abilities in detail.
LLM์€ ์œ„์˜ ๊ธฐ๋ณธ ํ‰๊ฐ€ ๊ณผ์ œ ์™ธ์—๋„ ํ‰๊ฐ€๋ฅผ ์œ„ํ•œ ํŠน๋ณ„ํ•œ ๊ณ ๋ ค๊ฐ€ ํ•„์š”ํ•œ ๋ช‡ ๊ฐ€์ง€ ์šฐ์ˆ˜ํ•œ ๋Šฅ๋ ฅ๋„ ๋ณด์ธ๋‹ค. ์ด ๋ถ€๋ถ„์—์„œ ์šฐ๋ฆฌ๋Š” ์ธ๊ฐ„์˜ ์ •๋ ฌ, ์™ธ๋ถ€ ํ™˜๊ฒฝ๊ณผ์˜ ์ƒํ˜ธ ์ž‘์šฉ, ๋„๊ตฌ ์กฐ์ž‘์„ ํฌํ•จํ•œ ๋ช‡ ๊ฐ€์ง€ ๋Œ€ํ‘œ์ ์ธ ๊ณ ๊ธ‰ ๋Šฅ๋ ฅ๊ณผ ๊ทธ์— ์ƒ์‘ํ•˜๋Š” ํ‰๊ฐ€ ์ ‘๊ทผ๋ฒ•์— ๋Œ€ํ•ด ๋…ผ์˜ํ•œ๋‹ค. ๋‹ค์Œ์œผ๋กœ ์ด๋Ÿฌํ•œ ๊ณ ๊ธ‰ ๋Šฅ๋ ฅ์— ๋Œ€ํ•ด ์ž์„ธํžˆ ๋…ผ์˜ํ•ฉ๋‹ˆ๋‹ค.
Figure 4: Best of \(N\) baseline for \(N=\{1,4,16,64,128\}\). Performance plateaus after roughly 64-128 samples.
๊ทธ๋ฆผ 4: \(N=\{1,4,16,64,128\}\)์— ๋Œ€ํ•œ \(N\) ๊ธฐ์ค€์„ ์˜ ์ตœ๋Ÿ‰์ž…๋‹ˆ๋‹ค. ๋Œ€๋žต 64-128๊ฐœ์˜ ์ƒ˜ํ”Œ ์ดํ›„์˜ ์„ฑ๋Šฅ ์•ˆ์ •.
Let \(z\in\mathbb{R}^{\ell}\) be the (unknown) logits and let \(\mathbf{N}=\sum_{i}\exp(z_{i})\) be the normalizing constant. For each \(k\in\{1,\cdots,K\}\), we have
\(z\in\mathbb{R}^{\ell}\)๋ฅผ ๋ฏธ์ง€์˜ ๋กœ์ง“์œผ๋กœ ํ•˜๊ณ  \(\mathbf{N}=\sum_{i}\exp(z_{i})\)๋ฅผ ์ •๊ทœํ™” ์ƒ์ˆ˜๋กœ ํ•œ๋‹ค. ๊ฐ๊ฐ์˜ \(k\in\{1,\cdots,K\}\)์— ๋Œ€ํ•˜์—ฌ, ์šฐ๋ฆฌ๋Š”
For Supervised Fine-Tuning (SFT), we used both Chinese and English data. The Chinese data consisted of the full set from CQIA (Bai et al., 2024) and OL-CC, as well as high-quality data sampled from COIG-PC (Zhang et al., 2023). The English data was sampled from the OpenHermesPreferences dataset (Huang et al., 2024). The total amount of Chinese data comprised 105K pairs of instruction data, with English data adjusted to different ratios based on the volume of Chinese data. The ratios were \(1:1,2:1,4:1,\) and \(8:1\), along with configurations that included only Chinese data and only English data. Each set of experiments was trained for 3 epochs, with specific experimental results shown in Table 12.
Supervised Fine-Tuning (SFT)์˜ ๊ฒฝ์šฐ ์ค‘๊ตญ์–ด์™€ ์˜์–ด ๋ฐ์ดํ„ฐ๋ฅผ ๋ชจ๋‘ ์‚ฌ์šฉํ–ˆ๋‹ค. ์ค‘๊ตญ ๋ฐ์ดํ„ฐ๋Š” CQIA(Bai et al., 2024) ๋ฐ OL-CC์˜ ํ’€ ์„ธํŠธ๋ฟ๋งŒ ์•„๋‹ˆ๋ผ COIG-PC(Zhang et al., 2023)์—์„œ ์ƒ˜ํ”Œ๋ง๋œ ๊ณ ํ’ˆ์งˆ ๋ฐ์ดํ„ฐ๋กœ ๊ตฌ์„ฑ๋˜์—ˆ๋‹ค. ์˜์–ด ๋ฐ์ดํ„ฐ๋Š” OpenHermesPreferences dataset(Huang et al., 2024)์—์„œ ์ƒ˜ํ”Œ๋ง๋˜์—ˆ๋‹ค. ์ค‘๊ตญ์–ด ๋ฐ์ดํ„ฐ์˜ ์ด๋Ÿ‰์€ 105K ์Œ์˜ ๋ช…๋ น์–ด ๋ฐ์ดํ„ฐ๋กœ ๊ตฌ์„ฑ๋˜์—ˆ์œผ๋ฉฐ, ์˜์–ด ๋ฐ์ดํ„ฐ๋Š” ์ค‘๊ตญ์–ด ๋ฐ์ดํ„ฐ์˜ ๋ณผ๋ฅจ์— ๋”ฐ๋ผ ๋‹ค๋ฅธ ๋น„์œจ๋กœ ์กฐ์ •๋˜์—ˆ๋‹ค. ๋น„์œจ์€ \(1:1,2:1,4:1,\) ๋ฐ \(8:1\)์˜€์œผ๋ฉฐ ์ค‘๊ตญ์–ด ๋ฐ์ดํ„ฐ๋งŒ ํฌํ•จํ•˜๊ณ  ์˜์–ด ๋ฐ์ดํ„ฐ๋งŒ ํฌํ•จํ•˜๋Š” ๊ตฌ์„ฑ์ด๋‹ค. ๊ฐ ์‹คํ—˜ ์„ธํŠธ๋Š” 3๊ฐœ์˜ ์—ํฌํฌ์— ๋Œ€ํ•ด ํ›ˆ๋ จ๋˜์—ˆ์œผ๋ฉฐ ํŠน์ • ์‹คํ—˜ ๊ฒฐ๊ณผ๋Š” ํ‘œ 12์— ๋‚˜์™€ ์žˆ๋‹ค.
PersonA: Urinalysis can be performed in various healthcare settings, including doctors' offices, urgent care facilities, laboratories, and hospitals. You can provide a urine sample in a specimen cup, and the sample can be analyzed on-siteor sent to a laboratory for testing. PersonU: How much urine is typically needed for the test? PersonA: Usually, only small amounts of urine, ranging from 30 to 60 ml, are required for urinalysis testing. It's a non-invasive and relatively simple test that provides valuable information about your health.
PersonA: ์†Œ๋ณ€ ๊ฒ€์‚ฌ๋Š” ์˜์‚ฌ ์‚ฌ๋ฌด์‹ค, ๊ธด๊ธ‰ ์ง„๋ฃŒ ์‹œ์„ค, ์‹คํ—˜์‹ค ๋ฐ ๋ณ‘์›์„ ํฌํ•จํ•œ ๋‹ค์–‘ํ•œ ์˜๋ฃŒ ํ™˜๊ฒฝ์—์„œ ์ˆ˜ํ–‰ํ•  ์ˆ˜ ์žˆ๋‹ค. ํ‘œ๋ณธ ์ปต์— ์†Œ๋ณ€ ์ƒ˜ํ”Œ์„ ์ œ๊ณตํ•  ์ˆ˜ ์žˆ์œผ๋ฉฐ ์ƒ˜ํ”Œ์€ ํ˜„์žฅ์—์„œ ๋ถ„์„ํ•˜๊ฑฐ๋‚˜ ์‹คํ—˜์‹ค๋กœ ๋ณด๋‚ด ๊ฒ€์‚ฌ๋ฅผ ๋ฐ›์„ ์ˆ˜ ์žˆ๋‹ค. PersonU: ๊ฒ€์‚ฌ์— ์ผ๋ฐ˜์ ์œผ๋กœ ์–ผ๋งˆ๋‚˜ ๋งŽ์€ ์†Œ๋ณ€์ด ํ•„์š”ํ•œ๊ฐ€์š”? ๊ฐœ์ธA: ๋ณดํ†ต ์†Œ๋ณ€ ๊ฒ€์‚ฌ ๊ฒ€์‚ฌ์—๋Š” 30~60ml ๋ฒ”์œ„์˜ ์†Œ๋Ÿ‰์˜ ์†Œ๋ณ€๋งŒ ํ•„์š”ํ•˜๋‹ค. ๋น„์นจ์Šต์ ์ด๊ณ  ๋น„๊ต์  ๊ฐ„๋‹จํ•œ ๊ฒ€์‚ฌ๋กœ ๊ฑด๊ฐ•์— ๋Œ€ํ•œ ๊ท€์ค‘ํ•œ ์ •๋ณด๋ฅผ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค.
**Efficiency of Information Acquisition.** Although AMIE displayed greater verbosity compared to PCPs in terms of total number of words generated in their responses during the consultation, the number of conversational turns and the number of words elicited from the patient actors were similar across both OSCE agents, as illustrated in Figure A.11. This suggests that both AMIE and PCPs acquired a similar amount of information from the patients during the encounter. To investigate how efficient AMIE or PCPs were at gathering sufficient information to formulate a correct diagnosis, we truncated the conversations at various turn counts and used AMIE to generate differential diagnoses based on these partial conversations. Figure A.12 depicts the top-3 DDx accuracy as a function of the number of turns provided to the model. The observed accuracies plateaued within the initial 10 conversational turns for both AMIE and PCPs. This suggests that both AMIE and PCPs were able to acquire the information necessary for formulating a diagnosis within the early stages of the conversation. Additionally, the comparable performance at every turn indicates that neither AMIE nor PCPs had a significant advantage in the efficiency or quality of information acquisition.
**์ •๋ณด ํš๋“์˜ ํšจ์œจ์„ฑ** AMIE๊ฐ€ ์ƒ๋‹ด ์ค‘ ์‘๋‹ต์—์„œ ์ƒ์„ฑ๋œ ์ด ๋‹จ์–ด ์ˆ˜ ์ธก๋ฉด์—์„œ PCP์— ๋น„ํ•ด ๋” ํฐ ์žฅํ™ฉํ•จ์„ ๋‚˜ํƒ€๋ƒˆ์ง€๋งŒ, ๊ทธ๋ฆผ A.11๊ณผ ๊ฐ™์ด ๋Œ€ํ™” ์ „ํ™˜ ์ˆ˜์™€ ํ™˜์ž ํ–‰์œ„์ž๋กœ๋ถ€ํ„ฐ ๋„์ถœ๋œ ๋‹จ์–ด ์ˆ˜๋Š” ๋‘ OSCE ์—์ด์ „ํŠธ ๋ชจ๋‘์—์„œ ์œ ์‚ฌํ–ˆ๋‹ค. ์ด๋Š” AMIE์™€ PCP ๋ชจ๋‘ ๋งŒ๋‚จ ๋™์•ˆ ํ™˜์ž๋กœ๋ถ€ํ„ฐ ์œ ์‚ฌํ•œ ์–‘์˜ ์ •๋ณด๋ฅผ ํš๋“ํ–ˆ์Œ์„ ์‹œ์‚ฌํ•œ๋‹ค. AMIE ๋˜๋Š” PCP๊ฐ€ ์ •ํ™•ํ•œ ์ง„๋‹จ์„ ๊ณต์‹ํ™”ํ•˜๊ธฐ ์œ„ํ•ด ์ถฉ๋ถ„ํ•œ ์ •๋ณด๋ฅผ ์ˆ˜์ง‘ํ•˜๋Š” ๋ฐ ์–ผ๋งˆ๋‚˜ ํšจ์œจ์ ์ธ์ง€ ์กฐ์‚ฌํ•˜๊ธฐ ์œ„ํ•ด ๋‹ค์–‘ํ•œ ํ„ด ์นด์šดํŠธ์—์„œ ๋Œ€ํ™”๋ฅผ ์ ˆ๋‹จํ•˜๊ณ  AMIE๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์ด๋Ÿฌํ•œ ๋ถ€๋ถ„ ๋Œ€ํ™”๋ฅผ ๊ธฐ๋ฐ˜์œผ๋กœ ์ฐจ๋“ฑ ์ง„๋‹จ์„ ์ƒ์„ฑํ–ˆ๋‹ค. ๊ทธ๋ฆผ A.12๋Š” ๋ชจ๋ธ์— ์ œ๊ณต๋œ ํšŒ์ „ ์ˆ˜์˜ ํ•จ์ˆ˜๋กœ Top-3 DDx ์ •ํ™•๋„๋ฅผ ๋‚˜ํƒ€๋‚ธ๋‹ค. ๊ด€์ฐฐ๋œ ์ •ํ™•๋„๋Š” AMIE์™€ PCP ๋ชจ๋‘์— ๋Œ€ํ•ด ์ดˆ๊ธฐ 10ํšŒ ๋Œ€ํ™” ํšŒ์ „ ๋‚ด์—์„œ ์•ˆ์ •๋˜์—ˆ๋‹ค. ์ด๋Š” AMIE์™€ PCP ๋ชจ๋‘ ๋Œ€ํ™”์˜ ์ดˆ๊ธฐ ๋‹จ๊ณ„์—์„œ ์ง„๋‹จ์„ ๊ณต์‹ํ™”ํ•˜๋Š” ๋ฐ ํ•„์š”ํ•œ ์ •๋ณด๋ฅผ ์–ป์„ ์ˆ˜ ์žˆ์—ˆ์Œ์„ ์‹œ์‚ฌํ•œ๋‹ค. ๋˜ํ•œ ๋งคํšŒ ์œ ์‚ฌํ•œ ์„ฑ๋Šฅ์€ AMIE๋‚˜ PCP ๋ชจ๋‘ ์ •๋ณด ํš๋“์˜ ํšจ์œจ์„ฑ์ด๋‚˜ ํ’ˆ์งˆ์— ํฐ ์ด์ ์ด ์—†์Œ์„ ๋‚˜ํƒ€๋‚ธ๋‹ค.
1. **SlimOrca** This subset of the FLAN collection comprises generic instructions, offering a focused resource for various tasks Mukherjee et al. (2023); Lian et al. (2023). 2. **Meta Math Question Answering Instructions** Designed for mathematical inquiry, this dataset15 presents a range of mathematical questions, facilitating research in math-based natural language processing Yu et al. (2023). Footnote 15: Accessible at meta-math/MetaMathQA 3. **General Conversations from UltraChat** Capturing diverse conversational contexts,
1. **SlimOrca** FLAN ์ปฌ๋ ‰์…˜์˜ ์ด ํ•˜์œ„ ์ง‘ํ•ฉ์€ ์ผ๋ฐ˜ ์ง€์นจ์„ ํฌํ•จํ•˜์—ฌ ๋‹ค์–‘ํ•œ ์ž‘์—…์— ๋Œ€ํ•œ ์ง‘์ค‘๋œ ๋ฆฌ์†Œ์Šค๋ฅผ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค. Mukherjee ๋“ฑ(2023); Lian ๋“ฑ(2023). 2. **Meta Math Question Answering Instructions** ์ˆ˜ํ•™์  ํƒ๊ตฌ๋ฅผ ์œ„ํ•ด ์„ค๊ณ„๋œ ์ด ๋ฐ์ดํ„ฐ ์„ธํŠธ15๋Š” ์ˆ˜ํ•™ ๊ธฐ๋ฐ˜ ์ž์—ฐ์–ด ์ฒ˜๋ฆฌ Yu ๋“ฑ(2023)์—์„œ ์—ฐ๊ตฌ๋ฅผ ์šฉ์ดํ•˜๊ฒŒ ํ•˜๋Š” ๋‹ค์–‘ํ•œ ์ˆ˜ํ•™์  ์งˆ๋ฌธ์„ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค. ๊ฐ์ฃผ 15: ๋ฉ”ํƒ€์ˆ˜ํ•™/๋ฉ”ํƒ€์ˆ˜ํ•™QA์—์„œ ์•ก์„ธ์Šค ๊ฐ€๋Šฅ 3. **UltraChat์˜ ์ผ๋ฐ˜ ๋Œ€ํ™”** ๋‹ค์–‘ํ•œ ๋Œ€ํ™” ์ปจํ…์ŠคํŠธ๋ฅผ ์บก์ฒ˜ํ•ฉ๋‹ˆ๋‹ค.
The disadvantage of studying emergent abilities in the lens of pre-training loss is that the pre-training loss is affected by the tokenizer and the distribution of pre-training corpus. The values of pre-training loss of language models trained on different corpus are not directly comparable. One possible solution is to evaluate different language models on a public validation set with the normalized perplexity [34] to account for the different vocabulary sizes.
์‚ฌ์ „ ํ›ˆ๋ จ ์†์‹ค ๋ Œ์ฆˆ์—์„œ ์ถœํ˜„ ๋Šฅ๋ ฅ์„ ์—ฐ๊ตฌํ•˜๋Š” ๋‹จ์ ์€ ์‚ฌ์ „ ํ›ˆ๋ จ ์†์‹ค์ด ํ† ํฐํ™”๊ธฐ์™€ ์‚ฌ์ „ ํ›ˆ๋ จ ๋ง๋ญ‰์น˜์˜ ๋ถ„ํฌ์— ์˜ํ–ฅ์„ ๋ฐ›๋Š”๋‹ค๋Š” ๊ฒƒ์ด๋‹ค. ๋‹ค๋ฅธ ์ฝ”ํผ์Šค์—์„œ ํ›ˆ๋ จ๋œ ์–ธ์–ด ๋ชจ๋ธ์˜ ์‚ฌ์ „ ํ›ˆ๋ จ ์†์‹ค์˜ ๊ฐ’์€ ์ง์ ‘์ ์œผ๋กœ ๋น„๊ตํ•  ์ˆ˜ ์—†๋‹ค. ํ•˜๋‚˜์˜ ๊ฐ€๋Šฅํ•œ ํ•ด๊ฒฐ์ฑ…์€ ์ƒ์ดํ•œ ์–ดํœ˜ ํฌ๊ธฐ๋ฅผ ๊ณ ๋ คํ•˜๊ธฐ ์œ„ํ•ด ์ •๊ทœํ™”๋œ ๋ณต์žก๋„[34]๋ฅผ ๊ฐ–๋Š” ๊ณต๊ฐœ ๊ฒ€์ฆ ์„ธํŠธ ์ƒ์—์„œ ์ƒ์ดํ•œ ์–ธ์–ด ๋ชจ๋ธ๋“ค์„ ํ‰๊ฐ€ํ•˜๋Š” ๊ฒƒ์ด๋‹ค.
Large Language ModelsLarge language models Brown et al. (2020); Achiam et al. (2023); Touvron et al. (2023, 2023) have made significant achievements, with impressive performance on a wide range of tasks. Currently, closed-source large language models, represented by GPT Brown et al. (2020); Achiam et al. (2023), Gemini Team et al. (2023), Groke (xAI, 2023), and Claude-2 (Anthropic, 2023), are the most advanced models in terms of performance. However, open-source models, represented by LLaMA Touvron et al. (2023), LLaMA-2 Touvron et al. (2023) and Mixtral Jiang et al. (2024), have also progressed rapidly, and have even shown competitive performance with the closed-source models on some tasks. Our work, which aims to improve the performance of open-source LLMs on mathematical tasks by fine-tuning them on synthetic data.
Large Language ModelsLarge Language models Brown et al. (2020); Achiam et al. (2023); Touvron et al. (2023, 2023)์€ ๊ด‘๋ฒ”์œ„ํ•œ ์ž‘์—…์—์„œ ์ธ์ƒ์ ์ธ ์„ฑ๋Šฅ์œผ๋กœ ์ƒ๋‹นํ•œ ์„ฑ๊ณผ๋ฅผ ๊ฑฐ๋‘์—ˆ์Šต๋‹ˆ๋‹ค. ํ˜„์žฌ GPT Brown ๋“ฑ(2020)์œผ๋กœ ๋Œ€ํ‘œ๋˜๋Š” ํ์‡„ ์†Œ์Šค ๋Œ€ํ˜• ์–ธ์–ด ๋ชจ๋ธ์€ Achiam ๋“ฑ(2023), Gemini Team ๋“ฑ(2023), Groke(xAI, 2023), Claude-2(Anthropic, 2023) ๋“ฑ์ด ์„ฑ๋Šฅ ๋ฉด์—์„œ ๊ฐ€์žฅ ์ง„๋ณด๋œ ๋ชจ๋ธ์ด๋‹ค. ๊ทธ๋Ÿฌ๋‚˜ LLaMA Touvron et al. (2023), LLaMA-2 Touvron et al. (2023), Mixtral Jiang et al. (2024)๋กœ ๋Œ€ํ‘œ๋˜๋Š” ์˜คํ”ˆ ์†Œ์Šค ๋ชจ๋ธ๋„ ๋น ๋ฅด๊ฒŒ ์ง„ํ–‰๋˜์—ˆ์œผ๋ฉฐ ์ผ๋ถ€ ์ž‘์—…์—์„œ ํด๋กœ์ฆˆ๋“œ ์†Œ์Šค ๋ชจ๋ธ๊ณผ ๊ฒฝ์Ÿ์ ์ธ ์„ฑ๋Šฅ์„ ๋ณด์˜€๋‹ค. ๋ณธ ์—ฐ๊ตฌ๋Š” ์˜คํ”ˆ ์†Œ์Šค LLM์„ ํ•ฉ์„ฑ ๋ฐ์ดํ„ฐ๋กœ ๋ฏธ์„ธ ์กฐ์ •ํ•จ์œผ๋กœ์จ ์ˆ˜ํ•™์  ์ž‘์—…์— ๋Œ€ํ•œ LLM ์„ฑ๋Šฅ์„ ํ–ฅ์ƒ์‹œํ‚ค๋Š” ๊ฒƒ์„ ๋ชฉํ‘œ๋กœ ํ•œ๋‹ค.
In this section, we discuss our post-training methods to extend the Yi base model to 200K long-context, equip it with visual understanding capability, and enhance the 6B model by depth upscaling.
์ด ์ ˆ์—์„œ๋Š” Yi ๊ธฐ๋ฐ˜ ๋ชจ๋ธ์„ 200K์˜ ๊ธด ์ปจํ…์ŠคํŠธ๋กœ ํ™•์žฅํ•˜๊ณ  ์‹œ๊ฐ์  ์ดํ•ด ๋Šฅ๋ ฅ์„ ๊ฐ–์ถ”๊ณ  ๊นŠ์ด ์—…์Šค์ผ€์ผ๋ง์„ ํ†ตํ•ด 6B ๋ชจ๋ธ์„ ํ–ฅ์ƒ์‹œํ‚ค๋Š” ์‚ฌํ›„ ํ›ˆ๋ จ ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด ๋…ผ์˜ํ•œ๋‹ค.
Figure 1: Infini-attention has an additional compressive memory with linear attention for processing infinitely long contexts. \(\{KV\}_{s-1}\) and \(\{KV\}_{s}\) are attention key and values for current and previous input segments, respectively and \(Q_{s}\) the attention queries. PE denotes position embeddings.
๊ทธ๋ฆผ 1: ๋ฌดํ•œํžˆ ๊ธด ์ปจํ…์ŠคํŠธ๋ฅผ ์ฒ˜๋ฆฌํ•˜๊ธฐ ์œ„ํ•ด ์„ ํ˜• ์ฃผ์˜๋ ฅ์„ ๊ฐ–๋Š” ์ถ”๊ฐ€์ ์ธ ์••์ถ• ๋ฉ”๋ชจ๋ฆฌ๋ฅผ ๊ฐ–๋Š”๋‹ค. \ (\{KV\}_{s-1}\) ๋ฐ \(\{KV\}_{s}\)๋Š” ๊ฐ๊ฐ ํ˜„์žฌ ๋ฐ ์ด์ „ ์ž…๋ ฅ ์„ธ๊ทธ๋จผํŠธ์— ๋Œ€ํ•œ ์ฃผ์˜ ํ‚ค ๋ฐ ๊ฐ’์ด๊ณ  \(Q_{s}\)๋Š” ์ฃผ์˜ ์ฟผ๋ฆฌ์ด๋‹ค. PE๋Š” ์œ„์น˜ ์ž„๋ฒ ๋”ฉ์„ ๋‚˜ํƒ€๋‚ธ๋‹ค.
Logit bias XOR logprobs.Our attack is \(10\times\) cheaper when an adversary can supply both a logit bias and also view output logprobs. This suggests a natural mitigation: prohibit queries to the API that make use of _both_ logit bias and logprobs at the same time. This type of defense is common in both the security and machine learning community: for example, in 2023 OpenAI removed the ability to combine both echo and logprobs, but with either alone being allowed; this defense would behave similarly.
๋กœ์ง“ ๋ฐ”์ด์–ด์Šค XOR logprobs. ์šฐ๋ฆฌ์˜ ๊ณต๊ฒฉ์€ ์ ์ˆ˜๊ฐ€ ๋กœ์ง“ ๋ฐ”์ด์–ด์Šค๋ฅผ ์ œ๊ณตํ•˜๊ณ  ์ถœ๋ ฅ ๋กœ๊ทธํ”„๋กœ๋ธŒ๋ฅผ ๋ชจ๋‘ ๋ณผ ์ˆ˜ ์žˆ์„ ๋•Œ \(10\times\) ๋” ์ €๋ ดํ•˜๋‹ค. ์ด๊ฒƒ์€ ์ž์—ฐ์Šค๋Ÿฌ์šด ์™„ํ™”๋ฅผ ์ œ์•ˆํ•ฉ๋‹ˆ๋‹ค. _๋กœ์ง“ ํŽธํ–ฅ๊ณผ ๋กœ๊ทธํ”„๋กœ๋ธŒ๋ฅผ ๋™์‹œ์— ์‚ฌ์šฉํ•˜๋Š” API์— ๋Œ€ํ•œ ์ฟผ๋ฆฌ๋ฅผ ๊ธˆ์ง€ํ•ฉ๋‹ˆ๋‹ค. ์ด๋Ÿฌํ•œ ์œ ํ˜•์˜ ๋ฐฉ์–ด๋Š” ๋ณด์•ˆ ๋ฐ ๊ธฐ๊ณ„ ํ•™์Šต ์ปค๋ฎค๋‹ˆํ‹ฐ ๋ชจ๋‘์—์„œ ์ผ๋ฐ˜์ ์ž…๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด, 2023๋…„์— OpenAI๋Š” ์—์ฝ”์™€ ๋กœ๊ทธํ”„๋กœ๋ธŒ๋ฅผ ๋ชจ๋‘ ๊ฒฐํ•ฉํ•˜๋Š” ๊ธฐ๋Šฅ์„ ์ œ๊ฑฐํ–ˆ์ง€๋งŒ ๋‘˜ ์ค‘ ํ•˜๋‚˜๋งŒ ํ—ˆ์šฉ๋ฉ๋‹ˆ๋‹ค. ์ด ๋ฐฉ์–ด๋Š” ์œ ์‚ฌํ•˜๊ฒŒ ํ–‰๋™ํ•ฉ๋‹ˆ๋‹ค.
Unlike most studies (Yoran et al., 2023) (Nakano et al., 2021) that directly utilise commercial search engine APIs. Komeili et al. (2021) propose an alternative approach to using multiple commercial search engine APIs. They suggest using the Bing Search API to generate a list of URLs for each query. These URLs are then used as keys to look up their page content in a lookup table constructed from public crawl snapshots, which populates a set of pages for that query. In addition, the evaluation takes into account whether the URL is from the English Wikipedia. If so, the page title is extracted from the URL and the corresponding page is searched for in the Wikipedia dump.
์ƒ์—… ๊ฒ€์ƒ‰ ์—”์ง„ API๋ฅผ ์ง์ ‘ ์‚ฌ์šฉํ•˜๋Š” ๋Œ€๋ถ€๋ถ„์˜ ์—ฐ๊ตฌ(Yoran ๋“ฑ, 2023)(Nakano ๋“ฑ, 2021)์™€ ๋‹ฌ๋ฆฌ. Komeili ๋“ฑ(2021)์€ ๋‹ค์ค‘ ์ƒ์šฉ ๊ฒ€์ƒ‰ ์—”์ง„ API๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๋Œ€์•ˆ์ ์ธ ์ ‘๊ทผ๋ฒ•์„ ์ œ์•ˆํ•œ๋‹ค. Bing Search API๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๊ฐ ์ฟผ๋ฆฌ์— ๋Œ€ํ•œ URL ๋ชฉ๋ก์„ ์ƒ์„ฑํ•˜๋Š” ๊ฒƒ์ด ์ข‹์Šต๋‹ˆ๋‹ค. ๊ทธ๋Ÿฐ ๋‹ค์Œ ์ด๋Ÿฌํ•œ URL์€ ํ•ด๋‹น ์ฟผ๋ฆฌ์— ๋Œ€ํ•œ ํŽ˜์ด์ง€ ์ง‘ํ•ฉ์„ ์ฑ„์šฐ๋Š” ๊ณต์šฉ ํฌ๋กค๋ง ์Šค๋ƒ…์ˆ์—์„œ ๊ตฌ์„ฑ๋œ ์กฐํšŒ ํ…Œ์ด๋ธ”์—์„œ ํŽ˜์ด์ง€ ์ฝ˜ํ…์ธ ๋ฅผ ๊ฒ€์ƒ‰ํ•˜๋Š” ํ‚ค๋กœ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค. ๋˜ํ•œ, ํ‰๊ฐ€๋Š” URL์ด ์˜์–ด ์œ„ํ‚คํ”ผ๋””์•„๋กœ๋ถ€ํ„ฐ์˜ ๊ฒƒ์ธ์ง€ ์—ฌ๋ถ€๋ฅผ ๊ณ ๋ คํ•œ๋‹ค. ๊ทธ๋ ‡๋‹ค๋ฉด URL์—์„œ ํŽ˜์ด์ง€ ์ œ๋ชฉ์„ ์ถ”์ถœํ•˜๊ณ  ์œ„ํ‚คํ”ผ๋””์•„ ๋คํ”„์—์„œ ํ•ด๋‹น ํŽ˜์ด์ง€๋ฅผ ๊ฒ€์ƒ‰ํ•œ๋‹ค.
Our findings place domain continual pre-training as a strong alternative to building domain-specific LLMs from scratch. By being smarter about data selection for continual pre-training, we can surpass vanilla continual pre-training at a fraction of the cost. Overall, our work paves the way for developing domain-specific LLMs at a reduced cost, with implications for a wide range of applications.
์šฐ๋ฆฌ์˜ ์—ฐ๊ตฌ ๊ฒฐ๊ณผ๋Š” ๋„๋ฉ”์ธ ํŠน์ • LLM์„ ์ฒ˜์Œ๋ถ€ํ„ฐ ๊ตฌ์ถ•ํ•˜๋Š” ๊ฐ•๋ ฅํ•œ ๋Œ€์•ˆ์œผ๋กœ ๋„๋ฉ”์ธ ์—ฐ์† ์‚ฌ์ „ ํ›ˆ๋ จ์„ ๋ฐฐ์น˜ํ•œ๋‹ค. ์ง€์†์ ์ธ ์‚ฌ์ „ ํ›ˆ๋ จ์„ ์œ„ํ•œ ๋ฐ์ดํ„ฐ ์„ ํƒ์— ๋Œ€ํ•ด ๋” ๋˜‘๋˜‘ํ•ด์ง์œผ๋กœ์จ, ์šฐ๋ฆฌ๋Š” ๋น„์šฉ์˜ ์ผ๋ถ€์—์„œ ๋ฐ”๋‹๋ผ ์—ฐ์† ์‚ฌ์ „ ํ›ˆ๋ จ์„ ๋Šฅ๊ฐ€ํ•  ์ˆ˜ ์žˆ๋‹ค. ์ „๋ฐ˜์ ์œผ๋กœ, ์šฐ๋ฆฌ์˜ ์ž‘์—…์€ ๊ด‘๋ฒ”์œ„ํ•œ ์‘์šฉ ํ”„๋กœ๊ทธ๋žจ์— ๋Œ€ํ•œ ์˜๋ฏธ์™€ ํ•จ๊ป˜ ๊ฐ์†Œ๋œ ๋น„์šฉ์œผ๋กœ ๋„๋ฉ”์ธ๋ณ„ LLM์„ ๊ฐœ๋ฐœํ•  ์ˆ˜ ์žˆ๋Š” ๊ธธ์„ ์—ด์–ด์ค€๋‹ค.
In this part of our discussion, we pay attention to an in-depth analysis of individual models, focusing on identifying whether the trends in their performance remain consistent across various metrics and observing the unique patterns that emerge across different benchmarks.
๋…ผ์˜์˜ ์ด ๋ถ€๋ถ„์—์„œ ์šฐ๋ฆฌ๋Š” ๊ฐœ๋ณ„ ๋ชจ๋ธ์˜ ์‹ฌ์ธต ๋ถ„์„์— ์ฃผ๋ชฉํ•˜์—ฌ ์„ฑ๋Šฅ ์ถ”์„ธ๊ฐ€ ๋‹ค์–‘ํ•œ ๋ฉ”ํŠธ๋ฆญ์— ๊ฑธ์ณ ์ผ๊ด€๋˜๊ฒŒ ์œ ์ง€๋˜๋Š”์ง€ ์—ฌ๋ถ€๋ฅผ ์‹๋ณ„ํ•˜๊ณ  ๋‹ค์–‘ํ•œ ๋ฒค์น˜๋งˆํฌ์— ๊ฑธ์ณ ๋‚˜ํƒ€๋‚˜๋Š” ๊ณ ์œ ํ•œ ํŒจํ„ด์„ ๊ด€์ฐฐํ•˜๋Š” ๋ฐ ์ค‘์ ์„ ๋‘”๋‹ค.
**Knowledge extraction.** The "2bit/param" result is not about word-by-word memorization. Even better, such knowledge is also flexibly extractable (e.g., via fine-tuning using QAs like "What is Anya Forger's birthday?") [3] and thus can be further manipulated in downstream tasks (such as comparing the birthdates of two people, or performing calculations on the retrieved knowledge, etc.) [4]. This is because our \(\mathsf{bioS}(N)\) data is knowledge-augmented: the English biographies have sufficient text diversities [3]. We also verify in Appendix A.2 that such knowledge is extractable.
**์ง€์‹ ์ถ”์ถœ.** "2bit/param" ๊ฒฐ๊ณผ๋Š” ๋‹จ์–ด๋ณ„ ์•”๊ธฐ์— ๋Œ€ํ•œ ๊ฒƒ์ด ์•„๋‹™๋‹ˆ๋‹ค. ๋” ์–‘ํ˜ธํ•˜๊ฒŒ๋Š”, ๊ทธ๋Ÿฌํ•œ ์ง€์‹์€ ๋˜ํ•œ (์˜ˆ๋ฅผ ๋“ค์–ด, " Anya Forger์˜ ์ƒ์ผ์€?"๊ณผ ๊ฐ™์€ QAs๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๋ฏธ์„ธ ์กฐ์ •์„ ํ†ตํ•ด) ์œ ์—ฐํ•˜๊ฒŒ ์ถ”์ถœ๊ฐ€๋Šฅํ•˜๋ฉฐ[3] ๋”ฐ๋ผ์„œ (๋‘ ์‚ฌ๋žŒ์˜ ์ƒ์ผ์„ ๋น„๊ตํ•˜๋Š” ๊ฒƒ, ๋˜๋Š” ๊ฒ€์ƒ‰๋œ ์ง€์‹์— ๋Œ€ํ•œ ๊ณ„์‚ฐ์„ ์ˆ˜ํ–‰ํ•˜๋Š” ๊ฒƒ ๋“ฑ๊ณผ ๊ฐ™์€) ๋‹ค์šด์ŠคํŠธ๋ฆผ ํƒœ์Šคํฌ๋“ค์—์„œ ์ถ”๊ฐ€๋กœ ์กฐ์ž‘๋  ์ˆ˜ ์žˆ๋‹ค[4]. ์ด๊ฒƒ์€ ์šฐ๋ฆฌ์˜ \(\mathsf{bioS}(N)\) ๋ฐ์ดํ„ฐ๊ฐ€ ์ง€์‹์„ ์ฆ๊ฐ•ํ•˜๊ธฐ ๋•Œ๋ฌธ์ด๋‹ค: ์˜์–ด ์ „๊ธฐ๋“ค์€ ์ถฉ๋ถ„ํ•œ ํ…์ŠคํŠธ ๋‹ค์–‘์„ฑ์„ ๊ฐ€์ง€๊ณ  ์žˆ๋‹ค[3]. ์šฐ๋ฆฌ๋Š” ๋˜ํ•œ ๋ถ€๋ก A.2์—์„œ ๊ทธ๋Ÿฌํ•œ ์ง€์‹์ด ์ถ”์ถœ ๊ฐ€๋Šฅํ•˜๋‹ค๋Š” ๊ฒƒ์„ ๊ฒ€์ฆํ•œ๋‹ค.
This becomes a dynamic data schedule as the number of training stages approaches the infinite limit. Therefore, the successful application of our data mixing laws on continual training signifies a promising prospect for using it to design dynamic data schedules, a more comprehensive data curating paradigm.
์ด๋Š” ํ›ˆ๋ จ ๋‹จ๊ณ„์˜ ์ˆ˜๊ฐ€ ๋ฌดํ•œํ•œ ํ•œ๊ณ„์— ๊ฐ€๊นŒ์›Œ์ง์— ๋”ฐ๋ผ ๋™์  ๋ฐ์ดํ„ฐ ์Šค์ผ€์ค„์ด ๋œ๋‹ค. ๋”ฐ๋ผ์„œ ์ง€์†์ ์ธ ํ›ˆ๋ จ์— ๋Œ€ํ•œ ๋ฐ์ดํ„ฐ ํ˜ผํ•ฉ ๋ฒ•์น™์˜ ์„ฑ๊ณต์ ์ธ ์ ์šฉ์€ ๋ณด๋‹ค ํฌ๊ด„์ ์ธ ๋ฐ์ดํ„ฐ ํ๋ ˆ์ดํŒ… ํŒจ๋Ÿฌ๋‹ค์ž„์ธ ๋™์  ๋ฐ์ดํ„ฐ ์Šค์ผ€์ค„์„ ์„ค๊ณ„ํ•˜๋Š” ๋ฐ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋Š” ์œ ๋งํ•œ ์ „๋ง์„ ๋‚˜ํƒ€๋‚ธ๋‹ค.
We now compare infinite learning rate schedules to a cosine decay schedule. We first explore a simple single-dataset pre-training setup to evaluate the feasibility of the schedule for LLM pre-training. Subsequently, we explore its benefits in our _three datasets, no shift_ setting.
์šฐ๋ฆฌ๋Š” ์ด์ œ ๋ฌดํ•œ ํ•™์Šต๋ฅ  ์Šค์ผ€์ค„์„ ์ฝ”์‚ฌ์ธ ๊ฐ์‡  ์Šค์ผ€์ค„๊ณผ ๋น„๊ตํ•œ๋‹ค. ๋จผ์ € LLM ์‚ฌ์ „ ํ›ˆ๋ จ ์ผ์ •์˜ ํƒ€๋‹น์„ฑ์„ ํ‰๊ฐ€ํ•˜๊ธฐ ์œ„ํ•ด ๊ฐ„๋‹จํ•œ ๋‹จ์ผ ๋ฐ์ดํ„ฐ ์„ธํŠธ ์‚ฌ์ „ ํ›ˆ๋ จ ์„ค์ •์„ ํƒ์ƒ‰ํ•œ๋‹ค. ๊ทธ ํ›„, ์šฐ๋ฆฌ๋Š” ์‹œํ”„ํŠธ๊ฐ€ ์—†๋Š” 3๊ฐœ์˜ ๋ฐ์ดํ„ฐ ์„ธํŠธ์—์„œ ๊ทธ ์ด์ ์„ ํƒ๊ตฌํ•ฉ๋‹ˆ๋‹ค.
Agents are designed to extend language model capabilities to solve real-world challenges. Successful implementations require robust problem-solving capabilities enabling agents to perform well on novel tasks. To solve real-world problems effectively, agents require the ability to reason and plan as well as call tools that interact with an external environment. In this section we explore why reasoning, planning, and tool calling are critical to agent success.
์—์ด์ „ํŠธ๋Š” ์‹ค์ œ ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•˜๊ธฐ ์œ„ํ•ด ์–ธ์–ด ๋ชจ๋ธ ๊ธฐ๋Šฅ์„ ํ™•์žฅํ•˜๋„๋ก ์„ค๊ณ„๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ์„ฑ๊ณต์ ์ธ ๊ตฌํ˜„์—๋Š” ์—์ด์ „ํŠธ๊ฐ€ ์ƒˆ๋กœ์šด ์ž‘์—…์— ๋Œ€ํ•ด ์ž˜ ์ˆ˜ํ–‰ํ•  ์ˆ˜ ์žˆ๋Š” ๊ฐ•๋ ฅํ•œ ๋ฌธ์ œ ํ•ด๊ฒฐ ๊ธฐ๋Šฅ์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค. ์‹ค์ œ ๋ฌธ์ œ๋ฅผ ํšจ๊ณผ์ ์œผ๋กœ ํ•ด๊ฒฐํ•˜๊ธฐ ์œ„ํ•ด ์—์ด์ „ํŠธ๋Š” ์™ธ๋ถ€ ํ™˜๊ฒฝ๊ณผ ์ƒํ˜ธ ์ž‘์šฉํ•˜๋Š” ๋„๊ตฌ๋ฅผ ํ˜ธ์ถœํ•  ๋ฟ๋งŒ ์•„๋‹ˆ๋ผ ์ถ”๋ก ํ•˜๊ณ  ๊ณ„ํšํ•˜๋Š” ๋Šฅ๋ ฅ์ด ํ•„์š”ํ•˜๋‹ค. ์ด ์„น์…˜์—์„œ๋Š” ์ถ”๋ก , ๊ณ„ํš ๋ฐ ๋„๊ตฌ ํ˜ธ์ถœ์ด ์—์ด์ „ํŠธ ์„ฑ๊ณต์— ์ค‘์š”ํ•œ ์ด์œ ๋ฅผ ํƒ๊ตฌํ•ฉ๋‹ˆ๋‹ค.
Training with synthetic data makes evaluation decontamination harder.The use of synthetic data in model training poses significant challenges to fair evaluation. Evaluation benchmarks are often created by referring to public text sources, such as coursework websites or forums. Consequently, it is arguable that all publicly available benchmark test cases might occasionally be included in the pre-training data of LLMs (Gao et al., 2021; Hoffmann et al., 2022). The use of synthetic data exacerbates this issue rather than mitigating it. Although the community has proposed several techniques to detect such evaluation contamination, such as _min-k9 prob_(Shi et al., 2023), which checks the probabilities of \(k\) long-tail tokens, these token-level decontamination methods are inadequate whenthe model is trained with synthetic data. Synthetic data might include rephrased versions of the benchmark data (Mattern et al., 2023; Oren et al., 2023), rendering token-level decontamination ineffective. In addition to developing more advanced evaluation contamination detection techniques, we recommend that model developers invest in creating and maintaining in-house and protected evaluation benchmarks. These proprietary benchmarks should be carefully safeguarded to prevent leakage and ensure the integrity of the evaluation process.
ํ•ฉ์„ฑ ๋ฐ์ดํ„ฐ๋ฅผ ์‚ฌ์šฉํ•œ ํ›ˆ๋ จ์€ ํ‰๊ฐ€ ์˜ค์—ผ ์ œ๊ฑฐ๋ฅผ ๋” ์–ด๋ ต๊ฒŒ ๋งŒ๋“ ๋‹ค. ๋ชจ๋ธ ํ›ˆ๋ จ์—์„œ ํ•ฉ์„ฑ ๋ฐ์ดํ„ฐ๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ์€ ๊ณต์ •ํ•œ ํ‰๊ฐ€์— ์ƒ๋‹นํ•œ ๋„์ „์„ ์ œ๊ธฐํ•œ๋‹ค. ํ‰๊ฐ€ ๋ฒค์น˜๋งˆํฌ๋Š” ์ข…์ข… ์ฝ”์Šค์›Œํฌ ์›น์‚ฌ์ดํŠธ๋‚˜ ํฌ๋Ÿผ๊ณผ ๊ฐ™์€ ๊ณต๊ฐœ ํ…์ŠคํŠธ ์†Œ์Šค๋ฅผ ์ฐธ์กฐํ•˜์—ฌ ๋งŒ๋“ค์–ด์ง„๋‹ค. ๊ฒฐ๊ณผ์ ์œผ๋กœ, ๊ณต๊ฐœ์ ์œผ๋กœ ์ด์šฉ ๊ฐ€๋Šฅํ•œ ๋ชจ๋“  ๋ฒค์น˜๋งˆํฌ ํ…Œ์ŠคํŠธ ์ผ€์ด์Šค๊ฐ€ LLMs์˜ ์‚ฌ์ „ ํŠธ๋ ˆ์ด๋‹ ๋ฐ์ดํ„ฐ์— ๋•Œ๋•Œ๋กœ ํฌํ•จ๋  ์ˆ˜ ์žˆ๋‹ค๋Š” ๊ฒƒ์€ ๋…ผ์Ÿ์˜ ์—ฌ์ง€๊ฐ€ ์žˆ๋‹ค(Gao et al., 2021; Hoffmann et al., 2022). ํ•ฉ์„ฑ ๋ฐ์ดํ„ฐ์˜ ์‚ฌ์šฉ์€ ์ด ๋ฌธ์ œ๋ฅผ ์™„ํ™”ํ•˜๊ธฐ๋ณด๋‹ค๋Š” ์•…ํ™”์‹œํ‚จ๋‹ค. ์ปค๋ฎค๋‹ˆํ‹ฐ์—์„œ๋Š” \(k\) ๋กฑํ…Œ์ผ ํ† ํฐ์˜ ํ™•๋ฅ ์„ ํ™•์ธํ•˜๋Š” _min-k9 prob_(Shi et al., 2023)์™€ ๊ฐ™์€ ํ‰๊ฐ€ ์˜ค์—ผ์„ ๊ฐ์ง€ํ•˜๊ธฐ ์œ„ํ•œ ๋ช‡ ๊ฐ€์ง€ ๊ธฐ์ˆ ์„ ์ œ์•ˆํ–ˆ์ง€๋งŒ ์ด๋Ÿฌํ•œ ํ† ํฐ ์ˆ˜์ค€ ์˜ค์—ผ ์ œ๊ฑฐ ๋ฐฉ๋ฒ•์€ ๋ชจ๋ธ์ด ํ•ฉ์„ฑ ๋ฐ์ดํ„ฐ๋กœ ํ›ˆ๋ จ๋  ๋•Œ ๋ถ€์ ์ ˆํ•œ๋‹ค. ํ•ฉ์„ฑ ๋ฐ์ดํ„ฐ๋Š” ๋ฒค์น˜๋งˆํฌ ๋ฐ์ดํ„ฐ์˜ ๋ณ€๊ฒฝ๋œ ๋ฒ„์ „(Mattern ๋“ฑ, 2023; Oren ๋“ฑ, 2023)์„ ํฌํ•จํ•  ์ˆ˜ ์žˆ์œผ๋ฉฐ, ํ† ํฐ ์ˆ˜์ค€์˜ ์˜ค์—ผ์„ ๋น„ํšจ์œจ์ ์œผ๋กœ ๋ Œ๋”๋งํ•œ๋‹ค. ๋ณด๋‹ค ๋ฐœ์ „๋œ ํ‰๊ฐ€ ์˜ค์—ผ ๊ฐ์ง€ ๊ธฐ์ˆ ์„ ๊ฐœ๋ฐœํ•  ๋ฟ๋งŒ ์•„๋‹ˆ๋ผ ๋ชจ๋ธ ๊ฐœ๋ฐœ์ž๊ฐ€ ์ž์ฒด ๋ฐ ๋ณดํ˜ธ๋œ ํ‰๊ฐ€ ๋ฒค์น˜๋งˆํฌ๋ฅผ ๋งŒ๋“ค๊ณ  ์œ ์ง€ํ•˜๋Š” ๋ฐ ํˆฌ์žํ•  ๊ฒƒ์„ ๊ถŒ์žฅํ•œ๋‹ค. ์ด๋Ÿฌํ•œ ๋…์  ๋ฒค์น˜๋งˆํฌ๋Š” ๋ˆ„์ถœ์„ ๋ฐฉ์ง€ํ•˜๊ณ  ํ‰๊ฐ€ ํ”„๋กœ์„ธ์Šค์˜ ๋ฌด๊ฒฐ์„ฑ์„ ๋ณด์žฅํ•˜๊ธฐ ์œ„ํ•ด ์‹ ์ค‘ํ•˜๊ฒŒ ๋ณดํ˜ธ๋˜์–ด์•ผ ํ•œ๋‹ค.
The logical process of an AutoEncoder is that the original input (set to x) is weighted and mapped to y, which is then inversely weighted and mapped back to z. If through iterative training the loss function L(H) is minimised, i.e. z is as close to x as possible, i.e. x is perfectly reconstructed, then it can be said that forward weighting is a successful way of learning the key features of the input. AutoEncoder language models take their name from the Denoising AutoEncoder (DAE) (Vincent et al., 2008), which is used to predict tokens that are [masked] by contextual words (these [masked] words are actually noise added at the input, typical of thinking). DAE is a technique that involves adding random noise to the input layer of data. This helps to learn more robust features when using an unsupervised approach to pre-train the weights of a deep network in a hierarchical manner.
AutoEncoder์˜ ๋…ผ๋ฆฌ์  ๊ณผ์ •์€ ์›๋ž˜ ์ž…๋ ฅ(x๋กœ ์„ค์ •)์— ๊ฐ€์ค‘์น˜๊ฐ€ ๋ถ€์—ฌ๋˜๊ณ  y์— ๋งคํ•‘๋˜๋ฉฐ, ๊ทธ ๋‹ค์Œ ์—ญ ๊ฐ€์ค‘์น˜๊ฐ€ ๋ถ€์—ฌ๋˜๊ณ  z์— ๋‹ค์‹œ ๋งคํ•‘๋œ๋‹ค. ๋ฐ˜๋ณต ํ›ˆ๋ จ์„ ํ†ตํ•ด ์†์‹ค ํ•จ์ˆ˜ L(H)๊ฐ€ ์ตœ์†Œํ™”๋˜๊ณ , ์ฆ‰ z๊ฐ€ ๊ฐ€๋Šฅํ•œ ํ•œ x์— ๊ฐ€๊น๊ณ , ์ฆ‰ x๊ฐ€ ์™„๋ฒฝํ•˜๊ฒŒ ์žฌ๊ตฌ์„ฑ๋œ๋‹ค๋ฉด, ์ˆœ๋ฐฉํ–ฅ ๊ฐ€์ค‘์น˜๋Š” ์ž…๋ ฅ์˜ ์ฃผ์š” ํŠน์ง•๋“ค์„ ํ•™์Šตํ•˜๋Š” ์„ฑ๊ณต์ ์ธ ๋ฐฉ๋ฒ•์ด๋ผ๊ณ  ๋งํ•  ์ˆ˜ ์žˆ๋‹ค. AutoEncoder ์–ธ์–ด ๋ชจ๋ธ๋“ค์€ ๊ทธ๋“ค์˜ ์ด๋ฆ„์„ Denoising AutoEncoder(DAE)(Vincent et al., 2008)๋กœ๋ถ€ํ„ฐ ๊ฐ€์ ธ์˜ค๋Š”๋ฐ, ์ด๋Š” ๋ฌธ๋งฅ ๋‹จ์–ด๋“ค์— ์˜ํ•ด [๋งˆ์Šคํฌ๋œ] ํ† ํฐ๋“ค์„ ์˜ˆ์ธกํ•˜๋Š” ๋ฐ ์‚ฌ์šฉ๋œ๋‹ค(์ด๋Ÿฌํ•œ [๋งˆ์Šคํฌ๋œ] ๋‹จ์–ด๋“ค์€ ์‹ค์ œ๋กœ ์ž…๋ ฅ์—์„œ ์ถ”๊ฐ€๋œ ๋…ธ์ด์ฆˆ, ์‚ฌ๊ณ ์˜ ์ „ํ˜•์ด๋‹ค). DAE๋Š” ๋ฐ์ดํ„ฐ์˜ ์ž…๋ ฅ ๊ณ„์ธต์— ๋žœ๋ค ๋…ธ์ด์ฆˆ๋ฅผ ์ถ”๊ฐ€ํ•˜๋Š” ๊ฒƒ์„ ํฌํ•จํ•˜๋Š” ๊ธฐ์ˆ ์ด๋‹ค. ์ด๊ฒƒ์€ ๊ณ„์ธต์  ๋ฐฉ์‹์œผ๋กœ ๋”ฅ ๋„คํŠธ์›Œํฌ์˜ ๊ฐ€์ค‘์น˜๋“ค์„ ์‚ฌ์ „ ํŠธ๋ ˆ์ด๋‹ํ•˜๊ธฐ ์œ„ํ•ด ๊ฐ๋…๋˜์ง€ ์•Š์€ ์ ‘๊ทผ๋ฒ•์„ ์‚ฌ์šฉํ•  ๋•Œ ๋ณด๋‹ค ๊ฐ•๊ฑดํ•œ ํŠน์ง•๋“ค์„ ํ•™์Šตํ•˜๋Š” ๊ฒƒ์„ ๋•๋Š”๋‹ค.
We fit the Hoffmann et al. parametric scaling law to our reconstructed subset of the data:
์šฐ๋ฆฌ๋Š” ๋ฐ์ดํ„ฐ์˜ ์žฌ๊ตฌ์„ฑ๋œ ์„œ๋ธŒ์„ธํŠธ์— Hoffmann ๋“ฑ ํŒŒ๋ผ๋ฉ”ํŠธ๋ฆญ ์Šค์ผ€์ผ๋ง ๋ฒ•์น™์„ ์ ํ•ฉ์‹œํ‚จ๋‹ค:
decreases, as the LM distribution anneals to argmax, as well as when temperature increases, as the distribution collapses to uniform. For both top-p and top-k we note that the model requires almost all of the distribution to perform well, indicating that there is significant information in the tails.
LM ๋ถ„ํฌ๊ฐ€ argmax๋กœ ์–ด๋‹๋ง๋  ๋•Œ๋ฟ๋งŒ ์•„๋‹ˆ๋ผ ์˜จ๋„๊ฐ€ ์ฆ๊ฐ€ํ•  ๋•Œ ๋ถ„ํฌ๊ฐ€ ๊ท ์ผํ•˜๊ฒŒ ๋ถ•๊ดด๋จ์— ๋”ฐ๋ผ ๊ฐ์†Œํ•œ๋‹ค. top-p์™€ top-k ๋ชจ๋‘์— ๋Œ€ํ•ด ์šฐ๋ฆฌ๋Š” ๋ชจ๋ธ์ด ๊ฑฐ์˜ ๋ชจ๋“  ๋ถ„ํฌ๊ฐ€ ์ž˜ ์ˆ˜ํ–‰๋˜์–ด์•ผ ํ•œ๋‹ค๋Š” ์ ์— ์ฃผ๋ชฉํ•˜๋ฉฐ, ์ด๋Š” ๊ผฌ๋ฆฌ์— ์ค‘์š”ํ•œ ์ •๋ณด๊ฐ€ ์žˆ์Œ์„ ๋‚˜ํƒ€๋‚ธ๋‹ค.
Our result raises a number of questions. Why do models suffer the Reversal Curse? Do non-auto-regressive models suffer from it as well? Do humans suffer from some form of the Reversal Curse? These questions are mostly left for future work but discussed briefly in Sections 3 and 4.
์šฐ๋ฆฌ์˜ ๊ฒฐ๊ณผ๋Š” ๋งŽ์€ ์งˆ๋ฌธ๋“ค์„ ์ œ๊ธฐํ•œ๋‹ค. ๋ชจ๋ธ๋“ค์€ ์™œ '์—ญ์ „์˜ ์ €์ฃผ'๋ฅผ ๊ฒช์„๊นŒ? ๋น„์ž๋™ ํšŒ๊ท€ ๋ชจ๋ธ๋„ ์ด์— ์‹œ๋‹ฌ๋ฆฌ๋‚˜์š”? ์ธ๊ฐ„์€ ์–ด๋–ค ํ˜•ํƒœ์˜ ์—ญํ–‰ ์ €์ฃผ์— ์‹œ๋‹ฌ๋ฆฌ๋‚˜์š”? ์ด๋Ÿฌํ•œ ์งˆ๋ฌธ์€ ๋Œ€๋ถ€๋ถ„ ํ–ฅํ›„ ์ž‘์—…์„ ์œ„ํ•ด ๋‚จ๊ฒจ์กŒ์ง€๋งŒ ์„น์…˜ 3๊ณผ ์„น์…˜ 4์—์„œ ๊ฐ„๋žตํ•˜๊ฒŒ ๋…ผ์˜๋˜์—ˆ๋‹ค.
**Civil Engineering**: In civil engineering, LLM-based agents can be used to design and optimize complex structures such as buildings, bridges, dams, roads, etc. [138] proposes an interactive framework where human architects and agents collaborate to construct structures in a 3D simulation environment. The interactive agent can understand natural language instructions, place blocks, detect confusion, seek clarification, and incorporate human feedback, showing the potential for human-AI collaboration in engineering design.
**ํ† ๋ชฉ ๊ณตํ•™**: ํ† ๋ชฉ ๊ณตํ•™์—์„œ LLM ๊ธฐ๋ฐ˜ ์—์ด์ „ํŠธ๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๊ฑด๋ฌผ, ๊ต๋Ÿ‰, ๋Œ, ๋„๋กœ ๋“ฑ๊ณผ ๊ฐ™์€ ๋ณต์žกํ•œ ๊ตฌ์กฐ๋ฅผ ์„ค๊ณ„ํ•˜๊ณ  ์ตœ์ ํ™”ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. [138] 3D ์‹œ๋ฎฌ๋ ˆ์ด์…˜ ํ™˜๊ฒฝ์—์„œ ์ธ๊ฐ„ ์„ค๊ณ„์ž์™€ ์—์ด์ „ํŠธ๊ฐ€ ํ˜‘๋ ฅํ•˜์—ฌ ๊ตฌ์กฐ๋ฌผ์„ ๊ตฌ์„ฑํ•˜๋Š” ๋Œ€ํ™”ํ˜• ํ”„๋ ˆ์ž„์›Œํฌ๋ฅผ ์ œ์•ˆํ•œ๋‹ค. ๋Œ€ํ™”ํ˜• ์—์ด์ „ํŠธ๋Š” ์ž์—ฐ์–ด ๋ช…๋ น์–ด๋ฅผ ์ดํ•ดํ•˜๊ณ , ๋ธ”๋ก์„ ๋ฐฐ์น˜ํ•˜๊ณ , ํ˜ผ๋™์„ ๊ฐ์ง€ํ•˜๊ณ , ๋ช…ํ™•์„ฑ์„ ์ฐพ๊ณ , ์ธ๊ฐ„ ํ”ผ๋“œ๋ฐฑ์„ ํ†ตํ•ฉํ•  ์ˆ˜ ์žˆ์–ด ๊ณตํ•™ ์„ค๊ณ„์—์„œ ์ธ๊ฐ„-AI ํ˜‘์—…์˜ ๊ฐ€๋Šฅ์„ฑ์„ ๋ณด์—ฌ์ค€๋‹ค.
Word Tokenization.The most basic tokenization approach is the splitting of sequences based on white spaces and considering each word as a token (Bengio et al., 2000).
์›Œ๋“œ ํ† ํฐํ™”.๊ฐ€์žฅ ๊ธฐ๋ณธ์ ์ธ ํ† ํฐํ™” ์ ‘๊ทผ๋ฒ•์€ ํ™”์ดํŠธ ์ŠคํŽ˜์ด์Šค๋ฅผ ๊ธฐ๋ฐ˜์œผ๋กœ ์‹œํ€€์Šค๋ฅผ ๋ถ„ํ• ํ•˜๊ณ  ๊ฐ ๋‹จ์–ด๋ฅผ ํ† ํฐ์œผ๋กœ ๊ฐ„์ฃผํ•˜๋Š” ๊ฒƒ์ด๋‹ค(Bengio et al., 2000).
We use next-word prediction loss for finetuning, and only compute loss on the responses, but not system and user instructions. We use AdamW optimizer with \(\beta_{1}\) set to 0.9, \(\beta_{2}\) set to 0.999, and \(\epsilon\) set to \(10^{-8}\). We use a sequence length of 4096, alongside a batch size of 64. We set training step to 300 with a constant \(1\times 10^{-5}\) learning rate, a weight decay of 0.1, gradient clipping with a maximum threshold of 1.0, and NEFTune [34] with a noise scale of 45 for Yi-34B-Chat and 5 for Yi-6B-Chat.
์šฐ๋ฆฌ๋Š” ๋ฏธ์„ธ์กฐ์ •์„ ์œ„ํ•ด ๋‹ค์Œ ๋‹จ์–ด ์˜ˆ์ธก ์†์‹ค์„ ์‚ฌ์šฉํ•˜๊ณ  ์‘๋‹ต์— ๋Œ€ํ•œ ์†์‹ค๋งŒ ๊ณ„์‚ฐํ•˜์ง€๋งŒ ์‹œ์Šคํ…œ ๋ฐ ์‚ฌ์šฉ์ž ๋ช…๋ น์€ ๊ณ„์‚ฐํ•˜์ง€ ์•Š๋Š”๋‹ค. AdamW ์ตœ์ ํ™”๊ธฐ๋Š” \(\beta_{1}\)๋ฅผ 0.9๋กœ, \(\beta_{2}\)๋ฅผ 0.999๋กœ, \(\epsilon\)๋ฅผ 10^{-8}\๋กœ ์„ค์ •ํ•˜์˜€๋‹ค. ๋ฐฐ์น˜ ํฌ๊ธฐ 64์™€ ํ•จ๊ป˜ ์‹œํ€€์Šค ๊ธธ์ด 4096์„ ์‚ฌ์šฉํ•˜์˜€๋‹ค. ํ•™์Šต ๋‹จ๊ณ„๋Š” ์ผ์ •ํ•œ \(1\times 10^{-5}\) ํ•™์Šต๋ฅ , ๋ฌด๊ฒŒ ๊ฐ์†Œ 0.1, ๊ธฐ์šธ๊ธฐ ํด๋ฆฌํ•‘ ์ตœ๋Œ€ ์ž„๊ณ„๊ฐ’ 1.0, ๋…ธ์ด์ฆˆ ์ฒ™๋„์ธ NEFTune [34]๋Š” Yi-34B-Chat์˜ ๊ฒฝ์šฐ 45, Yi-6B-Chat์˜ ๊ฒฝ์šฐ 5๋กœ 300์œผ๋กœ ์„ค์ •ํ•˜์˜€๋‹ค.
An improved cost-optimal attack.It is possible to generalize the above attack to improve _both_ the query cost and token cost. Instead of issuing queries to the model that reveal 4 or 5 logit values for a single generated token, we might instead hope to be able to send a multi-token query \(\begin{bmatrix}p_{0}&p_{1}&p_{2}\dots p_{n}\end{bmatrix}\) and then ask for the logprob vector for each prefix of the prompt \(\begin{bmatrix}p_{0}\end{bmatrix}\), \(\begin{bmatrix}p_{0}&p_{1}\end{bmatrix}\), \(\begin{bmatrix}p_{0}&p_{1}&p_{2}\end{bmatrix}\) etc. OpenAI's API did allow for queries of this form in the past, by providing logprobs for _prompt_ tokens as well as generated tokens by combining the logprob and echo parameters; this option has since been removed.
๊ฐœ์„ ๋œ ๋น„์šฉ ์ตœ์  ๊ณต๊ฒฉ.์œ„์˜ ๊ณต๊ฒฉ์„ ์ผ๋ฐ˜ํ™”ํ•˜์—ฌ ์ฟผ๋ฆฌ ๋น„์šฉ๊ณผ ํ† ํฐ ๋น„์šฉ์„ ๋ชจ๋‘ ๊ฐœ์„ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๋‹จ์ผ ํ† ํฐ์— ๋Œ€ํ•ด 4 ๋˜๋Š” 5 ๋กœ์ง“ ๊ฐ’์„ ๋‚˜ํƒ€๋‚ด๋Š” ๋ชจ๋ธ์— ์ฟผ๋ฆฌ๋ฅผ ๋ฐœํ–‰ํ•˜๋Š” ๋Œ€์‹  ๋‹ค์ค‘ ํ† ํฐ ์ฟผ๋ฆฌ \(\begin{bmatrix}p_{0}&p_{1}&p_{2}\dots p_{n}\end{bmatrix}\)๋ฅผ ๋ณด๋‚ธ ๋‹ค์Œ ํ”„๋กฌํ”„ํŠธ \(\begin{bmatrix}p_{0}\end{bmatrix}\), \(\begin{bmatrix}p_{0}&p_{1}\end{bmatrix}\), \(\begin{bmatrix}p_{0}&p_{1}&p_{2}\end{bmatrix}\)์˜ ๊ฐ ์ ‘๋‘์‚ฌ์— ๋Œ€ํ•œ ๋กœ๊ทธํ”„๋กœ๋ธŒ ๋ฒกํ„ฐ๋ฅผ ์š”์ฒญํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. OpenAI์˜ API๋Š” ์ด์ „์— ๋กœ๊ทธํ”„๋กœ๋ธŒ ๋ฐ ์—์ฝ” ๋งค๊ฐœ ๋ณ€์ˆ˜๋ฅผ ๊ฒฐํ•ฉํ•˜์—ฌ ์ƒ์„ฑ๋œ ํ† ํฐ๋ฟ๋งŒ ์•„๋‹ˆ๋ผ _prompt_ ํ† ํฐ์— ๋Œ€ํ•œ ๋กœ๊ทธํ”„๋กœ๋ธŒ๋ฅผ ์ œ๊ณตํ•˜์—ฌ ์ด ํ˜•์‹์˜ ์ฟผ๋ฆฌ๋ฅผ ํ—ˆ์šฉํ–ˆ์œผ๋ฉฐ ์ดํ›„ ์ด ์˜ต์…˜์ด ์ œ๊ฑฐ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.
The attached code allows users to generate alternate versions of each dataset used for our experiments, finetune on the datasets using the OpenAI API, and evaluate finetuned models on our datasets. Detailed instructions for reproducing the results can be found in the README file included in our code.
์ฒจ๋ถ€๋œ ์ฝ”๋“œ๋ฅผ ํ†ตํ•ด ์‚ฌ์šฉ์ž๋Š” ์‹คํ—˜์— ์‚ฌ์šฉ๋œ ๊ฐ ๋ฐ์ดํ„ฐ ์„ธํŠธ์˜ ๋Œ€์ฒด ๋ฒ„์ „์„ ์ƒ์„ฑํ•˜๊ณ  OpenAI API๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๋ฐ์ดํ„ฐ ์„ธํŠธ์— ๋Œ€ํ•œ ๋ฏธ์„ธ ์กฐ์ • ๋ฐ ๋ฐ์ดํ„ฐ ์„ธํŠธ์— ๋Œ€ํ•œ ๋ฏธ์„ธ ์กฐ์ • ๋ชจ๋ธ์„ ํ‰๊ฐ€ํ•  ์ˆ˜ ์žˆ๋‹ค. ๊ฒฐ๊ณผ๋ฅผ ์žฌํ˜„ํ•˜๊ธฐ ์œ„ํ•œ ์ž์„ธํ•œ ์ง€์นจ์€ ์ €ํฌ ์ฝ”๋“œ์— ํฌํ•จ๋œ README ํŒŒ์ผ์—์„œ ํ™•์ธํ•˜์‹ค ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
**Fine-tuning Dataset** We create a fine-tuning dataset comprising approximately 80,000 pairs of prompts and responses in Traditional Chinese, generated by GPT-4 with self-instruct Wang et al. (2022). Additionally, we have added Chinese-English translation and summarization data from news sources. It is important to note that our dataset exclusively consists of single-turn prompt-response pairs, and does not include multi-turn dialogues.
**๋ฏธ์„ธ ์กฐ์ • ๋ฐ์ดํ„ฐ ์„ธํŠธ** ์ž๊ฐ€ ๋ช…๋ น Wang ๋“ฑ (2022)์„ ์‚ฌ์šฉ ํ•˜ ์—ฌ GPT-4์—์„œ ์ƒ์„ฑ ๋œ ์•ฝ 80,000 ์Œ์˜ ํ”„๋กฌํ”„ํŠธ ๋ฐ ์‘๋‹ต์„ ๋ฒˆ์ฒด ์ค‘๊ตญ์–ด๋กœ ๊ตฌ์„ฑ ํ•˜๋Š” ๋ฏธ์„ธ ์กฐ์ • ๋ฐ์ดํ„ฐ ์„ธํŠธ๋ฅผ ๋งŒ๋“ญ๋‹ˆ๋‹ค. ๋˜ํ•œ ๋‰ด์Šค ์†Œ์Šค์˜ ํ•œ์˜ ๋ฒˆ์—ญ ๋ฐ ์š”์•ฝ ๋ฐ์ดํ„ฐ๋ฅผ ์ถ”๊ฐ€ํ–ˆ์Šต๋‹ˆ๋‹ค. ์šฐ๋ฆฌ์˜ ๋ฐ์ดํ„ฐ ์„ธํŠธ๋Š” ๋…์ ์ ์œผ๋กœ ๋‹จ์ผ ํšŒ์ „ ํ”„๋กฌํ”„ํŠธ ์‘๋‹ต ์Œ์œผ๋กœ ๊ตฌ์„ฑ๋˜๋ฉฐ ๋‹ค์ค‘ ํšŒ์ „ ๋Œ€ํ™” ์ƒ์ž๋Š” ํฌํ•จํ•˜์ง€ ์•Š๋Š”๋‹ค๋Š” ์ ์— ์œ ์˜ํ•˜๋Š” ๊ฒƒ์ด ์ค‘์š”ํ•˜๋‹ค.
Figure 8: The model acquires the ability to engage in step-by-step reasoning by leveraging prior premises through data-driven learning. We add regularization to language modeling, compelling the model to grasp the deductive relationship inherent between premises and conclusions.
๊ทธ๋ฆผ 8: ๋ชจ๋ธ์€ ๋ฐ์ดํ„ฐ ๊ธฐ๋ฐ˜ ํ•™์Šต์„ ํ†ตํ•ด ์‚ฌ์ „ ์ „์ œ๋ฅผ ํ™œ์šฉํ•˜์—ฌ ๋‹จ๊ณ„๋ณ„ ์ถ”๋ก ์— ์ฐธ์—ฌํ•  ์ˆ˜ ์žˆ๋Š” ๋Šฅ๋ ฅ์„ ํš๋“ํ•œ๋‹ค. ์šฐ๋ฆฌ๋Š” ์–ธ์–ด ๋ชจ๋ธ๋ง์— ์ •๊ทœํ™”๋ฅผ ์ถ”๊ฐ€ํ•˜์—ฌ ๋ชจ๋ธ์ด ์ „์ œ์™€ ๊ฒฐ๋ก  ์‚ฌ์ด์— ๋‚ด์žฌ๋œ ์—ฐ์—ญ์  ๊ด€๊ณ„๋ฅผ ํŒŒ์•…ํ•  ์ˆ˜ ์žˆ๋„๋ก ํ•œ๋‹ค.
We deliberately set min points per centroids low and max points per centroid high so that faiss does not attempt to manually balance the clusters while doing K-Means. Sorscher et al. [47] found that explicitly class-balancing is important: they introduce the "class balance score" (see Section H of Sorscher et al. [47]) which is the expectation of the quantity \(\frac{\text{size of majority class}}{\text{size of minority class}}\) over all pairs of classes. They then set a hard limit for the class balance score of 0.5, meaning that "every class has at least 50% of the images that it would have when pruning all classes equally" [47]. We consider the unsupervised-learning analog of the class-balance score, which we refer to as the "cluster balance" score. The cluster balance score is the expectation of the quantity \(\frac{\text{size of bigger cluster}}{\text{size of smaller cluster}}\) over all pairs of clusters. Across all of our data selection methods (and choices for R) we find that this value is generally equal to or bigger than \(0.5\) without any explicit intervention. For this reason, we do not explicitly cluster balance, although we note that changing how many points are sampled from each cluster (based on properties of the cluster) is very interesting future work.
์šฐ๋ฆฌ๋Š” ํŽ˜์ด์Šค๊ฐ€ K-ํ‰๊ท ์„ ์ˆ˜ํ–‰ํ•˜๋Š” ๋™์•ˆ ํด๋Ÿฌ์Šคํ„ฐ์˜ ๊ท ํ˜•์„ ์ˆ˜๋™์œผ๋กœ ๋งž์ถ”๋ ค๊ณ  ์‹œ๋„ํ•˜์ง€ ์•Š๋„๋ก ์˜๋„์ ์œผ๋กœ ์„ผํŠธ๋กœ์ด๋“œ๋‹น ์ตœ์†Œ ํฌ์ธํŠธ์™€ ์„ผํŠธ๋กœ์ด๋“œ๋‹น ์ตœ๋Œ€ ํฌ์ธํŠธ๋ฅผ ๋‚ฎ๊ฒŒ ์„ค์ •ํ–ˆ๋‹ค. Sorscher et al. [47]์€ ๋ชจ๋“  ํด๋ž˜์Šค ์Œ์— ๋Œ€ํ•œ ์ˆ˜๋Ÿ‰ \(\frac{\text{size of majority class}}{\text{size of minority class}}}\)์˜ ๊ธฐ๋Œ€์น˜์ธ "ํด๋ž˜์Šค ๊ท ํ˜• ์ ์ˆ˜"(Sorscher et al. [47]์˜ ์„น์…˜ H ์ฐธ์กฐ)๋ฅผ ๋ช…์‹œ์ ์œผ๋กœ ํด๋ž˜์Šค ๊ท ํ˜•์ด ์ค‘์š”ํ•˜๋‹ค๋Š” ๊ฒƒ์„ ๋ฐœ๊ฒฌํ–ˆ๋‹ค. ๊ทธ๋Ÿฐ ๋‹ค์Œ ๊ทธ๋“ค์€ ํด๋ž˜์Šค ๊ท ํ˜• ์ ์ˆ˜ 0.5์— ๋Œ€ํ•ด ํ•˜๋“œํ•œ๊ณ„๋ฅผ ์„ค์ •ํ–ˆ๋Š”๋ฐ, ์ด๋Š” "๋ชจ๋“  ํด๋ž˜์Šค๋Š” ๋ชจ๋“  ํด๋ž˜์Šค๋ฅผ ๊ท ๋“ฑํ•˜๊ฒŒ ๊ฐ€์ง€์น˜๊ธฐํ•  ๋•Œ ๊ฐ€์งˆ ์ด๋ฏธ์ง€์˜ ์ตœ์†Œ 50%๋ฅผ ๊ฐ–๋Š”๋‹ค"๋Š” ๊ฒƒ์„ ์˜๋ฏธํ•œ๋‹ค[47]. ์šฐ๋ฆฌ๋Š” "ํด๋Ÿฌ์Šคํ„ฐ ๊ท ํ˜•" ์ ์ˆ˜๋ผ๊ณ  ํ•˜๋Š” ํด๋ž˜์Šค ๊ท ํ˜• ์ ์ˆ˜์˜ ๋น„์ง€๋„ ํ•™์Šต ์•„๋‚ ๋กœ๊ทธ๋ฅผ ๊ณ ๋ คํ•œ๋‹ค. ํด๋Ÿฌ์Šคํ„ฐ ๊ท ํ˜• ์ ์ˆ˜๋Š” ๋ชจ๋“  ํด๋Ÿฌ์Šคํ„ฐ ์Œ์— ๋Œ€ํ•œ \(\frac{\text{size of larger cluster}}{\text{size of smaller cluster}}\)์˜ ์–‘์— ๋Œ€ํ•œ ๊ธฐ๋Œ€๊ฐ’์ด๋‹ค. ๋ชจ๋“  ๋ฐ์ดํ„ฐ ์„ ํƒ ๋ฐฉ๋ฒ•(๋ฐ R์— ๋Œ€ํ•œ ์„ ํƒ)์—์„œ ์ด ๊ฐ’์€ ๋ช…์‹œ์  ๊ฐœ์ž… ์—†์ด ์ผ๋ฐ˜์ ์œผ๋กœ \(0.5\)๊ณผ ๊ฐ™๊ฑฐ๋‚˜ ๋” ํฌ๋‹ค๋Š” ๊ฒƒ์„ ๋ฐœ๊ฒฌํ–ˆ๋‹ค. ์ด๋Ÿฌํ•œ ์ด์œ ๋กœ, ์šฐ๋ฆฌ๋Š” (ํด๋Ÿฌ์Šคํ„ฐ์˜ ์†์„ฑ์— ๊ธฐ์ดˆํ•˜์—ฌ) ๊ฐ ํด๋Ÿฌ์Šคํ„ฐ์—์„œ ์ƒ˜ํ”Œ๋ง๋˜๋Š” ์ ์˜ ์ˆ˜๋ฅผ ๋ณ€๊ฒฝํ•˜๋Š” ๊ฒƒ์ด ํ–ฅํ›„ ๋งค์šฐ ํฅ๋ฏธ๋กœ์šด ์ž‘์—…์ด๋ผ๋Š” ์ ์— ์ฃผ๋ชฉํ•˜์ง€๋งŒ, ๋ช…์‹œ์ ์œผ๋กœ ํด๋Ÿฌ์Šคํ„ฐ ๊ท ํ˜•์„ ๋งž์ถ”์ง€ ์•Š๋Š”๋‹ค.
In this work, we aim to quantify the tension between LLMs' internal knowledge and the retrieved information presented in RAG settings. To tease apart these two competing forces, we query LLMs to answer questions and measure the token probabilities while introducing varying perturbations to reference documents. Our analyses reveal two key findings:
์ด ์ž‘์—…์—์„œ ์šฐ๋ฆฌ๋Š” LLM์˜ ๋‚ด๋ถ€ ์ง€์‹๊ณผ RAG ์„ค์ •์— ์ œ์‹œ๋œ ๊ฒ€์ƒ‰๋œ ์ •๋ณด ์‚ฌ์ด์˜ ๊ธด์žฅ์„ ์ •๋Ÿ‰ํ™”ํ•˜๋Š” ๊ฒƒ์„ ๋ชฉํ‘œ๋กœ ํ•œ๋‹ค. ์ด ๋‘ ๊ฐ€์ง€ ๊ฒฝ์Ÿ๋ ฅ์„ ๊ตฌ๋ณ„ํ•˜๊ธฐ ์œ„ํ•ด LLM์— ์ฟผ๋ฆฌํ•˜์—ฌ ์งˆ๋ฌธ์— ๋‹ตํ•˜๊ณ  ์ฐธ์กฐ ๋ฌธ์„œ์— ๋‹ค์–‘ํ•œ ์„ญ๋™์„ ๋„์ž…ํ•˜๋ฉด์„œ ํ† ํฐ ํ™•๋ฅ ์„ ์ธก์ •ํ•œ๋‹ค. ์šฐ๋ฆฌ์˜ ๋ถ„์„์—์„œ๋Š” ๋‘ ๊ฐ€์ง€ ์ฃผ์š” ๊ฒฐ๊ณผ๋ฅผ ๋ณด์—ฌ์ค€๋‹ค.
The parameters \(a\) and \(c\) are fitted from the data. If the loss of selected tokens \(\mathcal{L}_{s}\) is used for fitting, then \(a>0\). Conversely, if the loss of unselected tokens \(\mathcal{L}_{us}\) is used for fitting, then \(a<0\). Therefore, we believe that training the model on selected tokens can effectively improve its performance on downstream tasks, while unselected tokens may have a detrimental effect on the model's performance in downstream tasks.
๋งค๊ฐœ๋ณ€์ˆ˜ \(a\) ๋ฐ \(c\)๋Š” ๋ฐ์ดํ„ฐ์—์„œ ์ ํ•ฉ๋ฉ๋‹ˆ๋‹ค. ์„ ํƒํ•œ ํ† ํฐ์˜ ์†์‹ค \(\mathcal{L}_{s}\)์ด ํ”ผํŒ…์— ์‚ฌ์šฉ๋˜๋Š” ๊ฒฝ์šฐ \(a>0\)์ž…๋‹ˆ๋‹ค. ๋ฐ˜๋Œ€๋กœ ์„ ํƒ๋˜์ง€ ์•Š์€ ํ† ํฐ์˜ ์†์‹ค \(\mathcal{L}_{us}\)์ด ํ”ผํŒ…์— ์‚ฌ์šฉ๋˜๋ฉด \(a<0\). ๋”ฐ๋ผ์„œ, ์„ ํƒ๋œ ํ† ํฐ์— ๋Œ€ํ•ด ๋ชจ๋ธ์„ ํ›ˆ๋ จ์‹œํ‚ค๋Š” ๊ฒƒ์€ ๋‹ค์šด์ŠคํŠธ๋ฆผ ํƒœ์Šคํฌ์—์„œ ๋ชจ๋ธ์˜ ์„ฑ๋Šฅ์„ ํšจ๊ณผ์ ์œผ๋กœ ํ–ฅ์ƒ์‹œํ‚ฌ ์ˆ˜ ์žˆ๋Š” ๋ฐ˜๋ฉด, ์„ ํƒ๋˜์ง€ ์•Š์€ ํ† ํฐ์€ ๋‹ค์šด์ŠคํŠธ๋ฆผ ํƒœ์Šคํฌ์—์„œ ๋ชจ๋ธ์˜ ์„ฑ๋Šฅ์— ํ•ด๋กœ์šด ์˜ํ–ฅ์„ ๋ฏธ์น  ์ˆ˜ ์žˆ๋‹ค๊ณ  ๋ฏฟ๋Š”๋‹ค.
Self-Consistency has significant applications in fields where the veracity of information is critical. It is particularly relevant in scenarios like fact-checking, where ensuring the accuracy of information provided by AI models is essential. By employing this technique, prompt engineers can enhance the trustworthiness of LLMs, making them more reliable for tasks that require high levels of factual accuracy.
์ž๊ธฐ์ผ๊ด€์„ฑ์€ ์ •๋ณด์˜ ์ง„์‹ค์„ฑ์ด ์ค‘์š”ํ•œ ๋ถ„์•ผ์—์„œ ์ค‘์š”ํ•œ ์‘์šฉ์„ ๊ฐ€์ง€๊ณ  ์žˆ๋‹ค. ํŠนํžˆ AI ๋ชจ๋ธ์—์„œ ์ œ๊ณตํ•˜๋Š” ์ •๋ณด์˜ ์ •ํ™•์„ฑ์„ ๋ณด์žฅํ•˜๋Š” ๊ฒƒ์ด ํ•„์ˆ˜์ ์ธ ํŒฉํŠธ ์ฒดํ‚น๊ณผ ๊ฐ™์€ ์‹œ๋‚˜๋ฆฌ์˜ค์™€ ๊ด€๋ จ์ด ์žˆ๋‹ค. ์ด ๊ธฐ์ˆ ์„ ์‚ฌ์šฉํ•˜๋ฉด ์‹ ์†ํ•œ ์—”์ง€๋‹ˆ์–ด๊ฐ€ LLM์˜ ์‹ ๋ขฐ์„ฑ์„ ํ–ฅ์ƒ์‹œ์ผœ ๋†’์€ ์ˆ˜์ค€์˜ ์‚ฌ์‹ค์  ์ •ํ™•์„ฑ์„ ์š”๊ตฌํ•˜๋Š” ์ž‘์—…์— ๋” ์‹ ๋ขฐํ•  ์ˆ˜ ์žˆ๋‹ค.
**llama2 \(\rightarrow\) CP \(+\) chat vector** Continual pretraining LLaMA2 on the target language corpus and then adding chat vector.
**llama2 \(\rightarrow\) CP \(+\) ์ฑ„ํŒ… ๋ฒกํ„ฐ** ๋Œ€์ƒ ์–ธ์–ด ๋ง๋ญ‰์น˜์—์„œ LLaMA2๋ฅผ ๊ณ„์† ์‚ฌ์ „ ํ›ˆ๋ จํ•œ ๋‹ค์Œ ์ฑ„ํŒ… ๋ฒกํ„ฐ๋ฅผ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค.
**Kernel Layer.** The kernel layer is divided into two primary components: the OS Kernel and the LLM Kernel, each serving the unique requirements of non-LLM and LLM-specific operations, respectively. This distinction allows the LLM kernel to focus on LLM specific tasks such as context management and agent scheduling, which are essential for handling LLM-related activities and are not typically within the purview of standard OS kernel functions. Our work primarily concentrates on enhancing the LLM kernel without making significant alterations to the existing OS kernel structure. The LLM kernel is equipped with several key modules, including the LLM system call interface, agent scheduler, context manager, memory manager, storage manager, tool manager, and access manager. These components are designed to address the diverse execution needs of agent applications, ensuring efficient management and execution within the AIOS framework. The specifics of these modules will be further detailed in Section 4.
**์ปค๋„ ๊ณ„์ธต.** ์ปค๋„ ๊ณ„์ธต์€ OS ์ปค๋„๊ณผ LLM ์ปค๋„์˜ ๋‘ ๊ฐ€์ง€ ๊ธฐ๋ณธ ๊ตฌ์„ฑ ์š”์†Œ๋กœ ๋‚˜๋‰˜๋ฉฐ, ๊ฐ ๊ตฌ์„ฑ ์š”์†Œ๋Š” ๊ฐ๊ฐ ๋น„LLM ๋ฐ LLM ํŠน์ • ์ž‘์—…์˜ ๊ณ ์œ ํ•œ ์š”๊ตฌ ์‚ฌํ•ญ์„ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค. ์ด๋Ÿฌํ•œ ๊ตฌ๋ณ„์€ LLM ์ปค๋„์ด ์ปจํ…์ŠคํŠธ ๊ด€๋ฆฌ ๋ฐ ์—์ด์ „ํŠธ ์Šค์ผ€์ค„๋ง๊ณผ ๊ฐ™์€ LLM ํŠน์ • ์ž‘์—…์— ์ดˆ์ ์„ ๋งž์ถœ ์ˆ˜ ์žˆ๊ฒŒ ํ•˜๋Š”๋ฐ, ์ด๋Š” LLM ๊ด€๋ จ ํ™œ๋™์„ ์ฒ˜๋ฆฌํ•˜๋Š”๋ฐ ํ•„์ˆ˜์ ์ด๋ฉฐ ์ผ๋ฐ˜์ ์œผ๋กœ ํ‘œ์ค€ OS ์ปค๋„ ํ•จ์ˆ˜์˜ ๋ฒ”์œ„ ๋‚ด์— ์žˆ์ง€ ์•Š๋‹ค. ์šฐ๋ฆฌ์˜ ์ž‘์—…์€ ์ฃผ๋กœ ๊ธฐ์กด OS ์ปค๋„ ๊ตฌ์กฐ๋ฅผ ํฌ๊ฒŒ ๋ณ€๊ฒฝํ•˜์ง€ ์•Š๊ณ  LLM ์ปค๋„์„ ํ–ฅ์ƒ์‹œํ‚ค๋Š” ๋ฐ ์ค‘์ ์„ ๋‘”๋‹ค. LLM ์ปค๋„์—๋Š” LLM ์‹œ์Šคํ…œ ํ˜ธ์ถœ ์ธํ„ฐํŽ˜์ด์Šค, ์—์ด์ „ํŠธ ์Šค์ผ€์ค„๋Ÿฌ, ์ปจํ…์ŠคํŠธ ๋งค๋‹ˆ์ €, ๋ฉ”๋ชจ๋ฆฌ ๋งค๋‹ˆ์ €, ์Šคํ† ๋ฆฌ์ง€ ๋งค๋‹ˆ์ €, ํˆด ๋งค๋‹ˆ์ €, ์•ก์„ธ์Šค ๋งค๋‹ˆ์ € ๋“ฑ ์—ฌ๋Ÿฌ ํ•ต์‹ฌ ๋ชจ๋“ˆ์ด ํƒ‘์žฌ๋˜์–ด ์žˆ๋‹ค. ์ด๋Ÿฌํ•œ ๊ตฌ์„ฑ ์š”์†Œ๋Š” ์—์ด์ „ํŠธ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์˜ ๋‹ค์–‘ํ•œ ์‹คํ–‰ ์š”๊ตฌ๋ฅผ ํ•ด๊ฒฐํ•˜๊ธฐ ์œ„ํ•ด ์„ค๊ณ„๋˜์–ด AIOS ํ”„๋ ˆ์ž„์›Œํฌ ๋‚ด์—์„œ ํšจ์œจ์ ์ธ ๊ด€๋ฆฌ ๋ฐ ์‹คํ–‰์„ ๋ณด์žฅํ•ฉ๋‹ˆ๋‹ค. ์ด๋Ÿฌํ•œ ๋ชจ๋“ˆ์˜ ์„ธ๋ถ€ ์‚ฌํ•ญ์€ ์„น์…˜ 4์—์„œ ๋” ์ž์„ธํžˆ ์„ค๋ช…ํ•œ๋‹ค.
where \(\left(\frac{N_{c}}{N}\right)^{\alpha_{N}}\) is Eq. 3.1, and \(S_{c}\) and \(\alpha_{S}\) are constant scalars to be estimated.
์—ฌ๊ธฐ์„œ \(\left(\frac{N_{c}}{N}\right)^{\alpha_{N}}\)๋Š” Eq. 3.1์ด๊ณ , \(S_{c}\)์™€ \(\alpha_{S}\)๋Š” ์ถ”์ •ํ•˜๊ณ ์ž ํ•˜๋Š” ์ผ์ •ํ•œ ์Šค์นผ๋ผ์ด๋‹ค.
**Mixing different training distributions:** While we chose one data distribution to both select data and train on, modern LLM setups usually mix different data sources. Our method is likely complimentary to such pipelines: practitioners may use D4 to diversify and de-duplicate individual data sources and then mix data sources to provide additional diversity in their training dataset. We leave exploring the efficacy of D4 on a mix of training distributions as future work, but expect that this will yield further gains by reducing redundancy across datasets as well as within datasets.
**๋‹ค๋ฅธ ํ›ˆ๋ จ ๋ถ„ํฌ ํ˜ผํ•ฉ:** ๋ฐ์ดํ„ฐ๋ฅผ ์„ ํƒํ•˜๊ณ  ํ›ˆ๋ จํ•˜๊ธฐ ์œ„ํ•ด ํ•˜๋‚˜์˜ ๋ฐ์ดํ„ฐ ๋ถ„ํฌ๋ฅผ ์„ ํƒํ–ˆ์ง€๋งŒ ์ตœ์‹  LLM ์„ค์ •์€ ์ผ๋ฐ˜์ ์œผ๋กœ ๋‹ค๋ฅธ ๋ฐ์ดํ„ฐ ์›๋ณธ์„ ํ˜ผํ•ฉํ•ฉ๋‹ˆ๋‹ค. ์šฐ๋ฆฌ์˜ ๋ฐฉ๋ฒ•์€ ์ด๋Ÿฌํ•œ ํŒŒ์ดํ”„๋ผ์ธ์— ์ƒ๋ณด์ ์ผ ์ˆ˜ ์žˆ๋‹ค: ์‹ค๋ฌด์ž๋“ค์€ D4๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๊ฐœ๋ณ„ ๋ฐ์ดํ„ฐ ์†Œ์Šค๋ฅผ ๋‹ค์–‘ํ™”ํ•˜๊ณ  ์ค‘๋ณต์„ ์ œ๊ฑฐํ•œ ๋‹ค์Œ ๋ฐ์ดํ„ฐ ์†Œ์Šค๋ฅผ ํ˜ผํ•ฉํ•˜์—ฌ ํ›ˆ๋ จ ๋ฐ์ดํ„ฐ ์„ธํŠธ์— ์ถ”๊ฐ€ ๋‹ค์–‘์„ฑ์„ ์ œ๊ณตํ•  ์ˆ˜ ์žˆ๋‹ค. ์šฐ๋ฆฌ๋Š” ํ–ฅํ›„ ์ž‘์—…์œผ๋กœ ํ•™์Šต ๋ถ„ํฌ์˜ ํ˜ผํ•ฉ์— ๋Œ€ํ•œ D4์˜ ํšจ๋Šฅ์„ ํƒ๊ตฌํ•˜๋Š” ๊ฒƒ์„ ๋‚จ๊ฒจ๋‘์ง€๋งŒ ์ด๊ฒƒ์ด ๋ฐ์ดํ„ฐ ์„ธํŠธ๋ฟ๋งŒ ์•„๋‹ˆ๋ผ ๋ฐ์ดํ„ฐ ์„ธํŠธ ๋‚ด์—์„œ๋„ ์ค‘๋ณต์„ฑ์„ ์ค„์ž„์œผ๋กœ์จ ์ถ”๊ฐ€ ์ด๋“์„ ์–ป์„ ๊ฒƒ์œผ๋กœ ๊ธฐ๋Œ€ํ•œ๋‹ค.
pervised, and reinforcement learning (RL) based methods. We proceed by briefly reviewing these methods and their relation to the problem of knowledge injection.
pervised, ๋ฐ ๊ฐ•ํ™” ํ•™์Šต(reinforcement learning, RL) ๊ธฐ๋ฐ˜ ๋ฐฉ๋ฒ•. ์šฐ๋ฆฌ๋Š” ์ด๋Ÿฌํ•œ ๋ฐฉ๋ฒ•๋“ค๊ณผ ์ง€์‹ ์ฃผ์ž…์˜ ๋ฌธ์ œ์™€์˜ ๊ด€๋ จ์„ฑ์— ๋Œ€ํ•ด ๊ฐ„๋žตํžˆ ๊ฒ€ํ† ํ•˜๋Š” ๊ฒƒ์œผ๋กœ ์ง„ํ–‰ํ•œ๋‹ค.
For the training of the model variants, we utilized two distinct codebases: Axolot7 for the initial pre-training phase and LLaMA-Factory8(hiyouga, 2023) for subsequent fine-tuning. These codebases provided a strong and reliable base for our training process.
๋ชจ๋ธ ๋ณ€ํ˜•์˜ ํ•™์Šต์„ ์œ„ํ•ด ์ดˆ๊ธฐ ์‚ฌ์ „ ํ•™์Šต ๋‹จ๊ณ„์—์„œ Axolot7๊ณผ ํ›„์† ๋ฏธ์„ธ ์กฐ์ •์„ ์œ„ํ•ด LLaMA-Factory8(hiyouga, 2023)์˜ ๋‘ ๊ฐ€์ง€ ๋ณ„๊ฐœ์˜ ์ฝ”๋“œ๋ฒ ์ด์Šค๋ฅผ ํ™œ์šฉํ–ˆ๋‹ค. ์ด๋Ÿฌํ•œ ์ฝ”๋“œ๋ฒ ์ด์Šค๋Š” ์šฐ๋ฆฌ์˜ ํ›ˆ๋ จ ๊ณผ์ •์— ๊ฐ•๋ ฅํ•˜๊ณ  ์‹ ๋ขฐํ•  ์ˆ˜ ์žˆ๋Š” ๊ธฐ๋ฐ˜์„ ์ œ๊ณตํ–ˆ๋‹ค.
In Figure 6 of [37], they evaluate 4 tasks in BIG-Bench with the Brier Score metric and find that the emergent abilities disapper. We hypothesis that they normalize the Brier Score with the number of options in each question, otherwise the Brier Score of 0.25 on the swahili_english_proverbs task is too low for the smallest model. Four tasks have 2, 2, 4, 5 options in each question. The values of
[37]์˜ [๊ทธ๋ฆผ 6]์—์„œ BIG-Bench์—์„œ 4๊ฐœ์˜ ๊ณผ์ œ๋ฅผ Brier Score ๋ฉ”ํŠธ๋ฆญ์œผ๋กœ ํ‰๊ฐ€ํ•˜๊ณ  ์ฐฝ๋ฐœ ๋Šฅ๋ ฅ์ด ์žฅ์• ๋ฌผ์ด๋ผ๋Š” ๊ฒƒ์„ ๋ฐœ๊ฒฌํ•œ๋‹ค. ์šฐ๋ฆฌ๋Š” ๊ทธ๋“ค์ด ๊ฐ ์งˆ๋ฌธ์— ์žˆ๋Š” ์˜ต์…˜์˜ ์ˆ˜๋กœ Brier Score๋ฅผ ์ •๊ทœํ™”ํ•˜๊ณ  ๊ทธ๋ ‡์ง€ ์•Š์œผ๋ฉด swahili_english_proverbs ํƒœ์Šคํฌ์—์„œ 0.25์˜ Brier Score๊ฐ€ ๊ฐ€์žฅ ์ž‘์€ ๋ชจ๋ธ์— ๋Œ€ํ•ด ๋„ˆ๋ฌด ๋‚ฎ๋‹ค๊ณ  ๊ฐ€์ •ํ•œ๋‹ค. 4๊ฐœ์˜ ๊ณผ์ œ๋Š” ๊ฐ ๋ฌธํ•ญ์— 2, 2, 4, 5๊ฐœ์˜ ์˜ต์…˜์ด ์žˆ๋‹ค. ์˜ ๊ฐ’๋“ค
For the other Chinese LLaMA models (basic version), we utilize a 20GB general Chinese corpus for pre-training, which is consistent with the corpora used by Chinese BERT-wvm (Cui et al., 2021), MacBERT (Cui et al., 2020), LERT (Cui et al., 2022), and others. We also provide "Plus" version, which further expands the pre-training data to 120GB, incorporating additional data from CommonCrawl (CC) and encyclopedia sources, enhancing the model's understanding of fundamental concepts. We concatenated all the datasets and generated chunks of block size 512 for pre-training purposes.
๋‹ค๋ฅธ ์ค‘๊ตญ LLaMA ๋ชจ๋ธ(๊ธฐ๋ณธ ๋ฒ„์ „)์˜ ๊ฒฝ์šฐ ์‚ฌ์ „ ํ›ˆ๋ จ์„ ์œ„ํ•ด 20GB ์ผ๋ฐ˜ ์ค‘๊ตญ ๋ง๋ญ‰์น˜๋ฅผ ํ™œ์šฉํ•˜๋Š”๋ฐ, ์ด๋Š” ์ค‘๊ตญ BERT-wvm(Cui et al., 2021), MacBERT(Cui et al., 2020), LERT(Cui et al., 2022) ๋“ฑ์ด ์‚ฌ์šฉํ•˜๋Š” ๋ง๋ญ‰์น˜์™€ ์ผ์น˜ํ•œ๋‹ค. ๋˜ํ•œ ์ปค๋จผํฌ๋กค(CC) ๋ฐ ๋ฐฑ๊ณผ์‚ฌ์ „ ์†Œ์Šค์˜ ์ถ”๊ฐ€ ๋ฐ์ดํ„ฐ๋ฅผ ํ†ตํ•ฉํ•˜์—ฌ ๊ธฐ๋ณธ ๊ฐœ๋…์— ๋Œ€ํ•œ ๋ชจ๋ธ์˜ ์ดํ•ด๋„๋ฅผ ๋†’์ด๋Š” ์‚ฌ์ „ ํ›ˆ๋ จ ๋ฐ์ดํ„ฐ๋ฅผ 120GB๋กœ ์ถ”๊ฐ€๋กœ ํ™•์žฅํ•˜๋Š” "ํ”Œ๋Ÿฌ์Šค" ๋ฒ„์ „์„ ์ œ๊ณตํ•œ๋‹ค. ์‚ฌ์ „ ํ›ˆ๋ จ์„ ์œ„ํ•ด ๋ชจ๋“  ๋ฐ์ดํ„ฐ ์„ธํŠธ์™€ ๋ธ”๋ก ํฌ๊ธฐ 512์˜ ์ฒญํฌ๋ฅผ ์—ฐ๊ฒฐํ–ˆ๋‹ค.
2020; Wu et al., 2021; Xiao et al., 2021; Li et al., 2022; Gupta and Gupta, 2022) is more challenging as it introduces additional temporal information compared to visual multi-modal reasoning.
2020; Wu et al., 2021; Xiao et al., 2021; Li et al., 2022; Gupta and Gupta, 2022)๋Š” ์‹œ๊ฐ์  ๋ฉ€ํ‹ฐ๋ชจ๋‹ฌ ์ถ”๋ก ์— ๋น„ํ•ด ์ถ”๊ฐ€์ ์ธ ์‹œ๊ฐ„ ์ •๋ณด๋ฅผ ๋„์ž…ํ•˜๊ธฐ ๋•Œ๋ฌธ์— ๋” ์–ด๋ ต๋‹ค.
**1. Classification:** Cross-lingual Choice of Plausible Alternatives (XCOPA) (Ponti et al., 2020) tests causal commonsense reasoning in 11 languages
**1. ๋ถ„๋ฅ˜:** XCOPA(๊ต์ฐจ ์–ธ์–ด ์„ ํƒ) (Ponti ๋“ฑ, 2020) 11๊ฐœ ์–ธ์–ด์—์„œ ์ธ๊ณผ์  ์ƒ์‹ ์ถ”๋ก ์„ ํ…Œ์ŠคํŠธํ•ฉ๋‹ˆ๋‹ค.
**Raw data.** We source forecasting questions from the 5 above-mentioned platforms. This yields a total of 48,754 questions and 7,174,607 user forecasts spanning from 2015 to 2024. The dataset includes 33,664 binary questions, 9,725 multiple-choice questions, 4,019 numerical questions, and 1,346 questions of other types. The questions cover a wide range of topics across the globe (Figure 10).
**์›์‹œ ๋ฐ์ดํ„ฐ.** ์œ„์—์„œ ์–ธ๊ธ‰ํ•œ 5๊ฐœ ํ”Œ๋žซํผ์—์„œ ์˜ˆ์ธก ์งˆ๋ฌธ์„ ์›๋ณธ์œผ๋กœ ํ•ฉ๋‹ˆ๋‹ค. ์ด๋Š” 2015๋…„๋ถ€ํ„ฐ 2024๋…„๊นŒ์ง€ ์ด 48,754๊ฐœ์˜ ์งˆ๋ฌธ๊ณผ 7,174,607๊ฐœ์˜ ์‚ฌ์šฉ์ž ์˜ˆ์ธก์„ ์‚ฐ์ถœํ•œ๋‹ค. ๋ฐ์ดํ„ฐ ์„ธํŠธ์—๋Š” 33,664๊ฐœ์˜ ์ด์ง„ ์งˆ๋ฌธ, 9,725๊ฐœ์˜ ๊ฐ๊ด€์‹ ์งˆ๋ฌธ, 4,019๊ฐœ์˜ ์ˆซ์ž ์งˆ๋ฌธ, ๊ธฐํƒ€ ์œ ํ˜•์˜ 1,346๊ฐœ์˜ ์งˆ๋ฌธ์ด ํฌํ•จ๋œ๋‹ค. ์งˆ๋ฌธ์€ ์ „ ์„ธ๊ณ„์ ์œผ๋กœ ๊ด‘๋ฒ”์œ„ํ•œ ์ฃผ์ œ๋ฅผ ๋‹ค๋ฃฌ๋‹ค(๊ทธ๋ฆผ 10).
**Metrics.** Considering the limitations of 2-billion parameter models, our evaluation criteria go beyond just the accuracy of responses. We additionally consider factors such as usefulness, relevance, accuracy, depth, creativity, and the level of detail in the model's answers. This comprehensive method allows for a detailed evaluation of the model's response quality. Specifically, We use GPT-4 (Achiam et al., 2023) to score responses from tested LLMs in specific problem contexts, with the scoring prompt available in the Appendix. C.2. We translate the score assignment prompt template from Zheng et al. (2024).
**๋ฉ”ํŠธ๋ฆญ.** 20์–ต ๊ฐœ์˜ ๋งค๊ฐœ ๋ณ€์ˆ˜ ๋ชจ๋ธ์˜ ํ•œ๊ณ„๋ฅผ ๊ณ ๋ คํ•  ๋•Œ ํ‰๊ฐ€ ๊ธฐ์ค€์€ ๋ฐ˜์‘์˜ ์ •ํ™•๋„๋ฅผ ๋„˜์–ด์„ญ๋‹ˆ๋‹ค. ๋ชจ๋ธ์˜ ๋‹ต๋ณ€์—์„œ ์œ ์šฉ์„ฑ, ๊ด€๋ จ์„ฑ, ์ •ํ™•์„ฑ, ๊นŠ์ด, ์ฐฝ์˜์„ฑ, ์„ธ๋ถ€ ์ˆ˜์ค€ ๋“ฑ์˜ ์š”์†Œ๋ฅผ ์ถ”๊ฐ€์ ์œผ๋กœ ๊ณ ๋ คํ•œ๋‹ค. ์ด๋Ÿฌํ•œ ํฌ๊ด„์ ์ธ ๋ฐฉ๋ฒ•์€ ๋ชจ๋ธ์˜ ์‘๋‹ต ํ’ˆ์งˆ์— ๋Œ€ํ•œ ์ƒ์„ธํ•œ ํ‰๊ฐ€๋ฅผ ๊ฐ€๋Šฅํ•˜๊ฒŒ ํ•œ๋‹ค. ๊ตฌ์ฒด์ ์œผ๋กœ, GPT-4(Achiam et al., 2023)๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ํŠน์ • ๋ฌธ์ œ ์ปจํ…์ŠคํŠธ์—์„œ ํ…Œ์ŠคํŠธ๋œ LLM์œผ๋กœ๋ถ€ํ„ฐ ์‘๋‹ต์„ ์Šค์ฝ”์–ด๋งํ•˜๊ณ , ์Šค์ฝ”์–ด๋ง ํ”„๋กฌํ”„ํŠธ๋Š” ๋ถ€๋ก C.2์—์„œ ์ด์šฉ๊ฐ€๋Šฅํ•˜๋‹ค. Zheng et al.(2024)๋กœ๋ถ€ํ„ฐ ์Šค์ฝ”์–ด๋ง ํ• ๋‹น ํ”„๋กฌํ”„ํŠธ ํ…œํ”Œ๋ฆฟ์„ ๋ฒˆ์—ญํ•œ๋‹ค.
Figure 6: **Test-Time Documents Varying**: We study how robust RAFT is to varying numbers of test-time documents that a retriever might provide. In NQ, we find that training with 4 documents leads to the best performance, but training with 2 documents is optimal for HotpotQA. However, across both datasets, training with all datasets consisting of _oracle_ documents hurts performance.
๊ทธ๋ฆผ 6: **ํ…Œ์ŠคํŠธ ์‹œ๊ฐ„ ๋ฌธ์„œ ๋ณ€๋™**: ๊ฒ€์ƒ‰๊ธฐ๊ฐ€ ์ œ๊ณตํ•  ์ˆ˜ ์žˆ๋Š” ๋‹ค์–‘ํ•œ ์ˆ˜์˜ ํ…Œ์ŠคํŠธ ์‹œ๊ฐ„ ๋ฌธ์„œ์— ๋Œ€ํ•ด RAFT๊ฐ€ ์–ผ๋งˆ๋‚˜ ๊ฐ•๋ ฅํ•œ์ง€ ์—ฐ๊ตฌํ•ฉ๋‹ˆ๋‹ค. NQ์—์„œ๋Š” 4๊ฐœ์˜ ๋ฌธ์„œ๋กœ ํ›ˆ๋ จํ•˜๋Š” ๊ฒƒ์ด ์ตœ์ƒ์˜ ์„ฑ๋Šฅ์œผ๋กœ ์ด์–ด์ง€์ง€๋งŒ HotpotQA์—์„œ๋Š” 2๊ฐœ์˜ ๋ฌธ์„œ๋กœ ํ›ˆ๋ จํ•˜๋Š” ๊ฒƒ์ด ์ตœ์ ์ด๋‹ค. ๊ทธ๋Ÿฌ๋‚˜ ๋‘ ๋ฐ์ดํ„ฐ ์„ธํŠธ ๋ชจ๋‘์—์„œ _์˜ค๋ผํด_ ๋ฌธ์„œ๋กœ ๊ตฌ์„ฑ๋œ ๋ชจ๋“  ๋ฐ์ดํ„ฐ ์„ธํŠธ๋ฅผ ์‚ฌ์šฉํ•œ ํ›ˆ๋ จ์€ ์„ฑ๋Šฅ์— ์˜ํ–ฅ์„ ๋ฏธ์นฉ๋‹ˆ๋‹ค.
**Summarization prompt.** We sweep over 5 candidate prompts for summarization and evaluate the resulting Brier scores. The best summarization prompt gives a Brier score of 0.193 and the second gives 0.201. In this step of hyperparameter search, the ordering of the summaries, article count and reasoning prompt are randomly chosen for each question to avoid confounding.
**์š”์•ฝ ํ”„๋กฌํ”„ํŠธ** ์š”์•ฝ์„ ์œ„ํ•ด 5๊ฐœ์˜ ํ›„๋ณด ํ”„๋กฌํ”„ํŠธ๋ฅผ ์Šค์œ•ํ•˜๊ณ  ๊ฒฐ๊ณผ ๋ธŒ๋ผ์ด์–ด ์ ์ˆ˜๋ฅผ ํ‰๊ฐ€ํ•ฉ๋‹ˆ๋‹ค. ์ตœ์ƒ์˜ ์š”์•ฝ ํ”„๋กฌํ”„ํŠธ๋Š” 0.193์˜ Brier ์ ์ˆ˜๋ฅผ ์ œ๊ณตํ•˜๊ณ  ๋‘ ๋ฒˆ์งธ๋Š” 0.201์˜ Brier ์ ์ˆ˜๋ฅผ ์ œ๊ณตํ•œ๋‹ค. ํ•˜์ดํผํŒŒ๋ผ๋ฏธํ„ฐ ๊ฒ€์ƒ‰์˜ ์ด ๋‹จ๊ณ„์—์„œ๋Š” ํ˜ผ๋™์„ ํ”ผํ•˜๊ธฐ ์œ„ํ•ด ์š”์•ฝ, ๊ธฐ์‚ฌ ์ˆ˜ ๋ฐ ์ถ”๋ก  ํ”„๋กฌํ”„ํŠธ์˜ ์ˆœ์„œ๋ฅผ ๊ฐ ์งˆ๋ฌธ์— ๋Œ€ํ•ด ๋ฌด์ž‘์œ„๋กœ ์„ ํƒํ•œ๋‹ค.
We investigated the scaling laws of language models, specifically the relationship between model size and the total bits of knowledge stored. Our findings reveal a _precise, universal_ scaling law: a sufficiently-trained transformer (i.e., one whose training loss has plateau-ed) can store 2 bits of knowledge per parameter, even when quantized to int8, which is only 1/4 away from the information-theoretical maximum. We also examined how these scaling laws are influenced by various hyperparameters, including training duration, model architectures, floating-point precision, sparsity constraints like MoE, and data signal-noise ratios.
์šฐ๋ฆฌ๋Š” ์–ธ์–ด ๋ชจ๋ธ์˜ ์Šค์ผ€์ผ๋ง ๋ฒ•์น™, ํŠนํžˆ ๋ชจ๋ธ ํฌ๊ธฐ์™€ ์ €์žฅ๋œ ์ด ์ง€์‹ ๋น„ํŠธ ์‚ฌ์ด์˜ ๊ด€๊ณ„๋ฅผ ์กฐ์‚ฌํ–ˆ๋‹ค. ์šฐ๋ฆฌ์˜ ์—ฐ๊ตฌ ๊ฒฐ๊ณผ๋Š” _์ •ํ™•ํ•˜๊ณ  ๋ณดํŽธ์ ์ธ_ ์Šค์ผ€์ผ๋ง ๋ฒ•์น™์„ ๋ณด์—ฌ์ค€๋‹ค: ์ถฉ๋ถ„ํžˆ ํ›ˆ๋ จ๋œ ๋ณ€์••๊ธฐ(์ฆ‰, ํ›ˆ๋ จ ์†์‹ค์ด ์•ˆ์ •ํ™”๋œ ๋ณ€์••๊ธฐ)๋Š” ์ •๋ณด ์ด๋ก ์  ์ตœ๋Œ€๊ฐ’์—์„œ 1/4๋งŒ ๋–จ์–ด์ ธ ์žˆ๋Š” int8๋กœ ์–‘์žํ™”๋œ ๊ฒฝ์šฐ์—๋„ ๋งค๊ฐœ๋ณ€์ˆ˜๋‹น 2๋น„ํŠธ์˜ ์ง€์‹์„ ์ €์žฅํ•  ์ˆ˜ ์žˆ๋‹ค. ๋˜ํ•œ ์ด๋Ÿฌํ•œ ์Šค์ผ€์ผ๋ง ๋ฒ•์น™์ด ํ›ˆ๋ จ ๊ธฐ๊ฐ„, ๋ชจ๋ธ ์•„ํ‚คํ…์ฒ˜, ๋ถ€๋™ ์†Œ์ˆ˜์  ์ •๋ฐ€๋„, MoE์™€ ๊ฐ™์€ ํฌ์†Œ์„ฑ ์ œ์•ฝ ๋ฐ ๋ฐ์ดํ„ฐ ์‹ ํ˜ธ-์žก์Œ๋น„๋ฅผ ํฌํ•จํ•œ ๋‹ค์–‘ํ•œ ํ•˜์ดํผํŒŒ๋ผ๋ฏธํ„ฐ์— ์˜ํ•ด ์–ด๋–ป๊ฒŒ ์˜ํ–ฅ์„ ๋ฐ›๋Š”์ง€ ์กฐ์‚ฌํ–ˆ๋‹ค.
GPT2 with Smaller MLP.Mistral has a larger MLP layer, and it is often believed that the MLP layer serves primarily for storing knowledge, in contrast to the Attention layer. But is this truly the case?
Smaller MLP.Mistral์ด ์žˆ๋Š” GPT2๋Š” ๋” ํฐ MLP ์ธต์„ ๊ฐ€์ง€๋ฉฐ, ์ข…์ข… MLP ์ธต์€ ์–ดํ…์…˜ ์ธต๊ณผ ๋Œ€์กฐ์ ์œผ๋กœ ์ฃผ๋กœ ์ง€์‹์„ ์ €์žฅํ•˜๋Š” ์—ญํ• ์„ ํ•œ๋‹ค๊ณ  ๋ฏฟ์–ด์ง„๋‹ค. ํ•˜์ง€๋งŒ ์ด๊ฒŒ ์ •๋ง ์‚ฌ์‹ค์ธ๊ฐ€์š”?
First of all, as discussed in the Ethical Considerations, our method requires a strong LLM to generate the data, so the performance of our method depends on the quality of the LLM and may inherit bias and fairness issues from it. On the other hand, CodecLM can benefit from stronger LLMs improved with advanced bias-reducing and fairness-enhancing approaches.
์šฐ์„ , ์œค๋ฆฌ์  ๊ณ ๋ ค์‚ฌํ•ญ์—์„œ ๋…ผ์˜๋œ ๋ฐ”์™€ ๊ฐ™์ด, ์šฐ๋ฆฌ์˜ ๋ฐฉ๋ฒ•์€ ๋ฐ์ดํ„ฐ๋ฅผ ์ƒ์„ฑํ•˜๊ธฐ ์œ„ํ•ด ๊ฐ•ํ•œ LLM์„ ์š”๊ตฌํ•˜๋ฏ€๋กœ, ์šฐ๋ฆฌ์˜ ๋ฐฉ๋ฒ•์˜ ์„ฑ๋Šฅ์€ LLM์˜ ํ’ˆ์งˆ์— ์˜์กดํ•˜๋ฉฐ, ๊ทธ๊ฒƒ์œผ๋กœ๋ถ€ํ„ฐ ํŽธํ–ฅ ๋ฐ ๊ณต์ •์„ฑ ๋ฌธ์ œ๋ฅผ ๋ฌผ๋ ค๋ฐ›์„ ์ˆ˜ ์žˆ๋‹ค. ๋ฐ˜๋ฉด์—, CodecLM์€ ์ง„๋ณด๋œ ํŽธํ–ฅ ๊ฐ์†Œ ๋ฐ ๊ณต์ •์„ฑ ํ–ฅ์ƒ ์ ‘๊ทผ๋ฒ•์œผ๋กœ ๊ฐœ์„ ๋œ ๋” ๊ฐ•ํ•œ LLM์œผ๋กœ๋ถ€ํ„ฐ ์ด์ต์„ ์–ป์„ ์ˆ˜ ์žˆ๋‹ค.
The deviation of the DeepSeek models' performance from the predictions of Eq.(1) could indeed stem from the adoption of a new model scale representation. By utilizing non-embedding FLOPs per token \(M\) instead of the overall model parameters \(N\), the scaling law that was originally designed or calibrated for the parameter might not accurately capture the performance nuances associated with computational complexity per token.
DeepSeek ๋ชจ๋ธ์˜ ์„ฑ๋Šฅ๊ณผ Eq์˜ ์˜ˆ์ธก์˜ ํŽธ์ฐจ์ž…๋‹ˆ๋‹ค. (1) ์‹ค์ œ๋กœ ์ƒˆ๋กœ์šด ๋ชจ๋ธ ์ฒ™๋„ ํ‘œํ˜„์˜ ์ฑ„ํƒ์—์„œ ๋น„๋กฏ๋  ์ˆ˜ ์žˆ๋‹ค. ์ „์ฒด ๋ชจ๋ธ ํŒŒ๋ผ๋ฏธํ„ฐ \(N\) ๋Œ€์‹ ์— ํ† ํฐ๋‹น non-embedding FLOPs \(M\)๋ฅผ ์‚ฌ์šฉํ•จ์œผ๋กœ์จ, ์›๋ž˜ ์„ค๊ณ„๋˜๊ฑฐ๋‚˜ ํŒŒ๋ผ๋ฏธํ„ฐ์— ๋Œ€ํ•ด ๋ณด์ •๋œ ์Šค์ผ€์ผ๋ง ๋ฒ•์น™์€ ํ† ํฐ๋‹น ๊ณ„์‚ฐ ๋ณต์žก๋„์™€ ๊ด€๋ จ๋œ ์„ฑ๋Šฅ ๋‰˜์•™์Šค๋ฅผ ์ •ํ™•ํ•˜๊ฒŒ ํฌ์ฐฉํ•˜์ง€ ๋ชปํ•  ์ˆ˜ ์žˆ๋‹ค.
ART involves a systematic approach where, given a task and input, the system first identifies similar tasks from a task library. These tasks are then used as examples in the prompt, guiding the LLM on how to approach and execute the current task. This method is particularly effective when tasks require a combination of internal reasoning and external data processing or retrieval.
ART๋Š” ํƒœ์Šคํฌ์™€ ์ž…๋ ฅ์ด ์ฃผ์–ด์ง€๋ฉด, ์‹œ์Šคํ…œ์ด ๋จผ์ € ํƒœ์Šคํฌ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋กœ๋ถ€ํ„ฐ ์œ ์‚ฌํ•œ ํƒœ์Šคํฌ๋“ค์„ ์‹๋ณ„ํ•˜๋Š” ์ฒด๊ณ„์ ์ธ ์ ‘๊ทผ๋ฒ•์„ ํฌํ•จํ•œ๋‹ค. ๊ทธ๋Ÿฐ ๋‹ค์Œ ์ด๋Ÿฌํ•œ ์ž‘์—…์„ ํ”„๋กฌํ”„ํŠธ์—์„œ ์˜ˆ๋กœ ์‚ฌ์šฉํ•˜์—ฌ ํ˜„์žฌ ์ž‘์—…์— ์ ‘๊ทผํ•˜๊ณ  ์‹คํ–‰ํ•˜๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด LLM์„ ์•ˆ๋‚ดํ•ฉ๋‹ˆ๋‹ค. ์ด ๋ฐฉ๋ฒ•์€ ์ž‘์—…์ด ๋‚ด๋ถ€ ์ถ”๋ก ๊ณผ ์™ธ๋ถ€ ๋ฐ์ดํ„ฐ ์ฒ˜๋ฆฌ ๋˜๋Š” ๊ฒ€์ƒ‰์˜ ์กฐํ•ฉ์„ ํ•„์š”๋กœ ํ•  ๋•Œ ํŠนํžˆ ํšจ๊ณผ์ ์ด๋‹ค.
We introduce Self-Instruct, a method to improve the instruction-following ability of LMs via their own generation of instruction data. On experimenting with vanilla GPT3, we automatically construct a large-scale dataset of 52K instructions for diverse tasks, and finetuning GPT3 on this data leads to a 33% absolute improvement on SuperNI over the original GPT3. Furthermore, we curate a set of expert-written instructions for novel tasks. Human evaluation on this set shows that tuning GPT3 with Self-Instruct outperforms using existing public instruction datasets by a large margin and performs closely to InstructGPT\({}_{001}\). We hope Self-Instruct can serve as the first step to align pretrained LMs to follow human instructions, and future work can build on top of this data to improve instruction-following models.
๋ณธ ๋…ผ๋ฌธ์—์„œ๋Š” ์ž์ฒด์ ์ธ ๋ช…๋ น์–ด ๋ฐ์ดํ„ฐ ์ƒ์„ฑ์„ ํ†ตํ•ด LMs์˜ ๋ช…๋ น์–ด ์ถ”์ข… ๋Šฅ๋ ฅ์„ ํ–ฅ์ƒ์‹œํ‚ค๋Š” ๋ฐฉ๋ฒ•์ธ Self-Instruct๋ฅผ ์†Œ๊ฐœํ•œ๋‹ค. ๋ฐ”๋‹๋ผ GPT3๋ฅผ ์ด์šฉํ•˜์—ฌ ๋‹ค์–‘ํ•œ ํƒœ์Šคํฌ์— ๋Œ€ํ•œ 52K ๋ช…๋ น์–ด์˜ ๋Œ€๊ทœ๋ชจ ๋ฐ์ดํ„ฐ์„ธํŠธ๋ฅผ ์ž๋™์œผ๋กœ ๊ตฌ์„ฑํ•˜๊ณ , ์ด ๋ฐ์ดํ„ฐ์— GPT3๋ฅผ ๋ฏธ์„ธ ์กฐ์ •ํ•จ์œผ๋กœ์จ SuperNI๊ฐ€ ๊ธฐ์กด GPT3๋ณด๋‹ค 33%์˜ ์ ˆ๋Œ€์  ์„ฑ๋Šฅํ–ฅ์ƒ์„ ๋‹ฌ์„ฑํ•˜์˜€์œผ๋ฉฐ, ์ƒˆ๋กœ์šด ํƒœ์Šคํฌ์— ๋Œ€ํ•œ ์ „๋ฌธ๊ฐ€ ์ž‘์„ฑ ๋ช…๋ น์–ด ์„ธํŠธ๋ฅผ ์„ ๋ณ„ํ•˜์˜€๋‹ค. ์ด ์ง‘ํ•ฉ์— ๋Œ€ํ•œ ์ธ๊ฐ„ ํ‰๊ฐ€๋Š” Self-Instruct๋กœ GPT3๋ฅผ ํŠœ๋‹ํ•˜๋Š” ๊ฒƒ์ด ๊ธฐ์กด์˜ ๊ณต๊ฐœ ๋ช…๋ น์–ด ๋ฐ์ดํ„ฐ์…‹์„ ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ๋ณด๋‹ค ํฐ ๋งˆ์ง„๋งŒํผ ์„ฑ๋Šฅ์ด ๋›ฐ์–ด๋‚˜๋ฉฐ InstructGPT\({}_{001}\)์™€ ๋ฐ€์ ‘ํ•˜๊ฒŒ ์ˆ˜ํ–‰๋จ์„ ๋ณด์—ฌ์ค€๋‹ค. ์šฐ๋ฆฌ๋Š” Self-Instruct๊ฐ€ ์‚ฌ์ „ ํ›ˆ๋ จ๋œ LMs๋ฅผ ์ธ๊ฐ„์˜ ์ง€์‹œ๋ฅผ ๋”ฐ๋ฅด๋„๋ก ์ •๋ ฌํ•˜๋Š” ์ฒซ ๋ฒˆ์งธ ๋‹จ๊ณ„ ์—ญํ• ์„ ํ•  ์ˆ˜ ์žˆ๊ณ , ํ–ฅํ›„ ์ž‘์—…์ด ์ด ๋ฐ์ดํ„ฐ ์œ„์— ๊ตฌ์ถ•๋˜์–ด ์ง€์‹œ๋ฅผ ๋”ฐ๋ฅด๋Š” ๋ชจ๋ธ์„ ๊ฐœ์„ ํ•  ์ˆ˜ ์žˆ๊ธฐ๋ฅผ ๋ฐ”๋ž€๋‹ค.
**Benchmarking Auto-evaluation.** While auto-evaluation was significantly better than random guessing at aligning with specialist preferences, it was unclear if the resulting performance was sufficient. To test this, we had 139 dialogue pairs each rated by a second specialist, and we computed the rank-order agreement of the two specialists on this subset (see figure A.18). We observed that auto-evaluation was about as accurate as the alternative specialists in predicting the first specialist's rank-order, suggesting that it is useful to leverage auto-evaluation for these criteria.
**๋ฒค์น˜๋งˆํ‚น ์ž๋™ ํ‰๊ฐ€** ์ž๋™ ํ‰๊ฐ€๊ฐ€ ์ „๋ฌธ๊ฐ€ ์„ ํ˜ธ๋„์™€ ์ผ์น˜ํ•  ๋•Œ ๋ฌด์ž‘์œ„ ์ถ”์ธก๋ณด๋‹ค ํ›จ์”ฌ ์šฐ์ˆ˜ํ–ˆ์ง€๋งŒ ๊ฒฐ๊ณผ ์„ฑ๋Šฅ์ด ์ถฉ๋ถ„ํ•œ์ง€ ์—ฌ๋ถ€๋Š” ๋ถˆ๋ถ„๋ช…ํ–ˆ๋‹ค. ์ด๋ฅผ ํ…Œ์ŠคํŠธํ•˜๊ธฐ ์œ„ํ•ด ๋‘ ๋ฒˆ์งธ ์ „๋ฌธ๊ฐ€๊ฐ€ ๊ฐ๊ฐ 139๊ฐœ์˜ ๋Œ€ํ™” ์Œ์„ ํ‰๊ฐ€ํ–ˆ์œผ๋ฉฐ ์ด ํ•˜์œ„ ์ง‘ํ•ฉ์— ๋Œ€ํ•œ ๋‘ ์ „๋ฌธ๊ฐ€์˜ ์ˆœ์œ„ ์ผ์น˜๋ฅผ ๊ณ„์‚ฐํ–ˆ๋‹ค(๊ทธ๋ฆผ A.18 ์ฐธ์กฐ). ์šฐ๋ฆฌ๋Š” ์ž๋™ ํ‰๊ฐ€๊ฐ€ ์ฒซ ๋ฒˆ์งธ ์ „๋ฌธ๊ฐ€์˜ ์ˆœ์œ„๋ฅผ ์˜ˆ์ธกํ•˜๋Š” ๋ฐ ๋Œ€์ฒด ์ „๋ฌธ๊ฐ€๋งŒํผ ์ •ํ™•ํ•˜๋‹ค๋Š” ๊ฒƒ์„ ๊ด€์ฐฐํ–ˆ์œผ๋ฉฐ, ์ด๋Š” ์ด๋Ÿฌํ•œ ๊ธฐ์ค€์— ๋Œ€ํ•œ ์ž๋™ ํ‰๊ฐ€๋ฅผ ํ™œ์šฉํ•˜๋Š” ๊ฒƒ์ด ์œ ์šฉํ•จ์„ ์‹œ์‚ฌํ•œ๋‹ค.
Model merging [15; 28], a recent development in the large language model (LLM) community, presents a novel paradigm shift. By strategically combining multiple LLMs into a single architecture, this exciting development has captured the attention of researchers due to its key advantage: it requires no additional training, making it an incredibly cost-effective approach for developing new models. This accessibility has fueled a surge in interest and experimentation with model merging. The Open LLM Leaderboard [20] is now dominated by merged models, showcasing its potential for democratizing foundation model development.
๋Œ€ํ˜• ์–ธ์–ด ๋ชจ๋ธ(LLM) ์ปค๋ฎค๋‹ˆํ‹ฐ์˜ ์ตœ๊ทผ ๋ฐœ์ „์ธ ๋ชจ๋ธ ๋ณ‘ํ•ฉ[15; 28]์€ ์ƒˆ๋กœ์šด ํŒจ๋Ÿฌ๋‹ค์ž„ ๋ณ€ํ™”๋ฅผ ์ œ์‹œํ•œ๋‹ค. ์—ฌ๋Ÿฌ LLM์„ ํ•˜๋‚˜์˜ ์•„ํ‚คํ…์ฒ˜๋กœ ์ „๋žต์ ์œผ๋กœ ๊ฒฐํ•ฉํ•จ์œผ๋กœ์จ ์ด ํฅ๋ฏธ๋กœ์šด ๊ฐœ๋ฐœ์€ ์ถ”๊ฐ€ ๊ต์œก์ด ํ•„์š”ํ•˜์ง€ ์•Š๊ธฐ ๋•Œ๋ฌธ์— ์ƒˆ๋กœ์šด ๋ชจ๋ธ ๊ฐœ๋ฐœ์„ ์œ„ํ•œ ๋ฏฟ์„ ์ˆ˜ ์—†์„ ์ •๋„๋กœ ๋น„์šฉ ํšจ์œจ์ ์ธ ์ ‘๊ทผ๋ฒ•์ด๋ผ๋Š” ํ•ต์‹ฌ ์žฅ์ ์œผ๋กœ ์ธํ•ด ์—ฐ๊ตฌ์ž๋“ค์˜ ๊ด€์‹ฌ์„ ๋Œ์—ˆ๋‹ค. ์ด๋Ÿฌํ•œ ์ ‘๊ทผ์„ฑ์€ ๋ชจ๋ธ ๋ณ‘ํ•ฉ์— ๋Œ€ํ•œ ๊ด€์‹ฌ๊ณผ ์‹คํ—˜์˜ ๊ธ‰์ฆ์„ ๋ถ€์ฑ„์งˆํ–ˆ๋‹ค. ์˜คํ”ˆ LLM ๋ฆฌ๋”๋ณด๋“œ[20]๋Š” ํ˜„์žฌ ํ†ตํ•ฉ ๋ชจ๋ธ์— ์˜ํ•ด ์ง€๋ฐฐ๋˜์–ด ๊ธฐ์ดˆ ๋ชจ๋ธ ๊ฐœ๋ฐœ์„ ๋ฏผ์ฃผํ™”ํ•  ์ˆ˜ ์žˆ๋Š” ์ž ์žฌ๋ ฅ์„ ๋ณด์—ฌ์ค€๋‹ค.
We provide details about our system, described at a high-level in Section 4. We specify the hyperparameters used in our (optimized) settings. Some of them are discovered by the hyperparameter sweep (Section 5.2).
์šฐ๋ฆฌ๋Š” ์„น์…˜ 4์—์„œ ๋†’์€ ์ˆ˜์ค€์—์„œ ์„ค๋ช…ํ•œ ์‹œ์Šคํ…œ์— ๋Œ€ํ•œ ์„ธ๋ถ€ ์ •๋ณด๋ฅผ ์ œ๊ณตํ•œ๋‹ค. ์šฐ๋ฆฌ๋Š” (์ตœ์ ํ™”๋œ) ์„ค์ •์—์„œ ์‚ฌ์šฉ๋˜๋Š” ํ•˜์ดํผํŒŒ๋ผ๋ฏธํ„ฐ๋ฅผ ์ง€์ •ํ•œ๋‹ค. ๊ทธ๋“ค ์ค‘ ์ผ๋ถ€๋Š” ํ•˜์ดํผํŒŒ๋ผ๋ฏธํ„ฐ ์Šค์œ•(์„น์…˜ 5.2)์— ์˜ํ•ด ๋ฐœ๊ฒฌ๋œ๋‹ค.
In this section, we review the architecture design of LLMs, _i.e.,_ mainstream architecture, pre-training objective, and detailed configuration. Table V presents the model cards of several representative LLMs with public details.
์ด ์„น์…˜์—์„œ๋Š” LLM์˜ ์•„ํ‚คํ…์ฒ˜ ์„ค๊ณ„, ์ฆ‰ ์ฃผ๋ฅ˜ ์•„ํ‚คํ…์ฒ˜, ์‚ฌ์ „ ํ›ˆ๋ จ ๋ชฉํ‘œ ๋ฐ ์„ธ๋ถ€ ๊ตฌ์„ฑ์„ ๊ฒ€ํ† ํ•œ๋‹ค. ํ‘œ V๋Š” ๊ณต๊ฐœ ์„ธ๋ถ€ ์ •๋ณด๊ฐ€ ์žˆ๋Š” ์—ฌ๋Ÿฌ ๋Œ€ํ‘œ LLM์˜ ๋ชจ๋ธ ์นด๋“œ๋ฅผ ๋ณด์—ฌ์ค€๋‹ค.
**Human Annotation**: This evaluation method involves human evaluators directly scoring or rankingthe outputs generated by various agents [22, 29, 105]. For example, in [20], the authors employ many annotators, and ask them to provide feedback on five key questions that directly associated with the agent capability. Similarly, [159] assess model effectiveness by having human participants rate the models on harmlessness, honesty, helpfulness, engagement, and unbiasedness, subsequently comparing these scores across different models. In [79], annotators are asked to determine whether the specifically designed models can significantly enhance the development of rules within online communities.
**์ธ๊ฐ„ ์ฃผ์„**: ์ด ํ‰๊ฐ€ ๋ฐฉ๋ฒ•์€ ์ธ๊ฐ„ ํ‰๊ฐ€์ž๊ฐ€ ์ง์ ‘ ๋‹ค์–‘ํ•œ ์—์ด์ „ํŠธ์—์„œ ์ƒ์„ฑ๋œ ์ถœ๋ ฅ์˜ ์ ์ˆ˜๋ฅผ ๋งค๊ธฐ๊ฑฐ๋‚˜ ์ˆœ์œ„๋ฅผ ๋งค๊ธฐ๋Š” ์ž‘์—…์„ ํฌํ•จํ•ฉ๋‹ˆ๋‹ค. [22, 29, 105]. ์˜ˆ๋ฅผ ๋“ค์–ด [20]์—์„œ ์ €์ž๋Š” ๋งŽ์€ ์ฃผ์„์ž๋ฅผ ์‚ฌ์šฉํ•˜๊ณ  ์—์ด์ „ํŠธ ๊ธฐ๋Šฅ๊ณผ ์ง์ ‘ ๊ด€๋ จ๋œ 5๊ฐ€์ง€ ํ•ต์‹ฌ ์งˆ๋ฌธ์— ๋Œ€ํ•œ ํ”ผ๋“œ๋ฐฑ์„ ์ œ๊ณตํ•˜๋„๋ก ์š”์ฒญํ•ฉ๋‹ˆ๋‹ค. ์œ ์‚ฌํ•˜๊ฒŒ, [159]๋Š” ์ธ๊ฐ„ ์ฐธ๊ฐ€์ž๊ฐ€ ๋ฌดํ•ด์„ฑ, ์ •์ง์„ฑ, ์œ ์šฉ์„ฑ, ์ฐธ์—ฌ ๋ฐ ํŽธํ–ฅ์„ฑ์— ๋Œ€ํ•ด ๋ชจ๋ธ์„ ํ‰๊ฐ€ํ•˜๋„๋ก ํ•˜์—ฌ ๋ชจ๋ธ ํšจ๊ณผ๋ฅผ ํ‰๊ฐ€ํ•˜๊ณ , ํ›„์†์ ์œผ๋กœ ๋‹ค์–‘ํ•œ ๋ชจ๋ธ์— ๊ฑธ์ณ ์ด๋Ÿฌํ•œ ์ ์ˆ˜๋ฅผ ๋น„๊ตํ•œ๋‹ค. [79]์—์„œ ์ฃผ์„์ž๋Š” ํŠน๋ณ„ํžˆ ์„ค๊ณ„๋œ ๋ชจ๋ธ์ด ์˜จ๋ผ์ธ ์ปค๋ฎค๋‹ˆํ‹ฐ ๋‚ด์—์„œ ๊ทœ์น™์˜ ๊ฐœ๋ฐœ์„ ํฌ๊ฒŒ ํ–ฅ์ƒ์‹œํ‚ฌ ์ˆ˜ ์žˆ๋Š”์ง€ ์—ฌ๋ถ€๋ฅผ ๊ฒฐ์ •ํ•˜๋„๋ก ์š”์ฒญ๋ฐ›๋Š”๋‹ค.
Note that while \(\ell(y|x)\) has the same form as the pre-training loss \(L\), they are not equal. First, the pre-training loss is an average of all the tokens in all the documents pre-trained on. According to our empirical observation, the losses of different documents are not uniform. Second, if \(x\) and similar documents do not exist in the pre-training corpus, \(\ell(y|x)\) is the generalization loss, which is often related to other factors beyond the training loss, such as the model size. For example, in computer vision, a highly over-parameterized models often improve over an under-parameterized models in test performance when both models converge on the training data [9; 4].
\(\ell(y|x)\)์€ ์‚ฌ์ „ ํ›ˆ๋ จ ์†์‹ค \(L\)๊ณผ ๋™์ผํ•œ ํ˜•ํƒœ๋ฅผ ๊ฐ€์ง€์ง€๋งŒ ๋™์ผํ•˜์ง€๋Š” ์•Š์Šต๋‹ˆ๋‹ค. ๋จผ์ € ์‚ฌ์ „ ํ›ˆ๋ จ ์†์‹ค์€ ์‚ฌ์ „ ํ›ˆ๋ จ๋œ ๋ชจ๋“  ๋ฌธ์„œ์— ์žˆ๋Š” ๋ชจ๋“  ํ† ํฐ์˜ ํ‰๊ท ์ž…๋‹ˆ๋‹ค. ์šฐ๋ฆฌ์˜ ๊ฒฝํ—˜์  ๊ด€์ฐฐ์— ๋”ฐ๋ฅด๋ฉด, ์„œ๋กœ ๋‹ค๋ฅธ ๋ฌธ์„œ์˜ ์†์‹ค์€ ๊ท ์ผํ•˜์ง€ ์•Š๋‹ค. ๋‘˜์งธ, ํ•™์Šต ์ „ ๋ง๋ญ‰์น˜์— \(x\)์™€ ์œ ์‚ฌํ•œ ๋ฌธ์„œ๋“ค์ด ์กด์žฌํ•˜์ง€ ์•Š๋Š” ๊ฒฝ์šฐ, \(\ell(y|x)\)๋Š” ์ผ๋ฐ˜ํ™” ์†์‹ค์ด๋ฉฐ, ์ด๋Š” ๋ชจ๋ธ ํฌ๊ธฐ์™€ ๊ฐ™์€ ํ•™์Šต ์†์‹ค ์ด์ƒ์˜ ๋‹ค๋ฅธ ์š”์ธ๊ณผ ๊ด€๋ จ์ด ์žˆ๋Š” ๊ฒฝ์šฐ๊ฐ€ ๋งŽ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด, ์ปดํ“จํ„ฐ ๋น„์ „์—์„œ, ๊ณ ๋„๋กœ ๊ณผ๋Œ€ํŒŒ๋ผ๋ฏธํ„ฐํ™”๋œ ๋ชจ๋ธ๋“ค์€ ์ข…์ข… ๋‘ ๋ชจ๋ธ๋“ค์ด ํŠธ๋ ˆ์ด๋‹ ๋ฐ์ดํ„ฐ์— ์ˆ˜๋ ดํ•  ๋•Œ ํ…Œ์ŠคํŠธ ์„ฑ๋Šฅ์—์„œ ๊ณผ์†ŒํŒŒ๋ผ๋ฏธํ„ฐํ™”๋œ ๋ชจ๋ธ๋“ค๋ณด๋‹ค ๊ฐœ์„ ๋œ๋‹ค[9; 4].
We evaluate GSM8k [42] and MATH benchmarks [43] by employing the following CoT [31] prompt:
๋‹ค์Œ CoT [31] ํ”„๋กฌํ”„ํŠธ๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ GSM8k [42] ๋ฐ MATH ๋ฒค์น˜๋งˆํฌ [43]์„ ํ‰๊ฐ€ํ•ฉ๋‹ˆ๋‹ค.
evaluation. Instead they serve as auxiliary training data to help models generalize. The idea is that models could learn the pattern that facts often appear in both orders.9
ํ‰๊ฐ€. ๋Œ€์‹  ๋ชจ๋ธ์ด ์ผ๋ฐ˜ํ™”ํ•˜๋Š” ๋ฐ ๋„์›€์ด ๋˜๋Š” ๋ณด์กฐ ํ›ˆ๋ จ ๋ฐ์ดํ„ฐ ์—ญํ• ์„ ํ•œ๋‹ค. ๊ทธ ์•„์ด๋””์–ด๋Š” ๋ชจ๋ธ๋“ค์ด ๋‘ ์˜ค๋”์—์„œ ๊ณตํ†ต์ ์œผ๋กœ ๋‚˜ํƒ€๋‚˜๋Š” ํŒจํ„ด์„ ๋ฐฐ์šธ ์ˆ˜ ์žˆ๋‹ค๋Š” ๊ฒƒ์ด๋‹ค.
To add these fractions, we need to find a common denominator, which is the least common multiple (LCM) of the three denominators (-4, -2, and -3). The LCM of these denominators is -12.
์ด๋Ÿฌํ•œ ๋ถ„์ˆ˜๋ฅผ ๋”ํ•˜๊ธฐ ์œ„ํ•ด์„œ๋Š” ์„ธ ๋ถ„๋ชจ(-4, -2, -3)์˜ ์ตœ์†Œ๊ณต๋ฐฐ์ˆ˜(LCM)์ธ ๊ณตํ†ต๋ถ„๋ชจ๋ฅผ ์ฐพ์•„์•ผ ํ•œ๋‹ค. ์ด ๋ถ„๋ชจ์˜ LCM์€ -12์ž…๋‹ˆ๋‹ค.
Given the results from the prior section, we chose to implement the improved 4-logprob attack (Section 5.3) because it is both the most query efficient attack and also the most precise attack. Switching to a different attack algorithm would increase our total experiment cost significantly, and so we do not perform these ablation studies.
์ด์ „ ์„น์…˜์˜ ๊ฒฐ๊ณผ๋ฅผ ๊ฐ์•ˆํ•  ๋•Œ, ์šฐ๋ฆฌ๋Š” ๊ฐœ์„ ๋œ 4-๋กœ๊ทธํ”„๋กœ๋ธŒ ๊ณต๊ฒฉ(์„น์…˜ 5.3)์„ ๊ตฌํ˜„ํ•˜๊ธฐ๋กœ ์„ ํƒํ–ˆ๋Š”๋ฐ, ์ด๋Š” ๊ฐ€์žฅ ์งˆ์˜ ํšจ์œจ์ ์ธ ๊ณต๊ฒฉ์ด์ž ๊ฐ€์žฅ ์ •ํ™•ํ•œ ๊ณต๊ฒฉ์ด๊ธฐ ๋•Œ๋ฌธ์ด๋‹ค. ๋‹ค๋ฅธ ๊ณต๊ฒฉ ์•Œ๊ณ ๋ฆฌ์ฆ˜์œผ๋กœ ์ „ํ™˜ํ•˜๋ฉด ์ด ์‹คํ—˜ ๋น„์šฉ์ด ํฌ๊ฒŒ ์ฆ๊ฐ€ํ•˜๋ฏ€๋กœ ์ด๋Ÿฌํ•œ ์ ˆ์ œ ์—ฐ๊ตฌ๋ฅผ ์ˆ˜ํ–‰ํ•˜์ง€ ์•Š๋Š”๋‹ค.
_Remark._ Upon comparing the aforementioned strategies for agent capability acquisition, we can find that the fine-tuning method improves the agent capability by adjusting model parameters, which can incorporate a large amount of task-specific knowledge, but is only suitable for open-source LLMs. The method without fine-tuning usually enhances the agent capability based on delicate prompting strategies or mechanism engineering. They can be used for both open- and closed-source LLMs. However, due to the limitation of the input context window of LLMs, they cannot incorporate too much task information. In addition, the designing spaces of the prompts and mechanisms are extremely large, which makes it not easy to find optimal solutions.
_๋น„๊ณ ___ ์•ž์„œ ์–ธ๊ธ‰ํ•œ ์—์ด์ „ํŠธ ๋Šฅ๋ ฅ ํš๋“ ์ „๋žต์„ ๋น„๊ตํ•œ ๊ฒฐ๊ณผ, ๋ฏธ์„ธ ์กฐ์ • ๋ฐฉ๋ฒ•์€ ๋ชจ๋ธ ํŒŒ๋ผ๋ฏธํ„ฐ๋ฅผ ์กฐ์ •ํ•˜์—ฌ ์—์ด์ „ํŠธ ๋Šฅ๋ ฅ์„ ํ–ฅ์ƒ์‹œํ‚ค๋ฉฐ, ์ด๋Š” ๋งŽ์€ ์–‘์˜ ํƒœ์Šคํฌ ํŠน์ • ์ง€์‹์„ ํ†ตํ•ฉํ•  ์ˆ˜ ์žˆ์ง€๋งŒ ์˜คํ”ˆ ์†Œ์Šค LLM์—๋งŒ ์ ํ•ฉํ•˜๋‹ค๋Š” ๊ฒƒ์„ ์•Œ ์ˆ˜ ์žˆ๋‹ค. ๋ฏธ์„ธ ์กฐ์ •์ด ์—†๋Š” ๋ฐฉ๋ฒ•์€ ์ผ๋ฐ˜์ ์œผ๋กœ ์ •๊ตํ•œ ํ”„๋กฌํ”„ํŠธ ์ „๋žต์ด๋‚˜ ๋ฉ”์ปค๋‹ˆ์ฆ˜ ์—”์ง€๋‹ˆ์–ด๋ง์„ ๊ธฐ๋ฐ˜์œผ๋กœ ์—์ด์ „ํŠธ ๊ธฐ๋Šฅ์„ ํ–ฅ์ƒ์‹œํ‚ต๋‹ˆ๋‹ค. ์˜คํ”ˆ ์†Œ์Šค ๋ฐ ํ์‡„ ์†Œ์Šค LLM ๋ชจ๋‘์— ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๊ทธ๋Ÿฌ๋‚˜ LLM์˜ ์ž…๋ ฅ ์ปจํ…์ŠคํŠธ ์ฐฝ์˜ ํ•œ๊ณ„๋กœ ์ธํ•ด ๋„ˆ๋ฌด ๋งŽ์€ ํƒœ์Šคํฌ ์ •๋ณด๋ฅผ ํ†ตํ•ฉํ•  ์ˆ˜ ์—†๋‹ค. ๋˜ํ•œ ํ”„๋กฌํ”„ํŠธ์™€ ๋ฉ”์ปค๋‹ˆ์ฆ˜์˜ ์„ค๊ณ„ ๊ณต๊ฐ„์ด ๋งค์šฐ ์ปค์„œ ์ตœ์ ์˜ ์†”๋ฃจ์…˜์„ ์ฐพ๊ธฐ๊ฐ€ ์‰ฝ์ง€ ์•Š๋‹ค.
To learn an objective that fosters superior translations and rejects inferior ones, access to labeled preference data is
์šฐ์ˆ˜ํ•œ ๋ฒˆ์—ญ์„ ์œก์„ฑํ•˜๊ณ  ์—ด๋“ฑํ•œ ๋ฒˆ์—ญ์„ ๊ฑฐ๋ถ€ํ•˜๋Š” ๋ชฉ์ ์„ ๋ฐฐ์šฐ๊ธฐ ์œ„ํ•ด ๋ ˆ์ด๋ธ”์ด ์ง€์ •๋œ ์„ ํ˜ธ๋„ ๋ฐ์ดํ„ฐ์— ์•ก์„ธ์Šคํ•˜๋Š” ๊ฒƒ์€
On dynamic data curating.Our study presents a pipeline to decide on a group of fixed mixture proportions for pretraining. More sophisticated data curating can include dynamic proportions (Albalak et al., 2023) and even a curriculum that changes data domains (Chen et al., 2024). The application of our data mixing laws in continual pretraining (Sec. 5) implies the prospect of extending our findings to these settings. On top of this, we believe that it is promising to incorporate further analysis to pursue a dynamic data mixing law.
๋™์  ๋ฐ์ดํ„ฐ ํ๋ ˆ์ดํŒ…์— ๊ด€ํ•œ ์—ฐ๊ตฌ๋กœ์„œ, ๋ณธ ์—ฐ๊ตฌ์—์„œ๋Š” ํ”„๋ฆฌ ํŠธ๋ ˆ์ด๋‹์„ ์œ„ํ•œ ๊ณ ์ •๋œ ํ˜ผํ•ฉ๋ฌผ ๋น„์œจ ๊ทธ๋ฃน์„ ๊ฒฐ์ •ํ•˜๊ธฐ ์œ„ํ•œ ํŒŒ์ดํ”„๋ผ์ธ์„ ์ œ์‹œํ•œ๋‹ค. ๋ณด๋‹ค ์ •๊ตํ•œ ๋ฐ์ดํ„ฐ ํ๋ ˆ์ดํŒ…์€ ๋™์  ๋น„์œจ(Albalak ๋“ฑ, 2023) ๋ฐ ์‹ฌ์ง€์–ด ๋ฐ์ดํ„ฐ ๋„๋ฉ”์ธ์„ ๋ณ€๊ฒฝํ•˜๋Š” ์ปค๋ฆฌํ˜๋Ÿผ(Chen ๋“ฑ, 2024)์„ ํฌํ•จํ•  ์ˆ˜ ์žˆ๋‹ค. ์ง€์†์ ์ธ ์‚ฌ์ „๊ต์œก(Sec. 5)์—์„œ ๋ฐ์ดํ„ฐ ํ˜ผํ•ฉ๋ฒ•์˜ ์ ์šฉ ์šฐ๋ฆฌ์˜ ์—ฐ๊ตฌ ๊ฒฐ๊ณผ๋ฅผ ์ด๋Ÿฌํ•œ ์„ค์ •์œผ๋กœ ํ™•์žฅํ•  ๊ฐ€๋Šฅ์„ฑ์„ ์•”์‹œํ•œ๋‹ค. ์—ฌ๊ธฐ์— ์—ญ๋™์ ์ธ ๋ฐ์ดํ„ฐ ํ˜ผํ•ฉ ๋ฒ•์น™์„ ์ถ”๊ตฌํ•˜๊ธฐ ์œ„ํ•ด ์ถ”๊ฐ€ ๋ถ„์„์„ ํ†ตํ•ฉํ•˜๋Š” ๊ฒƒ์ด ์œ ๋งํ•˜๋‹ค๊ณ  ์ƒ๊ฐํ•œ๋‹ค.
To optimize the training process, we maintain a constant learning rate of 3e-5, and adopt a strategic approach to gradually increase the batch size from 4M tokens whenever the model's loss plateaued. This incremental adjustment of the batch size, alongside maintaining all other parameters in alignment with the established Yi-6B base model configuration, was instrumental in navigating the challenges of training at scale.
ํ•™์Šต ํ”„๋กœ์„ธ์Šค๋ฅผ ์ตœ์ ํ™”ํ•˜๊ธฐ ์œ„ํ•ด 3e-5์˜ ์ผ์ •ํ•œ ํ•™์Šต๋ฅ ์„ ์œ ์ง€ํ•˜๊ณ  ๋ชจ๋ธ์˜ ์†์‹ค์ด ์ •์ฒด๋  ๋•Œ๋งˆ๋‹ค 4M ํ† ํฐ์—์„œ ๋ฐฐ์น˜ ํฌ๊ธฐ๋ฅผ ์ ์ง„์ ์œผ๋กœ ์ฆ๊ฐ€์‹œํ‚ค๋Š” ์ „๋žต์  ์ ‘๊ทผ๋ฒ•์„ ์ฑ„ํƒํ•œ๋‹ค. ๋ฐฐ์น˜ ํฌ๊ธฐ์˜ ์ด๋Ÿฌํ•œ ์ ์ง„์ ์ธ ์กฐ์ •์€ ํ™•๋ฆฝ๋œ Yi-6B ๊ธฐ๋ณธ ๋ชจ๋ธ ๊ตฌ์„ฑ๊ณผ ์ •๋ ฌํ•˜์—ฌ ๋‹ค๋ฅธ ๋ชจ๋“  ๋งค๊ฐœ๋ณ€์ˆ˜๋ฅผ ์œ ์ง€ํ•˜๋Š” ๊ฒƒ๊ณผ ํ•จ๊ป˜ ๊ทœ๋ชจ์—์„œ ํ›ˆ๋ จ์˜ ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•˜๋Š” ๋ฐ ์ค‘์š”ํ•œ ์—ญํ• ์„ ํ–ˆ๋‹ค.
than only storing information redundantly in its parameters. Future work could strengthen such paths of traversal, ultimately leading to more parameter-efficient and controllable models. Conversely, a lack of evidence would indicate more fundamental limitations of the Transformer architecture or training. It would also have critical implications for model editing: if complex facts are recalled instead of inferred, editing only base facts will never be enough since the changes cannot propagate (Onoe et al., 2023; Zhong et al., 2023; Cohen et al., 2023).
์ •๋ณด๋งŒ ๋งค๊ฐœ ๋ณ€์ˆ˜์— ์ค‘๋ณต์œผ๋กœ ์ €์žฅํ•˜๋Š” ๊ฒƒ๋ณด๋‹ค์š”. ํ–ฅํ›„ ์ž‘์—…์€ ์ด๋Ÿฌํ•œ ํšก๋‹จ ๊ฒฝ๋กœ๋ฅผ ๊ฐ•ํ™”ํ•˜์—ฌ ๊ถ๊ทน์ ์œผ๋กœ ๋” ๋งค๊ฐœ๋ณ€์ˆ˜ ํšจ์œจ์ ์ด๊ณ  ์ œ์–ด ๊ฐ€๋Šฅํ•œ ๋ชจ๋ธ๋กœ ์ด์–ด์งˆ ์ˆ˜ ์žˆ๋‹ค. ๋ฐ˜๋Œ€๋กœ, ์ฆ๊ฑฐ์˜ ๋ถ€์กฑ์€ ํŠธ๋žœ์Šคํฌ๋จธ ์•„ํ‚คํ…์ฒ˜ ๋˜๋Š” ํ›ˆ๋ จ์˜ ๋ณด๋‹ค ๊ทผ๋ณธ์ ์ธ ํ•œ๊ณ„๋ฅผ ๋‚˜ํƒ€๋‚ผ ๊ฒƒ์ด๋‹ค. ๋˜ํ•œ ๋ชจ๋ธ ํŽธ์ง‘์— ์ค‘์š”ํ•œ ์˜๋ฏธ๋ฅผ ๊ฐ€์งˆ ๊ฒƒ์ด๋‹ค: ์ถ”๋ก  ๋Œ€์‹  ๋ณต์žกํ•œ ์‚ฌ์‹ค์ด ๋ฆฌ์ฝœ๋˜๋ฉด ๋ณ€๊ฒฝ ์‚ฌํ•ญ์ด ์ „ํŒŒ๋  ์ˆ˜ ์—†๊ธฐ ๋•Œ๋ฌธ์— ๊ธฐ๋ณธ ์‚ฌ์‹ค๋งŒ ํŽธ์ง‘ํ•˜๋Š” ๊ฒƒ์œผ๋กœ๋Š” ์ถฉ๋ถ„ํ•˜์ง€ ์•Š์„ ๊ฒƒ์ด๋‹ค(Onoe et al., 2023; Zhong et al., 2023; Cohen et al., 2023).
Little is publicly known about the inner workings of today's most popular large language models, such as GPT-4, Claude 2, or Gemini. The GPT-4 technical report states it "contains no [...] details about the architecture (including model size), hardware, training compute, dataset construction, training method, or similar" (OpenAI et al., 2023). Similarly, the PaLM-2 paper states that "details of [the] model size and architecture are withheld from external publication" (Anil et al., 2023). This secrecy is often ascribed to "the competitive landscape" (because these models are expensive to train) and the "safety implications of large-scale models" (OpenAI et al., 2023) (because it is easier to attack models when more information is available). Nevertheless, while these models' weights and internal details are not publicly accessible, the models themselves are exposed via APIs.
GPT-4, Claude 2 ๋˜๋Š” Gemini์™€ ๊ฐ™์€ ์˜ค๋Š˜๋‚  ๊ฐ€์žฅ ์ธ๊ธฐ ์žˆ๋Š” ๋Œ€ํ˜• ์–ธ์–ด ๋ชจ๋ธ์˜ ๋‚ด๋ถ€ ์ž‘๋™์— ๋Œ€ํ•ด์„œ๋Š” ๊ณต๊ฐœ์ ์œผ๋กœ ์•Œ๋ ค์ ธ ์žˆ๋Š” ๋ฐ”๊ฐ€ ๊ฑฐ์˜ ์—†๋‹ค. GPT-4 ๊ธฐ์ˆ  ๋ณด๊ณ ์„œ๋Š” "์•„ํ‚คํ…์ฒ˜(๋ชจ๋ธ ํฌ๊ธฐ ํฌํ•จ), ํ•˜๋“œ์›จ์–ด, ํŠธ๋ ˆ์ด๋‹ ์ปดํ“จํŠธ, ๋ฐ์ดํ„ฐ์„ธํŠธ ๊ตฌ์„ฑ, ํŠธ๋ ˆ์ด๋‹ ๋ฐฉ๋ฒ•, ๋˜๋Š” ์ด์™€ ์œ ์‚ฌํ•œ ๊ฒƒ์— ๋Œ€ํ•œ ์–ด๋– ํ•œ [...] ์„ธ๋ถ€์‚ฌํ•ญ๋„ ํฌํ•จํ•˜์ง€ ์•Š๋Š”๋‹ค"(OpenAI ๋“ฑ, 2023). ์œ ์‚ฌํ•˜๊ฒŒ, PaLM-2 ๋…ผ๋ฌธ์€ "[the] ๋ชจ๋ธ ํฌ๊ธฐ ๋ฐ ์•„ํ‚คํ…์ฒ˜์˜ ์„ธ๋ถ€์‚ฌํ•ญ๋“ค์€ ์™ธ๋ถ€ ์ถœํŒ์œผ๋กœ๋ถ€ํ„ฐ ๋ณด๋ฅ˜๋œ๋‹ค"(Anil et al., 2023). ์ด๋Ÿฌํ•œ ๋น„๋ฐ€์„ฑ์€ ์ข…์ข… "๊ฒฝ์Ÿ ๊ตฌ๋„"(์ด๋Ÿฌํ•œ ๋ชจ๋ธ์€ ํ›ˆ๋ จํ•˜๋Š” ๋ฐ ๋น„์šฉ์ด ๋งŽ์ด ๋“ค๊ธฐ ๋•Œ๋ฌธ)์™€ "๋Œ€๊ทœ๋ชจ ๋ชจ๋ธ์˜ ์•ˆ์ „ ์˜ํ–ฅ"(OpenAI ๋“ฑ, 2023)์— ๊ธฐ์ธํ•œ๋‹ค(๋” ๋งŽ์€ ์ •๋ณด๊ฐ€ ์ด์šฉ ๊ฐ€๋Šฅํ•  ๋•Œ ๋ชจ๋ธ์„ ๊ณต๊ฒฉํ•˜๋Š” ๊ฒƒ์ด ๋” ์‰ฝ๊ธฐ ๋•Œ๋ฌธ์ด๋‹ค). ๊ทธ๋Ÿผ์—๋„ ๋ถˆ๊ตฌํ•˜๊ณ  ์ด๋Ÿฌํ•œ ๋ชจ๋ธ์˜ ๊ฐ€์ค‘์น˜์™€ ๋‚ด๋ถ€ ์„ธ๋ถ€ ์ •๋ณด๋Š” ๊ณต๊ฐœ์ ์œผ๋กœ ์•ก์„ธ์Šคํ•  ์ˆ˜ ์—†์ง€๋งŒ ๋ชจ๋ธ ์ž์ฒด๋Š” API๋ฅผ ํ†ตํ•ด ๋…ธ์ถœ๋œ๋‹ค.
README.md exists but content is empty. Use the Edit dataset card button to edit it.
Downloads last month
39
Edit dataset card