This article was published by Huyenchip on August 16, 2023, and explores the open challenges in large language model (LLM) research. After conversations with people in industry and academia, the author summarized 10 major research directions. The article points out that the first two directions—hallucination and in-context learning—are currently the most discussed, while the author is most interested in directions 3 (multimodal), 5 (new architectures), and 6 (GPU alternatives).
1. Reducing and measuring hallucination Hallucination refers to an AI model making things up. For creative use cases, hallucination can be a feature; but for most other use cases, hallucination is a defect. In the LLM panel discussions at Dropbox, Langchain, Elastics, and Anthropic, hallucination was considered the primary obstacle to enterprise adoption of LLMs. Mitigating hallucination and developing measurement metrics are popular research topics, and many startups focus on this. Temporary tricks to reduce hallucination include: adding more context to the prompt, chain of thought, self-consistency, or asking the model to answer concisely. Related papers include Ji et al. (2022)'s survey on hallucination, Zhang et al. (2023)'s hallucination snowballing effect, Bang et al. (2023)'s ChatGPT evaluation, Sun et al. (2022)'s contrastive learning to reduce hallucination, Wang et al. (2022)'s self-consistency improving chain-of-thought reasoning, Manakul et al. (2023)'s SelfCheckGPT zero-resource black-box hallucination detection, and NVIDIA NeMo-Guardrails' fact-checking examples.
2. Optimizing context length and context construction Most questions require context. For example, asking "the best Vietnamese restaurant" requires knowing "where." According to the SituatedQA paper (Zhang & Choi, 2021), about 16.5% of natural questions in the NQ-Open dataset have context-dependent answers, and the proportion in enterprise use cases may be even higher. Context length is especially important for RAG (retrieval-augmented generation), which is the main pattern for LLM industry use cases. RAG has two stages: stage 1 chunking (indexing), collecting documents, chunking them, generating embeddings, and storing them in a vector database; stage 2 querying, where the user query is converted into an embedding, and the vector database retrieves the most similar chunks. The longer the context, the more chunks can be accommodated, but whether the model can effectively use them is another question. Related research includes "Lost in the Middle: How Language Models Use Long Contexts” (Liu et al., 2023), indicating that models understand information at the beginning and end better.
3. Integrate other data modalities Multimodal capabilities are powerful but underrated. Reasons include: many use cases require multimodal data, such as healthcare (text and images), robotics, e-commerce, retail, gaming, entertainment, etc.; multimodality can improve model performance, and text data may be exhausted, requiring the use of other modalities. Multimodality can also help visually impaired people browse the internet and navigate the real world. Related research includes CLIP (OpenAI, 2021), Flamingo (DeepMind, 2022), BLIP-2 (Salesforce, 2023), KOSMOS-1 (Microsoft, 2023), PaLM-E (Google, 2023), LLaVA (Liu et al., 2023), NeVA (NVIDIA, 2023).
4. Make LLMs faster and cheaper When GPT-3.5 was released, latency and cost were concerns. But within half a year, the community found models with performance close to GPT-3.5 but with only 2% of the memory footprint. Model optimization/compression techniques include: quantization (representing parameters with fewer bits), knowledge distillation (small models imitating large models), and low-rank factorization (replacing high-dimensional tensors with low-dimensional tensors). These techniques are still relevant today, such as Alpaca using knowledge distillation, and QLoRA combining low-rank factorization and quantization.
5. Design new model architectures Since AlexNet in 2012, architectures have continually changed, but the Transformer (2017) has been very enduring. Developing new architectures beyond the Transformer is not easy; they need to perform well at the scale and on the hardware people care about. In 2021, S4 attracted attention, and Chris Ré's lab recently introduced Monarch Mixer (Fu et al., 2023), in collaboration with Together. The key idea is that the attention complexity of existing Transformers grows quadratically with sequence length, and MLP complexity grows quadratically with model dimension, so subquadratic-complexity architectures are more efficient.
6. Develop GPU alternatives GPUs have been the dominant hardware for deep learning since AlexNet. Over the past decade, many companies have tried new hardware, such as Google TPU, Graphcore IPU, and Cerebras. SambaNova raised over a billion but pivoted to a generative AI platform. Quantum computing has attracted attention, such as Google's quantum computer reported a quantum error reduction milestone in Nature, and quantum virtual machines can be accessed through Google Colab. Photonic chips are another direction, using photons to move data and leveraging the speed of light to achieve faster and more efficient computing. Related startups include Lightmatter ($270 million), Ayar Labs ($220 million), Lightelligence (over $200 million), and Luminous Computing ($115 million).
7. Make agents usable Agents are LLMs that can take actions, such as browsing the internet, sending emails, making reservations, etc. This is the youngest direction, but it has attracted much attention. Auto-GPT is the 25th most popular repository on GitHub. Despite the excitement, it remains doubtful whether LLMs are reliable enough to be entrusted with actions. One use case is social science research, such as a Stanford experiment showing that generative agents produce emergent social behavior (Park et al., 2023). The most famous startup is Adept, founded by two Transformer co-authors and a former OpenAI vice president, which has raised nearly $500 million.
8. Improve learning from human preferences RLHF (reinforcement learning from human preferences) is cool but somewhat hacky. Open questions include: how to mathematically represent human preferences? Currently it is determined through comparisons, where human annotators judge whether response A is better than B, but intensity is not considered.