Goto

Collaborating Authors

 Large Language Model


Estimating the Hallucination Rate of Generative AI

arXiv.org Machine Learning

This work is about estimating the hallucination rate for in-context learning (ICL) with Generative AI. In ICL, a conditional generative model (CGM) is prompted with a dataset and asked to make a prediction based on that dataset. The Bayesian interpretation of ICL assumes that the CGM is calculating a posterior predictive distribution over an unknown Bayesian model of a latent parameter and data. With this perspective, we define a \textit{hallucination} as a generated prediction that has low-probability under the true latent parameter. We develop a new method that takes an ICL problem -- that is, a CGM, a dataset, and a prediction question -- and estimates the probability that a CGM will generate a hallucination. Our method only requires generating queries and responses from the model and evaluating its response log probability. We empirically evaluate our method on synthetic regression and natural language ICL tasks using large language models.


Entropy-Reinforced Planning with Large Language Models for Drug Discovery

arXiv.org Machine Learning

The objective of drug discovery is to identify chemical compounds that possess specific pharmaceutical properties toward a binding target. Existing large language models (LLMS) can achieve high token matching scores in terms of likelihood for molecule generation. However, relying solely on LLM decoding often results in the generation of molecules that are either invalid due to a single misused token, or suboptimal due to unbalanced exploration and exploitation as a consequence of the LLMs prior experience. Here we propose ERP, Entropy-Reinforced Planning for Transformer Decoding, which employs an entropy-reinforced planning algorithm to enhance the Transformer decoding process and strike a balance between exploitation and exploration. ERP aims to achieve improvements in multiple properties compared to direct sampling from the Transformer. We evaluated ERP on the SARS-CoV-2 virus (3CLPro) and human cancer cell target protein (RTCB) benchmarks and demonstrated that, in both benchmarks, ERP consistently outperforms the current state-of-the-art algorithm by 1-5 percent, and baselines by 5-10 percent, respectively. Moreover, such improvement is robust across Transformer models trained with different objectives. Finally, to further illustrate the capabilities of ERP, we tested our algorithm on three code generation benchmarks and outperformed the current state-of-the-art approach as well. Our code is publicly available at: https://github.com/xuefeng-cs/ERP.


Beyond Model Collapse: Scaling Up with Synthesized Data Requires Reinforcement

arXiv.org Machine Learning

Synthesized data from generative models is increasingly considered as an alternative to human-annotated data for fine-tuning Large Language Models. This raises concerns about model collapse: a drop in performance of models fine-tuned on generated data. Considering that it is easier for both humans and machines to tell between good and bad examples than to generate high-quality samples, we investigate the use of feedback on synthesized data to prevent model collapse. We derive theoretical conditions under which a Gaussian mixture classification model can achieve asymptotically optimal performance when trained on feedback-augmented synthesized data, and provide supporting simulations for finite regimes. We illustrate our theoretical predictions on two practical problems: computing matrix eigenvalues with transformers and news summarization with large language models, which both undergo model collapse when trained on model-generated data. We show that training from feedback-augmented synthesized data, either by pruning incorrect predictions or by selecting the best of several guesses, can prevent model collapse, validating popular approaches like RLHF.


QuickLLaMA: Query-aware Inference Acceleration for Large Language Models

arXiv.org Artificial Intelligence

The capacity of Large Language Models (LLMs) to comprehend and reason over long contexts is pivotal for advancements in diverse fields. Yet, they still stuggle with capturing long-distance dependencies within sequences to deeply understand semantics. To address this issue, we introduce Query-aware Inference for LLMs (Q-LLM), a system designed to process extensive sequences akin to human cognition. By focusing on memory data relevant to a given query, Q-LLM can accurately capture pertinent information within a fixed window size and provide precise answers to queries. It doesn't require extra training and can be seamlessly integrated with any LLMs. Q-LLM using LLaMA3 (QuickLLaMA) can read Harry Potter within 30s and accurately answer the questions. Q-LLM improved by 7.17% compared to the current state-of-the-art on LLaMA3, and by 3.26% on Mistral on the $\infty$-bench. In the Needle-in-a-Haystack task, On widely recognized benchmarks, Q-LLM improved upon the current SOTA by 7.0% on Mistral and achieves 100% on LLaMA3. Our code can be found in https://github.com/dvlab-research/Q-LLM.


Benchmarking Vision-Language Contrastive Methods for Medical Representation Learning

arXiv.org Artificial Intelligence

We perform a comprehensive benchmarking of contrastive frameworks for learning multimodal representations in the medical domain. Through this study, we aim to answer the following research questions: (i) How transferable are general-domain representations to the medical domain? (ii) Is multimodal contrastive training sufficient, or does it benefit from unimodal training as well? (iii) What is the impact of feature granularity on the effectiveness of multimodal medical representation learning? To answer these questions, we investigate eight contrastive learning approaches under identical training setups, and train them on 2.8 million image-text pairs from four datasets, and evaluate them on 25 downstream tasks, including classification (zero-shot and linear probing), image-to-text and text-to-image retrieval, and visual question-answering. Our findings suggest a positive answer to the first question, a negative answer to the second question, and the benefit of learning fine-grained features. Finally, we make our code publicly available.


Teaching Language Models to Self-Improve by Learning from Language Feedback

arXiv.org Artificial Intelligence

Aligning Large Language Models (LLMs) with human intentions and values is crucial yet challenging. Current methods primarily rely on human preferences, which are costly and insufficient in capturing nuanced feedback expressed in natural language. In this paper, we present Self-Refinement Tuning (SRT), a method that leverages model feedback for alignment, thereby reducing reliance on human annotations. SRT uses a base language model (e.g., Tulu2) to generate initial responses, which are critiqued and refined by a more advanced model (e.g., GPT-4-Turbo). This process enables the base model to self-evaluate and improve its outputs, facilitating continuous learning. SRT further optimizes the model by learning from its self-generated feedback and refinements, creating a feedback loop that promotes model improvement. Our empirical evaluations demonstrate that SRT significantly outperforms strong baselines across diverse tasks and model sizes. When applied to a 70B parameter model, SRT increases the win rate from 9.6\% to 25.8\% on the AlpacaEval 2.0 benchmark, surpassing well-established systems such as GPT-4-0314, Claude 2, and Gemini. Our analysis highlights the crucial role of language feedback in the success of SRT, suggesting potential for further exploration in this direction.


Apple may integrate Google's Gemini AI into iOS in the future

Engadget

Apple is integrating GPT-4o, the large language model that powers ChatGPT into iOS 18, iPadOS 18 and MacOS Sequioa thanks to a partnership with OpenAI announced at WWDC, the company's annual developer conference, on Monday. But shortly after the keynote ended, Craig Federighi, Apple's senior vice president of software engineering said that the company might also bake in Gemini, Google's family of large language model, into its operating systems. "We want to enable users ultimately to choose the models they want, maybe Google Gemini in the future," Federighi said in a conversation with reporters after the keynote. "Nothing to announce right now." The news is notable because even though Apple did mention plans to add more AI models into its operating system in the keynote, it didn't mention Gemini specifically. Letting people choose the AI model they want on their devices instead of simply foisting one on them would give Apple devices a level of customization that none of its competitors like Google or Samsung have.


Apple brings ChatGPT to iPhones in AI overhaul

BBC News

Apple is to boost its Siri voice assistant and operating systems with OpenAI's ChatGPT as it seeks to catch up in the AI race. The iPhone maker announced the Siri makeover along with a number of other new features at its annual developers show on Monday. It is part of a new personalised AI system - called "Apple Intelligence" - that aims to offer users a way to navigate Apple devices more easily. Updates to its iPhone and Mac operating systems will allow access to ChatGPT through a partnership with developer OpenAI. ChatGPT can also be used to boost other tools, including text and content generation.


Apple's first attempt at AI is Apple Intelligence

Engadget

Apple is going all in on AI in the most Apple way possible. At WWDC, the company's annual conference for developers, the company revealed Apple Intelligence, an Apple-branded version of AI that is more focused on infusing its software with the technology and upgrading existing apps to make them more useful. Apple Intelligence will be powered both by Apple's homegrown tech as well as a partnership with OpenAI, the maker of ChatGPT, Apple announced. One of Apple's biggest AI upgrades is coming to Siri. The company's built-in voice assistant will now be powered by large language models, the underlying tech that powers all modern-day generative AI.


ChatGPT is baked into Apple Intelligence

Engadget

As rumored, Apple confirmed at WWDC 2024 that it's made a deal with OpenAI to bring ChatGPT to the iPhone and other devices. GPT-4o will power cloud-based Apple Intelligence queries in iOS 18, iPadOS 18 and macOS Sequoia. Apple's Craig Federighi said the new AI-powered Siri can (with your permission) tap into ChatGPT's knowledge base "when it might be helpful." Examples include asking for menu ideas for an elaborate meal with specific ingredients. You can also include photos with your questions, like asking for advice based on a detail in the picture.