TermGPT: Multi-Level Contrastive Fine-Tuning for Terminology Adaptation in Legal and Financial Domains

Authors

  • Yidan Sun Zhejiang University
  • Mengying Zhu Zhejiang University
  • Feiyue Chen Zhejiang University
  • Yangyang Wu Zhejiang University
  • Xiaolei Dan National FinTech Risk Monitoring Center
  • Mengyuan Yang Zhejiang University
  • Xiaolin Zheng Zhejiang University
  • Shenglin Ben Zhejiang University

DOI:

https://doi.org/10.1609/aaai.v40i2.37075

Abstract

Large language models (LLMs) have demonstrated impressive performance in text generation tasks; however, their embedding spaces often suffer from the isotropy problem, resulting in poor discrimination of domain-specific terminology, particularly in legal and financial contexts. This weakness in term-level representation can severely hinder downstream tasks such as legal judgment prediction or financial risk analysis, where subtle semantic distinctions are critical. To address this problem, we propose TermGPT, a multi-level contrastive fine-tuning framework designed for terminology adaptation. We first construct a sentence graph to capture semantic and structural relations, and generate semantically consistent yet discriminative positive and negative samples based on contextual and topological cues. We then devise a multi-level contrastive learning approach at both the sentence and token levels, enhancing global contextual understanding and fine-grained term discrimination. To support robust evaluation, we construct the first financial terminology dataset derived from official regulatory documents. Experiments show that TermGPT outperforms existing baselines in term discrimination tasks within the finance and legal domains.

Downloads

Published

2026-03-14

How to Cite

Sun, Y., Zhu, M., Chen, F., Wu, Y., Dan, X., Yang, M., … Ben, S. (2026). TermGPT: Multi-Level Contrastive Fine-Tuning for Terminology Adaptation in Legal and Financial Domains. Proceedings of the AAAI Conference on Artificial Intelligence, 40(2), 1051–1059. https://doi.org/10.1609/aaai.v40i2.37075

Issue

Section

AAAI Technical Track on Application Domains II