Natural language processing

Classical and neural NLP: translation, question answering, tokenization and the evaluation of language understanding.

3,474 stories · RSS feed

arXiv AI
1d ago

Your Judge Inherits Your Prompt: In-Context Label Bias in an LLM-as-Judge Is Directional, Not Symmetric

The study investigates how the label balance of few‑shot examples influences a frozen language‑model judge in a multimodal video question‑answering evaluation pipeline. By fixing the generated answers and varying the Yes/No ratio of the judge’s demonstrations, the authors find that skewing the examples toward acceptance sharply inflates the judge’s acceptance rate, while skewing toward rejection has little effect. The bias is therefore directional, inflating scores but not reducing them, and the authors recommend balancing examples and averaging over multiple draws to mitigate this effect.

By Abdullah Ahmad, Ahmed J. O. Ahmed, Luca Citi
arXiv Machine Learning
4d ago

Rate-distortion Assessment for Hierarchical Content Summarization

The paper introduces a rate‑distortion framework for evaluating hierarchical content summarization, treating summarization as an information‑encoding problem inspired by Shannon’s theory. It proposes extracting a semantic hierarchy from source content to quantify the trade‑off between compression efficiency (rate) and information loss (distortion) during generative manipulation. Experiments on long‑context question‑answering with state‑of‑the‑art large language models demonstrate the framework’s ability to benchmark model performance under different rate budgets and to guide retrieval‑augmented generation for improved rate‑distortion characteristics.

By Yunye Gong, Indranil Sur, Jared Claypoole, Pritish Sahu, Ajay Divakaran
arXiv AI
4d ago

MedExAgent: Training LLM Agents to Ask, Examine, and Diagnose in Noisy Clinical Environments

MedExAgent is a large language model agent trained to perform medical diagnosis in noisy clinical settings. The authors formalize diagnosis as a Partially Observable Markov Decision Process with actions for questioning, ordering exams, and diagnosing, and introduce a systematic noise model covering patient and exam uncertainties. Using supervised fine‑tuning on synthetic Calgary‑Cambridge interviews followed by DAPO reinforcement learning, MedExAgent attains diagnostic accuracy comparable to larger models while optimizing exam cost and patient comfort.

By Yicheng Gao, Xiaolin Zhou, Yahan Li, Yue Zhao, Ruishan Liu
arXiv Machine Learning
4d ago

ICARE: cross-domain text classification with incremental class-aware representation and distillation learning

ICARE is a framework for cross‑domain text classification that addresses catastrophic forgetting in natural language inference systems. It combines an instance selection module based on representation learning with a knowledge distillation technique that transfers both feature‑level and logit‑level knowledge between tasks. Experiments on benchmark datasets show that ICARE improves target accuracy and reduces forgetting, demonstrating its effectiveness in preserving and leveraging learned knowledge across diverse tasks.

By Son Duong, Truong X. Tran, Hai-Anh Tran
arXiv Computation and Language
4d ago

Natural Language Processing: An Applied Research Practicum From Classical Text Processing to Multimodal and Agentic Systems

This preprint offers a comprehensive, research‑oriented guide to modern natural language processing, detailing the entire NLP pipeline from tokenisation and text normalisation to transformer architectures and large language models. It presents eighteen practical modules that blend theory, reproducible code, experimental procedures, and evaluation metrics, each with core tasks and optional advanced investigations. The guide places special emphasis on low‑resource and morphologically rich languages, advanced topics such as prompt engineering and multi‑agent collaboration, and culminates in a capstone project that integrates methods across chapters.

By Mullosharaf K. Arabov
arXiv AI
4d ago

Attention Is Not Relevance: Challenging the Causality of Attention in Autonomous Driving

The paper investigates whether attention mechanisms in autonomous driving models truly capture the causal impact of individual objects on vehicle decisions. By comparing attention-based relevance estimates with counterfactual causal analysis across 80,000 synthetic scenes, the authors find that attention is largely correlational, missing some relevant objects and mislabeling irrelevant ones, especially in complex multi-lane and intersection scenarios. The study suggests that new methods are needed to accurately measure causal influence rather than relying on attention alone.

By Luca Lusvarghi, Javier Gozalvez
arXiv AI
4d ago

Semantic Context Handoff with On-Demand Evidence for Long-Horizon Agents

Semantic Context Handoff (SCH) separates a compact semantic state from the supporting action–observation evidence, allowing long‑horizon agents to retain only essential context while keeping earlier evidence accessible for later use. This approach reduces inference cost and improves accuracy by preventing unnecessary growth of the prompt history. In a 150‑task SWE‑bench study, SCH raised Pass@1 from 80.0 % to 86.9 % with unchanged token use and execution time, and in full‑system comparisons it achieved 86.9 % Pass@1 while using 43 % fewer tokens and 41 % less wall‑clock time than the strongest baseline.

By Guolong Zheng, Chen Hou, Xu Yang, Jianshan Zhang, Tao Huang
arXiv Computation and Language
4d ago

FinVeriQA: Financial Research Agents for Question Answering: Routing, Retrieval, MCP Tool Use, and Provenance-Aware Evidence Verification

FinVeriQA is an open‑source multi‑agent system designed to improve financial question answering by assigning distinct roles to each component: a typed‑decision model (Laya) routes questions, Python performs calculations, retrieval tools fetch evidence, Mistral‑7B writes cited answers, and a code validator checks evidence and numeric consistency. In live experiments, Laya outperformed Mistral‑7B in routing accuracy, while Python achieved perfect calculation accuracy compared to 29% for Mistral‑7B. The system also demonstrates that independent evidence verification can catch a significant portion of errors that self‑consistency alone misses.

By Meenakshi Rajpurohit, Anna Phan, Ravikumar Komandur Narayanan, Gunanidhi Ramakrishnan, Nathan Howland
arXiv Computation and Language
4d ago

HireWatch: Evaluating LLM Compliance with U.S. Employment Law Under Contextual Pressure

HireWatch is a new evaluation framework that tests whether large language models (LLMs) comply with U.S. employment law when selecting interview questions. It uses a 200‑item bank of questions classified as lawful or unlawful based on federal statutes, regulations, and agency guidance, and measures the fraction of unlawful questions chosen by 18 LLMs across roughly 100,000 trials under varying contextual pressures. The study finds that while LLMs generally avoid unlawful questions in low‑pressure settings, their compliance deteriorates sharply under higher pressure, and even explicit legal prompts do not fully eliminate violations.

By Huy Nghiem, Maria Kostylew, Noam Kolt
arXiv Computation and Language
4d ago

The ROI of Small Examples: Optimizing In-Context Learning Under Token Budgets

The paper investigates how to best allocate a fixed token budget for in‑context learning (ICL) prompts in question answering tasks. By categorizing demonstration examples into length‑based bins and constructing prompts from examples within the same bin, the authors find that shorter demonstrations generally yield better performance across two QA benchmarks and an NLI task. The study emphasizes that demonstration granularity is a key factor in prompt design, especially under token constraints.

By Anxo Perez, Jorge Gab\'in, Javier Parapar
arXiv Computation and Language
4d ago

Forget Freely, Grep Later: Lossless, Index-Free Memory for Long-Horizon LLM Agents

The paper introduces GrepMem, a lossless, index‑free memory system for long‑horizon LLM agents that stores the entire agent history as an append‑only plain‑text log and uses regular‑expression search for on‑demand recall. Unlike existing context‑management methods that rely on summarization, masking, or structured memory, GrepMem requires no embeddings, retrieval indices, or additional models. Experiments with Qwen3.5‑9B show that GrepMem achieves 95‑97% accuracy on ContextBench and outperforms lossy baselines and SUPO’s summarization on several evaluation tasks while scaling efficiently to longer input streams.

By Ziyan Yang, Taiwei Shi, Jieyu Zhao
arXiv AI
4d ago

LProp: Propagating Latent Uncertainty through Evidence-Conditioned Belief Revision in LLM Agents

The paper introduces LProp, a method for propagating latent uncertainty in large language model agents. It uses a latent-space estimator called Latent Uncertainty to preserve uncertainty-relevant information without lengthy descriptions, and revises inherited answer distributions with new evidence without extra trajectory sampling. Experiments on multiple-choice, yes/no, open-ended, and mathematical reasoning tasks show that LProp outperforms baselines on most metrics and uses the fewest inference tokens across eight propagation settings.

By Kaiwen Shi, Zheyuan Zhang, Weixiang Sun, Han Bao, Colby Nelson, Yanfang Ye
arXiv Computer Vision
4d ago

Verification Mirage: Mapping and Repairing the Reliability Boundary of Self-Verification in Medical VQA

The paper introduces VeriMap, an auditing framework that maps the reliability boundary of self‑verification in medical visual question answering (VQA). It shows that many vision‑language models (VLMs) accept incorrect answers at a high rate, a phenomenon dubbed the verification mirage, and proposes MirageCheck—a method that separates test construction, visual measurement, and evidence binding—to reduce false acceptances and improve accuracy. Across six VLMs, five datasets, and seven task types, MirageCheck lowers mean false acceptance by 14.6 percentage points compared to the strongest baseline.

By Ruinan Jin, Beidi Zhao, Myeongkyun Kang, Jiaqi Liu, Behzad Bozorgtabar, Qiong Zhang, Xiaoxiao Li
arXiv Computer Vision
4d ago

Spectral Vision Transformer for Efficient Tokenization with Limited Data

The paper introduces a spectral vision transformer that tokenizes images using fixed basis coefficients instead of spatial patches, allowing the sequence length to be chosen independently of resolution and reducing attention cost. This design is tailored for limited-data scenarios, particularly in medical imaging, and demonstrates comparable or superior performance on public medical benchmarks, natural images, object shapes, simulations, and protected clinical data. The authors provide their implementation on GitHub.

By Alexandra G. Roberts, Maneesh John, Jinwei Zhang, Dominick Romano, Mert Sisman, Ki Sueng Choi, Heejong Kim, Mert R. Sabuncu, Thanh D. Nguyen, Alexey V. Dimov, Pascal Spincemaille, Brian H. Kopell, Yi Wang