[논문 리뷰] Comparative Study of Domain Driven Terms Extraction Using Large Language Models
이 논문은 프롬프트를 사용한 키워드/용어 추출에서 GPT-3.5, Llama-2-7B, Falcon-7B를 비교하고, Inspec와 PubMed에서 Jaccard 유사도로 평가하며 프롬프트 엔지니어링, 환각(hallucination), 그리고 파이썬 패키지에 대해 논의한다.
Keywords play a crucial role in bridging the gap between human understanding and machine processing of textual data. They are essential to data enrichment because they form the basis for detailed annotations that provide a more insightful and in-depth view of the underlying data. Keyword/domain driven term extraction is a pivotal task in natural language processing, facilitating information retrieval, document summarization, and content categorization. This review focuses on keyword extraction methods, emphasizing the use of three major Large Language Models(LLMs): Llama2-7B, GPT-3.5, and Falcon-7B. We employed a custom Python package to interface with these LLMs, simplifying keyword extraction. Our study, utilizing the Inspec and PubMed datasets, evaluates the performance of these models. The Jaccard similarity index was used for assessment, yielding scores of 0.64 (Inspec) and 0.21 (PubMed) for GPT-3.5, 0.40 and 0.17 for Llama2-7B, and 0.23 and 0.12 for Falcon-7B. This paper underlines the role of prompt engineering in LLMs for better keyword extraction and discusses the impact of hallucination in LLMs on result evaluation. It also sheds light on the challenges in using LLMs for keyword extraction, including model complexity, resource demands, and optimization techniques.
연구 동기 및 목표
- 도메인 주도 키워드 추출을 위한 세 가지 대형 언어 모델(GPT-3.5, Llama-2-7B, Falcon-7B)의 효과를 평가한다.
- 일치 기준으로 Inspec 및 PubMed 참조 키워드에 대해 모델 출력을 평가한다.
- LangChain과 통합된 Python 패키지를 통해 LLM 기반 키워드 추출을 가능하게 한다.
- 프롬프트 엔지니어링의 역할과 평가에 대한 환각의 영향 및 영향을 살펴본다.
- 키워드 추출에 대한 모델 성능, 요구사항 및 한계에 대한 실용적인 시사점을 제공한다.
제안 방법
- LangChain으로 구축된 맞춤형 Python 패키지를 통해 세 가지 LLM(Llama-2-7B, GPT-3.5, Falcon-7B)을 인터페이스한다.
- 참조로서 Inspec와 PubMed 키워드의 합집합과 그에 대한 실제 정답을 사용하여 키워드 추출을 평가한다.
- 모델 출력과 참조 키워드 집합 간의 겹침 정도를 측정하기 위해 Jaccard 유사도를 사용한다.
- 제로샷 프롬프트를 포함한 프롬프트 엔지니어링 기법과 [MASK] 자리표시자를 포함한 형식적 f_KewwordExtraction(P,L) 프롬프트 구성을 탐구한다.
- 추론 시간과 모델별 동작(환각, 추가 용어, 정의)에 대해 보고하고 이들이 정밀도에 미치는 영향을 논의한다.
실험 결과
연구 질문
- RQ1GPT-3.5, Llama-2-7B, Falcon-7B가 Inspec 및 PubMed 참조에 대해 평가될 때 도메인 주도 키워드 추출에서 어떤 성능을 보이는가?
- RQ2프롬프트 설계와 온도(temperature)가 키워드 추출 품질에 어떤 영향을 미치는가?
- RQ3환각과 도메인 특정 용어가 Jaccard 유사도와 같은 평가 지표에 어떤 영향을 주는가?
- RQ4세 모델 간 키워드 추출 작업에서의 실제적인 트레이드오프(정확도, 속도, 자원 사용)는 무엇인가?
주요 결과
- GPT-3.5는 Inspec에서 평균 Jaccard 점수 0.64, PubMed에서 0.21으로 가장 높게 나타난다.
- Llama-2-7B는 0.40(Inspec) 및 0.17(PubMed)을 달성한다.
- Falcon-7B는 0.23(Inspec) 및 0.12(PubMed)을 달성한다.
- 온도를 0.2로 낮추면 결정론성이 증가하고 키워드 다양성과 잠재적 환각에 영향을 준다.
- Llama-2-7B는 참조에 없던 추가 키워드나 정의를 생성하여 PubMed에 대한 Jaccard 유사도를 낮출 수 있다.
- GPT-3.5는 필요한 용어를 최소한의 불필요한 용어와 함께 간결하고 잘 정렬된 키워드를 생성하지만 환각으로 인해 새로운 용어가 나타날 수 있다.
- 추정 실행 시간: Falcon-7B 7–12s, Llama-2-7B 4–8s, GPT-3.5 3–5s(CPU).
- LangChain과 통합된 특수한 Python 패키지가 표준화된 프롬프트 프레임워크를 통해 다중 LLM 키워드 추출을 가능하게 한다.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.