Abstract
dc:description.abstractTransformer-based language models (LMs) have achieved impressive performance on various natural language processing (NLP) benchmarks and applications. However, their efficiency and effectiveness in long contexts are still an open question. On the one hand, transformers suffer from their quadratic complexity in time and space. On the other hand, even with sufficient resources, LMs are unable to effectively comprehend long inputs or generate long and coherent texts. In this thesis, I tried to address both challenges by 1) investigating and diagnosing the existing methods on long-context LMs; 2) studying alternative solutions for language representation; 3) proposing a language encoding solution that is both efficient and effective. Previous work mainly focuses on the efficiency of transformer-based LMs with numerous transformer variants. However, most of them cannot be directly adapted to NLP tasks. In Chapter 3, I propose methods to fill the gap between these LM prototypes and NLP applications, and my investigation surprisingly showed that most of them do not have advantages in long-context natural language understanding (NLU) tasks, suggesting that alleviating the computational overhead alone may not deliver satisfactory results. In Chapters 4 and 5, I study a basic yet challenging problem: How can we find an alternative language representation method beyond the token-wise embedding paradigm? I start with SpanFinder, which encodes text at the span level and can be applied to NLP tasks such as semantic role labeling and FrameNet parsing. Taking a step further, I propose Soft Prompts, a method that learns non-text language representation to elicit factual knowledge from LMs. It automates the prompt engineering problem with gradient descent. My research shows that language representation does not necessarily correspond to individual tokens or specific texts. With these findings, I propose to scale LMs to long context with Nugget in Chapters 6 and 7, which is a language representation solution that encodes text with variable lengths of vectors. Nugget fundamentally breaks the correspondence between tokens and vectors, which enables LMs to have a dynamic resolution for text representation and thus achieves efficiency in long texts. When applied on encoder-decoder transformers, Nugget can achieve nearly lossless encoding with much less memory overhead while achieving comparable or better performance on textual similarity tests. Dodo, the extension of Nugget on decoder-only LMs, can greatly reduce the time and space overhead of large language models (LLMs) such as LLaMA. Both models strongly imply that transformer-based LMs are so flexible that efficient text encoding with dynamic resolution is a viable way toward long-context NLU.
Degree
thesis:*- Name thesis:degree_name
- Ph.D.
- Level thesis:degree_level
- Doctoral
- Discipline thesis:degree_discipline
- Computer Science
- Department thesis:degree_department
- Computer Science
- Grantor dc:publisher
- Johns Hopkins University
- Year dc:date.issued
- 2024
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Qin, Guanghui
- Advisors dc:contributor.advisor
-
- Van Durme, Benjamin
- Khashabi, Daniel
- Duh, Kevin
- ORCID person:identifier.orcid
Subjects
dc:subject × 4Rights
- Language dc:language.iso
- en_US
Identifiers
dc:identifier.*- Repository record dc:identifier.uri
- https://jscholarship.library.jhu.edu/handle/1774.2/70280