Goto

Collaborating Authors

 computing machinery


An Empirical Study of Vulnerability Localization with Third-Party Reports

arXiv.org Artificial Intelligence

Third-party vulnerability reports are indispensable to software security maintenance, yet they describe how a vulnerability manifests rather than where it resides in code. Software engineers take 24 days to 9 months to localize and fix a reported vulnerability, leaving systems exploitable in the meantime. Automating this process is therefore critical. A natural starting point towards automation is records of past vulnerabilities. However, their value for automated localization has yet to be investigated. In this research, we conduct a large-scale empirical study using PrismVul, a benchmark of 6,851 vulnerability entries from 831 Open-Source Software (OSS) projects spanning 11 programming languages. Each benchmark entry links a third-party report to the corresponding vulnerable code. We evaluate four technique families: statistical methods, machine learning, code retrieval, and LLM agents, alongside general bug localization methods. Our results indicate that automated vulnerability localization is non-trivial, as most vulnerabilities occur at unique locations. Consequently, methods confined to historically observed locations provide limited coverage, whereas comprehensive techniques that look beyond just the location are more promising. With historical third-party reports, LLM agents perform best and outperform the evaluated general bug localization methods, achieving up to 86.09% Recall@5 and reaching 81.76% on previously unseen OSS projects. To account for cases when such reports may be scarce, we consider summary descriptions from public vulnerability databases (e.g., NVD) and establish that they can safely substitute third-party reports in agent-based localization. Our findings establish realistic baselines for automated vulnerability localization and demonstrate the value of historical third-party reports.


Personalized Query Suggestion via Reinforcement Learning with a Production Search Engine in the Loop

arXiv.org Artificial Intelligence

Personalized query suggestion guides users toward what to search for by recommending queries tailored to their interests. Most prior work optimizes how appealing a suggested query is, but in production the query should also return search results the user finds valuable. On a large-scale gaming platform with a continually growing catalog, we train a small LLM to generate query suggestions from a user's recent play history via reinforcement learning, with the production search engine as the environment. Each query is rewarded by how well its search results cover the user's future game interests, and the query set is further rewarded for covering them jointly. On unseen users and later time periods, the trained model improves Hit@10 and Recall@10 by 9.5% and 11.3% over the initial model, and training with both rewards improves set-level recall@10 by 9.5%. This shows that a production search engine can serve directly as a training environment for personalized query suggestion, steering suggestions toward better search results.


What Comes Next? Teens Learning About and Designing Markov Chains Through Unplugged AI Activities

arXiv.org Artificial Intelligence

A Markov chain is a process that describes the probability of a future event based on the most recent event or sequence of events. Despite the foundational role of Markov chains in probabilistic modeling, now particularly relevant given the heightened attention towards generative language models, few efforts have addressed how young people can learn about them. Building on traditions of developing unplugged activities for computing education, we present a collection of five unplugged activities that introduce teens to Markov chains as a simplified entry point for reasoning how generative language models produce text. These activities engage youth with foundational concepts, including state-based prediction, tokenization, n-grams, and state transition diagrams, and in building their own paper-based Markov chains using self-collected datasets using modified, familiar games like rock-paper-scissors. In this experience report, we present examples of student work and reflections from a pilot workshop with 19 consenting teenagers (ages 14-15) who completed these activities before building their own generative language models. We observed that the activities helped participants reason about text generation as a probabilistic process, use patterns in data to make predictions, and explain how training data shapes model output. We hope these activities can inspire future efforts to develop activities that connect foundational methods to the technologies that increasingly shape young people's everyday lives.


Oops, I Did It Again (But I Know It): Robot Failure Consistency and Awareness in Human-Robot Collaboration

arXiv.org Artificial Intelligence

In human-robot collaboration, repeated failures are inevitable and can undermine trust and perceptions of robot intelligence. While some failures severely disrupt tasks and others are relatively benign, their cumulative impact on trust is not clearly understood. We investigated whether users perceive repeated failures of the same type differently from varied failures, and how robot awareness of its own failures affects these perceptions. In a collaborative physical task with 54 participants, we manipulated failure sequence (homogeneous vs. heterogeneous) and awareness (none, partial, full). Results show that trust and perceived intelligence were influenced by both current and prior failures, with homogeneous sequences leading to smaller reductions in these evaluations compared to heterogeneous ones. Robots displaying awareness, whether partial or full, were consistently rated higher than unaware robots, particularly for grasping and planning failures. Our findings provide a deeper understanding of how failure type, sequence, and robot awareness shape users' perceptions of collaborative robots.


KVSeal: Serving Long-Context LLMs with Losslessly Compressed KV Caches

arXiv.org Artificial Intelligence

Long context is what lets an LLM serve real workloads: a single request can carry an entire repository, a document collection, or a long agent trajectory. It also makes the KV Cache, rather than the model weights, the dominant serving cost, because the cache grows linearly with the context and every decode step rereads all of it. Eviction, sparse attention, and low-bit quantization shrink this cost by changing which K/V entries attention sees or what values they carry, so accuracy that holds on short prompts can collapse on the long-context tasks these systems target. Lossless compression can reduce KV storage while preserving every original K/V bit. Prior uses of lossless compression include shrinking static weights and reducing KV transfers between workers. Applying it to resident KV, however, requires the serving system to compress pages online as they fill, manage them independently as requests progress, and keep them accessible to decode attention. We present KVSeal, which makes lossless compression the resident form of the KV Cache. We exploit the strong concentration of BF16 KV exponents to design a lossless page format with fixed-length codes and bounded escape storage. Each compressed page carries its own encoded values and escape records, allowing it to be stored, reconstructed bit for bit, and consumed by attention independently of other pages. A compression-aware page lifecycle manages raw and compressed pages as the cache grows. During decode, attention reads both formats and reconstructs compressed values as it consumes them. KVSeal achieves about $1.3\times$ resident KV compression, up to $1.27\times$ decode attention speedup over FlashAttention-2, and up to $1.19\times$ end-to-end decode speedup over stock vLLM.


ValQID: Learning the Net Value of Semantic Query Groups for Web Device Identification

arXiv.org Artificial Intelligence

Web interfaces are widely used to access network services and manage networked devices. Identifying the vendors and types of devices behind Web interfaces is a critical step in asset inventory, security management, and risk assessment. Device identity cues are dispersed across page text, configuration fields, and management functions, and interpreting them often requires linking related Web objects. Responses and objects require different amounts of semantic analysis, so exhaustively processing all candidate content can introduce unnecessary computation. We present ValQID, which uses a relation graph to combine dispersed device identity cues, evaluates semantic questions efficiently with DSEJEV, and accounts for complementarity among semantic questions when estimating computation value. Based on the current identification state, ValQID weighs each question group's expected identification benefit against its execution cost and adaptively allocates computation to identify device vendors and types. Evaluation on real Web response data shows that ValQID achieves relative gains of up to 47.1% in joint macro-F1 and up to 82.1% in macro-F1 for low-frequency vendors over a state-of-the-art method. DSEJEV speeds up semantic processing by up to 8.58 times compared with general-purpose language models.


Typing Behavior in Human-LLM Interaction: Keystroke Dynamics Reveal Cognitive Effort During Prompting

arXiv.org Artificial Intelligence

As Large Language Models (LLMs) become increasingly integrated into daily routines, understanding how users interact with these systems is crucial for effective human-AI collaboration. This work investigates keystroke dynamics as a behavioral measure of user mental effort and perceived output usefulness in human-LLM interaction. We conducted a user study (N = 36) to examine how task difficulty (easy vs. hard) and device type (desktop vs. mobile) influence typing behavior and workload (NASA-TLX) during interactions. Our results indicate that hard tasks led to significantly more keystrokes, slower typing, increased pauses, and higher self-reported workload. Device type had weaker effects, with mobile use slightly reducing input length and typing speed. While keystrokes captured differences in cognitive effort, they did not predict perceived LLM output usefulness. These findings highlight the potential of keystroke dynamics as real-time indicators of cognitive effort during LLM prompting, while also showing their limitations in capturing perceived collaboration success.


Do as I Say, Not as You Do: Assessing Public Versus Practitioner Perspectives on the Development of Artificial Intelligence and Language Technologies

arXiv.org Artificial Intelligence

With the public awareness of artificial intelligence (AI) applications such as large language models (LLMs) and generative text-to-video models reaching unprecedented levels, there is an increasing need to reconcile the perspectives held by informed practitioners, who research and develop these technologies, with the interests and opinions of the general public, who constitute the majority of people impacted by technological developments. In this work, we survey practitioners (i.e., academics and industry professionals) alongside members of the general public on perspectives relating to pertinent areas of artificial intelligence, including perceived benefit and risk, the ability for models to achieve consciousness and output art, and the use of copyright protected material for model training. Alongside comparisons of diverse perspectives on these topics, we additionally contextualise the findings with a discussion of relevant literature that supports and refutes the myriad observed stances.


Can Ideologues Agree on Quality? From Non-identifiable Latent Factors to Collective Outcomes

arXiv.org Artificial Intelligence

To surface "objective" fact-check notes, X's Community Notes uses Biased Matrix Factorization (BMF) on crowd-sourced ratings to separate note quality from reviewer ideology. We show that for any correctly specified model that decomposes ratings into quality and ideological alignment, this separation requires fixing an ideological anchor: a reference point for what counts as neutral. We give a characterization for the standard implementation: with $L_2$ regularization, BMF anchors quality at a point proportional to the mean reviewer ideology, recovering objective quality if and only if the mean reviewer is neutral, assuming note quality is uncorrelated with note leaning. This parallels the Condorcet Jury Theorem: collective judgment recovers truth when the pool is unbiased on average. When that assumption fails, BMF's recovered ranking shifts toward maximizing aggregate reviewer satisfaction, which coincides with social welfare only when the pool is representative. This is not specific to BMF; the rating matrix admits a continuous family of gauge-equivalent decompositions, each implying a different quality ranking, so no mechanism based on ratings alone can recover quality without implicitly choosing such an anchor. What appears to be routine hyperparameter tuning is in fact a normative choice about whose preferences define quality.


From Head to Tail: LLM-Augmented Sequential Recommendation and Trade-off Optimization

arXiv.org Artificial Intelligence

Recommender systems exhibit popularity bias, often under-serving long-tail and cold-start items with sparse interaction data. We propose a group-specific data augmentation approach that leverages LLMs to generate synthetic interactions, formulated as a constrained optimization problem, maximizing group-specific NDCG@20 and coverage while bounding overall NDCG@20 degradation within an acceptable threshold. Items are partitioned by interaction frequency to find the optimal augmentation strategy for each group. We further study combining the augmentation across groups simultaneously and find that while individual optimal strategies navigate the multi-group augmentation design, they are not simply additive. We further ablate on the LLM-based augmentation itself, comparing LLM scales, augmentation configuration under token constraints, finding that augmentation quality scales with contextual richness, albeit at a proportionally higher cost. Experiments with SASRec demonstrate the effectiveness of the proposed approach, achieving over 100% and 60% improvement in group-specific NDCG@20 for extreme and regular long-tail items, respectively, on our industrial dataset, and 40%, 25% for MovieLens-32M, while increasing their coverage without significant overall degradation.