We study how syntactic and semantic information is encoded in inner layer representations of Large Language Models (LLMs), focusing on the very large DeepSeek-V3. We find that, by averaging hidden-representation vectors of sentences sharing syntactic structure or meaning, we obtain vectors that capture a significant proportion of the syntactic and semantic information contained in the representations. In particular, subtracting these syntactic and semantic ``centroids'' from sentence vectors strongly affects their similarity with syntactically and semantically matched sentences, respectively, suggesting that syntax and semantics are, at least partially, linearly encoded. We also find that the cross-layer encoding profiles of syntax and semantics are different, and that the two signals can to some extent be decoupled, suggesting differential encoding of these two types of linguistic information in LLM representations.
Technische Universität Darmstadt(达姆施塔特工业大学);AI Quality & Testing Hub(AI质量与测试中心);Hessian Center for Artificial Intelligence(黑森人工智能中心);National Research Center for Applied Cybersecurity ATHENE(国家应用网络安全研究中心ATHENE)
Large Language Models Enhanced by Plug and Play Syntactic Knowledge for Aspect-based Sentiment Analysis
University of Washington(华盛顿大学);University of Science and Technology of China(中国科学技术大学);China Resources Digital Technology(中国资源数字技术);People’s Daily Online(人民日报在线);Sichuan University(四川大学)
Consistency Analysis of Sentiment Predictions using Syntactic & Semantic Context Assessment Summarization (SSAS)
Tellagence Inc.(Tellagence公司);Villanova School of Business, Villanova University(维拉文纳大学商学院);Maseeh College of Engineering and Computer Science, Portland State University(波特兰州立大学Maseeh工程与计算机科学学院)
$\mathcal{S}^2$IT: Stepwise Syntax Integration Tuning for Large Language Models in Aspect Sentiment Quad Prediction
School of Computer Science, Guangdong University of Technology(广东技术大学计算机科学学院);Guangdong Laboratory of Artificial Intelligence and Digital Economy (SZ)(广东人工智能与数字经济实验室(深圳));Peng Cheng Laboratory(鹏城实验室);College of Science, Shantou University(汕头大学理学院)
How Syntax Specialization Emerges in Language Models
Department of Linguistics and Modern Languages, The Chinese University of Hong Kong(香港中文大学语言学与现代语言系);Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);Brain and Mind Institute, The Chinese University of Hong Kong(香港中文大学脑科学与心灵研究所)
Mesa-Extrapolation: A Weave Position Encoding Method for Enhanced Extrapolation in LLMs
Digital Research Institute, Enn Group(恩集团数字研究院);Institute for AI Industry Research, Tsinghua University(清华大学人工智能产业研究院);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室)
针对 LLM 超出训练长度后外推能力骤降的问题,本文提出 Mesa-Extrapolation,通过分块三角注意力与 Stair PE 实现低成本、省内存且更快的长度外推。
Gated Tree Cross-Attention for Checkpoint-Compatible Syntax Injection in Decoder-Only LLMs
College of Biomedical Engineering & Instrument Science, Zhejiang University(浙江大学生物医学工程与仪器科学学院);Department of Language Science and Technology, The Hong Kong Polytechnic University(香港理工大学语言科学与技术系)
Comparing human and LLM proofreading in L2 writing: Impact on lexical and syntactic features
LCR-ADS Lab, Linguistics, University of Oregon(俄勒冈大学语言学系LCR-ADS实验室);West University of Timisoara(蒂米什瓦拉西大学);Gyeongin National University of Education(京仁国立教育大学)
A retrospective analysis on the use of LLMs to study infant syntax learning
Sorbonne Université(索邦大学);Sorbonne Center for Artificial Intelligence(索邦人工智能中心);CNRS(法国国家科学研究中心);Sciences, Norms, Democracy(科学、规范与民主研究所);Institute of Intelligent Systems and Robotics(智能系统与机器人研究所)
Integrating Expert Knowledge into Logical Programs via LLMs
Multimedia Systems Department, Gdansk University of Technology, Poland(格但斯克技术大学多媒体系统系,波兰);Department of Computer Science, University of Manchester, United Kingdom(曼彻斯特大学计算机科学系,英国);National Biomarker Centre (NBC), CRUK Manchester Institute, United Kingdom(英国CRUK曼彻斯特研究所国家生物标记中心);Idiap Research Institute, Martigny, Switzerland(瑞士马尔蒂尼Idiap研究所)