Large language models have achieved remarkable success in general language understanding tasks. However, as a family of generative methods with the objective of next token prediction, the semantic evolution with the depth of these models are not fully explored, unlike their predecessors, such as BERT-like architectures. In this paper, we specifically investigate the bottom-up evolution of lexical semantics for a popular LLM, namely Llama2, by probing its hidden states at the end of each layer using a contextualized word identification task. Our experiments show that the representations in lower layers encode lexical semantics, while the higher layers, with weaker semantic induction, are responsible for prediction. This is in contrast to models with discriminative objectives, such as mask language modeling, where the higher layers obtain better lexical semantics. The conclusion is further supported by the monotonic increase in performance via the hidden states for the last meaningless symbols, such as punctuation, in the prompting strategy. Our codes are available at https://github.com/RyanLiut/LLM_LexSem.
Investigating Large Language Models for Complex Word Identification in Multilingual and Multidomain Setups
National University of Science and Technology POLITEHNICA Bucharest(布加勒斯特理工国立大学);National Institute for Research & Development in Informatics - ICI Bucharest(布加勒斯特国家信息学研究与发展研究所);Academy of Romanian Scientists(罗马尼亚科学院);Paris 1 Panthéon-Sorbonne University(巴黎第一大学先贤祠-索邦大学);University of Bucharest(布加勒斯特大学)
Investigating the Influence of Prompt and Response Languages on LLM Content Generation
Université de Technologie de Compiègne(贡比涅技术大学);Norwegian University of Science and Technology (NTNU)(挪威科技大学);SimulaMet(西穆拉梅特研究院);HUTECH University(胡志明市技术大学)
LMs stand their Ground: Investigating the Effect of Embodiment in Figurative Language Interpretation by Language Models
Ludwig-Maximilians-University (LMU)(路德维希-马克西米利安大学(慕尼黑大学));Institute for Information and Language Processing (CIS)(信息与语言处理研究所);Munich Center for Machine Learning (MCML)(慕尼黑机器学习中心)