Papers.
Research connected to its authors, projects, companies, talks, events, and the rest of the graph.
Add a paper ↗Automatic classification of underlying AD vs. FTLD pathology in people with clinical Frontotemporal Dementia using digital speech markers
Alzheimer s & Dementia · DOI 10.1002/alz.073794 · 0 citations · Source: openalex+first-party-career-authorityMark Liberman, Sunghye Cho, Sanjana Shellikeri, Katheryn A Q Cousins, Sharon Ash, Galit Agmon, Carmen Gonzalez‐Recober, David J. Irwin · 10 authors totalApplication of advanced language technologies in analysis of category naming fluency task in healthy participants
Alzheimer s & Dementia · DOI 10.1002/alz.067246 · 0 citations · Source: openalex+first-party-career-authorityMark Liberman, Carmen Gonzalez‐Recober, Sunghye Cho, Murray Grossman, Naomi Nevler · 5 authors totalFairness in Serving Large Language Models
OSDI 2024 · DOI 10.48550/arXiv.2401.00588 · arXiv 2401.00588 · 120 citations · Source: arxiv+semantic-scholarHigh-demand LLM inference services (e.g., ChatGPT and BARD) support a wide range of requests from short chat conversations to long document reading. To ensure that all client requests are processed fairly, most major LLM inference services have request rate limits, to ensure that no client can dominate the request queue. However, this rudimentary notion of fairness also results in under-utilization of the resources and poor client experience when there is spare capacity. While there is a rich literature on fair scheduling, serving LLMs presents new challenges due to their unpredictable request lengths and their unique batching characteristics on parallel accelerators. This paper introduces the definition of LLM serving fairness based on a cost function that accounts for the number of input and output tokens processed. To achieve fairness in serving, we propose a novel scheduling algorithm, the Virtual Token Counter (VTC), a fair scheduler based on the continuous batching mechanism. We prove a 2x tight upper bound on the service difference between two backlogged clients, adhering to the requirement of work-conserving. Through extensive experiments, we demonstrate the superior performance of VTC in ensuring fairness, especially in contrast to other baseline methods, which exhibit shortcomings under various conditions. The reproducible code is available at https://github.com/Ying1123/VTC-artifact
Zhuohan Li, Ying Sheng, Shiyi Cao, Dacheng Li, Banghua Zhu, Danyang Zhuo, Joseph E. Gonzalez, Ion Stoica · 8 authors totalMosaicBERT: A Bidirectional Encoder Optimized for Fast Pretraining
NeurIPS 2023 · DOI 10.48550/arXiv.2312.17482 · arXiv 2312.17482 · 43 citations · Source: arxivAlthough BERT-style encoder models are heavily used in NLP research, many researchers do not pretrain their own BERTs from scratch due to the high cost of training. In the past half-decade since BERT first rose to prominence, many advances have been made with other transformer architectures and training configurations that have yet to be systematically incorporated into BERT. Here, we introduce MosaicBERT, a BERT-style encoder architecture and training recipe that is empirically optimized for fast pretraining. This efficient architecture incorporates FlashAttention, Attention with Linear Biases (ALiBi), Gated Linear Units (GLU), a module to dynamically remove padded tokens, and low precision LayerNorm into the classic transformer encoder block. The training recipe includes a 30% masking ratio for the Masked Language Modeling (MLM) objective, bfloat16 precision, and vocabulary size optimized for GPU throughput, in addition to best-practices from RoBERTa and other encoder models. When pretrained from scratch on the C4 dataset, this base model achieves a downstream average GLUE (dev) score of 79.6 in 1.13 hours on 8 A100 80 GB GPUs at a cost of roughly $20. We plot extensive accuracy vs. pretraining speed Pareto curves and show that MosaicBERT base and large are consistently Pareto optimal when compared to a competitive BERT base and large. This empirical speed up in pretraining enables researchers and engineers to pretrain custom BERT-style models at low cost instead of finetune on existing generic models. We open source our model weights and code.
Abhi Venigalla, Jacob Portes, Alexander Trott, Sam Havens, Daniel King, Abhinav Venigalla, Moin Nadeem, Nikhil Sardana · 9 authors totalParameter Efficient Tuning Allows Scalable Personalization of LLMs for Text Entry: A Case Study on Abbreviation Expansion.
CoRR · DOI 10.48550/arxiv.2312.14327 · arXiv 2312.14327 · Source: dblpKatrin Tomanek, Shanqing Cai, Subhashini Venugopalan · 3 authors totalGemini: A Family of Highly Capable Multimodal Models
arXiv preprint (Google DeepMind) · DOI 10.48550/arXiv.2312.11805 · arXiv 2312.11805 · Source: arxivThis report introduces a new family of multimodal models, Gemini, that exhibit remarkable capabilities across image, audio, video, and text understanding. The Gemini family consists of Ultra, Pro, and Nano sizes, suitable for applications ranging from complex reasoning tasks to on-device memory-constrained use-cases. Evaluation on a broad range of benchmarks shows that our most-capable Gemini Ultra model advances the state of the art in 30 of 32 of these benchmarks - notably being the first model to achieve human-expert performance on the well-studied exam benchmark MMLU, and improving the state of the art in every one of the 20 multimodal benchmarks we examined. We believe that the new capabilities of the Gemini family in cross-modal reasoning and language understanding will enable a wide variety of use cases. We discuss our approach toward post-training and deploying Gemini models responsibly to users through services including Gemini, Gemini Advanced, Google AI Studio, and Cloud Vertex AI.
Brennan Saeta, Clément Farabet, Gemini Team, Rohan Anil, Sebastian Borgeaud, Jean-Baptiste Alayrac, Jiahui Yu, Radu Soricut · 1,351 authors totalNews Signals: An NLP Library for Text and Time Series
arXiv (Cornell University) · DOI 10.48550/arxiv.2312.11399 · 0 citations · Source: openalex+career-authorityParsa Ghaffari, Chris Hokamp, Demian Gholipour Ghalandari · 3 authors totalBeyond Accuracy: Automated De-Identification of Large Real-World Clinical Text Datasets
arXiv · DOI 10.48550/arxiv.2312.08495 · arXiv 2312.08495 · 0 citations · Source: openalexRecent research advances achieve human-level accuracy for de-identifying free-text clinical notes on research datasets, but gaps remain in reproducing this in large real-world settings. This paper summarizes lessons learned from building a system used to de-identify over one billion real clinical notes, in a fully automated way, that was independently certified by multiple organizations for production use. A fully automated solution requires a very high level of accuracy that does not require manual review. A hybrid context-based model architecture is described, which outperforms a Named Entity Recogniton (NER) - only model by 10% on the i2b2-2014 benchmark. The proposed system makes 50%, 475%, and 575% fewer errors than the comparable AWS, Azure, and GCP services respectively while also outperforming ChatGPT by 33%. It exceeds 98% coverage of sensitive data across 7 European languages, without a need for fine tuning. A second set of described models enable data obfuscation -- replacing sensitive data with random surrogates -- while retaining name, date, gender, clinical, and format consistency. Both the practical need and the solution architecture that provides for reliable & linked anonymized documents are described.
David Talby, Veysel Kocaman, Hasham Ul Haq · 3 authors totalFairSISA: Ensemble Post-Processing to Improve Fairness of Unlearning in LLMs
arXiv.org · arXiv 2312.07420 · 14 citations · Source: semantic-scholar+arxivTraining large language models (LLMs) is a costly endeavour in terms of time and computational resources. The large amount of training data used during the unsupervised pre-training phase makes it difficult to verify all data and, unfortunately, undesirable data may be ingested during training. Re-training from scratch is impractical and has led to the creation of the 'unlearning' discipline where models are modified to"unlearn"undesirable information without retraining. However, any modification can alter the behaviour of LLMs, especially on key dimensions such as fairness. This is the first work that examines this interplay between unlearning and fairness for LLMs. In particular, we focus on a popular unlearning framework known as SISA [Bourtoule et al., 2021], which creates an ensemble of models trained on disjoint shards. We evaluate the performance-fairness trade-off for SISA, and empirically demsontrate that SISA can indeed reduce fairness in LLMs. To remedy this, we propose post-processing bias mitigation techniques for ensemble models produced by SISA. We adapt the post-processing fairness improvement technique from [Hardt et al., 2016] to design three methods that can handle model ensembles, and prove that one of the methods is an optimal fair predictor for ensemble of models. Through experimental results, we demonstrate the efficacy of our post-processing framework called 'FairSISA'.
Nathalie Baracaldo, S. Kadhe, Anisa Halimi, Ambrish Rawat · 4 authors totalAI Control: Improving Safety Despite Intentional Subversion
ICML 2024 · DOI 10.48550/arXiv.2312.06942 · arXiv 2312.06942 · 197 citations · Source: arxiv+dblpAs large language models (LLMs) become more powerful and are deployed more autonomously, it will be increasingly important to prevent them from causing harmful outcomes. Researchers have investigated a variety of safety techniques for this purpose, e.g. using models to review the outputs of other models, or red-teaming techniques to surface subtle failure modes. However, researchers have not evaluated whether such techniques still ensure safety if the model is itself intentionally trying to subvert them. In this paper, we develop and evaluate pipelines of safety techniques ("protocols") that are robust to intentional subversion. We investigate a scenario in which we want to solve a sequence of programming problems, using access to a powerful but untrusted model (in our case, GPT-4), access to a less powerful trusted model (in our case, GPT-3.5), and limited access to high-quality trusted labor. We investigate protocols that aim to never submit solutions containing backdoors, which we operationalize here as logical errors that are not caught by test cases. We investigate a range of protocols and test each against strategies that the untrusted model could use to subvert them. One protocol is what we call trusted editing. This protocol first asks GPT-4 to write code, and then asks GPT-3.5 to rate the suspiciousness of that code. If the code is below some suspiciousness threshold, it is submitted. Otherwise, GPT-3.5 edits the solution to remove parts that seem suspicious and then submits the edited code. Another protocol is untrusted monitoring. This protocol asks GPT-4 to write code, and then asks another instance of GPT-4 whether the code is backdoored, using various techniques to prevent the GPT-4 instances from colluding. These protocols improve substantially on simple baselines.
Buck Shlegeris, Ryan Greenblatt, Kshitij Sachan, Fabien Roger · 4 authors totalForcing Generative Models to Degenerate Ones: The Power of Data Poisoning Attacks
arXiv.org · arXiv 2312.04748 · 18 citations · Source: semantic-scholar+arxivGrowing applications of large language models (LLMs) trained by a third party raise serious concerns on the security vulnerability of LLMs.It has been demonstrated that malicious actors can covertly exploit these vulnerabilities in LLMs through poisoning attacks aimed at generating undesirable outputs. While poisoning attacks have received significant attention in the image domain (e.g., object detection), and classification tasks, their implications for generative models, particularly in the realm of natural language generation (NLG) tasks, remain poorly understood. To bridge this gap, we perform a comprehensive exploration of various poisoning techniques to assess their effectiveness across a range of generative tasks. Furthermore, we introduce a range of metrics designed to quantify the success and stealthiness of poisoning attacks specifically tailored to NLG tasks. Through extensive experiments on multiple NLG tasks, LLMs and datasets, we show that it is possible to successfully poison an LLM during the fine-tuning stage using as little as 1\% of the total tuning data samples. Our paper presents the first systematic approach to comprehend poisoning attacks targeting NLG tasks considering a wide range of triggers and attack settings. We hope our findings will assist the AI security community in devising appropriate defenses against such threats.
Nathalie Baracaldo, Shuli Jiang, S. Kadhe, Yi Zhou, Ling Cai · 5 authors totalUsing Large Language Models to Accelerate Communication for Users with Severe Motor Impairments.
CoRR · DOI 10.48550/arxiv.2312.01532 · arXiv 2312.01532 · Source: dblpKatrin Tomanek, Shanqing Cai, Subhashini Venugopalan, Katie Seaver, Xiang Xiao, Sri Jalasutram, Meredith Ringel Morris, Shaun K. Kane · 16 authors totalX-InstructBLIP: A Framework for aligning X-Modal instruction-aware representations to LLMs and Emergent Cross-modal Reasoning
arXiv.org · DOI 10.48550/arXiv.2311.18799 · arXiv 2311.18799 · 90 citations · Source: arxiv+semantic-scholarRecent research has achieved significant advancements in visual reasoning tasks through learning image-to-language projections and leveraging the impressive reasoning abilities of Large Language Models (LLMs). This paper introduces an efficient and effective framework that integrates multiple modalities (images, 3D, audio and video) to a frozen LLM and demonstrates an emergent ability for cross-modal reasoning (2+ modality inputs). Our approach explores two distinct projection mechanisms: Q-Formers and Linear Projections (LPs). Through extensive experimentation across all four modalities on 16 benchmarks, we explore both methods and assess their adaptability in integrated and separate cross-modal reasoning. The Q-Former projection demonstrates superior performance in single modality scenarios and adaptability in joint versus discriminative reasoning involving two or more modalities. However, it exhibits lower generalization capabilities than linear projection in contexts where task-modality data are limited. To enable this framework, we devise a scalable pipeline that automatically generates high-quality, instruction-tuning datasets from readily available captioning data across different modalities, and contribute 24K QA data for audio and 250K QA data for 3D. To facilitate further research in cross-modal reasoning, we introduce the DisCRn (Discriminative Cross-modal Reasoning) benchmark comprising 9K audio-video QA samples and 28K image-3D QA samples that require the model to reason discriminatively across disparate input modalities.
Ran Xu, Artemis Panagopoulou, Le Xue, Ning Yu, Junnan Li, Dongxu Li, Shafiq R. Joty, Silvio Savarese · 10 authors totalStudent Mastery or AI Deception? Analyzing ChatGPT's Assessment Proficiency and Evaluating Detection Strategies.
CoRR · DOI 10.48550/arxiv.2311.16292 · arXiv 2311.16292 · Source: dblp+ubc-authorityRamon Lawrence, Kevin Shukang Wang, Seth Akins, Abdallah Mohammed · 4 authors totalPre-trained Language Models Do Not Help Auto-regressive Text-to-Image Generation
Conference on Empirical Methods in Natural Language Processing · DOI 10.48550/arXiv.2311.16201 · arXiv 2311.16201 · 4 citations · Source: semantic-scholarRecent advances in image tokenizers, such as VQ-VAE, have enabled text-to-image generation using auto-regressive methods, similar to language modeling. However, these methods have yet to leverage pre-trained language models, despite their adaptability to various downstream tasks. In this work, we explore this gap by adapting a pre-trained language model for auto-regressive text-to-image generation, and find that pre-trained language models offer limited help. We provide a two-fold explanation by analyzing tokens from each modality. First, we demonstrate that image tokens possess significantly different semantics compared to text tokens, rendering pre-trained language models no more effective in modeling them than randomly initialized ones. Second, the text tokens in the image-text datasets are too simple compared to normal language model pre-training data, which causes the catastrophic degradation of language models’ capability.
Vaishaal Shankar, Yuhui Zhang, Brandon McKinzie, Zhe Gan, Alexander Toshev · 5 authors totalUsing Assignment Incentives to Reduce Student Procrastination and Encourage Code Review Interactions.
CoRR · DOI 10.48550/arxiv.2311.15125 · arXiv 2311.15125 · Source: dblp+ubc-authorityRamon Lawrence, Kevin Shukang Wang · 2 authors totalARES: An Automated Evaluation Framework for Retrieval-Augmented Generation Systems
North American Chapter of the Association for Computational Linguistics · DOI 10.48550/arXiv.2311.09476 · arXiv 2311.09476 · 355 citations · Source: semantic-scholar+openalexEvaluating retrieval-augmented generation (RAG) systems traditionally relies on hand annotations for input queries, passages to retrieve, and responses to generate. We introduce ARES, an Automated RAG Evaluation System, for evaluating RAG systems along the dimensions of context relevance, answer faithfulness, and answer relevance. By creating its own synthetic training data, ARES finetunes lightweight LM judges to assess the quality of individual RAG components. To mitigate potential prediction errors, ARES utilizes a small set of human-annotated datapoints for prediction-powered inference (PPI). Across eight different knowledge-intensive tasks in KILT, SuperGLUE, and AIS, ARES accurately evaluates RAG systems while using only a few hundred human annotations during evaluation. Furthermore, ARES judges remain effective across domain shifts, proving accurate even after changing the type of queries and/or documents used in the evaluated RAG systems. We make our code and datasets publicly available on Github.
Matei Zaharia, Jon Saad-Falcon, O. Khattab, Christopher Potts · 4 authors totalPrompt Cache: Modular Attention Reuse for Low-Latency Inference
Conference on Machine Learning and Systems · arXiv 2311.04934 · 306 citations · Source: semantic-scholarWe present Prompt Cache, an approach for accelerating inference for large language models (LLM) by reusing attention states across different LLM prompts. Many input prompts have overlapping text segments, such as system messages, prompt templates, and documents provided for context. Our key insight is that by precomputing and storing the attention states of these frequently occurring text segments on the inference server, we can efficiently reuse them when these segments appear in user prompts. Prompt Cache employs a schema to explicitly define such reusable text segments, called prompt modules. The schema ensures positional accuracy during attention state reuse and provides users with an interface to access cached states in their prompt. Using a prototype implementation, we evaluate Prompt Cache across several LLMs. We show that Prompt Cache significantly reduce latency in time-to-first-token, especially for longer prompts such as document-based question answering and recommendations. The improvements range from 8x for GPU-based inference to 60x for CPU-based inference, all while maintaining output accuracy and without the need for model parameter modifications.
Anurag Khandelwal, In Gim, Guojun Chen, Seung-seob Lee, N. L. Sarda, Lin Zhong · 6 authors totalMass Adoption of NATs: Survey and experiments on carrier-grade NATs
arXiv (Cornell University) · DOI 10.48550/arxiv.2311.04658 · 0 citations · Source: openalex+orcid+dblp-identityJohan Pouwelse, Orestis Kanaris · 2 authors totalOpenCog Hyperon: A Framework for AGI at the Human Level and Beyond
CoRR · DOI 10.48550/arXiv.2310.18318 · Source: dblp+arxiv+career-authorityLucius Gregory Meredith, Ben Goertzel, Vitaly Bogdanov, Michael Duncan, Deborah Duong, Zarathustra Amadeus Goertzel, Jan Horlings, Matthew Iklé · 14 authors totalTiC-CLIP: Continual Training of CLIP Models
International Conference on Learning Representations · DOI 10.48550/arXiv.2310.16226 · arXiv 2310.16226 · 52 citations · Source: semantic-scholarKeeping large foundation models up to date on latest data is inherently expensive. To avoid the prohibitive costs of constantly retraining, it is imperative to continually train these models. This problem is exacerbated by the lack of any large scale continual learning benchmarks or baselines. We introduce the first set of web-scale Time-Continual (TiC) benchmarks for training vision-language models: TiC-DataComp, TiC-YFCC, and TiC-Redcaps. TiC-DataComp, our largest dataset, contains over 12.7B timestamped image-text pairs spanning 9 years (2014-2022). We first use our benchmarks to curate various dynamic evaluations to measure temporal robustness of existing models. We show OpenAI's CLIP (trained on data up to 2020) loses $\approx 8\%$ zero-shot accuracy on our curated retrieval task from 2021-2022 compared with more recently trained models in OpenCLIP repository. We then study how to efficiently train models on time-continuous data. We demonstrate that a simple rehearsal-based approach that continues training from the last checkpoint and replays old data reduces compute by $2.5\times$ when compared to the standard practice of retraining from scratch. Code is available at https://github.com/apple/ml-tic-clip.
Vaishaal Shankar, Saurabh Garg, Mehrdad Farajtabar, Hadi Pouransari, Raviteja Vemulapalli, Sachin Mehta, Oncel Tuzel, Fartash Faghri · 8 authors totalA Unified View of Evaluation Metrics for Structured Prediction
Conference on Empirical Methods in Natural Language Processing · DOI 10.48550/arXiv.2310.13793 · arXiv 2310.13793 · 13 citations · Source: semantic-scholarWe present a conceptual framework that unifies a variety of evaluation metrics for different structured prediction tasks (e.g. event and relation extraction, syntactic and semantic parsing). Our framework requires representing the outputs of these tasks as objects of certain data types, and derives metrics through matching of common substructures, possibly followed by normalization. We demonstrate how commonly used metrics for a number of tasks can be succinctly expressed by this framework, and show that new metrics can be naturally derived in a bottom-up way based on an output structure. We release a library that enables this derivation to create new metrics. Finally, we consider how specific characteristics of tasks motivate metric design decisions, and suggest possible modifications to existing metrics in line with those motivations.
Tongfei Chen, Yunmo Chen, William Gantt Walden, Aaron Steven White, Benjamin Van Durme · 5 authors totalInterpreting CLIP: Insights on the Robustness to ImageNet Distribution Shifts
Trans. Mach. Learn. Res. · arXiv 2310.13040 · 7 citations · Source: semantic-scholarWhat distinguishes robust models from non-robust ones? While for ImageNet distribution shifts it has been shown that such differences in robustness can be traced back predominantly to differences in training data, so far it is not known what that translates to in terms of what the model has learned. In this work, we bridge this gap by probing the representation spaces of 16 robust zero-shot CLIP vision encoders with various backbones (ResNets and ViTs) and pretraining sets (OpenAI, LAION-400M, LAION-2B, YFCC15M, CC12M and {DataComp}), and comparing them to the representation spaces of less robust models with identical backbones, but different (pre)training sets or objectives (CLIP pretraining on ImageNet-Captions, and supervised training or finetuning on ImageNet).Through this analysis, we generate three novel insights. Firstly, we detect the presence of outlier features in robust zero-shot CLIP vision encoders, which to the best of our knowledge is the first time these are observed in non-language and non-transformer models. Secondly, we find the existence of outlier features to be an indication of ImageNet shift robustness in models, since we only find them in robust models in our analysis. Lastly, we also investigate the number of unique encoded concepts in the representation space and find zero-shot CLIP models to encode a higher number of unique concepts in their representation space. However, we do not find this to be an indicator of ImageNet shift robustness and hypothesize that it is rather related to the language supervision. Since the presence of outlier features can be detected without access to any data from shifted datasets, we believe that they could be a useful tool for practitioners to get a feeling for the distribution shift robustness of a pretrained model during deployment.
Vaishaal Shankar, Jonathan Crabb'e, P. Rodr'iguez, L. Zappella, Arno Blaas · 5 authors totalMicroscaling Data Formats for Deep Learning
arXiv · DOI 10.48550/arxiv.2310.10537 · arXiv 2310.10537 · 9 citations · Source: openalexNarrow bit-width data formats are key to reducing the computational and storage costs of modern deep learning applications. This paper evaluates Microscaling (MX) data formats that combine a per-block scaling factor with narrow floating-point and integer types for individual elements. MX formats balance the competing needs of hardware efficiency, model accuracy, and user friction. Empirical results on over two dozen benchmarks demonstrate practicality of MX data formats as a drop-in replacement for baseline FP32 for AI inference and training with low user friction. We also show the first instance of training generative language models at sub-8-bit weights, activations, and gradients with minimal accuracy loss and no modifications to the training recipe.
Dhruv Choudhary, Bita Darvish Rouhani, Ritchie Zhao, Ankit More, Mathew Hall, Alireza Khodamoradi, Summer Deng, Marius Cornea · 33 authors totalThe Data Lakehouse: Data Warehousing and More
arXiv (cs.DB) preprint · DOI 10.48550/arXiv.2310.08697 · arXiv 2310.08697 · 19 citations · Source: semantic-scholarRelational Database Management Systems designed for Online Analytical Processing (RDBMS-OLAP) have been foundational to democratizing data and enabling analytical use cases such as business intelligence and reporting for many years. However, RDBMS-OLAP systems present some well-known challenges. They are primarily optimized only for relational workloads, lead to proliferation of data copies which can become unmanageable, and since the data is stored in proprietary formats, it can lead to vendor lock-in, restricting access to engines, tools, and capabilities beyond what the vendor offers. As the demand for data-driven decision making surges, the need for a more robust data architecture to address these challenges becomes ever more critical. Cloud data lakes have addressed some of the shortcomings of RDBMS-OLAP systems, but they present their own set of challenges. More recently, organizations have often followed a two-tier architectural approach to take advantage of both these platforms, leveraging both cloud data lakes and RDBMS-OLAP systems. However, this approach brings additional challenges, complexities, and overhead. This paper discusses how a data lakehouse, a new architectural approach, achieves the same benefits of an RDBMS-OLAP and cloud data lake combined, while also providing additional advantages.
Dipankar Mazumdar, Jason Hughes, Jean-Baptiste Onofré · 3 authors totalMemGPT: Towards LLMs as Operating Systems
arXiv · arXiv 2310.08560 · Source: arxiv+berkeley+author-first-partyCharles Packer, Sarah Wooders, Kevin Lin, Vivian Fang, Shishir G. Patil, Ion Stoica, Joseph E. Gonzalez · 7 authors totalOnline Speculative Decoding
arXiv (Cornell University) · DOI 10.48550/arxiv.2310.07177 · 3 citations · Source: openalex+authoritative-profilePeter Bailis, Xiaoxuan Liu, Lanxiang Hu, Alvin Cheung, Zhijie Deng, Ion Stoica, Hao Zhang · 7 authors totalSparse Fine-tuning for Inference Acceleration of Large Language Models
CoRR · arXiv 2310.06927 · Source: arxiv+neural-magic-first-partyMichael Goin, Eldar Kurtic, Denis Kuznedelev, Elias Frantar, Dan Alistarh · 5 authors totalGeneralized Wick Decompositions
arXiv preprint · DOI 10.48550/arXiv.2310.06686 · arXiv 2310.06686 · 0 citations · Source: arxiv+dblpWe review the cumulant decomposition (a way of decomposing the expectation of a product of random variables (e.g. $\mathbb{E}[XYZ]$) into a sum of terms corresponding to partitions of these variables.) and the Wick decomposition (a way of decomposing a product of (not necessarily random) variables into a sum of terms corresponding to subsets of the variables). Then we generalize each one to a new decomposition where the product function is generalized to an arbitrary function.
Buck Shlegeris, Chris MacLeod, Evgenia Nitishinskaya · 3 authors totalDSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelines
arXiv.org · arXiv 2310.03714 · 935 citations · Source: semantic-scholarThe ML community is rapidly exploring techniques for prompting language models (LMs) and for stacking them into pipelines that solve complex tasks. Unfortunately, existing LM pipelines are typically implemented using hard-coded"prompt templates", i.e. lengthy strings discovered via trial and error. Toward a more systematic approach for developing and optimizing LM pipelines, we introduce DSPy, a programming model that abstracts LM pipelines as text transformation graphs, i.e. imperative computational graphs where LMs are invoked through declarative modules. DSPy modules are parameterized, meaning they can learn (by creating and collecting demonstrations) how to apply compositions of prompting, finetuning, augmentation, and reasoning techniques. We design a compiler that will optimize any DSPy pipeline to maximize a given metric. We conduct two case studies, showing that succinct DSPy programs can express and optimize sophisticated LM pipelines that reason about math word problems, tackle multi-hop retrieval, answer complex questions, and control agent loops. Within minutes of compiling, a few lines of DSPy allow GPT-3.5 and llama2-13b-chat to self-bootstrap pipelines that outperform standard few-shot prompting (generally by over 25% and 65%, respectively) and pipelines with expert-created demonstrations (by up to 5-46% and 16-40%, respectively). On top of that, DSPy programs compiled to open and relatively small LMs like 770M-parameter T5 and llama2-13b-chat are competitive with approaches that rely on expert-written prompt chains for proprietary GPT-3.5. DSPy is available at https://github.com/stanfordnlp/dspy
Matei Zaharia, O. Khattab, Arnav Singhvi, Paridhi Maheshwari, Zhiyuan Zhang, Keshav Santhanam, Sri Vardhamanan, Saiful Haq · 13 authors totalRing Attention with Blockwise Transformers for Near-Infinite Context
International Conference on Learning Representations · DOI 10.48550/arXiv.2310.01889 · arXiv 2310.01889 · 562 citations · Source: semantic-scholarTransformers have emerged as the architecture of choice for many state-of-the-art AI models, showcasing exceptional performance across a wide range of AI applications. However, the memory demands imposed by Transformers limit their ability to handle long sequences, thereby posing challenges in utilizing videos, actions, and other long-form sequences and modalities in complex environments. We present a novel approach, Ring Attention with Blockwise Transformers (Ring Attention), which leverages blockwise computation of self-attention and feedforward to distribute long sequences across multiple devices while fully overlapping the communication of key-value blocks with the computation of blockwise attention. Our approach enables training and inference of sequences that are up to device count times longer than those achievable by prior memory-efficient Transformers, without resorting to approximations or incurring additional communication and computation overheads. Extensive experiments on language modeling and reinforcement learning tasks demonstrate the effectiveness of our approach in allowing millions of tokens context size and improving performance.
Matei Zaharia, Hao Liu, Pieter Abbeel · 3 authors totalMulti-Grid Tensorized Fourier Neural Operator for High-Resolution PDEs
Trans. Mach. Learn. Res. · arXiv 2310.00120 · 96 citations · Source: semantic-scholarMemory complexity and data scarcity have so far prohibited learning solution operators of partial differential equations (PDEs) at high resolutions. We address these limitations by introducing a new data efficient and highly parallelizable operator learning approach with reduced memory requirement and better generalization, called multi-grid tensorized neural operator (MG-TFNO). MG-TFNO scales to large resolutions by leveraging local and global structures of full-scale, real-world phenomena, through a decomposition of both the input domain and the operator's parameter space. Our contributions are threefold: i) we enable parallelization over input samples with a novel multi-grid-based domain decomposition, ii) we represent the parameters of the model in a high-order latent subspace of the Fourier domain, through a global tensor factorization, resulting in an extreme reduction in the number of parameters and improved generalization, and iii) we propose architectural improvements to the backbone FNO. Our approach can be used in any operator learning setting. We demonstrate superior performance on the turbulent Navier-Stokes equations where we achieve less than half the error with over 150x compression. The tensorization combined with the domain decomposition, yields over 150x reduction in the number of parameters and 7x reduction in the domain size without losses in accuracy, while slightly enabling parallelism.
Jean Kossaifi, Nikola B. Kovachki, K. Azizzadenesheli, Anima Anandkumar · 4 authors totalData Filtering Networks
International Conference on Learning Representations · DOI 10.48550/arXiv.2309.17425 · arXiv 2309.17425 · 281 citations · Source: semantic-scholarLarge training sets have become a cornerstone of machine learning and are the foundation for recent advances in language modeling and multimodal learning. While data curation for pre-training is often still ad-hoc, one common paradigm is to first collect a massive pool of data from the Web and then filter this candidate pool down to an actual training set via various heuristics. In this work, we study the problem of learning a data filtering network (DFN) for this second step of filtering a large uncurated dataset. Our key finding is that the quality of a network for filtering is distinct from its performance on downstream tasks: for instance, a model that performs well on ImageNet can yield worse training sets than a model with low ImageNet accuracy that is trained on a small amount of high-quality data. Based on our insights, we construct new data filtering networks that induce state-of-the-art image-text datasets. Specifically, our best performing dataset DFN-5B enables us to train state-of-the-art models for their compute budgets: among other improvements on a variety of tasks, a ViT-H trained on our dataset achieves 83.0% zero-shot transfer accuracy on ImageNet, out-performing models trained on other datasets such as LAION-2B, DataComp-1B, or OpenAI's WIT. In order to facilitate further research in dataset design, we also release a new 2 billion example dataset DFN-2B and show that high performance data filtering networks can be trained from scratch using only publicly available data.
Vaishaal Shankar, Alex Fang, Albin Madappally Jose, Amit Jain, Ludwig Schmidt, Alexander Toshev · 6 authors totalAugmenting LLMs with Knowledge: A survey on hallucination prevention
arXiv (Cornell University) · DOI 10.48550/arxiv.2309.16459 · 11 citations · Source: openalex+orcid+dblp-identityJohan Pouwelse, Κωνσταντίνος Ανδριόπουλος · 2 authors totalShattering the Ephemeral Storage Cost Barrier for Data-Intensive Serverless Workflows
arXiv (Cornell University) · DOI 10.48550/arxiv.2309.14821 · 1 citations · Source: openalex+career-authorityRustem Feyzkhanov, Dmitrii Ustiugov, Shyam Jesalpura, Mert Bora Alper, Michal Baczun, Edouard Bugnion, Boris Grot, Marios Kogias · 8 authors totalLMSYS-Chat-1M: A Large-Scale Real-World LLM Conversation Dataset
ICLR 2024 · DOI 10.48550/arXiv.2309.11998 · arXiv 2309.11998 · 503 citations · Source: arxiv+semantic-scholarStudying how people interact with large language models (LLMs) in real-world scenarios is increasingly important due to their widespread use in various applications. In this paper, we introduce LMSYS-Chat-1M, a large-scale dataset containing one million real-world conversations with 25 state-of-the-art LLMs. This dataset is collected from 210K unique IP addresses in the wild on our Vicuna demo and Chatbot Arena website. We offer an overview of the dataset's content, including its curation process, basic statistics, and topic distribution, highlighting its diversity, originality, and scale. We demonstrate its versatility through four use cases: developing content moderation models that perform similarly to GPT-4, building a safety benchmark, training instruction-following models that perform similarly to Vicuna, and creating challenging benchmark questions. We believe that this dataset will serve as a valuable resource for understanding and advancing LLM capabilities. The dataset is publicly available at https://huggingface.co/datasets/lmsys/lmsys-chat-1m.
Zhuohan Li, Lianmin Zheng, Wei-Lin Chiang, Ying Sheng, Tianle Li, Siyuan Zhuang, Zhanghao Wu, Yonghao Zhuang · 13 authors totalGeometry-Informed Neural Operator for Large-Scale 3D PDEs
Neural Information Processing Systems · arXiv 2309.00583 · 411 citations · Source: semantic-scholarWe propose the geometry-informed neural operator (GINO), a highly efficient approach to learning the solution operator of large-scale partial differential equations with varying geometries. GINO uses a signed distance function and point-cloud representations of the input shape and neural operators based on graph and Fourier architectures to learn the solution operator. The graph neural operator handles irregular grids and transforms them into and from regular latent grids on which Fourier neural operator can be efficiently applied. GINO is discretization-convergent, meaning the trained model can be applied to arbitrary discretization of the continuous domain and it converges to the continuum operator as the discretization is refined. To empirically validate the performance of our method on large-scale simulation, we generate the industry-standard aerodynamics dataset of 3D vehicle geometries with Reynolds numbers as high as five million. For this large-scale 3D fluid simulation, numerical methods are expensive to compute surface pressure. We successfully trained GINO to predict the pressure on car surfaces using only five hundred data points. The cost-accuracy experiments show a $26,000 \times$ speed-up compared to optimized GPU-based computational fluid dynamics (CFD) simulators on computing the drag coefficient. When tested on new combinations of geometries and boundary conditions (inlet velocities), GINO obtains a one-fourth reduction in error rate compared to deep neural
Jean Kossaifi, Zong-Yi Li, Nikola B. Kovachki, Chris Choy, Boyi Li, S. Otta, M. A. Nabian, Maximilian Stadler · 11 authors totalBenchmarks for Detecting Measurement Tampering
arXiv preprint · DOI 10.48550/arXiv.2308.15605 · arXiv 2308.15605 · 5 citations · Source: arxiv+dblpWhen training powerful AI systems to perform complex tasks, it may be challenging to provide training signals which are robust to optimization. One concern is \textit{measurement tampering}, where the AI system manipulates multiple measurements to create the illusion of good results instead of achieving the desired outcome. In this work, we build four new text-based datasets to evaluate measurement tampering detection techniques on large language models. Concretely, given sets of text inputs and measurements aimed at determining if some outcome occurred, as well as a base model able to accurately predict measurements, the goal is to determine if examples where all measurements indicate the outcome occurred actually had the outcome occur, or if this was caused by measurement tampering. We demonstrate techniques that outperform simple baselines on most datasets, but don't achieve maximum performance. We believe there is significant room for improvement for both techniques and datasets, and we are excited for future work tackling measurement tampering.
Buck Shlegeris, Fabien Roger, Ryan Greenblatt, Max Nadeau, Nate Thomas · 5 authors totalDegrees of Separation: A Flexible Type System for Data Race Prevention
arXiv 2308.07474 · 5 citations · Source: arxivData races are a notorious problem in parallel programming. There has been great research interest in type systems that statically prevent data races. Despite the progress in the safety and usability of these systems, lots of existing approaches enforce strict anti-aliasing principles to prevent data races. The adoption of them is often intrusive, in the sense that it invalidates common programming patterns and requires paradigm shifts. We propose Capture Separation Calculus (System CSC), a calculus based on Capture Calculus (System CC<:box), that achieves static data race freedom while being non-intrusive. It allows aliasing in general to permit common programming patterns, but tracks aliasing and controls them when that is necessary to prevent data races. We study the formal properties of System CSC by establishing its type safety and data race freedom. Notably, we establish the data race freedom property by proving the confluence of its reduction semantics. To validate the usability of the calculus, we implement it as an extension to the Scala 3 compiler, and use it to type-check the examples in the paper.
Martin Odersky, Yichen Xu, Aleksander Boruch-Gruszecki · 3 authors totalCode Transpilation for Hardware Accelerators
arXiv preprint · arXiv 2308.06410 · 2 citations · Source: semantic-scholarDSLs and hardware accelerators have proven to be very effective in optimizing computationally expensive workloads. In this paper, we propose a solution to the challenge of manually rewriting legacy or unoptimized code in domain-specific languages and hardware accelerators. We introduce an approach that integrates two open-source tools: Metalift, a code translation framework, and Gemmini, a DNN accelerator generator. The integration of these two tools offers significant benefits, including simplified workflows for developers to run legacy code on Gemmini generated accelerators and a streamlined programming stack for Gemmini that reduces the effort required to add new instructions. This paper provides details on this integration and its potential to simplify and optimize computationally expensive workloads.
Shadaj Laddad, Yuto Nishida, Sahil Bhatia, Hasan Genç, Yakun Sophia Shao, Alvin Cheung · 6 authors totalBOLAA: Benchmarking and Orchestrating LLM-augmented Autonomous Agents
arXiv.org · DOI 10.48550/arXiv.2308.05960 · arXiv 2308.05960 · 110 citations · Source: arxiv+semantic-scholarThe massive successes of large language models (LLMs) encourage the emerging exploration of LLM-augmented Autonomous Agents (LAAs). An LAA is able to generate actions with its core LLM and interact with environments, which facilitates the ability to resolve complex tasks by conditioning on past interactions such as observations and actions. Since the investigation of LAA is still very recent, limited explorations are available. Therefore, we provide a comprehensive comparison of LAA in terms of both agent architectures and LLM backbones. Additionally, we propose a new strategy to orchestrate multiple LAAs such that each labor LAA focuses on one type of action, \textit{i.e.} BOLAA, where a controller manages the communication among multiple agents. We conduct simulations on both decision-making and multi-step reasoning environments, which comprehensively justify the capacity of LAAs. Our performance results provide quantitative suggestions for designing LAA architectures and the optimal choice of LLMs, as well as the compatibility of both. We release our implementation code of LAAs to the public at \url{https://github.com/salesforce/BOLAA}.
Ran Xu, Zhiwei Liu, Weiran Yao, Jianguo Zhang, Le Xue, Shelby Heinecke, Rithesh Murthy, Yihao Feng · 15 authors totalRetroformer: Retrospective Large Language Agents with Policy Gradient Optimization
International Conference on Learning Representations · DOI 10.48550/arXiv.2308.02151 · arXiv 2308.02151 · 135 citations · Source: arxiv+semantic-scholarRecent months have seen the emergence of a powerful new trend in which large language models (LLMs) are augmented to become autonomous language agents capable of performing objective oriented multi-step tasks on their own, rather than merely responding to queries from human users. Most existing language agents, however, are not optimized using environment-specific rewards. Although some agents enable iterative refinement through verbal feedback, they do not reason and plan in ways that are compatible with gradient-based learning from rewards. This paper introduces a principled framework for reinforcing large language agents by learning a retrospective model, which automatically tunes the language agent prompts from environment feedback through policy gradient. Specifically, our proposed agent architecture learns from rewards across multiple environments and tasks, for fine-tuning a pre-trained language model which refines the language agent prompt by summarizing the root cause of prior failed attempts and proposing action plans. Experimental results on various tasks demonstrate that the language agents improve over time and that our approach considerably outperforms baselines that do not properly leverage gradients from the environment. This demonstrates that using policy gradient optimization to improve language agents, for which we believe our work is one of the first, seems promising and can be applied to optimize other models in the agent architecture to enhance agent performances over time.
Ran Xu, Weiran Yao, Shelby Heinecke, Juan Carlos Niebles, Zhiwei Liu, Yihao Feng, Le Xue, Rithesh Murthy · 15 authors totalSharpness Minimization Algorithms Do Not Only Minimize Sharpness To Achieve Better Generalization.
CoRR · DOI 10.48550/arXiv.2307.11007 · arXiv 2307.11007 · Source: dblp+stanford-authorityTengyu Ma, Kaiyue Wen, Zhiyuan Li 0005, Tengyu Ma 0001 · 4 authors totalCloud-native RStudio on Kubernetes for Hopsworks
CoRR · DOI 10.48550/ARXIV.2307.09132 · Source: dblp+first-party-career-authorityJim Dowling, Gibson Chikafa, Sina Sheikholeslami, Salman Niazi, Vladimir Vlassov · 5 authors totalHow is ChatGPT's behavior changing over time?
Special Issue 5: Grappling With the Generative AI Revolution · DOI 10.48550/arXiv.2307.09009 · arXiv 2307.09009 · 705 citations · Source: semantic-scholar+openalexGPT-3.5 and GPT-4 are the two most widely used large language model (LLM) services. However, when and how these models are updated over time is opaque. Here, we evaluate the March 2023 and June 2023 versions of GPT-3.5 and GPT-4 on several diverse tasks: 1) math problems, 2) sensitive/dangerous questions, 3) opinion surveys, 4) multi-hop knowledge-intensive questions, 5) generating code, 6) US Medical License tests, and 7) visual reasoning. We find that the performance and behavior of both GPT-3.5 and GPT-4 can vary greatly over time. For example, GPT-4 (March 2023) was reasonable at identifying prime vs. composite numbers (84% accuracy) but GPT-4 (June 2023) was poor on these same questions (51% accuracy). This is partly explained by a drop in GPT-4's amenity to follow chain-of-thought prompting. Interestingly, GPT-3.5 was much better in June than in March in this task. GPT-4 became less willing to answer sensitive questions and opinion survey questions in June than in March. GPT-4 performed better at multi-hop questions in June than in March, while GPT-3.5's performance dropped on this task. Both GPT-4 and GPT-3.5 had more formatting mistakes in code generation in June than in March. We provide evidence that GPT-4's ability to follow user instructions has decreased over time, which is one common factor behind the many behavior drifts. Overall, our findings show that the behavior of the"same"LLM service can change substantially in a relatively short amount of time, highlighting the need for continuous monitoring of LLMs.
Matei Zaharia, Lingjiao Chen, Matei A. Zaharia, James Y. Zou · 4 authors totalREX: Rapid Exploration and eXploitation for AI Agents
arXiv.org · DOI 10.48550/arXiv.2307.08962 · arXiv 2307.08962 · 14 citations · Source: arxiv+semantic-scholarIn this paper, we propose an enhanced approach for Rapid Exploration and eXploitation for AI Agents called REX. Existing AutoGPT-style techniques have inherent limitations, such as a heavy reliance on precise descriptions for decision-making, and the lack of a systematic approach to leverage try-and-fail procedures akin to traditional Reinforcement Learning (RL). REX introduces an additional layer of rewards and integrates concepts similar to Upper Confidence Bound (UCB) scores, leading to more robust and efficient AI agent performance. This approach has the advantage of enabling the utilization of offline behaviors from logs and allowing seamless integration with existing foundation models while it does not require any model fine-tuning. Through comparative analysis with existing methods such as Chain-of-Thoughts(CoT) and Reasoning viA Planning(RAP), REX-based methods demonstrate comparable performance and, in certain cases, even surpass the results achieved by these existing techniques. Notably, REX-based methods exhibit remarkable reductions in execution time, enhancing their practical applicability across a diverse set of scenarios.
Ran Xu, Rithesh Murthy, Shelby Heinecke, Juan Carlos Niebles, Zhiwei Liu, Le Xue, Weiran Yao, Yihao Feng · 15 authors totalLearnedSort as a learning-augmented SampleSort: Analysis and Parallelization.
CoRR · DOI 10.48550/arxiv.2307.08637 · arXiv 2307.08637 · Source: dblp+ubc-authorityRamon Lawrence, Ivan Carvalho · 2 authors totalOne Step of Gradient Descent is Provably the Optimal In-Context Learner with One Layer of Linear Self-Attention.
CoRR · DOI 10.48550/arXiv.2307.03576 · arXiv 2307.03576 · Source: dblp+stanford-authorityTengyu Ma, Arvind V. Mahankali, Tatsunori B. Hashimoto, Tengyu Ma 0001 · 4 authors totalLearning Symbolic Rules over Abstract Meaning Representations for Textual Reinforcement Learning
ACL 2023 · arXiv 2307.02689 · 8 citations · Source: arxiv+semantic-scholarText-based reinforcement learning agents have predominantly been neural network-based models with embeddings-based representation, learning uninterpretable policies that often do not generalize well to unseen games. On the other hand, neuro-symbolic methods, specifically those that leverage an intermediate formal representation, are gaining significant attention in language understanding tasks. This is because of their advantages ranging from inherent interpretability, the lesser requirement of training data, and being generalizable in scenarios with unseen data. Therefore, in this paper, we propose a modular, NEuro-Symbolic Textual Agent (NESTA) that combines a generic semantic parser with a rule induction system to learn abstract interpretable rules as policies. Our experiments on established text-based game benchmarks show that the proposed NESTA method outperforms deep reinforcement learning-based techniques by achieving better generalization to unseen test games and learning from fewer training interactions.
Rosario Uceda-Sosa, Subhajit Chaudhury, Sarathkrishna Swaminathan, Daiki Kimura, Prithviraj Sen, Keerthiram Murugesan, Michiaki Tatsubori, Achille Fokoue · 11 authors total