Computation and Language · Cross-listed from cs.IR
Leveraging Large Language Models to Extract and Translate Medical Information in Doctors' Notes for Health Records and Diagnostic Billing Codes
Peter Hartnett, Chung-Chi Huang, Sarah Hartnett et al. (+1 more)
Physician burnout in the United States has reached critical levels, driven in part by the administrative burden of Electronic Health Record (EHR) documentation and complex diagnostic codes. To relieve this strain and maintain strict patient
privacy, this thesis explores an on-device, offline automatic medical coding system. The work focuses on using open-weight Large
Language Models (LLMs) to extract clinical information from physician notes and translate it into ICD-10-CM diagnostic codes without reliance on cloud-based services. A
privacy-focused pipeline was developed using Ollama, LangChain, and containerized environments to evaluate multiple open-weight models, including Llama 3.2, Mistral, Phi, and DeepSeek, on consumer-grade hardware. Model performance was assessed for zero-shot, few-shot, and
retrieval-augmented generation (RAG) prompting strategies using a novel
benchmark of synthetic medical notes. Results show that strict JSON schema enforcement achieved near 100% formatting compliance, but accurate generation of specific diagnostic codes remains challenging for smaller local models (7B-20B parameters). Contrary to common
prompt-engineering guidance, few-shot prompting degraded performance through overfitting and
hallucinations. While RAG enabled limited discovery of unseen codes, it frequently saturated context windows, reducing overall accuracy. The findings suggest that fully automated unsupervised coding with local open-source models is not yet reliable; instead, a human-in-the-loop assisted coding approach is currently the most practical path forward. This work contributes a reproducible local LLM architecture and
benchmark dataset for
privacy-preserving medical information extraction and coding.
Read the full abstract ▾
All authors Peter Hartnett, Chung-Chi Huang, Sarah Hartnett, David Hartnett
Computation and Language · Cross-listed from cs.AI
Knowledge Boundary Discovery for Large Language Models
Ziquan Wang and Zhongqi Lu
We propose Knowledge Boundary Discovery (KBD), a reinforcement learning based framework to explore the knowledge boundaries of the Large
Language Models (LLMs). We define the knowledge boundary by automatically generating two types of questions: (i) those the LLM can confidently answer (within-knowledge boundary) and (ii) those it cannot (beyond-knowledge boundary). Iteratively exploring and exploiting the LLM's responses to find its knowledge boundaries is challenging because of the
hallucination phenomenon. To find the knowledge boundaries of an LLM, the
agent interacts with the LLM under the modeling of exploring a partially observable environment. The
agent generates a progressive question as the action, adopts an
entropy reduction as the reward, receives the LLM's response as the observation and updates its belief states. We demonstrate that the KBD detects knowledge boundaries of LLMs by automatically finding a set of non-trivial answerable and unanswerable questions. We validate the KBD by comparing its generated knowledge boundaries with manually crafted LLM
benchmark datasets. Experiments show that our KBD-generated question set is comparable to the human-generated
datasets. Our approach paves a new way to evaluate LLMs.
Read the full abstract ▾
Computation and Language
Novelty Reviewer: A Large-Scale Dataset and Model for Reviewer-Aligned Novelty Assessment
Abeer Mostafa, Thi Huyen Nguyen and Zahra Ahmadi
Assessing novelty in AI research is arguably the most consequential yet least reliable step in peer review. Reviewer judgments of novelty remain inconsistent and dependent on comparisons to prior work that are often incomplete. We release a large-scale Novelty Reviewer
Dataset built from 102,021 official reviews of 37,899 ICLR and NeurIPS submissions (2022-2025). For each submission, it provides the reviewers' novelty statements, a paper-level novelty assessment, and a novelty score on a four-point scale. On top of this
dataset, we build Novelty Reviewer, a literature-aware framework that learns how reviewers judge novelty and grounds these judgments in semantic comparisons to existing research. We fine-tune a large
language model on the
dataset to capture reviewer-aligned novelty evaluation behavior. Given a manuscript, the framework extracts structured representations of its ideas, methods, and claims; retrieves semantically related papers; and constructs a knowledge graph that enables concept-level comparison to prior work. Based on the retrieved evidence, the model produces calibrated novelty scores alongside human-like explanatory assessments, reducing overestimation and improving consistency relative to existing approaches. Furthermore, we analyze different LLMs' abilities to assess originality and detect potential conceptual plagiarism. We publicly release the
dataset, the model, and the code with documentation to support research on automated novelty assessment and peer review.
Read the full abstract ▾
Computation and Language
PersonaPlex: Voice and Role Control for Full Duplex Conversational Speech Models
Rajarshi Roy, Jonathan Raiman, Sang-gil Lee et al. (+5 more)
Recent advances in duplex
speech models have enabled natural, low-latency
speech-to-
speech interactions. However, existing models are restricted to a fixed role and voice, limiting their ability to support structured, role-driven real-world applications and personalized interactions. In this work, we introduce PersonaPlex, a duplex conversational
speech model that incorporates hybrid system
prompts, combining role conditioning with text
prompts and voice cloning with
speech samples. PersonaPlex is trained on a large-scale synthetic
dataset of paired
prompts and user-
agent conversations, generated with open-source large
language models (LLM) and text-to-
speech (TTS) models. To evaluate role conditioning in real-world settings, we extend the Full-Duplex-Bench
benchmark beyond a single assistant role to multi-role customer service scenarios. Experiments show that PersonaPlex achieves strong role-conditioned behavior, voice-conditioned
speech, and natural conversational responsiveness, surpassing state-of-the-art duplex
speech models and hybrid large
language model-based
speech systems in role adherence, speaker similarity, latency, and naturalness.
Read the full abstract ▾
All authors Rajarshi Roy, Jonathan Raiman, Sang-gil Lee, Teodor-Dumitru Ene, Robert Kirby, Sungwon Kim, Jaehyeon Kim, Bryan Catanzaro
Computation and Language
A Survey of Agent Memory in the Second Half: Towards Self-Evolving and Long-Horizon Agents
Wei-Chieh Huang, Weizhi Zhang, Yueqing Liang et al. (+57 more)
Research in artificial intelligence is shifting from model innovations and
benchmark scores towards problem definition and rigorous real-world evaluation. As the field enters the "second half," the central challenge becomes real utility in long-horizon, dynamic, and user-dependent settings such as agentic coding, deep research, and computer use, where LLM-based
agents face context explosion beyond fixed context windows and must continuously accumulate, manage, and selectively reuse information across extended interactions.
Memory, with hundreds of papers released in 2025, therefore emerges as the critical solution to fill this utility gap. Beyond passive storage,
memory is increasingly the substrate through which
agents self-evolve: short-term
memory gates which experiences are perceived and abstracted during execution, while long-term
memory consolidates them into reusable knowledge and skills, forming the loop through which
agents improve from their own experience. In this survey, we provide a unified view of foundation
agent memory along three dimensions:
memory substrate (internal parametric state and external
retrieval-augmented stores), cognitive mechanism (sensory, working, episodic, semantic, and procedural), and
memory subject (user-centric personalization and
agent-centric experience). We then analyze how
memory is operated under single- and multi-
agent topologies and highlight learning policies over
memory operations, showing how
memory management itself is becoming a trainable capability spanning reinforcement-learned context curation, experience consolidation at decision time, and the emerging ecosystem of portable, shareable
agent skills. Finally, we review evaluation
benchmarks and metrics for
memory utility, and outline open challenges and future directions.
Read the full abstract ▾
All authors Wei-Chieh Huang, Weizhi Zhang, Yueqing Liang, Yuanchen Bei, Yankai Chen, Tao Feng, Xinyu Pan, Zhen Tan, Yu Wang, Tianxin Wei, Shanglin Wu, Ruiyao Xu, Liangwei Yang, Rui Yang, Wooseong Yang, Chin-Yuan Yeh, Hanrong Zhang, Haozhen Zhang, Siqi Zhu, Henry Peng Zou, Wanjia Zhao, Song Wang, Wujiang Xu, Zixuan Ke, Zheng Hui, Dawei Li, Yaozu Wu, Langzhou He, Chen Wang, Xiongxiao Xu, Baixiang Huang, Juntao Tan, Shelby Heinecke, Huan Wang, Caiming Xiong, Ahmed A. Metwally, Jun Yan, Chen-Yu Lee, Hanqing Zeng, Yinglong Xia, Xiaokai Wei, Ali Payani, Yu Wang, Haitong Ma, Wenya Wang, Chenguang Wang, Yu Zhang, Xin Eric Wang, Yongfeng Zhang, Jiaxuan You, Hanghang Tong, Xiao Luo, Xue Liu, Yizhou Sun, Wei Wang, Julian McAuley, James Zou, Jiawei Han, Philip S. Yu, Kai Shu
Computation and Language
CAST: Character-and-Scene Episodic Memory for Agents
Kexin Ma, Bojun Li, Yuhua Tang et al. (+2 more)
Episodic
memory is a central component of human
memory, which refers to the ability to recall coherent events grounded in who, when, and where. However, most
agent memory systems only emphasize semantic recall and treat experience as structures such as key-value, vector, or graph, which makes them struggle to represent and retrieve coherent events. To address this challenge, we propose a Character-and-Scene based
memory architecture(CAST) inspired by dramatic theory. Specifically, CAST constructs 3D scenes (time/place/topic) and organizes them into character profiles that summarize the events of a character to represent episodic
memory. Moreover, CAST complements this episodic
memory with a graph-based semantic
memory, which yields a robust dual
memory design. Experiments demonstrate that CAST has averagely improved 8.11% F1 and 10.21% J(LLM-as-a-Judge) than baselines on various
datasets, especially on open and time-sensitive conversational questions.
Read the full abstract ▾
All authors Kexin Ma, Bojun Li, Yuhua Tang, Liting Sun, Ruochun Jin
Computation and Language
Relevance-aware Multi-context Contrastive Decoding for Retrieval-augmented Visual Question Answering
Jongha Kim, Byungoh Ko, Jeehye Na et al. (+2 more)
Despite the remarkable capabilities of Large
Vision Language Models (LVLMs), they still lack detailed knowledge about specific entities.
Retrieval-augmented Generation (RAG) is a widely adopted solution that enhances LVLMs by providing additional contexts from an external Knowledge Base. However, we observe that previous decoding methods for RAG are sub-optimal as they fail to sufficiently leverage multiple relevant contexts and suppress the negative effects of irrelevant contexts. To this end, we propose Relevance-aware Multi-context Contrastive Decoding (RMCD), a novel decoding method for RAG. RMCD outputs a final prediction by combining outputs predicted with each context, where each output is weighted based on its relevance to the question. By doing so, RMCD effectively aggregates useful information from multiple relevant contexts while also counteracting the negative effects of irrelevant ones. Experiments show that RMCD consistently outperforms other decoding methods across multiple LVLMs, achieving the best performance on three knowledge-intensive visual question-answering
benchmarks. Also, RMCD can be simply applied by replacing the decoding method of LVLMs without additional training. Analyses also show that RMCD is robust to the
retrieval results, consistently performing the best across the weakest to the strongest
retrieval results. Code is available at https://github.com/mlvlab/RMCD.
Read the full abstract ▾
All authors Jongha Kim, Byungoh Ko, Jeehye Na, Jinsung Yoon, Hyunwoo J. Kim
Computation and Language
ROSA-Tuning: Enhancing Long-Context Modeling via Suffix Matching
Yunao Zheng, Xiaojie Wang, Lei Ren et al. (+1 more)
Long-context capability and computational efficiency are among the central challenges facing today's large
language models. Existing efficient
attention methods reduce computational complexity, but they typically suffer from a limited coverage of the model state. This paper proposes ROSA-Tuning, a
retrieval-and-recall mechanism for enhancing the long-context modeling ability of pretrained models. Beyond the standard
attention mechanism, ROSA-Tuning leverages in parallel a CPU-based ROSA (RWKV Online Suffix Automaton)
retrieval module, which efficiently locates historical positions in long contexts that are relevant to the current query, and injects the retrieved information into the model state in a trainable manner; subsequent weighted fusion can then be handled by range-restricted
attention. To enable end-to-end training, we employ the binary discretization strategy and the counterfactual gradient
algorithm, and further optimize overall execution efficiency via an asynchronous CPU-GPU pipeline. Systematic evaluations on Qwen3-Base-1.7B show that ROSA-Tuning substantially restores the long-context modeling ability of windowed-
attention models, achieving performance close to and in some cases matching global
attention on
benchmarks such as LongBench, while maintaining computational efficiency and GPU
memory usage that are nearly comparable to windowed-
attention methods, offering a new technical path for efficient long-context processing. The example code can be found at https://github.com/zyaaa-ux/ROSA-Tuning.
Read the full abstract ▾
All authors Yunao Zheng, Xiaojie Wang, Lei Ren, Wei Chen
Computation and Language
Test-Time Detoxification without Training or Learning Anything
Baturay Saglam and Dionysis Kalogerias
Large
language models can produce toxic or inappropriate text even for benign inputs, creating risks when deployed at scale. Detoxification is therefore important for safety and user trust, particularly when we want to reduce harmful content without sacrificing the model's generation quality. Many existing approaches rely on model retraining, gradients, or learned auxiliary components, which can be costly and may not transfer across model families or to truly black-box settings. We introduce a test-time procedure that approximates the gradient of completion toxicity with respect to the input
embeddings and uses a small number of descent steps to steer generation toward less toxic continuations. This is achieved with zeroth-order optimization that requires only access to input
embeddings, a toxicity scoring function, and forward evaluations of the model. Empirically, the approach delivers robust toxicity reductions across models and
prompts and, in most settings, achieves the best overall toxicity-quality trade-off. More broadly, our work positions word
embeddings as effective control variables and encourages wider use of black-box optimization to guide autoregressive
language models toward scalable, safer text generation, without requiring any training or access to intermediate computations.
Read the full abstract ▾
Computation and Language
STEMVerse: A Dual-Axis Diagnostic Framework for STEM Reasoning in Large Language Models
Xuzhao Li, Xuchen Li, Jian Zhao et al. (+1 more)
As Large
Language Models (LLMs) achieve significant breakthroughs in complex
reasoning tasks, evaluating their proficiency in science, technology, engineering, and mathematics (STEM) has become a primary method for measuring machine intelligence. However, current evaluation paradigms often treat
benchmarks as isolated "silos," offering only monolithic aggregate scores that neglect the intricacies of both academic specialization and cognitive depth. This result-oriented approach fails to distinguish whether model errors stem from insufficient domain knowledge or deficiencies in cognitive capacity, thereby limiting the diagnostic value. To address this, we propose STEMVerse, a diagnostic framework designed to systematically analyze the STEM
reasoning capabilities of LLMs. This framework characterizes model performance across academic specialization and cognitive complexity to map the capability required for
reasoning. We re-aggregate over 20,000 STEM problems from mainstream
benchmarks into a unified "Discipline $\times$ Cognition" capability space, assigning dual-axis labels to every instance. Utilizing this unified diagnostic framework, we systematically evaluate representative LLM families across varying parameter scales and training paradigms. Our empirical results reveal structural failure patterns in STEM
reasoning. By integrating multi-disciplinary coverage and fine-grained cognitive stratification into a unified framework, STEMVerse provides a clear and actionable perspective for understanding the scientific
reasoning characteristics of LLMs.
Read the full abstract ▾
All authors Xuzhao Li, Xuchen Li, Jian Zhao, Shiyu Hu