Papers.
Research connected to its authors, projects, companies, talks, events, and the rest of the graph.
Add a paper ↗Learning to (Learn at Test Time): RNNs with Expressive Hidden States
International Conference on Machine Learning · DOI 10.48550/arXiv.2407.04620 · arXiv 2407.04620 · 335 citations · Source: semantic-scholarSelf-attention performs well in long context but has quadratic complexity. Existing RNN layers have linear complexity, but their performance in long context is limited by the expressive power of their hidden states. We present a practical framework for instantiating sequence modeling layers with linear complexity and expressive hidden states. The key idea is to make the hidden state a machine learning model itself, and the update rule a step of self-supervised learning. Since the hidden state is updated by training even on test sequences, our layers are called Test-Time Training (TTT) layers. We consider two instantiations: TTT-Linear and TTT-MLP, whose hidden state is a linear model and a two-layer MLP respectively. We evaluate our instantiations at the scale of 125M to 1.3B parameters, comparing with a strong Transformer and Mamba, a modern RNN. Similar to Transformer, TTT-Linear and TTT-MLP can keep reducing perplexity by conditioning on more tokens, while Mamba cannot after 16k context. TTT-MLP still faces challenges in memory I/O, but shows larger potential in long context, pointing to a promising direction for future research.
Carlos Guestrin, Yu Sun, Xinhao Li, Karan Dalal, Jiarui Xu, Arjun Vikram, Ge Zhang, Yann Dubois · 12 authors totalSupercharging Federated Learning with Flower and NVIDIA FLARE
arXiv preprint · DOI 10.48550/arXiv.2407.00031 · arXiv 2407.00031 · 4 citations · Source: arxiv+semantic-scholarSeveral open-source systems, such as Flower and NVIDIA FLARE, have been developed in recent years while focusing on different aspects of federated learning (FL). Flower is dedicated to implementing a cohesive approach to FL, analytics, and evaluation. Over time, Flower has cultivated extensive strategies and algorithms tailored for FL application development, fostering a vibrant FL community in research and industry. Conversely, FLARE has prioritized the creation of an enterprise-ready, resilient runtime environment explicitly designed for FL applications in production environments. In this paper, we describe our initial integration of both frameworks and show how they can work together to supercharge the FL ecosystem as a whole. Through the seamless integration of Flower and FLARE, applications crafted within the Flower framework can effortlessly operate within the FLARE runtime environment without necessitating any modifications. This initial integration streamlines the process, eliminating complexities and ensuring smooth interoperability between the two platforms, thus enhancing the overall efficiency and accessibility of FL applications.
Chester Chen, Holger R. Roth, Daniel J. Beutel, Yan Cheng, Javier Fernandez Marques, Heng Pan, Zhihong Zhang, Yuhong Wen · 16 authors totalPathAlign: A vision-language model for whole slide images in histopathology
COMPAY@MICCAI · DOI 10.48550/arXiv.2406.19578 · arXiv 2406.19578 · 44 citations · Source: semantic-scholarMicroscopic interpretation of histopathology images underlies many important diagnostic and treatment decisions. While advances in vision-language modeling raise new opportunities for analysis of such images, the gigapixel-scale size of whole slide images (WSIs) introduces unique challenges. Additionally, pathology reports simultaneously highlight key findings from small regions while also aggregating interpretation across multiple slides, often making it difficult to create robust image-text pairs. As such, pathology reports remain a largely untapped source of supervision in computational pathology, with most efforts relying on region-of-interest annotations or self-supervision at the patch-level. In this work, we develop a vision-language model based on the BLIP-2 framework using WSIs paired with curated text from pathology reports. This enables applications utilizing a shared image-text embedding space, such as text or image retrieval for finding cases of interest, as well as integration of the WSI encoder with a frozen large language model (LLM) for WSI-based generative text capabilities such as report generation or AI-in-the-loop interactions. We utilize a de-identified dataset of over 350,000 WSIs and diagnostic text pairs, spanning a wide range of diagnoses, procedure types, and tissue types. We present pathologist evaluation of text generation and text retrieval using WSI embeddings, as well as results for WSI classification and workflow prioritization (slide-level triaging). Model-generated text for WSIs was rated by pathologists as accurate, without clinically significant error or omission, for 78% of WSIs on average. This work demonstrates exciting potential capabilities for language-aligned WSI embeddings.
Daniel Golden, Faruk Ahmed, Andrew B. Sellergren, Lin Yang, Shawn Xu, Boris Babenko, Abbi Ward, Niels Olson · 17 authors totalU Can't Gen This? A Survey of Intellectual Property Protection Methods for Data in Generative AI
arXiv (Cornell University) · DOI 10.48550/arxiv.2406.15386 · 3 citations · Source: openalex+authoritative-profileRicardo Baeza-Yates, Tanja Šarčević, Alicja Karlowicz, Rudolf Mayer, Ricardo Baeza‐Yates, Andreas Rauber · 6 authors totalSuki: Choreographed Distributed Dataflow in Rust
arXiv preprint · arXiv 2406.14733 · 2 citations · Source: semantic-scholarProgramming models for distributed dataflow have long focused on analytical workloads that allow the runtime to dynamically place and schedule compute logic. Meanwhile, models that enable fine-grained control over placement, such as actors, make global optimization difficult. In this extended abstract, we present Suki, an embedded Rust DSL that lets developers implement streaming dataflow with explicit placement of computation. Key to this choreographic programming approach is our use of staged programming, which lets us expose a high-level Rust API while compiling local compute units into individual binaries with zero-overhead. We also explore how this approach, combined with Rust's trait system, enables a type-safe API for mapping dataflow programs to cloud computing resources.
Shadaj Laddad, Alvin Cheung, Joseph M. Hellerstein · 3 authors totalTurboSpec: Closed-loop Speculation Control System for Optimizing LLM Serving Goodput
arXiv 2406.14066 · 36 citations · Source: arxiv+semantic-scholarLarge Language Model (LLM) serving systems batch concurrent user requests to achieve efficient serving. However, in real-world deployments, such inter-request parallelism from batching is often limited by external factors such as low request rates or memory constraints. Recent works focus on intra-request parallelism from speculative decoding as a solution to this problem. Unfortunately, benefits from intra-request parallelism are often fragile, as speculative decoding causes overhead, and speculated tokens may miss. We observe that speculative decoding may degrade LLM serving performance if added naively without tuning to the incoming requests and the speculation method. To alleviate the need for expert tuning and make speculative decoding more robust, we present TurboSpec, a speculation control system that automatically profiles the execution environment and utilizes a feedback-based algorithm to dynamically adjust the amount of intra-request parallelism in LLM serving. TurboSpec predicts"goodput"- the amount of successfully generated tokens - to evaluate and adjust intra-request parallelism amount to that with the highest goodput in runtime. We implement TurboSpec on a real-world LLM serving system vLLM and demonstrate its effectiveness across diverse workloads and hardware configurations, providing consistent performance improvements across all test scenarios.
Woosuk Kwon, Zhuohan Li, Xiaoxuan Liu, Jongseok Park, Langxiang Hu, Chen Zhang, Kuntai Du, Xiangxi Mo · 13 authors totalDataComp-LM: In search of the next generation of training sets for language models
Neural Information Processing Systems · DOI 10.48550/arXiv.2406.11794 · arXiv 2406.11794 · 398 citations · Source: semantic-scholarWe introduce DataComp for Language Models (DCLM), a testbed for controlled dataset experiments with the goal of improving language models. As part of DCLM, we provide a standardized corpus of 240T tokens extracted from Common Crawl, effective pretraining recipes based on the OpenLM framework, and a broad suite of 53 downstream evaluations. Participants in the DCLM benchmark can experiment with data curation strategies such as deduplication, filtering, and data mixing at model scales ranging from 412M to 7B parameters. As a baseline for DCLM, we conduct extensive experiments and find that model-based filtering is key to assembling a high-quality training set. The resulting dataset, DCLM-Baseline enables training a 7B parameter language model from scratch to 64% 5-shot accuracy on MMLU with 2.6T training tokens. Compared to MAP-Neo, the previous state-of-the-art in open-data language models, DCLM-Baseline represents a 6.6 percentage point improvement on MMLU while being trained with 40% less compute. Our baseline model is also comparable to Mistral-7B-v0.3 and Llama 3 8B on MMLU (63%&66%), and performs similarly on an average of 53 natural language understanding tasks while being trained with 6.6x less compute than Llama 3 8B. Our results highlight the importance of dataset design for training language models and offer a starting point for further research on data curation.
Vaishaal Shankar, Jeffrey Li, Alex Fang, G. Smyrnis, Maor Ivgi, Matt Jordan, S. Gadre, Hritik Bansal · 59 authors totalSplit, Unlearn, Merge: Leveraging Data Attributes for More Effective Unlearning in LLMs
arXiv.org · arXiv 2406.11780 · 21 citations · Source: semantic-scholar+arxivLarge language models (LLMs) have shown to pose social and ethical risks such as generating toxic language or facilitating malicious use of hazardous knowledge. Machine unlearning is a promising approach to improve LLM safety by directly removing harmful behaviors and knowledge. In this paper, we propose"SPlit, UNlearn, MerGE"(SPUNGE), a framework that can be used with any unlearning method to amplify its effectiveness. SPUNGE leverages data attributes during unlearning by splitting unlearning data into subsets based on specific attribute values, unlearning each subset separately, and merging the unlearned models. We empirically demonstrate that SPUNGE significantly improves the performance of two recent unlearning methods on state-of-the-art LLMs while maintaining their general capabilities on standard academic benchmarks.
Nathalie Baracaldo, S. Kadhe, Farhan Ahmed, Dennis Wei, Inkit Padhi · 5 authors totalNemotron-4 340B Technical Report
arXiv.org · arXiv 2406.11704 · 134 citations · Source: arxiv+semantic-scholarWe release the Nemotron-4 340B model family, including Nemotron-4-340B-Base, Nemotron-4-340B-Instruct, and Nemotron-4-340B-Reward. Our models are open access under the NVIDIA Open Model License Agreement, a permissive model license that allows distribution, modification, and use of the models and its outputs. These models perform competitively to open access models on a wide range of evaluation benchmarks, and were sized to fit on a single DGX H100 with 8 GPUs when deployed in FP8 precision. We believe that the community can benefit from these models in various research studies and commercial applications, especially for generating synthetic data to train smaller language models. Notably, over 98% of data used in our model alignment process is synthetically generated, showcasing the effectiveness of these models in generating synthetic data. To further support open research and facilitate model development, we are also open-sourcing the synthetic data generation pipeline used in our model alignment process.
Sanjeev Satheesh, Nvidia, :, Bo Adler, Niket Agarwal, Ashwath Aithal, Dong H. Anh, Pallab Bhattacharya · 83 authors totalMINT-1T: Scaling Open-Source Multimodal Data by 10x: A Multimodal Dataset with One Trillion Tokens
Neural Information Processing Systems · DOI 10.48550/arXiv.2406.11271 · arXiv 2406.11271 · 51 citations · Source: arxiv+semantic-scholarMultimodal interleaved datasets featuring free-form interleaved sequences of images and text are crucial for training frontier large multimodal models (LMMs). Despite the rapid progression of open-source LMMs, there remains a pronounced scarcity of large-scale, diverse open-source multimodal interleaved datasets. In response, we introduce MINT-1T, the most extensive and diverse open-source Multimodal INTerleaved dataset to date. MINT-1T comprises one trillion text tokens and 3.4 billion images, a 10x scale-up from existing open-source datasets. Additionally, we include previously untapped sources such as PDFs and ArXiv papers. As scaling multimodal interleaved datasets requires substantial engineering effort, sharing the data curation process and releasing the dataset greatly benefits the community. Our experiments show that LMMs trained on MINT-1T rival the performance of models trained on the previous leading dataset, OBELICS. Our data and code will be released at https://github.com/mlfoundations/MINT-1T.
Ran Xu, Anas Awadalla, Le Xue, Oscar Lo, Manli Shu, Hannah Lee, E. Guha, Matt Jordan · 14 authors totalMobileAIBench: Benchmarking LLMs and LMMs for On-Device Use Cases
arXiv.org · DOI 10.48550/arXiv.2406.10290 · arXiv 2406.10290 · 16 citations · Source: arxiv+semantic-scholarThe deployment of Large Language Models (LLMs) and Large Multimodal Models (LMMs) on mobile devices has gained significant attention due to the benefits of enhanced privacy, stability, and personalization. However, the hardware constraints of mobile devices necessitate the use of models with fewer parameters and model compression techniques like quantization. Currently, there is limited understanding of quantization's impact on various task performances, including LLM tasks, LMM tasks, and, critically, trust and safety. There is a lack of adequate tools for systematically testing these models on mobile devices. To address these gaps, we introduce MobileAIBench, a comprehensive benchmarking framework for evaluating mobile-optimized LLMs and LMMs. MobileAIBench assesses models across different sizes, quantization levels, and tasks, measuring latency and resource consumption on real devices. Our two-part open-source framework includes a library for running evaluations on desktops and an iOS app for on-device latency and hardware utilization measurements. Our thorough analysis aims to accelerate mobile AI research and deployment by providing insights into the performance and feasibility of deploying LLMs and LMMs on mobile platforms.
Ran Xu, Rithesh Murthy, Liangwei Yang, Juntao Tan, T. Awalgaonkar, Yilun Zhou, Shelby Heinecke, Sachin Desai · 18 authors totalSycophancy to Subterfuge: Investigating Reward-Tampering in Large Language Models
arXiv preprint · DOI 10.48550/arXiv.2406.10162 · arXiv 2406.10162 · 153 citations · Source: arxiv+dblpIn reinforcement learning, specification gaming occurs when AI systems learn undesired behaviors that are highly rewarded due to misspecified training goals. Specification gaming can range from simple behaviors like sycophancy to sophisticated and pernicious behaviors like reward-tampering, where a model directly modifies its own reward mechanism. However, these more pernicious behaviors may be too complex to be discovered via exploration. In this paper, we study whether Large Language Model (LLM) assistants which find easily discovered forms of specification gaming will generalize to perform rarer and more blatant forms, up to and including reward-tampering. We construct a curriculum of increasingly sophisticated gameable environments and find that training on early-curriculum environments leads to more specification gaming on remaining environments. Strikingly, a small but non-negligible proportion of the time, LLM assistants trained on the full curriculum generalize zero-shot to directly rewriting their own reward function. Retraining an LLM not to game early-curriculum environments mitigates, but does not eliminate, reward-tampering in later environments. Moreover, adding harmlessness training to our gameable environments does not prevent reward-tampering. These results demonstrate that LLMs can generalize from common forms of specification gaming to more pernicious reward tampering and that such behavior may be nontrivial to remove.
Buck Shlegeris, Carson Denison, Monte MacDiarmid, Fazl Barez, David Duvenaud, Shauna Kravec, Samuel Marks, Nicholas Schiefer · 14 authors totalKerasCV and KerasNLP: Multi-framework Models
Journal of Machine Learning Research · arXiv 2405.20247 · 3 citations · Source: dblpKerasCV and KerasNLP are extensions of the Keras API for computer vision and natural language processing, offering modular, multi-framework (JAX/TensorFlow/PyTorch) components and pretrained models.
Francois Chollet, Matthew Watson, Divyashree Shivakumar Sreepathihalli, Martin Gorner, Kiranbir Sodhia, Ramesh Sampath, Tirth Patel, Haifeng Jin · 12 authors totalReasoning about concepts with LLMs: Inconsistencies abound
arXiv.org · arXiv 2405.20163 · 16 citations · Source: arxiv+semantic-scholarThe ability to summarize and organize knowledge into abstract concepts is key to learning and reasoning. Many industrial applications rely on the consistent and systematic use of concepts, especially when dealing with decision-critical knowledge. However, we demonstrate that, when methodically questioned, large language models (LLMs) often display and demonstrate significant inconsistencies in their knowledge. Computationally, the basic aspects of the conceptualization of a given domain can be represented as Is-A hierarchies in a knowledge graph (KG) or ontology, together with a few properties or axioms that enable straightforward reasoning. We show that even simple ontologies can be used to reveal conceptual inconsistencies across several LLMs. We also propose strategies that domain experts can use to evaluate and improve the coverage of key domain concepts in LLMs of various sizes. In particular, we have been able to significantly enhance the performance of LLMs of various sizes with openly available weights using simple knowledge-graph (KG) based prompting strategies.
Rosario Uceda-Sosa, Karthikeyan Natesan Ramamurthy, Maria Chang, Moninder Singh · 4 authors totalSpinQuant: LLM quantization with learned rotations
arXiv · DOI 10.48550/arxiv.2405.16406 · arXiv 2405.16406 · 6 citations · Source: openalexPost-training quantization (PTQ) techniques applied to weights, activations, and the KV cache greatly reduce memory usage, latency, and power consumption of Large Language Models (LLMs), but may lead to large quantization errors when outliers are present. Rotating activation or weight matrices helps remove outliers and benefits quantization. In this work, we identify a collection of applicable rotation parameterizations that lead to identical outputs in full-precision Transformer architectures while enhancing quantization accuracy. In addition, we find that some random rotations lead to much better quantization than others, with an up to 13 points difference in downstream zero-shot reasoning performance. As a result, we propose SpinQuant, a novel approach that incorporates learned rotation matrices for optimal quantized network accuracy. With 4-bit quantization of weight, activation, and KV-cache, SpinQuant narrows the accuracy gap on zero-shot reasoning tasks with full precision to merely 2.9 points on the LLaMA-2 7B model, surpassing LLM-QAT by 19.1 points and SmoothQuant by 25.0 points. Furthermore, SpinQuant also outperforms concurrent work QuaRot, which applies random rotations to remove outliers. In particular, for LLaMA-3 8B models that are hard to quantize, SpinQuant reduces the gap to full precision by up to 45.1% relative to QuaRot. Code is available at https://github.com/facebookresearch/SpinQuant.
Dhruv Choudhary, Zechun Liu, Changsheng Zhao, Igor Fedorov, Bilge Soran, Raghuraman Krishnamoorthi, Vikas Chandra, Yuandong Tian · 9 authors totalDataset Decomposition: Faster LLM Training with Variable Sequence Length Curriculum
Neural Information Processing Systems · DOI 10.48550/arXiv.2405.13226 · arXiv 2405.13226 · 33 citations · Source: semantic-scholarLarge language models (LLMs) are commonly trained on datasets consisting of fixed-length token sequences. These datasets are created by randomly concatenating documents of various lengths and then chunking them into sequences of a predetermined target length (concat-and-chunk). Recent attention implementations mask cross-document attention, reducing the effective length of a chunk of tokens. Additionally, training on long sequences becomes computationally prohibitive due to the quadratic cost of attention. In this study, we introduce dataset decomposition, a novel variable sequence length training technique, to tackle these challenges. We decompose a dataset into a union of buckets, each containing sequences of the same size extracted from a unique document. During training, we use variable sequence length and batch-size, sampling simultaneously from all buckets with a curriculum. In contrast to the concat-and-chunk baseline, which incurs a fixed attention cost at every step of training, our proposed method incurs a computational cost proportional to the actual document lengths at each step, resulting in significant savings in training time. We train an 8k context-length 1B model at the same cost as a 2k context-length model trained with the baseline approach. Experiments on a web-scale corpus demonstrate that our approach significantly enhances performance on standard language evaluations and long-context benchmarks, reaching target accuracy with up to 6x faster training compared to the baseline. Our method not only enables efficient pretraining on long sequences but also scales effectively with dataset size. Lastly, we shed light on a critical yet less studied aspect of training large language models: the distribution and curriculum of sequence lengths, which results in a non-negligible difference in performance.
Vaishaal Shankar, Hadi Pouransari, Chun-Liang Li, Jen-Hao Rick Chang, Pavan Kumar Anasosalu Vasu, Cem Koc, Oncel Tuzel · 7 authors totalEnabling High-Sparsity Foundational Llama Models with Efficient Pretraining and Deployment
CoRR · arXiv 2405.03594 · Source: arxiv+neural-magic-first-partyMichael Goin, Abhinav Agarwalla, Abhay Gupta, Alexandre Marques, Shubhra Pandit, Eldar Kurtic, Kevin Leong, Tuan Nguyen · 12 authors totalAdvancing Multimodal Medical Capabilities of Gemini
arXiv.org · DOI 10.48550/arXiv.2405.03162 · arXiv 2405.03162 · 157 citations · Source: semantic-scholarMany clinical tasks require an understanding of specialized data, such as medical images and genomics, which is not typically found in general-purpose large multimodal models. Building upon Gemini's multimodal models, we develop several models within the new Med-Gemini family that inherit core capabilities of Gemini and are optimized for medical use via fine-tuning with 2D and 3D radiology, histopathology, ophthalmology, dermatology and genomic data. Med-Gemini-2D sets a new standard for AI-based chest X-ray (CXR) report generation based on expert evaluation, exceeding previous best results across two separate datasets by an absolute margin of 1% and 12%, where 57% and 96% of AI reports on normal cases, and 43% and 65% on abnormal cases, are evaluated as"equivalent or better"than the original radiologists' reports. We demonstrate the first ever large multimodal model-based report generation for 3D computed tomography (CT) volumes using Med-Gemini-3D, with 53% of AI reports considered clinically acceptable, although additional research is needed to meet expert radiologist reporting quality. Beyond report generation, Med-Gemini-2D surpasses the previous best performance in CXR visual question answering (VQA) and performs well in CXR classification and radiology VQA, exceeding SoTA or baselines on 17 of 20 tasks. In histopathology, ophthalmology, and dermatology image classification, Med-Gemini-2D surpasses baselines across 18 out of 20 tasks and approaches task-specific model performance. Beyond imaging, Med-Gemini-Polygenic outperforms the standard linear polygenic risk score-based approach for disease risk prediction and generalizes to genetically correlated diseases for which it has never been trained. Although further development and evaluation are necessary in the safety-critical medical domain, our results highlight the potential of Med-Gemini across a wide range of medical tasks.
Daniel Golden, Lin Yang, Shawn Xu, Andrew B. Sellergren, Timo Kohlberger, Yuchen Zhou, Ira Ktena, A. Kiraly · 47 authors totalLoRA Land: 310 Fine-tuned LLMs that Rival GPT-4, A Technical Report
arXiv · DOI 10.48550/arxiv.2405.00732 · arXiv 2405.00732 · 9 citations · Source: openalexLow Rank Adaptation (LoRA) has emerged as one of the most widely adopted methods for Parameter Efficient Fine-Tuning (PEFT) of Large Language Models (LLMs). LoRA reduces the number of trainable parameters and memory usage while achieving comparable performance to full fine-tuning. We aim to assess the viability of training and serving LLMs fine-tuned with LoRA in real-world applications. First, we measure the quality of LLMs fine-tuned with quantized low rank adapters across 10 base models and 31 tasks for a total of 310 models. We find that 4-bit LoRA fine-tuned models outperform base models by 34 points and GPT-4 by 10 points on average. Second, we investigate the most effective base models for fine-tuning and assess the correlative and predictive capacities of task complexity heuristics in forecasting the outcomes of fine-tuning. Finally, we evaluate the latency and concurrency capabilities of LoRAX, an open-source Multi-LoRA inference server that facilitates the deployment of multiple LoRA fine-tuned models on a single GPU using shared base model weights and dynamic adapter loading. LoRAX powers LoRA Land, a web application that hosts 25 LoRA fine-tuned Mistral-7B LLMs on a single NVIDIA A100 GPU with 80GB memory. LoRA Land highlights the quality and cost-effectiveness of employing multiple specialized LLMs over a single, general-purpose LLM.
Piero Molino, Justin Zhao, Timothy C. Wang, Wael Abid, Geoffrey Angus, Arnav Garg, Jeffery Kinnison, Alex Sherstinsky · 10 authors totalKGValidator: A Framework for Automatic Validation of Knowledge Graph Construction
arXiv (Cornell University) · DOI 10.48550/arxiv.2404.15923 · 5 citations · Source: openalex+career-authorityParsa Ghaffari, Jack Boylan, Shashank Mangla, Dominic Thorn, Demian Gholipour Ghalandari, Chris Hokamp · 6 authors totalPegasus-v1 Technical Report
arXiv preprint (Twelve Labs technical report) · DOI 10.48550/arXiv.2404.14687 · arXiv 2404.14687 · 5 citations · Source: arxivThis technical report introduces Pegasus-1, a multimodal language model specialized in video content understanding and interaction through natural language. Pegasus-1 is designed to address the unique challenges posed by video data, such as interpreting spatiotemporal information, to offer nuanced video content comprehension across various lengths. This technical report overviews Pegasus-1's architecture, training strategies, and its performance in benchmarks on video conversation, zero-shot video question answering, and video summarization. We also explore qualitative characteristics of Pegasus-1, demonstrating its capabilities as well as its limitations, in order to provide readers a balanced view of its current state and its future direction.
James Le, Raehyuk Jung, Hyojun Go, Jaehyuk Yi, Jiho Jang, Daniel Kim, Jay Suh, Aiden Lee · 44 authors totalEnhancing Q&A with Domain-Specific Fine-Tuning and Iterative Reasoning: A Comparative Study
arXiv.org · arXiv 2404.11792 · 16 citations · Source: semantic-scholarThis paper investigates the impact of domain-specific model fine-tuning and of reasoning mechanisms on the performance of question-answering (Q&A) systems powered by large language models (LLMs) and Retrieval-Augmented Generation (RAG). Using the FinanceBench SEC financial filings dataset, we observe that, for RAG, combining a fine-tuned embedding model with a fine-tuned LLM achieves better accuracy than generic models, with relatively greater gains attributable to fine-tuned embedding models. Additionally, employing reasoning iterations on top of RAG delivers an even bigger jump in performance, enabling the Q&A systems to get closer to human-expert quality. We discuss the implications of such findings, propose a structured technical design space capturing major technical components of Q&A AI, and provide recommendations for making high-impact technical choices for such components. We plan to follow up on this work with actionable guides for AI teams and further investigations into the impact of domain-specific augmentation in RAG and into agentic AI capabilities such as advanced planning and reasoning.
Anthony Annunziata, Christopher Nguyen, Zooey Nguyen, A. Annunziata, Vinh Luong, Sang Dinh, Quynh Le, A. Ha · 10 authors totalThe Landscape of Emerging AI Agent Architectures for Reasoning, Planning, and Tool Calling: A Survey
arXiv.org · arXiv 2404.11584 · 249 citations · Source: arxiv+semantic-scholarThis survey paper examines the recent advancements in AI agent implementations, with a focus on their ability to achieve complex goals that require enhanced reasoning, planning, and tool execution capabilities. The primary objectives of this work are to a) communicate the current capabilities and limitations of existing AI agent implementations, b) share insights gained from our observations of these systems in action, and c) suggest important considerations for future developments in AI agent design. We achieve this by providing overviews of single-agent and multi-agent architectures, identifying key patterns and divergences in design choices, and evaluating their overall impact on accomplishing a provided goal. Our contribution outlines key themes when selecting an agentic architecture, the impact of leadership on agent systems, agent communication styles, and key phases for planning, execution, and reflection that enable robust AI agent systems.
Sandi Besen, Tula Masterman, Mason Sawtell, Alex Chao · 4 authors totalRecurrentGemma: Moving Past Transformers for Efficient Open Language Models
arXiv preprint (Google DeepMind) · DOI 10.48550/arXiv.2404.07839 · arXiv 2404.07839 · 54 citations · Source: arxivWe introduce RecurrentGemma, a family of open language models which uses Google's novel Griffin architecture. Griffin combines linear recurrences with local attention to achieve excellent performance on language. It has a fixed-sized state, which reduces memory use and enables efficient inference on long sequences. We provide two sizes of models, containing 2B and 9B parameters, and provide pre-trained and instruction tuned variants for both. Our models achieve comparable performance to similarly-sized Gemma baselines despite being trained on fewer tokens.
Clément Farabet, Aleksandar Botev, Soham De, Samuel L Smith, Anushan Fernando, George-Cristian Muraru, Ruba Haroun, Leonard Berrada · 62 authors totalLinguistic Calibration of Language Models.
CoRR · DOI 10.48550/arXiv.2404.00474 · arXiv 2404.00474 · Source: dblp+stanford-authorityTengyu Ma, Neil Band, Xuechen Li 0005, Tengyu Ma 0001, Tatsunori Hashimoto · 5 authors totalBioMedLM: A 2.7B Parameter Language Model Trained On Biomedical Text
arXiv.org · DOI 10.48550/arXiv.2403.18421 · arXiv 2403.18421 · 164 citations · Source: semantic-scholarModels such as GPT-4 and Med-PaLM 2 have demonstrated impressive performance on a wide variety of biomedical NLP tasks. However, these models have hundreds of billions of parameters, are computationally expensive to run, require users to send their input data over the internet, and are trained on unknown data sources. Can smaller, more targeted models compete? To address this question, we build and release BioMedLM, a 2.7 billion parameter GPT-style autoregressive model trained exclusively on PubMed abstracts and full articles. When fine-tuned, BioMedLM can produce strong multiple-choice biomedical question-answering results competitive with much larger models, such as achieving a score of 57.3% on MedMCQA (dev) and 69.0% on the MMLU Medical Genetics exam. BioMedLM can also be fine-tuned to produce useful answers to patient questions on medical topics. This demonstrates that smaller models can potentially serve as transparent, privacy-preserving, economical and environmentally friendly foundations for particular NLP applications, such as in biomedicine. The model is available on the Hugging Face Hub: https://huggingface.co/stanford-crfm/BioMedLM.
Abhi Venigalla, David Hall, Elliot Bolton, Abhinav Venigalla, Michihiro Yasunaga, David Leo Wright Hall, Betty Xiong, Tony Lee · 11 authors totalThe Model Openness Framework: Promoting Completeness and Openness for Reproducibility, Transparency, and Usability in Artificial Intelligence
CoRR · arXiv 2403.13784 · Source: arxiv+linux-foundation-first-partyMatt White, Ibrahim Haddad, Cailean Osborne, Xiao-Yang Yanglet Liu, Ahmed Abdelmonsef, Sachin Varghese, Arnaud Le Hors · 7 authors totalPretraining Codomain Attention Neural Operators for Solving Multiphysics PDEs
Neural Information Processing Systems · arXiv 2403.12553 · 68 citations · Source: semantic-scholarExisting neural operator architectures face challenges when solving multiphysics problems with coupled partial differential equations (PDEs) due to complex geometries, interactions between physical variables, and the limited amounts of high-resolution training data. To address these issues, we propose Codomain Attention Neural Operator (CoDA-NO), which tokenizes functions along the codomain or channel space, enabling self-supervised learning or pretraining of multiple PDE systems. Specifically, we extend positional encoding, self-attention, and normalization layers to function spaces. CoDA-NO can learn representations of different PDE systems with a single model. We evaluate CoDA-NO's potential as a backbone for learning multiphysics PDEs over multiple systems by considering few-shot learning settings. On complex downstream tasks with limited data, such as fluid flow simulations, fluid-structure interactions, and Rayleigh-B\'enard convection, we found CoDA-NO to outperform existing methods by over 36%.
Jean Kossaifi, Md Ashiqur Rahman, Robert Joseph George, Mogab Elleithy, Daniel V. Leibovici, Zong-Yi Li, B. Bonev, Colin White · 12 authors totalSQ-LLaVA: Self-Questioning for Large Vision-Language Assistant
European Conference on Computer Vision · DOI 10.48550/arXiv.2403.11299 · arXiv 2403.11299 · 31 citations · Source: arxiv+semantic-scholarRecent advances in vision-language models have shown notable generalization in broad tasks through visual instruction tuning. However, bridging the gap between the pre-trained vision encoder and the large language models (LLMs) becomes the whole network's bottleneck. To improve cross-modality alignment, existing works usually consider more visual instruction data covering a broader range of vision tasks to fine-tune the model for question-answering, which, however, is costly to obtain and has not thoroughly explored the rich contextual information contained in images. This paper first attempts to harness the overlooked context within visual instruction data, training the model to self-supervised"learning"how to ask high-quality questions. In this way, we introduce a novel framework named SQ-LLaVA: Self-Questioning for Large Vision-Language Assistant. SQ-LLaVA exhibits proficiency in generating flexible and meaningful image-related questions while analyzing the visual clue and prior language knowledge, signifying an advanced level of generalized visual understanding. Moreover, fine-tuning SQ-LLaVA on higher-quality instruction data shows a performance improvement compared with traditional visual-instruction tuning methods. This improvement highlights the efficacy of self-questioning techniques in achieving a deeper and more nuanced comprehension of visual content across various contexts.
Ran Xu, Guohao Sun, Can Qin, Jiamian Wang, Zeyuan Chen, Zhiqiang Tao · 6 authors totalRAFT: Adapting Language Model to Domain Specific RAG
arXiv.org · DOI 10.48550/arXiv.2403.10131 · arXiv 2403.10131 · 382 citations · Source: semantic-scholarPretraining Large Language Models (LLMs) on large corpora of textual data is now a standard paradigm. When using these LLMs for many downstream applications, it is common to additionally bake in new knowledge (e.g., time-critical news, or private domain knowledge) into the pretrained model either through RAG-based-prompting, or fine-tuning. However, the optimal methodology for the model to gain such new knowledge remains an open question. In this paper, we present Retrieval Augmented FineTuning (RAFT), a training recipe that improves the model's ability to answer questions in a"open-book"in-domain settings. In RAFT, given a question, and a set of retrieved documents, we train the model to ignore those documents that don't help in answering the question, which we call, distractor documents. RAFT accomplishes this by citing verbatim the right sequence from the relevant document that would help answer the question. This coupled with RAFT's chain-of-thought-style response helps improve the model's ability to reason. In domain-specific RAG, RAFT consistently improves the model's performance across PubMed, HotpotQA, and Gorilla datasets, presenting a post-training recipe to improve pre-trained LLMs to in-domain RAG. RAFT's code and demo are open-sourced at github.com/ShishirPatil/gorilla.
Matei Zaharia, Tianjun Zhang, Shishir G. Patil, Naman Jain, Sheng Shen, M. Zaharia, Ion Stoica, Joseph E. Gonzalez · 8 authors totalLanguage models scale reliably with over-training and on downstream tasks
International Conference on Learning Representations · DOI 10.48550/arXiv.2403.08540 · arXiv 2403.08540 · 108 citations · Source: semantic-scholarScaling laws are useful guides for derisking expensive training runs, as they predict performance of large models using cheaper, small-scale experiments. However, there remain gaps between current scaling studies and how language models are ultimately trained and evaluated. For instance, scaling is usually studied in the compute-optimal training regime (i.e.,"Chinchilla optimal"regime). In contrast, models are often over-trained to reduce inference costs. Moreover, scaling laws mostly predict loss on next-token prediction, but models are usually compared on downstream task performance. To address both shortcomings, we create a testbed of 104 models with 0.011B to 6.9B parameters trained with various numbers of tokens on three data distributions. First, we fit scaling laws that extrapolate in both the amount of over-training and the number of model parameters. This enables us to predict the validation loss of a 1.4B parameter, 900B token run (i.e., 32$\times$ over-trained) and a 6.9B parameter, 138B token run (i.e., a compute-optimal run)$\unicode{x2014}$each from experiments that take 300$\times$ less compute. Second, we relate the perplexity of a language model to its downstream task performance by proposing a power law. We use this law to predict top-1 error averaged over downstream tasks for the two aforementioned models, using experiments that take 20$\times$ less compute. Our experiments are available at https://github.com/mlfoundations/scaling.
Vaishaal Shankar, S. Gadre, G. Smyrnis, Suchin Gururangan, Mitchell Wortsman, Rulin Shao, Jean-Pierre Mercat, Alex Fang · 23 authors totalGemma: Open Models Based on Gemini Research and Technology
arXiv preprint (Google DeepMind) · DOI 10.48550/arXiv.2403.08295 · arXiv 2403.08295 · 1,197 citations · Source: arxivThis work introduces Gemma, a family of lightweight, state-of-the art open models built from the research and technology used to create Gemini models. Gemma models demonstrate strong performance across academic benchmarks for language understanding, reasoning, and safety. We release two sizes of models (2 billion and 7 billion parameters), and provide both pretrained and fine-tuned checkpoints. Gemma outperforms similarly sized open models on 11 out of 18 text-based tasks, and we present comprehensive evaluations of safety and responsibility aspects of the models, alongside a detailed description of model development. We believe the responsible release of LLMs is critical for improving the safety of frontier models, and for enabling the next wave of LLM innovations.
Clément Farabet, Gemma Team, Thomas Mesnard, Cassidy Hardin, Robert Dadashi, Surya Bhupatiraju, Shreya Pathak, Laurent Sifre · 108 authors totalGemini 1.5: Unlocking multimodal understanding across millions of tokens of context
arXiv preprint (Google DeepMind) · DOI 10.48550/arXiv.2403.05530 · arXiv 2403.05530 · 3,910 citations · Source: arxivIn this report, we introduce the Gemini 1.5 family of models, representing the next generation of highly compute-efficient multimodal models capable of recalling and reasoning over fine-grained information from millions of tokens of context, including multiple long documents and hours of video and audio. The family includes two new models: (1) an updated Gemini 1.5 Pro, which exceeds the February version on the great majority of capabilities and benchmarks; (2) Gemini 1.5 Flash, a more lightweight variant designed for efficiency with minimal regression in quality. Gemini 1.5 models achieve near-perfect recall on long-context retrieval tasks across modalities, improve the state-of-the-art in long-document QA, long-video QA and long-context ASR, and match or surpass Gemini 1.0 Ultra's state-of-the-art performance across a broad set of benchmarks. Studying the limits of Gemini 1.5's long-context ability, we find continued improvement in next-token prediction and near-perfect retrieval (>99%) up to at least 10M tokens, a generational leap over existing models such as Claude 3.0 (200k) and GPT-4 Turbo (128k). Finally, we highlight real-world use cases, such as Gemini 1.5 collaborating with professionals on completing their tasks achieving 26 to 75% time savings across 10 different job categories, as well as surprising new capabilities of large language models at the frontier; when given a grammar manual for Kalamang, a language with fewer than 200 speakers worldwide, the model learns to translate English to Kalamang at a similar level to a person who learned from the same content.
Brennan Saeta, Clément Farabet, Gemini Team, Petko Georgiev, Ving Ian Lei, Ryan Burnell, Libin Bai, Anmol Gulati · 1,137 authors totalAre More LLM Calls All You Need? Towards Scaling Laws of Compound Inference Systems
arXiv (Cornell University) · DOI 10.48550/arxiv.2403.02419 · 5 citations · Source: openalex+authoritative-profilePeter Bailis, Lingjiao Chen, Jared Quincy Davis, Boris Hanin, Ion Stoica, Matei Zaharia, James Zou · 7 authors totalImplications of Regulations on the Use of AI and Generative AI for Human-Centered Responsible Artificial Intelligence
arXiv (Cornell University) · DOI 10.48550/arxiv.2403.00148 · 1 citations · Source: openalex+authoritative-profileRicardo Baeza-Yates, Marios Constantinides, Mohammad Tahaei, Daniele Quercia, Simone Stumpf, Michael Madaio, Seán Kennedy, Lauren Wilcox · 16 authors totalFOFO: A Benchmark to Evaluate LLMs' Format-Following Capability
Annual Meeting of the Association for Computational Linguistics · DOI 10.48550/arXiv.2402.18667 · arXiv 2402.18667 · 90 citations · Source: arxiv+semantic-scholarThis paper presents FoFo, a pioneering benchmark for evaluating large language models' (LLMs) ability to follow complex, domain-specific formats, a crucial yet underexamined capability for their application as AI agents. Despite LLMs' advancements, existing benchmarks fail to assess their format-following proficiency adequately. FoFo fills this gap with a diverse range of real-world formats and instructions, developed through an AI-Human collaborative method. Our evaluation across both open-source (e.g., Llama 2, WizardLM) and closed-source (e.g., GPT-4, PALM2, Gemini) LLMs highlights three key findings: open-source models significantly lag behind closed-source ones in format adherence; LLMs' format-following performance is independent of their content generation quality; and LLMs' format proficiency varies across different domains. These insights suggest the need for specialized tuning for format-following skills and highlight FoFo's role in guiding the selection of domain-specific AI agents. FoFo is released here at https://github.com/SalesforceAIResearch/FoFo.
Ran Xu, Congying Xia, Chen Xing, Jiangshu Du, Xinyi Yang, Yihao Feng, Wenpeng Yin, Caiming Xiong · 8 authors totalUnintended Impacts of LLM Alignment on Global Representation
ACL · DOI 10.48550/arXiv.2402.15018 · arXiv 2402.15018 · 77 citations · Source: arxiv+semantic-scholarBefore being deployed for user-facing applications, developers align Large Language Models (LLMs) to user preferences through a variety of procedures, such as Reinforcement Learning From Human Feedback (RLHF) and Direct Preference Optimization (DPO). Current evaluations of these procedures focus on benchmarks of instruction following, reasoning, and truthfulness. However, human preferences are not universal, and aligning to specific preference sets may have unintended effects. We explore how alignment impacts performance along three axes of global representation: English dialects, multilingualism, and opinions from and about countries worldwide. Our results show that current alignment procedures create disparities between English dialects and global opinions. We find alignment improves capabilities in several languages. We conclude by discussing design decisions that led to these unintended impacts and recommendations for more equitable preference tuning. We make our code and data publicly available on Github.
Michael Ryan, Michael J. Ryan, William Held, Diyi Yang · 4 authors totalChain of Thought Empowers Transformers to Solve Inherently Serial Problems.
CoRR · DOI 10.48550/arXiv.2402.12875 · arXiv 2402.12875 · Source: dblp+stanford-authorityTengyu Ma, Zhiyuan Li 0005, Hong Liu, Denny Zhou, Tengyu Ma 0001 · 5 authors totalOmniBOR: A System for Automatic, Verifiable Artifact Resolution across Software Supply Chains
arXiv.org · DOI 10.48550/arXiv.2402.08980 · arXiv 2402.08980 · 4 citations · Source: semantic-scholar+lift+omniborDavid Pollak, B. Seshadri, Yongkui Han, Chris Olson, Vojislav Tomašević · 5 authors totalEmpowering Federated Learning for Massive Models with NVIDIA FLARE
arXiv preprint · DOI 10.48550/arXiv.2402.07792 · arXiv 2402.07792 · 11 citations · Source: arxiv+semantic-scholarIn the ever-evolving landscape of artificial intelligence (AI) and large language models (LLMs), handling and leveraging data effectively has become a critical challenge. Most state-of-the-art machine learning algorithms are data-centric. However, as the lifeblood of model performance, necessary data cannot always be centralized due to various factors such as privacy, regulation, geopolitics, copyright issues, and the sheer effort required to move vast datasets. In this paper, we explore how federated learning enabled by NVIDIA FLARE can address these challenges with easy and scalable integration capabilities, enabling parameter-efficient and full supervised fine-tuning of LLMs for natural language processing and biopharmaceutical applications to enhance their accuracy and robustness.
Chester Chen, Holger R. Roth, Ziyue Xu, Yuan-Ting Hsieh, Adithya Renduchintala, Isaac Yang, Zhihong Zhang, Yuhong Wen · 15 authors totalLarge Language Models: A Survey
arXiv.org · DOI 10.48550/arXiv.2402.06196 · arXiv 2402.06196 · 1,059 citations · Source: semantic-scholarLarge Language Models (LLMs) have drawn a lot of attention due to their strong performance on a wide range of natural language tasks, since the release of ChatGPT in November 2022. LLMs' ability of general-purpose language understanding and generation is acquired by training billions of model's parameters on massive amounts of text data, as predicted by scaling laws \cite{kaplan2020scaling,hoffmann2022training}. The research area of LLMs, while very recent, is evolving rapidly in many different ways. In this paper, we review some of the most prominent LLMs, including three popular LLM families (GPT, LLaMA, PaLM), and discuss their characteristics, contributions and limitations. We also give an overview of techniques developed to build, and augment LLMs. We then survey popular datasets prepared for LLM training, fine-tuning, and evaluation, review widely used LLM evaluation metrics, and compare the performance of several popular LLMs on a set of representative benchmarks. Finally, we conclude the paper by discussing open challenges and future research directions.
Richard Socher, Shervin Minaee, Tomáš Mikolov, Narjes Nikzad, M. Chenaghlu, R. Socher, Xavier Amatriain, Jianfeng Gao · 8 authors totalBreak the Sequential Dependency of LLM Inference Using Lookahead Decoding
arXiv (Cornell University) · DOI 10.48550/arxiv.2402.02057 · 3 citations · Source: openalex+authoritative-profilePeter Bailis, Yichao Fu, Ion Stoica, Hao Zhang · 4 authors totalStreaming Sequence Transduction through Dynamic Compression
International Workshop on Spoken Language Translation · DOI 10.48550/arXiv.2402.01172 · arXiv 2402.01172 · 2 citations · Source: semantic-scholarWe introduce STAR (Stream Transduction with Anchor Representations), a novel Transformer-based model designed for efficient sequence-to-sequence transduction over streams. STAR dynamically segments input streams to create compressed anchor representations, achieving nearly lossless compression (12x) in Automatic Speech Recognition (ASR) and outperforming existing methods. Moreover, STAR demonstrates superior segmentation and latency-quality trade-offs in simultaneous speech-to-text tasks, optimizing latency, memory footprint, and quality.
Tongfei Chen, Weiting Tan, Yunmo Chen, Guanghui Qin, Haoran Xu, Heidi C. Zhang, Benjamin Van Durme, Philipp Koehn · 8 authors totalEnhancing In-context Learning via Linear Probe Calibration
International Conference on Artificial Intelligence and Statistics · arXiv 2401.12406 · 21 citations · Source: semantic-scholar+arxivIn-context learning (ICL) is a new paradigm for natural language processing that utilizes Generative Pre-trained Transformer (GPT)-like models. This approach uses prompts that include in-context demonstrations to generate the corresponding output for a new query input. However, applying ICL in real cases does not scale with the number of samples, and lacks robustness to different prompt templates and demonstration permutations. In this paper, we first show that GPT-like models using ICL result in unreliable predictions based on a new metric based on Shannon entropy. Then, to solve this problem, we propose a new technique called the Linear Probe Calibration (LinC), a method that calibrates the model's output probabilities, resulting in reliable predictions and improved performance, while requiring only minimal additional samples (as few as five labeled data samples). LinC significantly enhances the ICL test performance of GPT models on various benchmark datasets, with an average improvement of up to 21%, and up to a 50% improvement in some cases, and significantly boosts the performance of PEFT methods, especially in the low resource regime. Moreover, LinC achieves lower expected calibration error, and is highly robust to varying label proportions, prompt templates, and demonstration permutations. Our code is available at \url{https://github.com/mominabbass/LinC}.
Nathalie Baracaldo, Momin Abbas, Yi Zhou, Parikshit Ram, Horst Samulowitz, Theodoros Salonidis, Tianyi Chen · 7 authors totalEquivariant Graph Neural Operator for Modeling 3D Dynamics
International Conference on Machine Learning · arXiv 2401.11037 · 55 citations · Source: semantic-scholarModeling the complex three-dimensional (3D) dynamics of relational systems is an important problem in the natural sciences, with applications ranging from molecular simulations to particle mechanics. Machine learning methods have achieved good success by learning graph neural networks to model spatial interactions. However, these approaches do not faithfully capture temporal correlations since they only model next-step predictions. In this work, we propose Equivariant Graph Neural Operator (EGNO), a novel and principled method that directly models dynamics as trajectories instead of just next-step prediction. Different from existing methods, EGNO explicitly learns the temporal evolution of 3D dynamics where we formulate the dynamics as a function over time and learn neural operators to approximate it. To capture the temporal correlations while keeping the intrinsic SE(3)-equivariance, we develop equivariant temporal convolutions parameterized in the Fourier space and build EGNO by stacking the Fourier layers over equivariant networks. EGNO is the first operator learning framework that is capable of modeling solution dynamics functions over time while retaining 3D equivariance. Comprehensive experiments in multiple domains, including particle simulations, human motion capture, and molecular dynamics, demonstrate the significantly superior performance of EGNO against existing methods, thanks to the equivariant temporal modeling. Our code is available at https://github.com/Minka
Jean Kossaifi, Minkai Xu, Jiaqi Han, Aaron Lou, Arvind Ramanathan, K. Azizzadenesheli, J. Leskovec, S. Ermon · 9 authors totalXTable in Action: Seamless Interoperability in Data Lakes
arXiv (VLDB demo) · arXiv 2401.09621 · 4 citations · Source: arxivAshvin Agrawal, Tim Brown, Anoop Johnson, Jesus Camacho-Rodriguez, Kyle Weller, Carlo Curino, Raghu Ramakrishnan · 7 authors totalScalable Pre-training of Large Autoregressive Image Models
International Conference on Machine Learning · DOI 10.48550/arXiv.2401.08541 · arXiv 2401.08541 · 144 citations · Source: semantic-scholarThis paper introduces AIM, a collection of vision models pre-trained with an autoregressive objective. These models are inspired by their textual counterparts, i.e., Large Language Models (LLMs), and exhibit similar scaling properties. Specifically, we highlight two key findings: (1) the performance of the visual features scale with both the model capacity and the quantity of data, (2) the value of the objective function correlates with the performance of the model on downstream tasks. We illustrate the practical implication of these findings by pre-training a 7 billion parameter AIM on 2 billion images, that achieves 84.0% on ImageNet-1k with a frozen trunk. Interestingly, even at this scale, we observe no sign of saturation in performance, suggesting that AIM potentially represents a new frontier for training large-scale vision models. The pre-training of AIM is similar to the pre-training of LLMs, and does not require any image-specific strategy to stabilize the training at scale.
Vaishaal Shankar, Alaaeldin El-Nouby, Michal Klein, Shuangfei Zhai, Miguel Angel Bautista, Alexander Toshev, J. Susskind, Armand Joulin · 8 authors totalSleeper Agents: Training Deceptive LLMs that Persist Through Safety Training
arXiv preprint · DOI 10.48550/arXiv.2401.05566 · arXiv 2401.05566 · 525 citations · Source: arxiv+dblpHumans are capable of strategically deceptive behavior: behaving helpfully in most situations, but then behaving very differently in order to pursue alternative objectives when given the opportunity. If an AI system learned such a deceptive strategy, could we detect it and remove it using current state-of-the-art safety training techniques? To study this question, we construct proof-of-concept examples of deceptive behavior in large language models (LLMs). For example, we train models that write secure code when the prompt states that the year is 2023, but insert exploitable code when the stated year is 2024. We find that such backdoor behavior can be made persistent, so that it is not removed by standard safety training techniques, including supervised fine-tuning, reinforcement learning, and adversarial training (eliciting unsafe behavior and then training to remove it). The backdoor behavior is most persistent in the largest models and in models trained to produce chain-of-thought reasoning about deceiving the training process, with the persistence remaining even when the chain-of-thought is distilled away. Furthermore, rather than removing backdoors, we find that adversarial training can teach models to better recognize their backdoor triggers, effectively hiding the unsafe behavior. Our results suggest that, once a model exhibits deceptive behavior, standard techniques could fail to remove such deception and create a false impression of safety.
Buck Shlegeris, Evan Hubinger, Carson Denison, Jesse Mu, Mike Lambert, Meg Tong, Monte MacDiarmid, Tamera Lanham · 12 authors total