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 terminology-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 terminology 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.
LegalRelectra: Mixed-domain Language Modeling for Long-range Legal Text Comprehension
Claudius Legal Intelligence(克劳狄乌斯法律智能公司);Rutgers University(罗格斯大学);University of Pennsylvania(宾夕法尼亚大学);Princeton University(普林斯顿大学);University of California, San Diego(加州大学圣迭戈分校);Harvard University(哈佛大学)
SteuerLLM: Local specialized large language model for German tax law analysis
Pattern Recognition Lab, Friedrich-Alexander-Universität Erlangen-Nürnberg(模式识别实验室,弗赖堡-亚历山大大学埃尔兰根-纽伦堡);Erlangen National High Performance Computing Center, Friedrich-Alexander-Universität Erlangen-Nürnberg(埃尔兰根国家高性能计算中心,弗赖堡-亚历山大大学埃尔兰根-纽伦堡);DATEV eG, Nuremberg, Germany(DATEV eG,纽伦堡,德国);Bavarian AI Taxation Laboratory, Department of Computer Science, University of Technology Nuremberg(巴伐利亚人工智能税收实验室,技术大学纽伦堡计算机科学系);Chair for Tax Law and Public Law, Friedrich-Alexander-Universität Erlangen-Nürnberg(税法与公共法教授职位,弗赖堡-亚历山大大学埃尔兰根-纽伦堡);Chair of Computer Science 10, Friedrich-Alexander-Universität Erlangen-Nürnberg(计算机科学10号教授职位,弗赖堡-亚历山大大学埃尔兰根-纽伦堡);Lab for AI in Medicine, RWTH Aachen University(医学人工智能实验室,亚琛工业大学);Department of Diagnostic and Interventional Radiology, University Hospital RWTH Aachen(诊断与介入放射学系,亚琛大学医院)