Goto

Collaborating Authors

 wildchat


From Exact Hits to Close Enough: Semantic Caching for LLM Embeddings

arXiv.org Artificial Intelligence

Abstractpreviously computed answer, avoiding redundant inference The rapid adoption of large language modelsand reducing overall latency and compute cost. Most of (LLMs) has created demand for faster responsesthese works adopt a na ฤฑve or ad-hoc approach to managing the cache, i.e., for deciding which embeddings should beand lower costs. Semantic caching, reusing seinserted into the cache, and once the cache is full, whichmantically similar requests via their embeddings, addresses this need but breaks classic cache as-should be evicted to make room for new ones. This is desumptions and raises new challenges. In thisspite evidence from other domains that clever cache managepaper, we explore offline policies for semanticment can significantly improve caching benefits (Megiddo & Modha, 2003; Park & Park, 2017; Einziger et al., 2017).caching, We also present on-yield significantly different hit rates depending on the cache line semantic aware cache policies that combinemanagement policy chosen. This has led to a plethora of recency, frequency, and locality. Evaluations oncache management policies (Hennessy & Patterson, 2012; diverse datasets show that while frequency based Karakostas & Serpanos, 2002; Arlitt et al., 2000) as well policies are strong baselines, our novel variantas to various adaptive schemes and learning based schemes. Our findings reveal However, a universally optimal cache management policy effective strategies for current systems and high-remains an open research challenge. All code is open source. Since semantically similar queries can be answered by the same response, despite the fact that syntactically they are not exactly the same, most LLM caching solutions rely on 1. Introductionsemantic caching, in which a query is considered a hit if the cache already includes the reply to some query such that Modern large language models (LLMs) rely on embeddingthe embedding vectors of both queries are "close enough" methods to encode the semantic meaning of user queriesunder some metric such as L2 norm or cosine similarity. These embeddings enable efThe impact of this shift from exact match caching to semanficient comparison of queries, making them a cornerstone of tic caching on the vast knowledge about caching and cache natural language processing tasks, such as question answerreplacement policies is not clear a priori. LLMs have gained wide adoption in the last few years although they suffer from high compuwe take a systematic approach to studying LLM cache mantational cost, as well as significant consumption of energy, agement and, in particular, what changes, if any, are needed when moving from exact matches to semantic caching. Caching is a known technique to alleviate such limitations, 1.1. Related Work and has been applied successfully in a variety of domains.


WildReward: Learning Reward Models from In-the-Wild Human Interactions

arXiv.org Artificial Intelligence

Reward models (RMs) are crucial for the training of large language models (LLMs), yet they typically rely on large-scale human-annotated preference pairs. With the widespread deployment of LLMs, in-the-wild interactions have emerged as a rich source of implicit reward signals. This raises the question: Can we develop reward models directly from in-the-wild interactions? In this work, we explore this possibility by adopting WildChat as an interaction source and proposing a pipeline to extract reliable human feedback, yielding 186k high-quality instances for training WildReward via ordinal regression directly on user feedback without preference pairs. Extensive experiments demonstrate that WildReward achieves comparable or even superior performance compared to conventional reward models, with improved calibration and cross-sample consistency. We also observe that WildReward benefits directly from user diversity, where more users yield stronger reward models. Finally, we apply WildReward to online DPO training and observe significant improvements across various tasks. Code and data are released at https://github.com/THU-KEG/WildReward.


User Feedback in Human-LLM Dialogues: A Lens to Understand Users But Noisy as a Learning Signal

arXiv.org Artificial Intelligence

Once language models (LMs) are deployed, they can interact with users long-term, ideally evolving based on their feedback. Asking for direct user feedback can be disruptive; thus, we study harvesting implicit user feedback from user-LM interaction logs. We study two user-LM interaction datasets (WildChat and LMSYS). First, we analyze user feedback in the user-LLM conversation logs, providing insights into when and why such feedback occurs. Second, we study harvesting learning signals from such implicit user feedback. Specifically, we study whether incorporating the contents of user feedback (e.g., user wanted clarification), in addition to the polarity of the feedback, can improve the model performance. We observe mixed results, showing this helps in short human-designed questions (MTBench) but not on longer and more complex questions (WildBench). Together, we provide an in-depth study of implicit user feedback, showing its potential and limitations.


Navigating Rifts in Human-LLM Grounding: Study and Benchmark

arXiv.org Artificial Intelligence

Language models excel at following instructions but often struggle with the collaborative aspects of conversation that humans naturally employ. This limitation in grounding -- the process by which conversation participants establish mutual understanding -- can lead to outcomes ranging from frustrated users to serious consequences in high-stakes scenarios. To systematically study grounding challenges in human-LLM interactions, we analyze logs from three human-assistant datasets: WildChat, MultiWOZ, and Bing Chat. We develop a taxonomy of grounding acts and build models to annotate and forecast grounding behavior. Our findings reveal significant differences in human-human and human-LLM grounding: LLMs were three times less likely to initiate clarification and sixteen times less likely to provide follow-up requests than humans. Additionally, early grounding failures predicted later interaction breakdowns. Building on these insights, we introduce RIFTS: a benchmark derived from publicly available LLM interaction data containing situations where LLMs fail to initiate grounding. We note that current frontier models perform poorly on RIFTS, highlighting the need to reconsider how we train and prompt LLMs for human interaction. To this end, we develop a preliminary intervention that mitigates grounding failures.


Packing Analysis: Packing Is More Appropriate for Large Models or Datasets in Supervised Fine-tuning

arXiv.org Artificial Intelligence

Packing, initially utilized in the pre-training phase, is an optimization technique designed to maximize hardware resource efficiency by combining different training sequences to fit the model's maximum input length. Although it has demonstrated effectiveness during pre-training, there remains a lack of comprehensive analysis for the supervised fine-tuning (SFT) stage on the following points: (1) whether packing can effectively enhance training efficiency while maintaining performance, (2) the suitable size of the model and dataset for fine-tuning with the packing method, and (3) whether packing unrelated or related training samples might cause the model to either excessively disregard or over-rely on the context. In this paper, we perform extensive comparisons between SFT methods using padding and packing, covering SFT datasets ranging from 69K to 1.2M and models from 8B to 70B. This provides the first comprehensive analysis of the advantages and limitations of packing versus padding, as well as practical considerations for implementing packing in various training scenarios. Our analysis covers various benchmarks, including knowledge, reasoning, and coding, as well as GPT-based evaluations, time efficiency, and other fine-tuning parameters. We also open-source our code for fine-tuning and evaluation and provide checkpoints fine-tuned on datasets of different sizes, aiming to advance future research on packing methods. Code is available at: https://github.com/ShuheWang1998/Packing-Analysis?tab=readme-ov-file.


WildVis: Open Source Visualizer for Million-Scale Chat Logs in the Wild

arXiv.org Artificial Intelligence

The increasing availability of real-world conversation data offers exciting opportunities for researchers to study user-chatbot interactions. However, the sheer volume of this data makes manually examining individual conversations impractical. To overcome this challenge, we introduce WildVis, an interactive tool that enables fast, versatile, and large-scale conversation analysis. WildVis provides search and visualization capabilities in the text and embedding spaces based on a list of criteria. To manage million-scale datasets, we implemented optimizations including search index construction, embedding precomputation and compression, and caching to ensure responsive user interactions within seconds. We demonstrate WildVis' utility through three case studies: facilitating chatbot misuse research, visualizing and comparing topic distributions across datasets, and characterizing user-specific conversation patterns. WildVis is open-source and designed to be extendable, supporting additional datasets and customized search and visualization functionalities.


Breaking News: Case Studies of Generative AI's Use in Journalism

arXiv.org Artificial Intelligence

Journalists are among the many users of large language models (LLMs). To better understand the journalist-AI interactions, we conduct a study of LLM usage by two news agencies through browsing the WildChat dataset, identifying candidate interactions, and verifying them by matching to online published articles. Our analysis uncovers instances where journalists provide sensitive material such as confidential correspondence with sources or articles from other agencies to the LLM as stimuli and prompt it to generate articles, and publish these machine-generated articles with limited intervention (median output-publication ROUGE-L of 0.62). Based on our findings, we call for further research into what constitutes responsible use of AI, and the establishment of clear guidelines and best practices on using LLMs in a journalistic context.