arXiv Science⌕ Search

arXiv subjects

Xijia Feng

Publications and source records attributed to Xijia Feng.

3 recordsLinked to original sources

SnowballCost: A Systematic Measurement of the Impact of Ultra-Long Responses on Large Language Model Inference Services

Modern Large Language Models (LLMs) support ever-larger context windows and output budgets. Under autoregressive decoding, the cost of generating a response grows faster than its length, yet the cost that ultra-long responses impose on LLM inference services remains underexplored. We present SnowballCost, a framework that measures this cost across serving engines, models, and GPU configurations. From the measurements we derive an inference cost model and calibrate it. Its coefficients are set by the model architecture, the GPU specifications, and the serving engine, so one calibration carries over to other deployments. The cost model also gives two threshold lengths, one at which a linear cost estimate fails and one at which a request stops being profitable. We find that (1) even optimized engines such as vLLM and SGLang exhibit super-linear growth in inference time at extreme response lengths, up to 1M tokens. (2) When served alongside requests with ultra-long responses, normal requests are only slightly affected, and their SLO attainment barely changes. The requests with ultra-long responses themselves take longer to generate each token as their output grows, and a few of them occupy the provider's GPUs long after the normal traffic has finished. (3) An ultra-long response can become unprofitable before it completes. Our framework, request traces, and analysis scripts are available at https://github.com/fengxijia/SnowballCost.

cs.CL↗

When Smiley Turns Hostile: Interpreting How Emojis Trigger LLMs' Toxicity

Emojis are globally used non-verbal cues in digital communication, and extensive research has examined how large language models (LLMs) understand and utilize emojis across contexts. While usually associated with friendliness or playfulness, it is observed that emojis may trigger toxic content generation in LLMs. Motivated by such a observation, we aim to investigate: (1) whether emojis can clearly enhance the toxicity generation in LLMs and (2) how to interpret this phenomenon. We begin with a comprehensive exploration of emoji-triggered LLM toxicity generation by automating the construction of prompts with emojis to subtly express toxic intent. Experiments across 5 mainstream languages on 7 famous LLMs along with jailbreak tasks demonstrate that prompts with emojis could easily induce toxicity generation. To understand this phenomenon, we conduct model-level interpretations spanning semantic cognition, sequence generation and tokenization, suggesting that emojis can act as a heterogeneous semantic channel to bypass the safety mechanisms. To pursue deeper insights, we further probe the pre-training corpus and uncover potential correlation between the emoji-related data polution with the toxicity generation behaviors. Supplementary materials provide our implementation code and data. (Warning: This paper contains potentially sensitive contents)

cs.CL↗

Incremental Few-Shot Learning via Implanting and Compressing

This work focuses on tackling the challenging but realistic visual task of Incremental Few-Shot Learning (IFSL), which requires a model to continually learn novel classes from only a few examples while not forgetting the base classes on which it was pre-trained. Our study reveals that the challenges of IFSL lie in both inter-class separation and novel-class representation. Dur to intra-class variation, a novel class may implicitly leverage the knowledge from multiple base classes to construct its feature representation. Hence, simply reusing the pre-trained embedding space could lead to a scattered feature distribution and result in category confusion. To address such issues, we propose a two-step learning strategy referred to as \textbf{Im}planting and \textbf{Co}mpressing (\textbf{IMCO}), which optimizes both feature space partition and novel class reconstruction in a systematic manner. Specifically, in the \textbf{Implanting} step, we propose to mimic the data distribution of novel classes with the assistance of data-abundant base set, so that a model could learn semantically-rich features that are beneficial for discriminating between the base and other unseen classes. In the \textbf{Compressing} step, we adapt the feature extractor to precisely represent each novel class for enhancing intra-class compactness, together with a regularized parameter updating rule for preventing aggressive model updating. Finally, we demonstrate that IMCO outperforms competing baselines with a significant margin, both in image classification task and more challenging object detection task.

cs.CV↗