MCP
JL

Jiwei Li

175 papers in the library

Papers

30
Template-assisted Contrastive Learning of Task-oriented Dialogue Sentence Embeddings
Minsik OhJiwei LiGuoyin Wang
Learning high quality sentence embeddings from dialogues has drawn increasing attentions as it is essential to solve a variety of dialogue-oriented tasks with low annotation cost. Annotating and gathering utterance relationships in conversations are difficult, while token-level annotations, , entities, slots and templates, are much easier to obtain. Other sentence embedding methods are usually sentence-level self-supervised frameworks and cannot utilize token-level extra knowledge. We introduce Template-aware Dialogue Sentence Embedding (TaDSE), a novel augmentation method that utilizes template information to learn utterance embeddings via self-supervised contrastive learning framework. We further enhance the effect with a synthetically augmented dataset that diversifies utterance-template association, in which slot-filling is a preliminary step. We evaluate TaDSE performance on five downstream benchmark dialogue datasets. The experiment results show that TaDSE achieves significant improvements over previous SOTA methods for dialogue. We further introduce a novel analytic instrument of semantic compression test, for which we discover a correlation with uniformity and alignment. Our code is available at https://github.com/minsik-ai/Template-Contrastive-Embedding
ACL AnthologyACL Anthology · July 2026
0
Situated Embedding Models for Context-Aware Dense Retrieval
Junjie WuJiangnan LiYuqing LiLemao LiuLiyan XuJiwei LiDit-Yan YeungJie ZhouMo Yu
To improve retrieval of local chunks from long documents, the authors propose situated embeddings: short chunks are represented conditioned on their broader context window. They show existing embedding models cannot encode this situated context well and introduce a training paradigm for the first such model. On a book-plot retrieval benchmark, their 1B-parameter model surpasses state-of-the-art models with up to 7B parameters.
ACL AnthologyACL Anthology · July 2026
0
10
Inference-time Alignment via Sparse Junction Steering
Runyi HuJie ZhangShiqian ZhaoJiale MengJiwei LiJason ZengMing WuMichael HeinrichYonggang WenTianwei Zhang
The authors argue that dense token-level intervention at every decoding step is unnecessary for inference-time alignment and propose Sparse Inference-time Alignment (SIA), which steers only at critical points along the generation trajectory. Its key insight is that high-entropy junctions empirically coincide with pivotal decision points that are especially susceptible to misalignment, so alignment reward signal is applied just there. Across model families and alignment objectives, steering 20%–80% of tokens gives superior alignment–efficiency trade-offs; for strong base models such as Qwen3, intervening on only 20% of tokens matches or surpasses heavily post-trained instruct models. This sparsity preserves the model's native distribution, integrates with search-based methods such as Best-of-N, and reduces sampling budget and wall-clock time under matched-quality comparisons.
OpenReviewOpenReview · · April 20, 2026
0
GrandCode: Achieving Grandmaster Level in Competitive Programming via Agentic Reinforcement Learning
Ornith TeamXiaoya LiGuoyin WangSongqiao SuJiwei LiChris Shum
GrandCode is a multi-agent reinforcement-learning system for competitive programming that coordinates agentic modules—hypothesis proposal, solver, test generation, and summarization—jointly improved through post-training and online test-time RL, together with Agentic GRPO, which is designed for multi-stage agent rollouts with delayed rewards and the severe off-policy drift common in agentic RL. It is the first AI system to consistently beat all human participants in live contests: it placed first in all three most recent Codeforces live rounds (1087, 1088, and 1089, in late March 2026), defeating legendary grandmasters.
arXivarXiv · · April 3, 2026
0
2
Inference-time Alignment via Sparse Junction Steering
Runyi HuJie ZhangShiqian ZhaoJiale MengJiwei LiJason ZengMing WuMichael HeinrichYonggang WenTianwei Zhang
This paper proposes Sparse Inference-time Alignment (SIA), showing that dense token-level steering at every decoding step is unnecessary. SIA performs sparse junction steering, intervening only at critical, high-entropy decision points along the generation trajectory, which are empirically susceptible to misalignment. Experiments across model families show that steering only 20%-80% of tokens achieves superior alignment-efficiency trade-offs; for Qwen3, intervening on 20% of tokens matches or surpasses post-trained instruct models. This approach preserves the model's native distribution, integrates with search methods, and yields wall-clock speedups.
arXivarXiv · · January 30, 2026
0
3
CUDA-L2: Surpassing cuBLAS Performance for Matrix Multiplication through Reinforcement Learning
Songqiao SuXiaoya LiAlbert WangGuoyin WangJiwei LiChris Shum
CUDA-L2 is a system that combines large language models with reinforcement learning, using CUDA execution speed as the reward, to automatically optimize half-precision general matrix multiply (HGEMM) CUDA kernels across 1,000 configurations. Optimized this way, the kernels systematically outperform major matmul baselines, from torch.matmul to Nvidia's closed-source cuBLAS and cuBLASLt. In offline mode CUDA-L2 averages +22.0% over torch.matmul, +19.2% over cuBLAS, +16.8% over cuBLASLt-heuristic and +11.4% over cuBLASLt-AutoTuning; in a server mode with randomly spaced execution simulating real-time inference, these gains rise to +28.7%, +26.0%, +22.4% and +15.9%. The work thus shows that even heavily optimized, performance-critical kernels can be improved through LLM-guided RL automation that explores configuration spaces at scales impractical for humans.
arXivarXiv · · December 2, 2025
0
13
Warfare: Breaking the Watermark Protection of AI-Generated Content
Guanlin LiYifei ChenJie ZhangShangwei GuoHan QiuGuoyin WangJiwei LiTianwei Zhang
This paper proposes Warfare, a unified attack framework that breaks watermark protection of AI-generated content through two attacks: watermark removal, which erases a watermark for unrestricted use, and watermark forging, which creates illegal content with another user's watermark to cause misattribution. Warfare uses a pre-trained diffusion model for content processing and a generative adversarial network for watermark manipulation. Evaluations across datasets show high success rates while preserving content quality; the enhanced Warfare-Plus improves efficiency without sacrificing effectiveness.
OpenReviewOpenReview · September 20, 2025
0
18
Picky LLMs and Unreliable RMs: An Empirical Study on Safety Alignment after Instruction Tuning
Guanlin LiKangjie ChenShangwei GuoJie ZhangHan QiuChao ZhangGuoyin WangTianwei ZhangJiwei Li
This empirical study investigates why benign fine-tuning degrades LLM safety alignment, identifying answer structure, identity calibration, and role-play as three critical factors. It also assesses state-of-the-art reward models (RMs) used to guide alignment, finding they often fail to reflect human safety preferences, underscoring their practical limitations. The work highlights complexities in maintaining safety during fine-tuning, offering guidance for balancing utility and safety. Datasets and fine-tuning code will be released after acceptance.
OpenReviewOpenReview · · September 19, 2025
0
CUDA-L1: Improving CUDA Optimization via Contrastive Reinforcement Learning
Xiaoya LiXiaofei SunAlbert WangJiwei LiChris Shum
CUDA-L1 is an automated reinforcement learning (RL) framework using a novel contrastive RL algorithm to optimize CUDA kernels. Trained on NVIDIA A100, it achieves an average speedup of ×3.12 (median ×1.42) over default baselines across all 250 KernelBench kernels, with peak speedups reaching ×120. It also outperforms Torch Compile and CUDA Graph implementations, and shows portability across GPU architectures, achieving average speedups up to ×3.85 on H100 despite A100-specific training. The model discovers optimization techniques, learns multiplicative principles, and rejects harmful optimizations, demonstrating that RL alone can turn a poor LLM into an effective CUDA optimizer.
OpenReviewOpenReview · · September 19, 2025
0
53
Turn That Frown Upside Down: FaceID Customization via Cross-Training Data
Shuhe WangXiaoya LiXiaofei SunGuoyin WangTianwei ZhangJiwei LiEduard Hovy
Existing FaceID customization models only generate faces identical to the input. To enable variations like different expressions or angles, the paper introduces CrossFaceID, the first large-scale, high-quality, publicly available dataset for improving facial modification. It contains 40,000 text-image pairs from about 2,000 persons, each with roughly 20 images of diverse facial attributes. During training, the model takes one face as input and is forced to generate another image of the same person with altered features, thereby learning to personalize and modify known facial features. Experiments show fine-tuned models retain identity fidelity while significantly improving customization capability.
OpenReviewOpenReview · · September 12, 2025
0
FaceID-6M: A Large-Scale, Open-Source FaceID Customization Dataset
Shuhe WangXiaoya LiJiwei LiGuoyin WangXiaofei SunBob ZhuHan QiuMo YuShengjie ShenTianwei ZhangEduard Hovy
FaceID-6M, the first large-scale open-source FaceID customization dataset, contains 6 million high-quality text-image pairs filtered from LAION-5B, addressing the lack of public training data. Rigorous filtering steps—resolution, face, and keyword-based human-related description retention—ensure quality. Experiments show models trained on it perform comparably to, or slightly better than, industrial models. The code, dataset, and models are fully released to facilitate research.
OpenReviewOpenReview · · September 12, 2025
0
Device-Cloud Collaborative Correction for On-Device Recommendation
Tianyu ZhanShengyu ZhangZheqi LvJieming ZhuJiwei LiFan WuFei Wu
To balance real-time performance and high performance for device-based recommendation as interaction sequences grow, the paper proposes CoCorrRec, a device-cloud collaborative correction framework. Its self-correction network (SCN) updates model parameters during testing based on the input token, correcting parameters at extremely low time cost and reaching performance comparable to more complex Transformer-based models; a global correction network (GCN), which processes hidden states uploaded from devices, provides a global correction solution to prevent SCN overfitting. Experiments on multiple datasets show CoCorrRec outperforms existing Transformer- and RNN-based device recommendation models with fewer parameters and lower FLOPs.
IJCAIIJCAI · September 2025
0
LETToT: Label-Free Evaluation of Large Language Models On Tourism Using Expert Tree-of-Thought
Ruiyan QiCongding WenWeibo ZhouJiwei LiShangsong LiangLingbo Li
LETToT introduces a label-free framework for evaluating large language models in the tourism domain using an expert-derived Tree-of-Thought (ToT) reasoning structure. The ToT is iteratively refined against generic quality dimensions and expert feedback, achieving 4.99–14.15% relative quality gains over baselines. Applied to models from 32B to 671B parameters, it confirms scaling laws (DeepSeek-V3 leads) while showing that reasoning-enhanced smaller models (e.g., DeepSeek-R1-Distill-Llama-70B) close the gap, and for sub-72B models, explicit reasoning architectures improve accuracy and conciseness ($p<0.05$).
arXivarXiv · · August 15, 2025
0
0
OS Agents: A Survey on MLLM-based Agents for General Computing Devices Use
Xueyu HuTao Xiong…Jiwei Li
This survey consolidates the state of OS Agents, which are (M)LLM-based agents that operate computing devices by interacting with OS environments and interfaces (e.g., GUI) to automate tasks. It characterizes their key components (environment, observation, action spaces) and essential capabilities (understanding, planning, grounding), and reviews construction methodologies (foundation models, agent frameworks) and evaluation protocols. The survey identifies challenges including safety, privacy, personalization, and self-evolution, aiming to guide future research and development.
arXivarXiv · · August 6, 2025
0
131
CRINN: Contrastive Reinforcement Learning for Approximate Nearest Neighbor Search
Xiaoya LiAlbert WangGuoyin WangChris ShumJiwei Li
CRINN recasts approximate nearest-neighbor search (ANNS) optimization as a reinforcement learning problem, using execution speed as the reward signal to automatically generate progressively faster ANNS implementations while respecting accuracy constraints. Evaluated on six widely used NNS benchmark datasets against state-of-the-art open-source ANNS algorithms, it achieves best performance on three (GIST-960-Euclidean, MNIST-784-Euclidean, and GloVe-25-angular) and ties for first on two (SIFT-128-Euclidean and GloVe-25-angular). The authors argue this validates that LLMs augmented with reinforcement learning can automate sophisticated algorithmic optimization requiring specialized knowledge and labor-intensive manual refinement.
arXivarXiv · · August 4, 2025
0
0
SitEmb-v1.5: Improved Context-Aware Dense Retrieval for Semantic Association and Long Story Comprehension
Junjie WuJiangnan LiYuqing LiLemao LiuLiyan XuJiwei LiDit-Yan YeungJie ZhouMo Yu
This paper proposes situated embeddings (SitEmb), which represent short text chunks conditioned on their broader context to improve retrieval in long-document RAG. The key idea is that a chunk's meaning is interpreted within its context window, rather than encoding longer chunks. A new training paradigm produces models that significantly outperform state-of-the-art embedding models on a curated book-plot retrieval benchmark. SitEmb-v1 (1B parameters) surpasses models up to 7-8B parameters, and SitEmb-v1.5 (8B) improves by over 10%, showing strong multilingual and downstream performance.
arXivarXiv · · August 3, 2025
0
10
CUDA-L1: Improving CUDA Optimization via Contrastive Reinforcement Learning
Xiaoya LiAlbert WangGuoyin WangJiwei LiChris Shum
CUDA-L1 is an automated reinforcement learning framework for CUDA optimization built on a novel contrastive RL algorithm. Trained on A100, it achieves an average speedup of $3.12\times$ (median $1.42\times$) against KernelBench's default baselines across 250 kernels, with peak speedups of $120\times$, and also outperforms Torch Compile, CUDA Graph, and cuDNN while remaining portable across GPU architectures. The model learns to discover and strategically combine CUDA optimization techniques, reveals principles such as the multiplicative nature of optimizations, and rejects seemingly beneficial optimizations that harm performance. This shows speedup-based reward signals alone can turn a poor-performing LLM into an effective CUDA optimizer without human expertise.
arXivarXiv · · July 18, 2025
0
53
OS Agents: A Survey on MLLM-based Agents for Computer, Phone and Browser Use
Xueyu HuTao Xiong…Jiwei Li
This paper surveys OS Agents—autonomous agents built on multi-modal large language models (MLLMs) that operate computers, phones, and browsers by interacting with operating system interfaces (GUI, CLI). It categorizes key components and capabilities, reviews construction methods such as domain-specific foundation models and agent frameworks, and examines evaluation metrics and benchmarks. The survey identifies current challenges and future research directions, with an open-source repository for ongoing updates.
ACL AnthologyACL Anthology · July 2025
0
141
Packing Analysis: Packing Is More Appropriate for Large Models or Datasets in Supervised Fine-tuning
Shuhe WangGuoyin WangYizhong WangJiwei LiEduard HovyChen Guo
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.
ACL AnthologyACL Anthology · July 2025
0
Device-Cloud Collaborative Correction for On-Device Recommendation
Tianyu ZhanShengyu ZhangZheqi LvJieming ZhuJiwei LiFan WuFei Wu
CoCorrRec is a device-cloud collaborative framework that balances real-time performance and accuracy for on-device sequential recommendation. Its core is a self-correction network (SCN) that updates model parameters during testing based on the input token, achieving performance comparable to complex Transformer-based models with minimal time cost. A global correction network (GCN) on the cloud processes uploaded hidden states to prevent SCN overfitting. Experiments show CoCorrRec outperforms existing Transformer-based and RNN-based models with fewer parameters and lower FLOPs.
arXivarXiv · · June 15, 2025
0
3
Mask Image Watermarking
Runyi HuJie ZhangShiqian ZhaoNils LukasJiwei LiQing GuoHan QiuTianwei Zhang
MaskWM is a simple, efficient framework for image watermarking with two variants: MaskWM-D for global embedding, localization, and local extraction, and MaskWM-ED for robust local embedding/extraction. MaskWM-D trains a decoder guided by masks applied to watermarked images, enabling both global and local extraction. MaskWM-ED also applies masks during encoding to embed watermarks in specified regions. Experiments show state-of-the-art performance across tasks, outperforming baselines like WAM, with 15× computational efficiency and only 20 hours of training on a single A6000 GPU.
OpenReviewOpenReview · · May 2, 2025
0
K2MUSE: A human lower-limb multimodal walking dataset spanning task and acquisition variability for rehabilitation robotics
Jiwei LiBi ZhangXiaowei TanWanxin ChenZhaoyuan LiuJuanjuan ZhangWeiguang HuoJian HuangLianqing LiuXingang Zhao
The K2MUSE dataset provides multimodal lower-limb walking data (kinematics, kinetics, ultrasound, and surface electromyography) from 30 able-bodied young adults and 12 older adults across multiple inclines, speeds, and non-ideal acquisition conditions (muscle fatigue, electrode shifts, interday differences). This dataset is designed to support rehabilitation robotics research by capturing realistic variability often missing in existing datasets, enabling more robust data-driven approaches for control and biomechanical analysis.
arXivarXiv · · April 20, 2025
0
3
Mask Image Watermarking
Runyi HuJie ZhangShiqian ZhaoNils LukasJiwei LiQing GuoHan QiuTianwei Zhang
MaskWM is a simple, efficient image-watermarking framework with two variants: MaskWM-D and MaskWM-ED. MaskWM-D introduces a masking mechanism during decoding that enables both global and local watermark extraction and localization, supporting applications like tamper detection. MaskWM-ED extends this by incorporating the mask into encoding, guiding the encoder to embed watermarks in designated local regions for improved robustness under regional attacks. MaskWM achieves state-of-the-art performance in global and local extraction, localization, and multi-watermark embedding, while requiring only 20 hours of training on a single A6000 GPU (15x more efficient than WAM).
arXivarXiv · · April 17, 2025
0
22
FedCFA: Alleviating Simpson’s Paradox in Model Aggregation with Counterfactual Federated Learning
Zhonghua JiangJimin XuShengyu ZhangTao ShenJiwei LiKun KuangHaibin CaiFei Wu
FedCFA is a federated learning framework that uses counterfactual learning to address Simpson's Paradox, where trends in the global dataset disappear or reverse on subsets and aggregated global models may fail to reflect the global data distribution. It generates counterfactual samples by replacing critical factors in local data with global average data, thereby aligning local distributions with the global and mitigating the paradox's effects; a factor decorrelation (FDC) loss reduces feature correlations to improve factor independence and counterfactual sample quality. Experiments on six datasets show higher efficiency and global model accuracy than other FL methods under limited communication rounds.
AAAI · April 11, 2025
0
GPT-NER: Named Entity Recognition via Large Language Models
Shuhe WangXiaofei SunXiaoya LiRongbin OuyangFei WuTianwei ZhangJiwei LiGuoyin WangChen Guo
Despite the fact that large-scale Language Models (LLM) have achieved SOTA performances on a variety of NLP tasks, its performance on NER is still significantly below supervised baselines. This is due to the gap between the two tasks the NER and LLMs: the former is a sequence labeling task in nature while the latter is a text-generation model.In this paper, we propose GPT-NER to resolve this issue. GPT-NER bridges the gap by transforming the sequence labeling task to a generation task that can be easily adapted by LLMs e.g., the task of finding location entities in the input text “Columbus is a city” is transformed to generate the text sequence "@@Columbus## is a city”, where special tokens @@## marks the entity to extract. To efficiently address the hallucination issue of LLMs, where LLMs have a strong inclination to over-confidently label NULL inputs as entities, we propose a self-verification strategy by prompting LLMs to ask itself whether the extracted entities belong to a labeled entity tag.We conduct experiments on five widely adopted NER datasets, and GPT-NER achieves comparable performances to fully supervised baselines, which is the first time as far as we are concerned. More importantly, we find that GPT-NER exhibits a greater ability in the low-resource and few-shot setups, when the amount of training data is extremely scarce, GPT-NER performs significantly better than supervised models. This demonstrates the capabilities of GPT-NER in real-world NER applications where the number of labeled examples is limited.
ACL AnthologyACL Anthology · April 2025
0
An Acoustic Inversion-Based Flow Measurement Model in 3D Hydrodynamic Systems
Jiwei LiLingyun QiuZhongjing WangHui Yu
This paper extends a prior acoustic inversion-based flow measurement method from 2D to 3D. The model uses multiple emission directions and flexible receiver configurations to measure water velocity non-intrusively with high resolution. Numerical simulations mimicking real-world hydrodynamic conditions demonstrate the method's effectiveness in complex 3D flow fields, suggesting its applicability in hazardous environments like floods and sediment-laden rivers.
arXivarXiv · · March 15, 2025
0
3
Sediment Concentration Estimation via Multiscale Inverse Problem and Stochastic Homogenization
Jiwei LiLingyun QiuZhongjing WangHui YuSiqin Zheng
This paper proposes a multiscale framework to estimate sediment concentration in water from acoustic measurements. Sediment distribution is modeled as a spatially inhomogeneous Poisson cloud, and an effective medium is derived whose coefficient links directly to the local sediment probability. This forward model bypasses resolving individual particles, enabling a tractable inverse problem from partial boundary data. Numerical experiments show accurate concentration estimates.
arXivarXiv · · March 13, 2025
0
0
FaceID-6M: A Large-Scale, Open-Source FaceID Customization Dataset
Shuhe WangXiaoya LiJiwei LiGuoyin WangXiaofei SunBob ZhuHan QiuMo YuShengjie ShenTianwei ZhangEduard Hovy
The paper introduces FaceID-6M, the first large-scale, open-source dataset for FaceID customization, comprising 6 million high-quality text-image pairs. Filtered from LAION-5B, the dataset undergoes rigorous cleaning steps—resolution filtering, face detection, and keyword-based filtering for human-related terms—to ensure quality. Experiments show that models trained on FaceID-6M achieve performance comparable to or slightly better than current industrial models, providing an open resource to advance research in the field.
arXivarXiv · · March 10, 2025
0
5
Picky LLMs and Unreliable RMs: An Empirical Study on Safety Alignment after Instruction Tuning
Guanlin LiKangjie ChenShangwei GuoJie ZhangHan QiuChao ZhangGuoyin WangTianwei ZhangJiwei Li
Instruction tuning on benign domain-specific datasets degrades safety alignment in LLMs, making them more prone to inappropriate responses. This empirical study identifies three critical factors: answer structure, identity calibration, and role-play. It also shows that state-of-the-art reward models (RMs) frequently fail to reflect human safety preferences, limiting their reliability for guiding alignment. The work highlights the complexity of maintaining safety during fine-tuning and offers guidance for balancing utility and safety.
arXivarXiv · · February 3, 2025
0
1
Turn That Frown Upside Down: FaceID Customization via Cross-Training Data
Shuhe WangXiaoya LiXiaofei SunGuoyin WangTianwei ZhangJiwei LiEduard Hovy
CrossFaceID is a large-scale dataset of 40,000 text-image pairs from about 2,000 persons (roughly 20 images per person with varied poses, expressions, angles, and adornments) that improves FaceID customization models' ability to modify facial features. During training, the model receives one face of a person as input and must generate a different image of the same person with altered facial attributes. This forces the model to learn personalization and modification skills, enabling it to produce variations such as different expressions or angles at inference while preserving identity fidelity.
arXivarXiv · · January 26, 2025
0
2
Authors with the same name
Jiwei Li · 22 papers
Jiwei Li #0001 · 71 papers
Frequent collaborators
Tianwei Zhang (57)
Guoyin Wang (50)
Fei Wu (48)
Xiaoya Li (42)
Xiaofei Sun (38)
Yuxian Meng (38)
Han Qiu (21)
Shuhe Wang (20)
Shangwei Guo (18)
Jie Zhang (16)
Dan Jurafsky (15)
Eduard Hovy (14)