표적 리트리버 미세조정을 통한 우즈베크어 법률 RAG의 클라우드 및 온프레미스 배포
Cloud and On-Premises Deployment of Uzbek Legal RAG via Targeted Retriever Fine-Tuning
한국어 초록
법률 질의응답을 위한 대규모 언어 모델(LLM) 배포는 범용 리더보드가 포착하지 못하는 과제를 제기하며, 특히 저자원 언어 및 엄격한 운영 제약 하에서는 더욱 그러합니다. 본 논문에서는 두 가지 환경에서 실행되어야 하는 우즈베크어 검색-증강 생성(RAG) 법률 어시스턴트의 구축 및 운영에 대해 보고합니다. 즉, 토큰당 비용 상한선 내에서 답변 품질을 극대화하는 관리형 클라우드 서비스와, 법률 데이터가 자체 인프라를 벗어나면 안 되는 고객을 위해 지연 시간 제약 하의 제한된 로컬 하드웨어에서 공개 가중치 모델로만 제한되는 온프레미스 배포 환경입니다. 이 환경에 대한 평가가 전무했기 때문에, 우리는 정답 조항 스팬을 갖춘 178개의 전문가 주석 법률 쿼리로 구성된 검색 벤치마크와, 인간의 판단 및 독립된 계열의 심사위원과 대조하여 평점을 검증한 LLM 판사가 점수를 매긴 504개의 전문가 큐레이션 질의응답 쌍으로 구성된 엔드투엔드 벤치마크라는 두 가지 도메인 벤치마크를 구축합니다. 각 환경에서 이 벤치마크들을 적용한 결과, 오픈 소스 대 상용 모델 간의 격차는 작으며 미세조정(fine-tuning)을 통해 저렴하게 좁혀질 수 있음을 발견했습니다. 이에 따라 우리는 우즈베크어 공개 모델 중 최고 수준(SOTA)의 텍스트 임베더인 UTE-1을 학습합니다. 또한 법률 행위가 자주 변경된다는 점을 감안할 때, 긴 컨텍스트 법률 Q&A의 집약적인 하드웨어 요구로 인해 미세조정을 통해 성능 격차를 좁히는 것은 비실용적이며 불필요하다는 점도 입증합니다. 우리는 QLoRA 실험의 부정적인 결과를 보고함으로써 이를 뒷받침합니다. 우리는 프로덕션 환경에서 실제 사용자에게 서비스를 제공하는 시스템에서 도출된 유사한 배포에 대한 실용적인 지침을 추출합니다. 저자원 법률 자연어 처리(NLP)에 대한 향후 연구를 지원하기 위해 벤치마크, 평가 코드, 그리고 미세조정된 임베더(UTE-1)를 \href{https://metric-ai-lab.github.io/Uzbek-Legal-RAG/}{이 https URL}에 공개합니다.
원문 초록
Deploying large language models for legal question answering raises challenges that general-purpose leaderboards do not capture, particularly for low-resource languages and under hard operational constraints. We report on building and operating a retrieval-augmented (RAG) legal assistant for Uzbek that must run in two regimes: a managed cloud service that maximizes answer quality within a per-token cost ceiling, and an on-premises deployment for clients whose legal data may not leave their infrastructure, restricting us to open-weight models on limited local hardware under latency constraints. Because no evaluation existed for this setting, we build two domain benchmarks: a retrieval benchmark of 178 expert-annotated legal queries with gold provision spans, and an end-to-end benchmark of 504 expert-curated question--answer pairs scored by an LLM judge whose ratings we validate against human judgments and against an independent-family judge. Applying these benchmarks under each regime, we find the open-versus-proprietary gap is small and cheaply closed by fine-tuning. Therefore, we train UTE-1, which is a state-of-the-art text embedder among open models for Uzbek. We also demonstrate that closing the performance gap via fine-tuning is both impractical due to the intensive hardware demands of long-context legal Q\&A and unnecessary, given that legal acts change frequently. We support this by reporting a negative result from a QLoRA experiment. We distill practical guidance for similar deployments, drawn from a system serving real users in production. We release our benchmarks, evaluation code and the fine-tuned embedder (UTE-1) \href{https://metric-ai-lab.github.io/Uzbek-Legal-RAG/}{at this https URL} to support future work on low-resource legal NLP.
제출 이력
확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.
- arXiv:2608.29284v1제출 시각 미확인
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
공통 태그로 연결된 공개 논문이 아직 없습니다.
토론
이 논문과 연결된 포럼 글이 아직 없습니다.