[2023/09/25 ~ 10/01] ์ด๋ฒ ์ฃผ์ ์ฃผ์ ML ๋
ผ๋ฌธ (Top ML Papers of the Week)ย
3P by ninebow 10์๊ฐ์ | favorite | ๋๊ธ๊ณผ ํ ๋ก
๊ฐ์
DAIR.AI์์ ๋งค์ฃผ ๊ณต๊ฐํ๋ ML ๋
ผ๋ฌธ๋ค์ ๋ํ ๊ธ์ ์๋ ๋ฒ์ญํด๋ณด์์ต๋๋ค.
์ด๋ฒ ์ฃผ์ ๋
ผ๋ฌธ๋ค์ ๋๋ถ๋ถ LLM(Large Language Models)์ ์ด์ ์ ๋ง์ถ ๊ฒ์ผ๋ก ๋ณด์
๋๋ค. ๊ทธ ์ค์์๋ ์ฌ๋ฌ ํ๊ฒฝ์์์ LLM ํ๋ก์ธ์ค ํจ์จ์ฑ ์๊ณ ๋ฆฌ์ฆ ๊ฐ์ , LLM์ Graph Neural Prompting, ๋
ผ๋ฆฌ์ ์ฌ๊ณ ๊ณผ์ ์ ์ ์ฉ ๋ฑ ๋ค์ํ ์ฃผ์ ๋ค์ ๋ค๋ฃจ๊ณ ์๋ค์.
์ด๋ฒ ์ฃผ์ ์ ํ๋ ๋
ผ๋ฌธ๋ค ์ค์๋ 'Boolformer'์ 'Vision Transformers Need R1egisters' ๊ฐ์ ๋
ผ๋ฌธ๋ค์ ๋ค๋ฅธ AI ๋ถ์ผ์ ์ตํฉํ์ฌ ์ฐ๊ตฌ๊ฐ ์งํ๋๋ ์ถ์ธ๋ ๋ณผ ์ ์์ต๋๋ค.
์ด๋ ๋ฏ AI ๊ธฐ์ ์ ๋ฐ์ ์ ๊ฐ ๋ถ์ผ๋ฅผ ๊ฐ๋ณ์ ์ผ๋ก ๋ฐ๊ตดํ๋ ๊ฒ๋ฟ๋ง ์๋๋ผ ์ฌ๋ฌ ๋ถ์ผ๋ฅผ ์ตํฉํ์ฌ ์๋ก์ด ์ ๊ทผ๋ฒ๊ณผ ํด๊ฒฐ์ฑ
์ ๋ชจ์ํ๋ ์ค์ํ ์ผํ์์ ์ ์ ์์ต๋๋ค.
๋ฐ์ ์ ์ ์ฃผ / The Reversal Curse
๋
ผ๋ฌธ ์๊ฐ
'a๋ b'๋ผ๋ ํ์์ ๋ฌธ์ฅ์ ๋ํด ํ์ต๋ ์ธ๊ณต์ ๊ฒฝ๋ง์ ๊ทธ ๋ฐ๋ ๋ฐฉํฅ์ธ 'b๋ a'๋ก ์๋ ์ผ๋ฐํ๋์ง ์๋๋ค๋ ์ฌ์ค, ์ฆ ๋ฐ์ ์ ์ฃผ๋ฅผ ๋ฐ๊ฒฌํ๊ณ , ๊ฐ์์ ๋ฌธ์ฅ์ ๋ํ ์ธ๊ณต์ ๊ฒฝ๋ง์ ๋ฏธ์ธ ์กฐ์ ํ๊ณ ๋ชจ๋ธ ํฌ๊ธฐ์ ๋ชจ๋ธ๊ตฐ ์ ๋ฐ์ ๊ฑธ์ณ ๊ทธ ํจ๊ณผ๋ฅผ ์
์ฆํฉ๋๋ค. #llm-reasoning
Finds that llms trained on sentences of the form โa is bโ will not automatically generalize to the reverse direction โb is aโ, i.e., the reversal curse; shows the effect through finetuning llms on fictitious statements and demonstrating its robustness across model sizes and model families.
๋
ผ๋ฌธ ๋งํฌ
https://owainevans.github.io/reversal_curse.pdf
๋ ์ฝ์ด๋ณด๊ธฐ
ํ์ด๋ฐ์ด์
๋ชจ๋ธ์ ํจ๊ณผ์ ์ธ ์ฅ๊ธฐ ์ปจํ
์คํธ ํ์ฅ / Effective Long-Context Scaling of Foundation Models
๋
ผ๋ฌธ ์๊ฐ
๊ธด ์ปจํ
์คํธ ์์
๋ชจ์์์ ์ด๋ฏธ gpt-3.5-turbo-16k์ ์ ์ฒด ์ฑ๋ฅ์ ๋ฅ๊ฐํ๋ 70b ๋ณํ์ ์ ์ํฉ๋๋ค. ์ฌ๊ธฐ์๋ ์ฌ๋์ด ์ฃผ์์ด ๋ฌ๋ฆฐ ๊ธด ๋ช
๋ น์ด ๋ฐ์ดํฐ๊ฐ ํ์ํ์ง ์์ ๋น์ฉ ํจ์จ์ ์ธ ๋ช
๋ น์ด ํ๋ ์ ์ฐจ๊ฐ ํฌํจ๋ฉ๋๋ค. #1b-context-window #100k-context-window
Propose a 70b variant that can already surpass gpt-3.5-turbo-16kโs overall performance on a suite of long-context tasks. this involves a cost-effective instruction tuning procedure that does not require human-annotated long instruction data.
๋
ผ๋ฌธ ์ด๋ก
์ต๋ 32,768๊ฐ ํ ํฐ์ ํจ๊ณผ์ ์ธ ์ปจํ
์คํธ ์ฐฝ์ ์ง์ํ๋ ์ผ๋ จ์ ๊ธด ์ปจํ
์คํธ LLM์ ์๊ฐํฉ๋๋ค. ๋น์ฌ์ ๋ชจ๋ธ ์๋ฆฌ์ฆ๋ ๋ ๊ธด ํ์ต ์ํ์ค์ ๊ธด ํ
์คํธ๊ฐ ์
์ํ๋ง๋ ๋ฐ์ดํฐ์
์ ์ฌ์ฉํ์ฌ Llama 2์์ ์ง์์ ์ธ ์ฌ์ ํ์ต์ ํตํด ๊ตฌ์ถ๋ฉ๋๋ค. ์ธ์ด ๋ชจ๋ธ๋ง, ํฉ์ฑ ๋ฌธ๋งฅ ํ๋ก๋น ์์
๋ฐ ๋ค์ํ ์ฐ๊ตฌ ๋ฒค์น๋งํฌ์ ๋ํ ๊ด๋ฒ์ํ ํ๊ฐ๋ฅผ ์ํํฉ๋๋ค. ์ฐ๊ตฌ ๋ฒค์น๋งํฌ์์ ์ฐ๋ฆฌ ๋ชจ๋ธ์ ๋๋ถ๋ถ์ ์ผ๋ฐ ์์
์์ ์ผ๊ด๋๊ฒ ๊ฐ์ ๋์์ผ๋ฉฐ, ๊ธด ์ปจํ
์คํธ ์์
์์๋ Llama 2์ ๋นํด ์๋นํ ๊ฐ์ ์ด ์ด๋ฃจ์ด์ก์ต๋๋ค. ํนํ, ์ฌ๋์ด ์ฃผ์์ด ๋ฌ๋ฆฐ ๊ธด ๋ช
๋ น์ด ๋ฐ์ดํฐ๋ฅผ ํ์๋ก ํ์ง ์๋ ๋น์ฉ ํจ์จ์ ์ธ ๋ช
๋ น์ด ํ๋ ์ ์ฐจ๋ฅผ ํตํด 70B ๋ณํ์ ์ด๋ฏธ ๊ธด ์ปจํ
์คํธ ์์
์์ gpt-3.5-turbo-16k์ ์ ์ฒด ์ฑ๋ฅ์ ๋ฅ๊ฐํ ์ ์์ต๋๋ค. ์ด๋ฌํ ๊ฒฐ๊ณผ์ ํจ๊ป, ์ ํฌ๋ ์ด ๋ฐฉ๋ฒ์ ๊ฐ๋ณ ๊ตฌ์ฑ ์์์ ๋ํ ์ฌ์ธต์ ์ธ ๋ถ์์ ์ ๊ณตํฉ๋๋ค. Llama์ ์์น ์ธ์ฝ๋ฉ์ ๋ํด ์์ธํ ์ดํด๋ณด๊ณ ๊ธด ์ข
์์ฑ์ ๋ชจ๋ธ๋งํ ๋์ ํ๊ณ์ ๋ํด ๋
ผ์ํฉ๋๋ค. ๋ํ ๋ฐ์ดํฐ ์กฐํฉ๊ณผ ์ํ์ค ๊ธธ์ด์ ํ์ต ์ปค๋ฆฌํ๋ผ ๋ฑ ์ฌ์ ํ์ต ๊ณผ์ ์์ ๋ค์ํ ์ค๊ณ ์ ํ์ด ๋ฏธ์น๋ ์ํฅ์ ์ดํด๋ด
๋๋ค. ์ ๊ฑฐ ์คํ์ ํตํด ์ฌ์ ํ์ต ๋ฐ์ดํฐ์
์ ๊ธด ํ
์คํธ๊ฐ ๋ง๋ค๊ณ ํด์ ๊ฐ๋ ฅํ ์ฑ๋ฅ์ ๋ฌ์ฑํ ์ ์๋ ๊ฒ์ ์๋๋ฉฐ, ๊ธด ์ํ์ค๋ก ์ฒ์๋ถํฐ ์ฌ์ ํ์ต์ ํ๋ ๊ฒ๋ณด๋ค ๊ธด ์ปจํ
์คํธ ์ฐ์ ์ฌ์ ํ์ต์ด ๋ ํจ์จ์ ์ด๊ณ ๋น์ทํ ํจ๊ณผ๋ฅผ ๋ธ๋ค๋ ์ฌ์ค์ ๊ฒฝํ์ ์ผ๋ก ๊ฒ์ฆํฉ๋๋ค.
We present a series of long-context LLMs that support effective context windows of up to 32,768 tokens. Our model series are built through continual pretraining from Llama 2 with longer training sequences and on a dataset where long texts are upsampled. We perform extensive evaluation on language modeling, synthetic context probing tasks, and a wide range of research benchmarks. On research benchmarks, our models achieve consistent improvements on most regular tasks and significant improvements on long-context tasks over Llama 2. Notably, with a cost-effective instruction tuning procedure that does not require human-annotated long instruction data, the 70B variant can already surpass gpt-3.5-turbo-16k's overall performance on a suite of long-context tasks. Alongside these results, we provide an in-depth analysis on the individual components of our method. We delve into Llama's position encodings and discuss its limitation in modeling long dependencies. We also examine the impact of various design choices in the pretraining process, including the data mix and the training curriculum of sequence lengths -- our ablation experiments suggest that having abundant long texts in the pretrain dataset is not the key to achieving strong performance, and we empirically verify that long context continual pretraining is more efficient and similarly effective compared to pretraining from scratch with long sequences.
๋
ผ๋ฌธ ๋งํฌ
๋ ์ฝ์ด๋ณด๊ธฐ
๋๊ท๋ชจ ์ธ์ด ๋ชจ๋ธ์ ์ฌ์ฉํ ๊ทธ๋ํ ์ ๊ฒฝ๋ง ํ๋กฌํํธ / Graph Neural Prompting with Large Language Models
๋
ผ๋ฌธ ์๊ฐ
์ง์ ๊ทธ๋ํ(Knowledge Graph)์์ ์ ์ฉํ ์ง์์ ํ์ตํ ์ ์๋๋ก ์ฌ์ ํ์ต๋ ๋จธ์ ๋ฌ๋์ ์ง์ํ๋ ํ๋ฌ๊ทธ ์ค ํ๋ ์ด ๋ฐฉ์์ ์ ์ํ๋ฉฐ, ํ์ค ๊ทธ๋ํ ์ ๊ฒฝ๋ง ์ธ์ฝ๋, ํฌ๋ก์ค ๋ชจ๋ฌ๋ฆฌํฐ ํ๋ง ๋ชจ๋, ๋๋ฉ์ธ ํ๋ก์ ํฐ, ์๊ธฐ ๊ฐ๋
๋งํฌ ์์ธก ๋ชฉํ ๋ฑ ๋ค์ํ ์ค๊ณ๊ฐ ํฌํจ๋์ด ์์ต๋๋ค. #knowledge-graph
Proposes a plug-and-play method to assist pre-trained llms in learning beneficial knowledge from knowledge graphs (kgs); includes various designs, including a standard graph neural network encoder, a cross-modality pooling module, a domain projector, and a self-supervised link prediction ive.
๋
ผ๋ฌธ ์ด๋ก
๋๊ท๋ชจ ์ธ์ด ๋ชจ๋ธ(LLM)์ ๋ค์ํ ์ธ์ด ๋ชจ๋ธ๋ง ์์
์์ ๋ฐ์ด๋ ์ฑ๋ฅ์ผ๋ก ๋๋ผ์ด ์ผ๋ฐํ ๋ฅ๋ ฅ์ ๋ณด์ฌ ์์ต๋๋ค. ๊ทธ๋ฌ๋ ์ฌ์ ํ ๊ทผ๊ฑฐ ์ง์์ ์ ํํ๊ฒ ํฌ์ฐฉํ๊ณ ๋ฐํํ๋ ๋ฐ๋ ๋ด์ฌ์ ์ธ ํ๊ณ๊ฐ ์์ต๋๋ค. ๊ธฐ์กด ์ฐ๊ตฌ์์๋ ๊ณต๋ ํ์ต ๋ฐ ๋ง์ถคํ ๋ชจ๋ธ ์ํคํ
์ฒ๋ฅผ ํตํด ์ธ์ด ๋ชจ๋ธ๋ง์ ํฅ์์ํค๊ธฐ ์ํด ์ง์ ๊ทธ๋ํ๋ฅผ ํ์ฉํ๋ ๋ฐฉ๋ฒ์ ๋ชจ์ํ์ง๋ง, ์ด๋ฅผ LLM์ ์ ์ฉํ๋ ๊ฒ์ ๋ง์ ์์ ๋งค๊ฐ๋ณ์์ ๋์ ๊ณ์ฐ ๋น์ฉ์ผ๋ก ์ธํด ์ด๋ ค์์ด ์์ต๋๋ค. ๋ํ ์ฌ์ ํ์ต๋ LLM์ ํ์ฉํ๊ณ ๋ง์ถคํ ๋ชจ๋ธ์ ์ฒ์๋ถํฐ ํ์ตํ๋ ๊ฒ์ ํผํ๋ ๋ฐฉ๋ฒ๋ ์ฌ์ ํ ๋ฏธํด๊ฒฐ ๊ณผ์ ๋ก ๋จ์ ์์ต๋๋ค. ์ด ์ฐ๊ตฌ์์๋ ์ฌ์ ํ์ต๋ LLM์ด KG๋ก๋ถํฐ ์ ์ฉํ ์ง์์ ํ์ตํ ์ ์๋๋ก ์ง์ํ๋ ์๋ก์ด ํ๋ฌ๊ทธ ์ค ํ๋ ์ด ๋ฐฉ๋ฒ์ธ ๊ทธ๋ํ ์ ๊ฒฝ ํ๋กฌํํธ(GNP)๋ฅผ ์ ์ํฉ๋๋ค. GNP๋ ํ์ค ๊ทธ๋ํ ์ ๊ฒฝ๋ง ์ธ์ฝ๋, ํฌ๋ก์ค ๋ชจ๋ฌ๋ฆฌํฐ ํ๋ง ๋ชจ๋, ๋๋ฉ์ธ ํ๋ก์ ํฐ, ์๊ฐ ๊ฐ๋
๋งํฌ ์์ธก ๋ชฉํ ๋ฑ ๋ค์ํ ์ค๊ณ๋ฅผ ํฌํจํฉ๋๋ค. ์ฌ๋ฌ ๋ฐ์ดํฐ์
์ ๋ํ ๊ด๋ฒ์ํ ์คํ์ ํตํด ๋ค์ํ LLM ํฌ๊ธฐ์ ์ค์ ์ ๊ฑธ์ณ ์์ ๋ฐ ์์ํ ์ถ๋ก ์์
๋ชจ๋์์ GNP์ ์ฐ์์ฑ์ด ์
์ฆ๋์์ต๋๋ค.
Large Language Models (LLMs) have shown remarkable generalization capability with exceptional performance in various language modeling tasks. However, they still exhibit inherent limitations in precisely capturing and returning grounded knowledge. While existing work has explored utilizing knowledge graphs to enhance language modeling via joint training and customized model architectures, applying this to LLMs is problematic owing to their large number of parameters and high computational cost. In addition, how to leverage the pre-trained LLMs and avoid training a customized model from scratch remains an open question. In this work, we propose Graph Neural Prompting (GNP), a novel plug-and-play method to assist pre-trained LLMs in learning beneficial knowledge from KGs. GNP encompasses various designs, including a standard graph neural network encoder, a cross-modality pooling module, a domain projector, and a self-supervised link prediction ive. Extensive experiments on multiple datasets demonstrate the superiority of GNP on both commonsense and biomedical reasoning tasks across different LLM sizes and settings.
๋
ผ๋ฌธ ๋งํฌ
๋ ์ฝ์ด๋ณด๊ธฐ
๋น์ ํธ๋์คํฌ๋จธ์๋ ๋ ์ง์คํฐ๊ฐ ํ์ํฉ๋๋ค / Vision Transformers Need R1egisters
๋
ผ๋ฌธ ์๊ฐ
๋ด๋ถ ๊ณ์ฐ์ ์ํด ์ฉ๋๊ฐ ๋ณ๊ฒฝ๋ ๋น์ ํธ๋์คํฌ๋จธ ๋คํธ์ํฌ์ ํผ์ฒ ๋งต์์ ์ํฐํฉํธ๋ฅผ ์๋ณํ๊ณ , ํด๋น ์ญํ ์ ์ํํ๊ธฐ ์ํด ์
๋ ฅ ์ํ์ค์ ์ถ๊ฐ ํ ํฐ์ ์ ๊ณตํ๋ ์๋ฃจ์
์ ์ ์ํฉ๋๋ค. ์ด ์๋ฃจ์
์ ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ๊ณ ํผ์ฒ ๋ฐ ์ฃผ์ ๋งต์ ๋ ๋งค๋๋ฝ๊ฒ ๋ง๋ค๋ฉฐ ๋ฐ์ง๋ ์๊ฐ ์์ธก ์์
์์ ์๋ก์ด ์ต์ฒจ๋จ ๊ฒฐ๊ณผ๋ฅผ ์ค์ ํฉ๋๋ค. #vision-transformer #transformer
Identifies artifacts in feature maps of vision transformer networks that are repurposed for internal computations; this work proposes a solution to provide additional tokens to the input sequence to fill that role; the solution fixes the problem, leads to smoother feature and attention maps, and sets new state-of-the-art results on dense visual prediction tasks.
๋
ผ๋ฌธ ์ด๋ก
ํธ๋์คํฌ๋จธ๋ ์ต๊ทผ ์๊ฐ์ ํํ์ ํ์ตํ๊ธฐ ์ํ ๊ฐ๋ ฅํ ๋๊ตฌ๋ก ๋ถ์ํ์ต๋๋ค. ์ด ๋
ผ๋ฌธ์์๋ ์ง๋ํ ๋ฐ ์๊ฐ ์ง๋ํ ViT ๋คํธ์ํฌ์ ํน์ง ๋งต์์ ์ํฐํฉํธ๋ฅผ ์๋ณํ๊ณ ๊ทธ ํน์ฑ์ ๋ถ์ํฉ๋๋ค. ์ด๋ฌํ ์ํฐํฉํธ๋ ์ฃผ๋ก ์ด๋ฏธ์ง์ ์ ๋ณด๊ฐ ์ ์ ๋ฐฐ๊ฒฝ ์์ญ์์ ์ถ๋ก ์ค์ ๋ํ๋๋ ํ์ด๋
ธ๋ฉ ํ ํฐ์ ํด๋นํ๋ฉฐ, ๋ด๋ถ ๊ณ์ฐ์ ์ํด ์ฉ๋๊ฐ ๋ณ๊ฒฝ๋ฉ๋๋ค. ์ฐ๋ฆฌ๋ ๋น์ ํธ๋์คํฌ๋จธ์ ์
๋ ฅ ์ํ์ค์ ์ถ๊ฐ ํ ํฐ์ ์ ๊ณตํ์ฌ ์ด๋ฌํ ์ญํ ์ ์ํํ๋ ๊ฐ๋จํ๋ฉด์๋ ํจ๊ณผ์ ์ธ ์๋ฃจ์
์ ์ ์ํฉ๋๋ค. ์ด ์๋ฃจ์
์ ์ง๋ ๋ฐ ์์จ ์ง๋ ๋ชจ๋ธ ๋ชจ๋์์ ์ด๋ฌํ ๋ฌธ์ ๋ฅผ ์์ ํ ํด๊ฒฐํ๊ณ , ๊ณ ๋ฐ๋ ์๊ฐ ์์ธก ์์
์์ ์์จ ์ง๋ ์๊ฐ ๋ชจ๋ธ์ ์ํ ์๋ก์ด ์ต์ ๊ธฐ์ ์ ์ค์ ํ๋ฉฐ, ๋ ํฐ ๋ชจ๋ธ์์ ๊ฐ์ฒด ๋ฐ๊ฒฌ ๋ฐฉ๋ฒ์ ๊ฐ๋ฅํ๊ฒ ํ๊ณ , ๊ฐ์ฅ ์ค์ํ ๊ฒ์ ๋ค์ด์คํธ๋ฆผ ์๊ฐ ์ฒ๋ฆฌ๋ฅผ ์ํ ๋ ๋งค๋๋ฌ์ด ํน์ง ๋งต๊ณผ ๊ด์ฌ ๋งต์ผ๋ก ์ด์ด์ง๋ค๋ ๊ฒ์ ๋ณด์ฌ์ค๋๋ค.
Transformers have recently emerged as a powerful tool for learning visual representations. In this paper, we identify and characterize artifacts in feature maps of both supervised and self-supervised ViT networks. The artifacts correspond to high-norm tokens appearing during inference primarily in low-informative background areas of images, that are repurposed for internal computations. We propose a simple yet effective solution based on providing additional tokens to the input sequence of the Vision Transformer to fill that role. We show that this solution fixes that problem entirely for both supervised and self-supervised models, sets a new state of the art for self-supervised visual models on dense visual prediction tasks, enables discovery methods with larger models, and most importantly leads to smoother feature maps and attention maps for downstream visual processing.
๋
ผ๋ฌธ ๋งํฌ
๋ ์ฝ์ด๋ณด๊ธฐ
๋ถํฌ๋จธ: ํธ๋์คํฌ๋จธ๋ฅผ ์ฌ์ฉํ ๋
ผ๋ฆฌ ํจ์์ ๊ธฐํธ์ ํ๊ท / Boolformer: Symbolic Regression of Logic Functions with Transformers
๋
ผ๋ฌธ ์๊ฐ
๋ถ์ธ ํจ์์ ์ข
๋จ ๊ฐ ๊ธฐํธ ํ๊ท๋ฅผ ์ํํ๋๋ก ํ์ต๋ ์ต์ด์ ํธ๋์คํฌ๋จธ ์ํคํ
์ฒ๋ฅผ ์ ๊ณตํ๋ฉฐ, ๋ณต์กํ ํจ์์ ๋ํ ๊ฐ๊ฒฐํ ๊ณต์์ ์์ธกํ๊ณ ์ ์ ์ ์กฐ์ ๋คํธ์ํฌ์ ์ญํ ๋ชจ๋ธ๋ง์ ์ ์ฉํ ์ ์์ต๋๋ค. #transformer
Presents the first transformer architecture trained to perform end-to-end symbolic regression of boolean functions; it can predict compact formulas for complex functions and be applied to modeling the dynamics of gene regulatory networks.
๋
ผ๋ฌธ ์ด๋ก
์ด๋ฒ ์ฐ๊ตฌ์์๋ ๋ถ์ธ ํจ์์ ์ข
๋จ ๊ฐ ๊ธฐํธ ํ๊ท๋ฅผ ์ํํ๋๋ก ํ์ต๋ ์ต์ด์ Transformer ์ํคํ
์ฒ์ธ Boolformer๋ฅผ ์๊ฐํฉ๋๋ค. ๋จผ์ , ๊นจ๋ํ ์ง๋ฆฌ ํ
์ด๋ธ์ด ์ฃผ์ด์ก์ ๋ ํ์ต ์ค์ ๋ณผ ์ ์์๋ ๋ณต์กํ ํจ์์ ๋ํ ๊ฐ๊ฒฐํ ๊ณต์์ ์์ธกํ ์ ์์์ ๋ณด์ฌ์ค๋๋ค. ๊ทธ๋ฐ ๋ค์ ๋ถ์์ ํ๊ณ ์ก์์ด ๋ง์ ๊ด์ธก๊ฐ์ด ์ฃผ์ด์ก์ ๋ ๋๋ต์ ์ธ ์์ ์ฐพ์ ์ ์๋ ๋ฅ๋ ฅ์ ๋ณด์ฌ์ค๋๋ค. ๊ด๋ฒ์ํ ์ค์ ๋ฐ์ด๋๋ฆฌ ๋ถ๋ฅ ๋ฐ์ดํฐ์
์์ Boolformer๋ฅผ ํ๊ฐํ์ฌ ๊ธฐ์กด ๋จธ์ ๋ฌ๋ ๋ฐฉ๋ฒ์ ํด์ ๊ฐ๋ฅํ ๋์์ผ๋ก์์ ์ ์ฌ๋ ฅ์ ์
์ฆํฉ๋๋ค. ๋ง์ง๋ง์ผ๋ก, ์ ์ ์ ์กฐ์ ๋คํธ์ํฌ์ ์ญํ์ ๋ชจ๋ธ๋งํ๋ ๊ด๋ฒ์ํ ์์
์ ์ ์ฉํฉ๋๋ค. ์ต๊ทผ ๋ฒค์น๋งํฌ๋ฅผ ํตํด Boolformer๊ฐ ๋ช ๋ฐฐ์ ์๋ ํฅ์์ผ๋ก ์ต์ฒจ๋จ ์ ์ ์๊ณ ๋ฆฌ์ฆ๊ณผ ๊ฒฝ์ํ ์ ์์์ ๋ณด์ฌ์ค๋๋ค. ์ฝ๋์ ๋ชจ๋ธ์ ๊ณต๊ฐ์ ์ผ๋ก ์ฌ์ฉํ ์ ์์ต๋๋ค.
In this work, we introduce Boolformer, the first Transformer architecture trained to perform end-to-end symbolic regression of Boolean functions. First, we show that it can predict compact formulas for complex functions which were not seen during training, when provided a clean truth table. Then, we demonstrate its ability to find approximate expressions when provided incomplete and noisy observations. We evaluate the Boolformer on a broad set of real-world binary classification datasets, demonstrating its potential as an interpretable alternative to classic machine learning methods. Finally, we apply it to the widespread task of modelling the dynamics of gene regulatory networks. Using a recent benchmark, we show that Boolformer is competitive with state-of-the art genetic algorithms with a speedup of several orders of magnitude. Our code and models are available publicly.
๋
ผ๋ฌธ ๋งํฌ
๋ ์ฝ์ด๋ณด๊ธฐ
๋ํ ๋ฉํฐ๋ชจ๋ฌ ๋ชจ๋ธ์ ์ฌ์ค์ ์ผ๋ก ์ฆ๊ฐ๋ RLHF๋ก ์ ๋ ฌํ๊ธฐ / Aligning Large Multimodal Models with Factually Augmented RLHF
๋
ผ๋ฌธ ์๊ฐ
๋๊ท๋ชจ ๋ฉํฐ๋ชจ๋ฌ ๋ชจ๋ธ์ ์ ๋ ฌํ๊ธฐ ์ํด ์ฌ์ค์ ์ผ๋ก ์ฆ๊ฐ๋ rlhf๋ฅผ ์ ์ฉํฉ๋๋ค. ์ด ์ ๊ทผ ๋ฐฉ์์ rlhf์ ๋ณด์ ํดํน์ ์ํํ๊ณ ํ
์คํธ ์ ์ฉ gpt-4์ 94% ์ฑ๋ฅ ์์ค์ผ๋ก llava ๋ฒค์น ๋ฐ์ดํฐ ์ธํธ์ ์ฑ๋ฅ์ ๊ฐ์ ํฉ๋๋ค. #llm-alignment #multimodal #rlhf
Adapts factually augmented rlhf to aligning large multimodal models; this approach alleviates the reward hacking in rlhf and improves performance on the llava-bench dataset with the 94% performance level of the text-only gpt-4.
๋
ผ๋ฌธ ์ด๋ก
๋๊ท๋ชจ ๋ฉํฐ๋ชจ๋ฌ ๋ชจ๋ธ(LMM)์ ์ฌ๋ฌ ๋ชจ๋ฌ๋ฆฌํฐ์ ๊ฑธ์ณ ๊ตฌ์ถ๋๋ฉฐ ๋ ๋ชจ๋ฌ๋ฆฌํฐ ๊ฐ์ ์ ๋ ฌ์ด ์๋ชป๋๋ฉด ๋ฌธ๋งฅ์ ๋ฉํฐ๋ชจ๋ฌ ์ ๋ณด์ ๊ทผ๊ฑฐํ์ง ์์ ํ
์คํธ ์ถ๋ ฅ์ด ์์ฑ๋๋ "ํ๊ฐ"์ด ๋ฐ์ํ ์ ์์ต๋๋ค. ๋ฉํฐ๋ชจ๋ฌ ์ค์ ๋ ฌ ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ๊ธฐ ์ํด ํ
์คํธ ์์ญ์ ์ธ๊ฐ ํผ๋๋ฐฑ ๊ฐํ ํ์ต(RLHF)์ ์๊ฐ ์ธ์ด ์ ๋ ฌ ์์
์ ์ ์ฉํ์ฌ ์ธ๊ฐ ์ฃผ์๊ฐ์๊ฒ ๋ ๊ฐ์ง ๋ฐ์์ ๋น๊ตํ๊ณ ๋ ํ๊ฐ์ ์ธ ๋ฐ์์ ์ฐพ์๋ด๋๋ก ์์ฒญํ๊ณ , ์๋ฎฌ๋ ์ด์
๋ ์ธ๊ฐ ๋ณด์์ ์ต๋ํํ๋๋ก ์๊ฐ ์ธ์ด ๋ชจ๋ธ์ ํ์ตํฉ๋๋ค. ์ด๋ฏธ์ง ์บก์
๋ฐ ์ฌ์ค ๊ธฐ๋ฐ ๊ฐ๊ด์ ์ต์
๊ณผ ๊ฐ์ ์ถ๊ฐ ์ฌ์ค ์ ๋ณด๋ก ๋ณด์ ๋ชจ๋ธ์ ๋ณด๊ฐํ๋ ์ฌ์ค ์ฆ๊ฐ RLHF๋ผ๋ ์๋ก์ด ์ ๋ ฌ ์๊ณ ๋ฆฌ์ฆ์ ์ ์ํ์ฌ RLHF์ ๋ณด์ ํดํน ํ์์ ์ํํ๊ณ ์ฑ๋ฅ์ ๋์ฑ ํฅ์์ํต๋๋ค. ๋ํ, ์ด์ ์ ์ฌ์ฉ ๊ฐ๋ฅํ ์ฌ๋์ด ์์ฑํ ์ด๋ฏธ์ง-ํ
์คํธ ์์ผ๋ก GPT-4์์ ์์ฑ๋ ํ์ต ๋ฐ์ดํฐ(๋น์ ๋ช
๋ น ํ๋์ฉ)๋ฅผ ๊ฐํํ์ฌ ๋ชจ๋ธ์ ์ ๋ฐ์ ์ธ ๊ธฐ๋ฅ์ ๊ฐ์ ํ์ต๋๋ค. ์ค์ ์๋๋ฆฌ์ค์์ ์ ์๋ ์ ๊ทผ ๋ฐฉ์์ ํ๊ฐํ๊ธฐ ์ํด ํ๊ฐ์ ๋ํ ๋ถ์ด์ต์ ํน๋ณํ ์ด์ ์ ๋ง์ถ ์๋ก์ด ํ๊ฐ ๋ฒค์น๋งํฌ MMHAL-BENCH๋ฅผ ๊ฐ๋ฐํ์ต๋๋ค. RLHF๋ก ํ์ต๋ ์ต์ด์ LMM์ผ๋ก์, ์ฐ๋ฆฌ์ ์ ๊ทผ ๋ฐฉ์์ ํ
์คํธ ์ ์ฉ GPT-4์ 94% ์ฑ๋ฅ ์์ค(์ด์ ์ต์์ ๋ฐฉ๋ฒ์ 87% ์์ค๋ง ๋ฌ์ฑํ ์ ์์)์ผ๋ก LLaVA-Bench ๋ฐ์ดํฐ์
์์ ๊ด๋ชฉํ ๋งํ ๊ฐ์ ์ ๋ฌ์ฑํ์ผ๋ฉฐ, ๋ค๋ฅธ ๊ธฐ์ค์ ๋ณด๋ค MMHAL-BENCH์์ 60% ํฅ์๋ ์ฑ๋ฅ์ ๋ณด์์ต๋๋ค. ์ฝ๋, ๋ชจ๋ธ, ๋ฐ์ดํฐ๋ https://llava-rlhf.github.io ์์ ์คํ์์ค์
๋๋ค.
Large Multimodal Models (LMM) are built across modalities and the misalignment between two modalities can result in "hallucination", generating textual outputs that are not grounded by the multimodal information in context. To address the multimodal misalignment issue, we adapt the Reinforcement Learning from Human Feedback (RLHF) from the text domain to the task of vision-language alignment, where human annotators are asked to compare two responses and pinpoint the more hallucinated one, and the vision-language model is trained to maximize the simulated human rewards. We propose a new alignment algorithm called Factually Augmented RLHF that augments the reward model with additional factual information such as image captions and ground-truth multi-choice options, which alleviates the reward hacking phenomenon in RLHF and further improves the performance. We also enhance the GPT-4-generated training data (for vision instruction tuning) with previously available human-written image-text pairs to improve the general capabilities of our model. To evaluate the proposed approach in real-world scenarios, we develop a new evaluation benchmark MMHAL-BENCH with a special focus on penalizing hallucinations. As the first LMM trained with RLHF, our approach achieves remarkable improvement on the LLaVA-Bench dataset with the 94% performance level of the text-only GPT-4 (while previous best methods can only achieve the 87% level), and an improvement by 60% on MMHAL-BENCH over other baselines. We opensource our code, model, data at https://llava-rlhf.github.io.
๋
ผ๋ฌธ ๋งํฌ
๋ ์ฝ์ด๋ณด๊ธฐ
๋๊ท๋ชจ ์ธ์ด ๋ชจ๋ธ ์ ๋ ฌ: ์ค๋ฌธ ์กฐ์ฌ / Large Language Model Alignment: A Survey
๋
ผ๋ฌธ ์๊ฐ
์ธ์ ์ ๋ ฌ, ๋ด์ ์ ๋ ฌ, ๊ธฐ๊ณ๋ก ์ ํด์ ๊ฐ๋ฅ์ฑ, ์ ๋ ฌ๋ LLM์ ๋ํ ๊ณต๊ฒฉ, ์ ๋ ฌ ํ๊ฐ, ํฅํ ๋ฐฉํฅ ๋ฐ ํ ๋ก ์ ์ฃผ์ ๋ก ํ๋ LLM ์ ๋ ฌ์ ๋ํ ํฌ๊ด์ ์ธ ์กฐ์ฌ ๋ณด๊ณ ์์
๋๋ค. #survey-paper #llm-alignment
A comprehensive survey paper on llm alignment; topics include outer alignment, inner alignment, mechanistic interpretability, attacks on aligned llms, alignment evaluation, future directions, and discussions.
๋
ผ๋ฌธ ์ด๋ก
์ต๊ทผ ๋ช ๋
๋์ ๋๊ท๋ชจ ์ธ์ด ๋ชจ๋ธ(LLM)์ด ๊ด๋ชฉํ ๋งํ ๋ฐ์ ์ ์ด๋ฃจ์์ต๋๋ค. ์ด๋ฌํ ๋ฐ์ ์ ํฐ ์ฃผ๋ชฉ์ ๋ฐ์ผ๋ฉด์๋ ๋์์ ๋ค์ํ ์ฐ๋ ค๋ฅผ ๋ถ๋ฌ์ผ์ผํค๊ณ ์์ต๋๋ค. ์ด๋ฌํ ๋ชจ๋ธ์ ์ ์ฌ๋ ฅ์ ๋ถ์ธํ ์ ์์ ์ ๋๋ก ๋ฐฉ๋ํ์ง๋ง, ๋ถ์ ํํ๊ฑฐ๋ ์คํด์ ์์ง๊ฐ ์๊ฑฐ๋ ์ฌ์ง์ด ํด๋ก์ด ํ
์คํธ๋ฅผ ์์ฑํ ์๋ ์์ต๋๋ค. ๋ฐ๋ผ์ ์ด๋ฌํ ๋ชจ๋ธ์ด ์ธ๊ฐ์ ๊ฐ์น์ ๋ถํฉํ๋ ํ๋์ ๋ณด์ด๋๋ก ํ๊ธฐ ์ํด ์กฐ์ ๊ธฐ์ ์ ์ฌ์ฉํ๋ ๊ฒ์ด ๋ฌด์๋ณด๋ค ์ค์ํฉ๋๋ค. ์ด ์ค๋ฌธ์กฐ์ฌ๋ ์ด ๋ถ์ผ์ ๊ธฐ์กด ์ญ๋ ์ฐ๊ตฌ์ ํจ๊ป LLM์ ์ํด ์ค๊ณ๋ ์ ๋ ฌ ๋ฐฉ๋ฒ๋ก ์ ๋ํ ๊ด๋ฒ์ํ ํ์์ ์ ๊ณตํ๊ธฐ ์ํด ๋
ธ๋ ฅํฉ๋๋ค. AI ์ ๋ ฌ์ด๋ผ๋ ๋ ์ฆ๋ฅผ ์ฑํํ์ฌ LLM์ ์ ๋ ฌ์ ์ํ ์ผ๋ฐ์ ์ธ ๋ฐฉ๋ฒ๊ณผ ์๋ก์ด ์ ์์ ์ธ์ ์ ๋ ฌ๊ณผ ๋ด์ ์ ๋ ฌ๋ก ๋ถ๋ฅํฉ๋๋ค. ๋ํ ๋ชจ๋ธ์ ํด์ ๊ฐ๋ฅ์ฑ, ์ ๋์ ๊ณต๊ฒฉ์ ๋ํ ์ ์ฌ์ ์ทจ์ฝ์ฑ ๋ฑ ์ค์ํ ๋ฌธ์ ๋ฅผ ์กฐ์ฌํฉ๋๋ค. LLM ์ ๋ ฌ์ ํ๊ฐํ๊ธฐ ์ํด ๋ค์ํ ๋ฒค์น๋งํฌ์ ํ๊ฐ ๋ฐฉ๋ฒ๋ก ์ ์ ์ํฉ๋๋ค. LLM์ ๋ํ ์ ๋ ฌ ์ฐ๊ตฌ ํํฉ์ ๋ํด ๋
ผ์ํ ํ, ๋ง์ง๋ง์ผ๋ก ๋ฏธ๋๋ฅผ ํฅํ ๋น์ ์ ์ ์ํ๊ณ ์์ผ๋ก์ ์ ๋งํ ์ฐ๊ตฌ ๋ถ์ผ๋ฅผ ๊ณ ๋ คํ์ต๋๋ค. ์ด ์กฐ์ฌ์ ๋ํ ์ฐ๋ฆฌ์ ์ด๋ง์ ๋จ์ํ ์ด ์์ญ์ ๋ํ ์ฐ๊ตฌ ๊ด์ฌ์ ๋ถ๋ฌ์ผ์ผํค๋ ๊ฒ ์ด์์ผ๋ก ํ์ฅ๋ฉ๋๋ค. ๋ํ ์ ๋ฅํ๊ณ ์์ ํ LLM์ ์ํด AI ์ ๋ ฌ ์ฐ๊ตฌ ์ปค๋ฎค๋ํฐ์ LLM์ ๊ธฐ๋ฅ ํ์์ ๋ชฐ๋ํ๋ ์ฐ๊ตฌ์ ๊ฐ์ ๊ฐ๊ทน์ ์ขํ๊ณ ์ ํฉ๋๋ค.
Recent years have witnessed remarkable progress made in large language models (LLMs). Such advancements, while garnering significant attention, have concurrently elicited various concerns. The potential of these models is undeniably vast; however, they may yield texts that are imprecise, misleading, or even detrimental. Consequently, it becomes paramount to employ alignment techniques to ensure these models to exhibit behaviors consistent with human values. This survey endeavors to furnish an extensive exploration of alignment methodologies designed for LLMs, in conjunction with the extant capability research in this domain. Adopting the lens of AI alignment, we categorize the prevailing methods and emergent proposals for the alignment of LLMs into outer and inner alignment. We also probe into salient issues including the models' interpretability, and potential vulnerabilities to adversarial attacks. To assess LLM alignment, we present a wide variety of benchmarks and evaluation methodologies. After discussing the state of alignment research for LLMs, we finally cast a vision toward the future, contemplating the promising avenues of research that lie ahead. Our aspiration for this survey extends beyond merely spurring research interests in this realm. We also envision bridging the gap between the AI alignment research community and the researchers engrossed in the capability exploration of LLMs for both capable and safe LLMs.
๋
ผ๋ฌธ ๋งํฌ
๋ ์ฝ์ด๋ณด๊ธฐ
Qwen ๊ธฐ์ ๋ณด๊ณ ์ / Qwen Technical Report
๋
ผ๋ฌธ ์๊ฐ
์ธ์ด ์์ด์ ํธ ์์ฑ์ ์ํ ๋๊ตฌ ์ฌ์ฉ ๋ฐ ๊ณํ ๊ธฐ๋ฅ๊ณผ ๊ด๋ จ๋ ์์
์์ RLHF์ ๊ฐ์ ์ ๋ณด์ฌ์ฃผ๋ ์ผ๋ จ์ LLM๋ฅผ ์ ์ํฉ๋๋ค. #qwen-vl #rlhf
Proposes a series of llms demonstrating the strength of rlhf on tasks involving tool use and planning capabilities for creating language agents.
๋
ผ๋ฌธ ์ด๋ก
๋๊ท๋ชจ ์ธ์ด ๋ชจ๋ธ(LLM)์ ์ธ๊ณต์ง๋ฅ ๋ถ์ผ์ ํ๋ช
์ ์ผ์ผ์ผ ์ด์ ์๋ ์ธ๊ฐ์ ์ ์ ๋ฌผ๋ก ์ฌ๊ฒจ์ง๋ ์์ฐ์ด ์ฒ๋ฆฌ ์์
์ ๊ฐ๋ฅํ๊ฒ ํ์ต๋๋ค. ์ด๋ฒ ๊ธ์์๋ ๋๊ท๋ชจ ์ธ์ด ๋ชจ๋ธ ์๋ฆฌ์ฆ์ ์ฒซ ๋ฒ์งธ ์ ํ์ธ Qwen์ ์๊ฐํฉ๋๋ค. Qwen์ ๋ค์ํ ๋งค๊ฐ๋ณ์ ์๋ฅผ ๊ฐ์ง ์ฌ๋ฌ ๋ชจ๋ธ์ ํฌ๊ดํ๋ ํฌ๊ด์ ์ธ ์ธ์ด ๋ชจ๋ธ ์๋ฆฌ์ฆ์
๋๋ค. ์ฌ๊ธฐ์๋ ์ฌ์ ํ์ต๋ ๊ธฐ๋ณธ ์ธ์ด ๋ชจ๋ธ์ธ Qwen๊ณผ ํด๋จผ ์ผ๋ผ์ธ๋จผํธ ๊ธฐ์ ๋ก ๋ฏธ์ธ ์กฐ์ ๋ ์ฑํ
๋ชจ๋ธ์ธ Qwen-Chat์ด ํฌํจ๋ฉ๋๋ค. ๊ธฐ๋ณธ ์ธ์ด ๋ชจ๋ธ์ ๋ค์ํ ๋ค์ด์คํธ๋ฆผ ์์
์์ ์ผ๊ด๋๊ฒ ์ฐ์ํ ์ฑ๋ฅ์ ๋ณด์ฌ์ฃผ๋ฉฐ, ํนํ ์ธ๊ฐ ํผ๋๋ฐฑ์ ํตํ ๊ฐํ ํ์ต(RLHF)์ ์ฌ์ฉํ์ฌ ํ์ต๋ ์ฑํ
๋ชจ๋ธ์ ๊ฒฝ์๋ ฅ์ด ๋งค์ฐ ๋์ต๋๋ค. ์ฑํ
๋ชจ๋ธ์ ์๋ด์ ์ ํ๋ฆฌ์ผ์ด์
์ ๋ง๋ค๊ธฐ ์ํ ๊ณ ๊ธ ๋๊ตฌ ์ฌ์ฉ ๋ฐ ๊ณํ ๊ธฐ๋ฅ์ ๊ฐ์ถ๊ณ ์์ด ์ฝ๋ ์ธํฐํ๋ฆฌํฐ ํ์ฉ๊ณผ ๊ฐ์ ๋ณต์กํ ์์
์์ ๋ ํฐ ๊ท๋ชจ์ ๋ชจ๋ธ๊ณผ ๋น๊ตํ์ ๋๋ ์ธ์์ ์ธ ์ฑ๋ฅ์ ๋ณด์ฌ์ค๋๋ค. ๋ํ ๊ธฐ๋ณธ ์ธ์ด ๋ชจ๋ธ์ ๊ธฐ๋ฐ์ผ๋ก ๊ตฌ์ถ๋ ์ฝ๋ฉ ์ ๋ฌธ ๋ชจ๋ธ์ธ Code-Qwen ๋ฐ Code-Qwen-Chat๊ณผ ์ํ ์ ๋ฌธ ๋ชจ๋ธ์ธ Math-Qwen-Chat๋ ๊ฐ๋ฐํ์ต๋๋ค. ์ด ๋ชจ๋ธ๋ค์ ์คํ์์ค ๋ชจ๋ธ์ ๋นํด ํ์ ํ ํฅ์๋ ์ฑ๋ฅ์ ๋ณด์ฌ์ฃผ๋ฉฐ, ๋
์ ๋ชจ๋ธ์ ๋นํด์๋ ์ฝ๊ฐ ๋ค๋จ์ด์ง๋๋ค.
Large language models (LLMs) have revolutionized the field of artificial intelligence, enabling natural language processing tasks that were previously thought to be exclusive to humans. In this work, we introduce Qwen, the first installment of our large language model series. Qwen is a comprehensive language model series that encompasses distinct models with varying parameter counts. It includes Qwen, the base pretrained language models, and Qwen-Chat, the chat models finetuned with human alignment techniques. The base language models consistently demonstrate superior performance across a multitude of downstream tasks, and the chat models, particularly those trained using Reinforcement Learning from Human Feedback (RLHF), are highly competitive. The chat models possess advanced tool-use and planning capabilities for creating agent applications, showcasing impressive performance even when compared to bigger models on complex tasks like utilizing a code interpreter. Furthermore, we have developed coding-specialized models, Code-Qwen and Code-Qwen-Chat, as well as mathematics-focused models, Math-Qwen-Chat, which are built upon base language models. These models demonstrate significantly improved performance in comparison with open-source models, and slightly fall behind the proprietary models.
๋
ผ๋ฌธ ๋งํฌ
๋ ์ฝ์ด๋ณด๊ธฐ
MentalLLaMA: ๋๊ท๋ชจ ์ธ์ด ๋ชจ๋ธ์ ์ฌ์ฉํ ์์
๋ฏธ๋์ด์์์ ํด์ ๊ฐ๋ฅํ ์ ์ ๊ฑด๊ฐ ๋ถ์ / MentalLLaMA: Interpretable Mental Health Analysis on Social Media with Large Language Models
๋
ผ๋ฌธ ์๊ฐ
์ง์นจ ์ถ์ข
๊ธฐ๋ฅ์ ๊ฐ์ถ ํด์ ๊ฐ๋ฅํ ์ ์ ๊ฑด๊ฐ ๋ถ์์ ์ํ ์คํ์์ค llm ์๋ฆฌ์ฆ๋ก, 105,000๊ฐ์ ๋ฐ์ดํฐ ์ํ์ด ํฌํจ๋ ์์
๋ฏธ๋์ด์์ ๋ฉํฐํ์คํฌ ๋ฐ ๋ฉํฐ์์ค ํด์ ๊ฐ๋ฅํ ์ ์ ๊ฑด๊ฐ ์ง์นจ ๋ฐ์ดํฐ์
์ ์ ์ํฉ๋๋ค. #medical #llm-for-clinical-task #llama
An open-source llm series for interpretable mental health analysis with instruction-following capability; it also proposes a multi-task and multi-source interpretable mental health instruction dataset on social media with 105k data samples.
๋
ผ๋ฌธ ์ด๋ก
์น ๊ธฐ์ ์ ๋ฐ๋ฌ๋ก ์์
๋ฏธ๋์ด ํ
์คํธ๋ ์๋ ์ ์ ๊ฑด๊ฐ ๋ถ์์ ์ํ ํ๋ถํ ์์ค๊ฐ ๋๊ณ ์์ต๋๋ค. ๊ธฐ์กด์ ํ๋ณ ๋ฐฉ๋ฒ์ ํด์ ๊ฐ๋ฅ์ฑ์ด ๋ฎ๋ค๋ ๋ฌธ์ ๊ฐ ์๊ธฐ ๋๋ฌธ์, ์ต๊ทผ ์์
๋ฏธ๋์ด์์ ํด์ ๊ฐ๋ฅํ ์ ์ ๊ฑด๊ฐ ๋ถ์์ ์ํด ์์ธก๊ณผ ํจ๊ป ์์ธํ ์ค๋ช
์ ์ ๊ณตํ๋ ๊ฒ์ ๋ชฉํ๋ก ํ๋ ๋๊ท๋ชจ ์ธ์ด ๋ชจ๋ธ์ด ์ฐ๊ตฌ๋๊ณ ์์ต๋๋ค. ๊ทธ ๊ฒฐ๊ณผ ChatGPT๋ ์ ํํ ๋ถ๋ฅ์ ๋ํด ์ธ๊ฐ์ ๊ฐ๊น์ด ์ค๋ช
์ ์์ฑํ ์ ์์์ ๋ณด์ฌ์ฃผ์์ต๋๋ค. ๊ทธ๋ฌ๋ LLM์ ์ฌ์ ํ ์ ๋ก ์ท/์์์ ์ท ๋ฐฉ์์ผ๋ก ๋ง์กฑ์ค๋ฝ์ง ๋ชปํ ๋ถ๋ฅ ์ฑ๋ฅ์ ๋ฌ์ฑํฉ๋๋ค. ๋๋ฉ์ธ๋ณ ๋ฏธ์ธ ์กฐ์ ์ ํจ๊ณผ์ ์ธ ์๋ฃจ์
์ด์ง๋ง ๋ ๊ฐ์ง ๋ฌธ์ ์ ์ง๋ฉดํด ์์ต๋๋ค: 1) ๊ณ ํ์ง ํ์ต ๋ฐ์ดํฐ๊ฐ ๋ถ์กฑํฉ๋๋ค. 2) ๋ฏธ์ธ ์กฐ์ ๋น์ฉ์ ๋ฎ์ถ ์ ์๋ ํด์ ๊ฐ๋ฅํ ์ ์ ๊ฑด๊ฐ ๋ถ์์ฉ ์คํ์์ค LLM์ด ์ถ์๋์ง ์์์ต๋๋ค. ์ด๋ฌํ ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ๊ธฐ ์ํด Facebook์ ์์
๋ฏธ๋์ด์์ 105๋ง ๊ฐ์ ๋ฐ์ดํฐ ์ํ๋ก ๊ตฌ์ฑ๋ ์ต์ด์ ๋ค์ค ์์
๋ฐ ๋ค์ค ์์ค ํด์ ๊ฐ๋ฅํ ์ ์ ๊ฑด๊ฐ ์ง์นจ(IMHI) ๋ฐ์ดํฐ์
์ ๊ตฌ์ถํ์ต๋๋ค. ์์ ์์
๋ฏธ๋์ด ๋ฐ์ดํฐ๋ 8๊ฐ์ง ์ ์ ๊ฑด๊ฐ ๋ถ์ ์์
์ ๋ค๋ฃจ๋ 10๊ฐ์ ๊ธฐ์กด ์์ค์์ ์์ง๋ฉ๋๋ค. ์ ๋ฌธ๊ฐ๊ฐ ์์ฑํ ๋ช ์ฅ์ง๋ฆฌ ํ๋กฌํํธ์ ์์ง๋ ๋ ์ด๋ธ์ ์ฌ์ฉํ์ฌ ChatGPT์ ๋ฉ์์ง๋ฅผ ํ์ํ๊ณ ์๋ต์์ ์ค๋ช
์ ์ป์ต๋๋ค. ์ค๋ช
์ ์ ๋ขฐ์ฑ์ ๋ณด์ฅํ๊ธฐ ์ํด ์์ฑ๋ ๋ฐ์ดํฐ์ ์ ํ์ฑ, ์ผ๊ด์ฑ ๋ฐ ํ์ง์ ๋ํด ์๊ฒฉํ ์๋ ๋ฐ ์ธ์ ํ๊ฐ๋ฅผ ์ํํฉ๋๋ค. IMHI ๋ฐ์ดํฐ์ธํธ์ LLaMA2 ํ์ด๋ฐ์ด์
๋ชจ๋ธ์ ๊ธฐ๋ฐ์ผ๋ก, ์ง์นจ ์ถ์ข
๊ธฐ๋ฅ์ ๊ฐ์ถ ํด์ ๊ฐ๋ฅํ ์ ์ ๊ฑด๊ฐ ๋ถ์์ ์ํ ์ต์ด์ ์คํ์์ค LLM ์๋ฆฌ์ฆ์ธ MentalLLaMA๋ฅผ ํ์ต์ํต๋๋ค. ๋ํ 10๊ฐ์ ํ
์คํธ ์ธํธ๋ก ๊ตฌ์ฑ๋ IMHI ํ๊ฐ ๋ฒค์น๋งํฌ์์ ์์ธก์ ์ ํ์ฑ๊ณผ ์ค๋ช
์ ํ์ง์ ๊ฒ์ฌํ์ฌ MentalLaMA์ ์ฑ๋ฅ์ ํ๊ฐํฉ๋๋ค. ๊ทธ ๊ฒฐ๊ณผ, MentalLLaMA๋ ์ต์ฒจ๋จ ํ๋ณ ๋ฐฉ๋ฒ์ ๊ทผ์ ํ ์ ํ๋์ ๊ณ ํ์ง ์ค๋ช
์ ์์ฑํ๋ ๊ฒ์ผ๋ก ๋ํ๋ฌ์ต๋๋ค.
With the development of web technology, social media texts are becoming a rich source for automatic mental health analysis. As traditional discriminative methods bear the problem of low interpretability, the recent large language models have been explored for interpretable mental health analysis on social media, which aims to provide detailed explanations along with predictions. The results show that ChatGPT can generate approaching-human explanations for its correct classifications. However, LLMs still achieve unsatisfactory classification performance in a zero-shot/few-shot manner. Domain-specific finetuning is an effective solution, but faces 2 challenges: 1) lack of high-quality training data. 2) no open-source LLMs for interpretable mental health analysis were released to lower the finetuning cost. To alleviate these problems, we build the first multi-task and multi-source interpretable mental health instruction (IMHI) dataset on social media, with 105K data samples. The raw social media data are collected from 10 existing sources covering 8 mental health analysis tasks. We use expert-written few-shot prompts and collected labels to prompt ChatGPT and obtain explanations from its responses. To ensure the reliability of the explanations, we perform strict automatic and human evaluations on the correctness, consistency, and quality of generated data. Based on the IMHI dataset and LLaMA2 foundation models, we train MentalLLaMA, the first open-source LLM series for interpretable mental health analysis with instruction-following capability. We also evaluate the performance of MentalLLaMA on the IMHI evaluation benchmark with 10 test sets, where their correctness for making predictions and the quality of explanations are examined. The results show that MentalLLaMA approaches state-of-the-art discriminative methods in correctness and generates high-quality explanations.
๋
ผ๋ฌธ ๋งํฌ
๋ ์ฝ์ด๋ณด๊ธฐ
๋ก์ง์ ํตํด ๋๊ท๋ชจ ์ธ์ด ๋ชจ๋ธ์์ ์ ๋ก ์ท ์ฐ์ ์ถ๋ก ๊ฐํํ๊ธฐ / Enhancing Zero-Shot Chain-of-Thought Reasoning in Large Language Models through Logic
๋
ผ๋ฌธ ์๊ฐ
LLM์ ์ ๋ก ์ท ์ฌ๊ณ ์ฐ์ ์ถ๋ก ์ ๊ฐ์ ํ๊ธฐ ์ํ ์๋ก์ด ์ ๊ฒฝ ๊ธฐํธ ํ๋ ์์ํฌ, ๊ธฐํธ ๋
ผ๋ฆฌ์ ์๋ฆฌ๋ฅผ ํ์ฉํ์ฌ ์ถ๋ก ํ๋ก์ธ์ค๋ฅผ ๊ฒ์ฆํ๊ณ ์์ ํ์ฌ LLM์ ์ถ๋ก ๊ธฐ๋ฅ์ ๊ฐ์ ํฉ๋๋ค. #chain-of-thought
A new neurosymbolic framework to improve zero-shot chain-of-thought reasoning in llms; leverages principles from symbolic logic to verify and revise reasoning processes to improve the reasoning capabilities of llms.
๋
ผ๋ฌธ ์ด๋ก
์ต๊ทผ ๋๊ท๋ชจ ์ธ์ด ๋ชจ๋ธ์ ๋ฐ์ ์ ๋ค์ํ ์์ญ์์ ๋๋ผ์ด ์ผ๋ฐํ ๊ฐ๋ฅ์ฑ์ ๋ณด์ฌ์ฃผ์์ต๋๋ค. ๊ทธ๋ฌ๋ ์ถ๋ก ๋ฅ๋ ฅ์ ํนํ ๋ค๋จ๊ณ ์ถ๋ก ์ด ํ์ํ ์๋๋ฆฌ์ค์ ์ง๋ฉดํ์ ๋ ์ฌ์ ํ ์๋นํ ๊ฐ์ ์ ์ฌ์ง๊ฐ ์์ต๋๋ค. ๋๊ท๋ชจ ์ธ์ด ๋ชจ๋ธ์ ๊ด๋ฒ์ํ ์ง์์ ๋ณด์ ํ๊ณ ์์ง๋ง, ํนํ ์ถ๋ก ์ธก๋ฉด์์ ์ด๋ฌํ ์ง์์ ํจ๊ณผ์ ์ผ๋ก ํ์ฉํ์ฌ ์ผ๊ด๋ ์ฌ๊ณ ํจ๋ฌ๋ค์์ ๊ตฌ์ถํ๋ ๋ฐ ์คํจํ๋ ๊ฒฝ์ฐ๊ฐ ๋ง์ต๋๋ค. ์์ฑ์ ์ธ์ด ๋ชจ๋ธ์ ์ถ๋ก ์ ์ฐจ๊ฐ ๋
ผ๋ฆฌ์ ์์น์ ์ ์ฝ์ ๋ฐ์ง ์๊ธฐ ๋๋ฌธ์ ๋๋๋ก ํ๊ฐ์ ๋ณด์ด๊ธฐ๋ ํฉ๋๋ค. ๋๊ท๋ชจ ์ธ์ด ๋ชจ๋ธ์ ์ ๋ก ์ท ์ฌ๊ณ ์ฐ์ ์ถ๋ก ๋ฅ๋ ฅ์ ํฅ์์ํค๊ธฐ ์ํด, ์ฐ๋ฆฌ๋ ๊ธฐํธ ๋
ผ๋ฆฌ์ ์๋ฆฌ๋ฅผ ํ์ฉํ์ฌ ์ถ๋ก ๊ณผ์ ์ ๊ฒ์ฆํ๊ณ ๊ทธ์ ๋ฐ๋ผ ์์ ํ๋ ์ ๊ฒฝ ์์ง์ ํ๋ ์์ํฌ์ธ ๋
ผ๋ฆฌ์ ์ฌ๊ณ ์ฐ์(LogiCoT)๋ฅผ ์ ์ํฉ๋๋ค. ์ฐ์ , ์์, ์์ง, ์ธ๊ณผ ์ถ๋ก , ์ฌํ ๋ฌธ์ ๋ฑ ๋ค์ํ ์์ญ์ ์ธ์ด ๊ณผ์ ์ ๋ํ ์คํ์ ํ๊ฐ๋ฅผ ํตํด ๋
ผ๋ฆฌ์ ์ํ ํฅ์๋ ์ถ๋ก ํจ๋ฌ๋ค์์ ํจ๊ณผ๋ฅผ ์
์ฆํ์ต๋๋ค.
Recent advancements in large language models have showcased their remarkable generalizability across various domains. However, their reasoning abilities still have significant room for improvement, especially when confronted with scenarios requiring multi-step reasoning. Although large language models possess extensive knowledge, their behavior, particularly in terms of reasoning, often fails to effectively utilize this knowledge to establish a coherent thinking paradigm. Generative language models sometimes show hallucinations as their reasoning procedures are unconstrained by logical principles. Aiming to improve the zero-shot chain-of-thought reasoning ability of large language models, we propose Logical Chain-of-Thought (LogiCoT), a neurosymbolic framework that leverages principles from symbolic logic to verify and revise the reasoning processes accordingly. Experimental evaluations conducted on language tasks in diverse domains, including arithmetic, commonsense, symbolic, causal inference, and social problems, demonstrate the efficacy of the enhanced reasoning paradigm by logic.
๋
ผ๋ฌธ ๋งํฌ
๋ ์ฝ์ด๋ณด๊ธฐ
์๋ฌธ
R1egister๋ ์ ๊ธ์ง์ด์ง
๋๊ธ 0