The architecture of language: Understanding the mechanics behind LLMs

Andrea Filippo Ferraris, Davide Audrito, Luigi Di, Cristina Poncibò

View at source ↗PDF ↗Article34 citations

Abstract

Abstract Large language models (LLMs) have significantly advanced artificial intelligence (AI) and natural language processing (NLP) by excelling in tasks like text generation, machine translation, question answering and sentiment analysis, often rivaling human performance. This paper reviews LLMs’ foundations, advancements and applications, beginning with the transformative transformer architecture, which improved on earlier models like recurrent neural networks and convolutional neural networks through self-attention mechanisms that capture long-range dependencies and contextual relationships. Key innovations such as masked language modeling and causal language modeling underpin leading models like Bidirectional encoder representations from transformers (BERT) and the Generative Pre-trained Transformer (GPT) series. The paper highlights scaling laws, model size increases and advanced training techniques that have driven LLMs’ growth. It also explores methodologies to enhance their precision and adaptability, including parameter-efficient fine-tuning and prompt engineering. Challenges like high computational demands, biases and hallucinations are addressed, with solutions such as retrieval-augmented generation to improve factual accuracy. By discussing LLMs’ strengths, limitations and transformative potential, this paper provides researchers, practitioners and students with a comprehensive understanding. It underscores the importance of ongoing research to improve efficiency, manage ethical concerns and shape the future of AI and language technologies.

Abstract of "The architecture of language: Understanding the mechanics behind LLMs" by Andrea Filippo Ferraris, Davide Audrito, Luigi Di et al., https://doi.org/10.1017/cfl.2024.16, used under its Creative Commons Attribution license (CC-BY); markup removed, otherwise unmodified.

Record

Archive ID
doi:10.1017/cfl.2024.16
Published
Jan 1, 2025
Venue
Cambridge Forum on AI Law and Governance
DOI
10.1017/cfl.2024.16
Categories
Topic Modeling
License
cc-by
Provenance
openalex

Topics