MCP
LT

Lin Tan

38 papers in the library

Papers

30
Agentic Tool-Augmented Reasoning for Explainable Image Forgery Detection
Zhiya TanJing HuangChangtao MiaoLin TanXin ZhangWeiwei FengJianshu LiJoey Tianyi Zhou
We present Agentic Tool-Augmented Reasoning (ATAR), a framework that detects, localizes, and explains image forgeries via multi-turn reasoning with 22 forensic tools. A Dual-Stream Forensic Reasoning paradigm combines a semantic anomaly path for high-level inspection with a low-level artifact path invoking tools for objective evidence. Forensics Curriculum Learning, including a Tool Prior Curriculum and Structured Evidence Reward, provides stage-wise supervision. On IMDL benchmarks, ATAR achieves 78.5% average image-level F1, surpassing the strongest MLLM baseline by 11.8 points, with more faithful explanations.
arXivarXiv · · September 30, 2026
0
Analyzing and Mitigating Cost-Inefficient Behaviors in Coding Agents
Yiran HuNan JiangShanchao LiangAnik DeyYi WuLin Tan
This paper presents the first study of behavioral cost inefficiencies in coding agents, analyzing 1,200 trajectories from Claude Code and Mini-SWE-Agent on SWE-bench Verified. It identifies three behaviors—subsumed retrieval, similar script generation, and test re-execution—that affect most tasks and account for up to 22.75% of cost. Evaluating mitigations over 10k trajectories, it finds developer-designed skills outperform agent-synthesized ones, reducing cost by up to 41.73%, while structure-aware retrieval can increase cost.
arXivarXiv · · September 25, 2026
0
0
VICBench: A Multi-Language Benchmark for Code Vulnerability Detection
Jin LuXuening HanYang ZhongLin TanKevin LuoAndrew GacekNeha Rungta
VICBench is a multi-language benchmark for evaluating code vulnerability detection tools, built from 100 verified vulnerability-inducing commits (VICs) across 88 projects in Python, Java, and C++, covering 48 CWE types. Each VIC is paired with its corresponding CVE, and the commits are validated through dual annotation by human experts and an agentic workflow. The benchmark features substantially larger fixes (averaging 38.6 lines) and VICs (averaging 252.5 lines) than prior datasets. State-of-the-art detection algorithms achieve only 33.3%–40.1% F1 on VICBench, indicating that significant manual effort remains necessary.
arXivarXiv · · August 12, 2026
0
0
Learning Context-Free Grammars for Grammar-Constrained Decoding via Declarative Agentic Programming with Guarantees
Kevin CheangGeoff HuletteRahul KumarFelipe R. MonteiroFederico MoraRobin SalkeldLin TanSerdar Tasiran
Autogrammar is an agent that automatically learns a context-free grammar for a low-resource domain-specific language by combining documentation and execution data. The agent is formalized as a Kripke structure whose nondeterministic choices are resolved by a language model, steered by linear temporal logic constraints. On three DSLs, the learned grammars achieve near-perfect precision on unseen data, and grammar-constrained decoding with them significantly improves end-to-end LM performance on eight out of ten tasks, matching or exceeding a professionally-maintained grammar.
arXivarXiv · · August 6, 2026
0
0
EdgeCoInfer: Hierarchical Collaborative Inference for On-Device Multimodal Large Models
Lin TanSongtao GuoMingyan LiDavid K. Y. Yau
EdgeCoInfer is a hierarchical collaborative inference framework for on-device multimodal large language models under high concurrency. It coarsely decomposes MLLMs into functional modules for inter-task sharing and finely partitions models at the layer level, distributing segments across devices and servers. The joint optimization of layer partitioning, module sharing, and resource allocation is solved by a Hybrid Evolutionary Hierarchical Reinforcement Learning (HE-HRL) framework, which combines a genetic algorithm for discrete decisions with a soft actor-critic agent for continuous resource refinement. Experiments show that EdgeCoInfer reduces memory demand by 53.53% and system cost by 59.86% compared to existing methods.
arXivarXiv · · July 19, 2026
0
0
An Empirical Study of LLM-Generated Specifications for VeriFast
Wen FanMinh TranSanya DodXin HuMarilyn RegoDanning XieJenna DiVincenzoLin Tan
This paper evaluates how well large language models (LLMs) generate specifications for the separation-logic (SL) verifier VeriFast. On 303 C functions, eight prompting approaches, ten LLMs, and three input types were tested in two stages. LLMs preserved functional behavior in over 91% of source code and specifications, but the verification success rate was only 31.4%. Gemini 2.5 Pro and providing formal contracts yielded higher success. Most errors (94%) stemmed from LLMs' mistakes in domain-specific SL-verifier knowledge, highlighting a key challenge for automated specification generation.
arXivarXiv · · June 25, 2026
0
0
Related-Differential Distinguishers on up to 7 Rounds of AES
Xueping YanLin TanWenfeng Qi
This paper develops a new perspective on AES related differences via exchange and shift operations to derive secret-key distinguishers beyond the previously known 6-round limit. Combining one-round byte-wise related differentials with the 4-round zero-difference property yields a 5-round property of probability $2^{-22}$ and improved distinguishers with data/time $2^{27.2}$/$2^{28.05}$ (chosen plaintexts) and $2^{23.32}$/$2^{23.54}$ (adaptively chosen plaintexts). Using one-round exchanged diagonal related differentials together with Bardeh and Rijmen's 4-round related differentials, the authors identify the first non-random property of 7-round AES and the first 7-round distinguisher requiring less than the full codebook; shifted diagonal related differentials give a 6-round distinguisher dual to the ASIACRYPT 2019 exchange attack.
IACR ePrintIACR ePrint · May 23, 2026
0
Towards Resiliency in Large Language Model Serving with KevlarFlow
Shangshu QianKipling LiuP. C. SruthiLin TanYongle Zhang
KevlarFlow is a fault-tolerant serving architecture for large language models that reduces mean-time-to-recovery (MTTR) by 20× and improves latency under failure (e.g., 3.1× average latency, 378.9× average TTFT) over state-of-the-art systems. It achieves this through decoupled model parallelism initialization, dynamic traffic rerouting, and background KV cache replication, bridging hardware unreliability and service availability with negligible runtime overhead.
arXivarXiv · · January 30, 2026
0
4
CSnake: Detecting Self-Sustaining Cascading Failure via Causal Stitching of Fault Propagations
Shangshu QianLin TanYongle Zhang
CSnake is a fault-injection framework that exposes self-sustaining cascading failures in distributed systems. Its central contribution is causal stitching, which links multiple single-fault injections from different test runs to simulate realistic fault-propagation chains. To identify these chains, CSnake introduces fault causality analysis (FCA): it compares an execution trace with a fault-free profile to detect causally related faults. A three-phase allocation protocol prioritizes faults with diverse causal consequences, and a local compatibility check prevents incorrect connections. CSnake found 15 bugs across five systems, five confirmed.
arXivarXiv · · September 30, 2025
0
3
TENET: One Step Toward Test-Driven Development for Repository-Level Code Generation
Yiran HuShanchao LiangNan JiangYi WuLin Tan
The paper introduces TENET, an agentic framework for repository-level code generation under Test-Driven Development with developer-written tests. It tackles three challenges via a test harness that selects a concise, diverse test subset, a tailored agent toolset for retrieval and debugging, and a reflection-based refinement workflow that iteratively fixes failures. TENET outperforms strong baselines across backbones, reaching 69.08% and 81.77% Pass@1 on RepoCod and RepoEval with Claude Sonnet 4. It also presents the first systematic study of how test suite characteristics affect LLM agent performance in TDD settings.
arXivarXiv · · September 29, 2025
0
5
TENET: Leveraging Tests Beyond Validation for Code Generation
Yiran HuNan JiangShanchao LiangYi WuLin Tan
This paper presents TENET, an LLM agent that generates functions in real-world repositories under Test-Driven Development. It addresses three challenges—selecting a concise, diverse test suite, retrieving relevant code, and using test feedback for refinement—via a test harness mechanism, a tailored agent toolset, and a reflection-based workflow. On RepoCod and RepoEval benchmarks, TENET achieves 69.08% and 81.77% Pass@1, outperforming best agentic baselines by 9.49 and 2.17 percentage points. It is the first repository-level test-driven code generation study.
OpenReviewOpenReview · · September 19, 2025
0
4
CoRe: Benchmarking LLMs Code Reasoning Capabilities through Static Analysis Tasks
Danning XieMingwei ZhengXuwei LiuJiannan WangChengpeng WangLin TanXiangyu Zhang
This paper introduces CORE, a benchmark of 12,553 human-verified instances for evaluating LLMs on static analysis tasks: data dependency, control dependency, and information flow across C/C++, Java, and Python programs. A semantics-aware diverse sampling strategy selects targets based on structural coverage and dependency depth. Evaluations on 10 mainstream LLMs show they perform well at identifying dependencies but struggle with tasks requiring deeper semantic understanding and multi-step reasoning, particularly in complex control structures and backward dependency patterns.
arXivarXiv · · July 3, 2025
0
36
Can Language Models Replace Programmers for Coding? REPOCOD Says ‘Not Yet’
Shanchao LiangNan JiangYiran HuLin Tan
RepoCod is a Python code-generation benchmark for evaluating LLMs on real-world coding tasks. It contains 980 whole-function generation tasks from 11 large projects, with 50.8% requiring repository-level context, and 314 developer-written test cases per instance. None of ten evaluated LLMs exceeds 30% pass@1, showing that current models cannot replace programmers for real-world development. Retrieval-augmented generation outperforms using target function dependencies as context.
ACL AnthologyACL Anthology · · July 2025
0
WAFFLE: Fine-tuning Multi-Modal Model for Automated Front-End Development
Shanchao LiangNan JiangShangshu QianLin Tan
WAFFLE is a fine-tuning strategy for multi-modal models that improves UI-to-HTML code generation. It introduces a structure-aware attention mechanism to better capture HTML's hierarchical structure and a contrastive loss to align visual UI representations with textual code. On the WebSight-Test and Design2Code benchmarks, models fine-tuned with WAFFLE outperform existing methods, achieving up to 9.00 percentage points higher HTML match, 0.0982 higher CW-SSIM, 32.99 higher CLIP, and 27.12 percentage points higher LLEM.
ACL AnthologyACL Anthology · July 2025
0
16
Unified Software Engineering Agent as AI Software Engineer
Leonhard ApplisYuntong ZhangShanchao LiangNan JiangLin TanAbhik Roychoudhury
The paper introduces USEagent, a unified LLM-based agent that orchestrates multiple software engineering capabilities—coding, testing, and patching—rather than handling isolated tasks. Evaluated on USEbench, a mixture of 1,271 repository-level tasks from existing benchmarks, USEagent outperforms general agents like OpenHands CodeActAgent, though gaps remain for specific coding tasks, indicating directions for future AI software engineers.
arXivarXiv · · June 17, 2025
0
30
Leveraging Interview-Informed LLMs to Model Survey Responses: Comparative Insights from AI-Generated and Human Data
Jihong ZhangXinya LiangAnqi DengNicole BongeLin TanLing ZhangNicole Zarrett
This study tests whether LLMs informed by personal interviews can predict human survey responses, using the BREQ and after-school staff interviews. LLMs matched overall response patterns but showed lower variability. Interview data improved diversity for some models (e.g., Claude, GPT), and well-crafted prompts with low-temperature settings enhanced alignment with human responses. Demographic information had less impact than interview content.
arXivarXiv · · May 28, 2025
0
CoRe: Benchmarking LLMs’ Code Reasoning Capabilities through Static Analysis Tasks
Danning XieMingwei ZhengXuwei LiuJiannan WangChengpeng WangLin TanXiangyu Zhang
This paper introduces CoRe, a human-verified benchmark of 12,553 instances for evaluating LLMs on static analysis tasks—data dependency, control dependency, and information flow—across C/C++, Java, and Python. A semantics-aware sampling strategy selects targets by structural coverage and dependency depth to ensure diversity. Testing 10 state-of-the-art LLMs shows they identify dependencies well but struggle with deeper semantic understanding and multi-step reasoning. Qualitative analysis highlights challenges like complex control structures and backward dependency patterns, offering insights for improving code reasoning.
OpenReviewOpenReview · · May 12, 2025
0
Show Me Why It's Correct: Saving 1/3 of Debugging Time in Program Repair with Interactive Runtime Comparison
Ruixin WangZhongkai ZhaoLe FangNan JiangYiling LouLin TanTianyi Zhang
iFix is an interactive approach that aids developers in understanding and comparing automated program repair patches by analyzing their runtime behavior. It statically identifies variables related to the buggy statement, captures their runtime values across patch executions, and aligns them for comparison. In a user study with 28 participants, iFix reduced debugging time by 36% and 33% over manual inspection and a state-of-the-art interactive method, respectively, while improving confidence by 50% and 20%. It also improves correct-patch ranking by at least 39% and generalizes across APR tools.
arXivarXiv · · March 1, 2025
0
2
Unleashing the Power of Generative Model in Recovering Variable Names from Stripped Binary
Xiangzhe XuZhuo ZhangZian SuZiyang HuangShiwei FengYapeng YeNan JiangDanning XieSiyuan ChengLin TanXiangyu Zhang
NDSSNDSS · 2025
0
93
Evaluating the Ability of Large Language Models to Generate Verifiable Specifications in VeriFast
Wen FanMarilyn RegoXin HuSanya DodZhaorui NiDanning XieJenna DiVincenzoLin Tan
This paper evaluates GPT-4o's ability to generate VeriFast specifications for C programs, which are based on separation logic. Using three types of user inputs and basic/Chain-of-Thought prompting, the authors find that GPT-4o generates specifications preserving functional behavior but often fails to be verifiable; verifiable specifications tend to contain redundancies. The study highlights a gap in LLM-based specification generation for ownership logics.
arXivarXiv · · November 4, 2024
0
19
Setting the stage: Building and maintaining a habitable world and the early conditions that could favor life's beginnings on Earth and beyond
Christopher K JonesMichaela LeungChenyi TuSaleheh EbadiradNate MarshallLin TanTim Lyons
This chapter synthesizes the Hadean as a clement period when oceans, land, and life likely emerged on Earth, emphasizing solar system context, crustal formation, and surface–atmosphere evolution. It connects large-scale planetary processes to prebiotic chemistry scenarios (atmospheric photochemistry, wet-dry and freeze-thaw cycles, hydrothermal vents) and highlights how asteroid and comet impacts during the Hadean shaped land, atmospheric chemistry, and oxidation state, thereby influencing multiple pathways to life's origin.
arXivarXiv · · October 30, 2024
0
Can Language Models Replace Programmers for Coding? REPOCOD Says 'Not Yet'
Shanchao LiangYiran HuNan JiangLin Tan
REPOCOD, a Python code-generation benchmark, evaluates large language models on real-world coding. It contains 980 whole-function generation tasks from 11 projects, with 50.8% requiring repository-level context, and uses developer-written test cases. Evaluation of ten LLMs shows none exceed 30% pass@1, indicating current models are insufficient. Additionally, retrieval-augmented generation outperforms providing target function dependencies as context.
arXivarXiv · · October 29, 2024
0
33
WAFFLE: Finetuning Multi-Modal Models for Automated Front-End Development
Shanchao LiangNan JiangShangshu QianLin Tan
Web development requires turning UI designs into functional HTML pages, a task complicated by HTML's hierarchy and the mismatch between visual designs and text-based code. The authors introduce Waffle, a fine-tuning strategy for multi-modal models that combines a structure-aware attention mechanism to improve comprehension of HTML's hierarchy with a contrastive fine-tuning approach to align model understanding of UI images and HTML code. On the WebSight-Test benchmark and the existing Design2Code benchmark, models fine-tuned with Waffle outperform current fine-tuning methods, achieving up to 9.00 percentage points higher HTML match.
arXivarXiv · · October 24, 2024
0
16
Collu-Bench: A Benchmark for Predicting Language Model Hallucinations in Code
Nan JiangQi LiLin TanTianyi Zhang
Collu-Bench is a benchmark for predicting code hallucinations in LLMs, covering code generation and automated program repair tasks. It comprises 13,234 instances from five datasets and 11 LLMs, providing per-step log probabilities, token types, and execution feedback. Experiments using traditional machine learning and neural networks achieve 22.03–33.15% accuracy, revealing the difficulty of localizing hallucinations and the need for more advanced methods.
arXivarXiv · · October 13, 2024
0
23
SELP: Generating Safe and Efficient Task Plans for Robot Agents with Large Language Models
Yi WuZikang XiongYiran HuShreyash S. IyengarNan JiangAniket BeraLin TanSuresh Jagannathan
SELP generates safe and efficient task plans for robot agents by combining three insights: equivalence voting, constrained decoding, and domain-specific fine-tuning. Equivalence voting produces a consistent Linear Temporal Logic (LTL) formula from multiple sampled formulas derived from natural language commands. Constrained decoding uses this LTL formula to guide plan generation, ensuring compliance. Domain-specific fine-tuning adapts the LLM to the target domain. Evaluated on drone navigation and robot manipulation, SELP improves safety rate by 10.8% and 20.4% respectively over state-of-the-art planners, and increases plan efficiency by 19.8% on drone tasks.
arXivarXiv · · September 28, 2024
0
73
Nova: Generative Language Models for Assembly Code with Hierarchical Attention and Contrastive Learning
Nan JiangChengxiao WangKevin LiuXiangzhe XuLin TanXiangyu ZhangPetr Babkin
Nova is a generative large language model for assembly code, built to overcome low information density and diverse compiler optimizations that prevent source-code models from transferring directly. It introduces hierarchical attention that forms attention summaries for more effective semantic capture, plus contrastive learning objectives that teach optimization patterns. On binary decompilation, Nova surpasses existing techniques by 14.84–21.58% in Pass@1/Pass@10; on binary similarity detection it beats recent methods by up to 6.17% Recall@1, demonstrating strong assembly generation and understanding.
OpenReviewOpenReview · · September 27, 2024
0
Collu-Bench: A Benchmark for Predicting LLM Hallucinations in Code
Nan JiangQi LiLin TanTianyi Zhang
We introduce Collu-Bench, a benchmark for predicting code hallucinations in LLMs across code generation and automated program repair. It contains 13,234 hallucination instances from five datasets and 11 LLMs, with detailed features like per-step log probabilities, token types, and execution feedback. Experiments with traditional machine learning and neural networks achieve 22.03–33.15% accuracy, revealing the difficulty of localizing hallucinations and motivating more sophisticated techniques.
OpenReviewOpenReview · September 27, 2024
0
LATTE: Improving Latex Recognition for Tables and Formulae with Iterative Refinement
Nan JiangShanchao LiangChengxiao WangJiannan WangLin Tan
LATTE is the first iterative refinement framework for LaTeX recognition from PDF images. It introduces delta-view feedback, which compares rendered images of the extracted LaTeX source and the expected correct image to pinpoint differences. This feedback guides a fault localization model to identify incorrect parts and a refinement model to repair them. LATTE improves extraction accuracy for both formulae and tables, outperforming prior techniques and GPT-4V by at least 7.03% exact match, with success refinement rates of 46.08% for formulae and 25.51% for tables.
arXivarXiv · · September 21, 2024
0
15
CaBaGe: Data-Free Model Extraction using ClAss BAlanced Generator Ensemble
Jonathan RosenthalShanchao LiangKevin ZhangLin Tan
CaBaGe is a data-free model extraction method for black-box MLaaS systems. It combines an ensemble of generators to produce diverse synthetic data, experience replay to focus on hard samples, and selective filtering for balanced, harder queries, without requiring any training data. Under a novel realistic setting where the attacker does not know the class count of the victim model, CaBaGe learns it on the fly. On seven datasets, it improves extracted model accuracy by up to 43.13% and reduces queries by up to 75.7% compared to prior work.
arXivarXiv · · September 16, 2024
0
0
Nova: Generative Language Models for Assembly Code with Hierarchical Attention and Contrastive Learning
Nan JiangChengxiao WangKevin LiuXiangzhe XuLin TanXiangyu ZhangPetr Babkin
Nova is a generative LLM for assembly code that addresses two challenges: low information density and diverse compiler optimizations. It introduces a hierarchical attention mechanism that builds attention summaries to better capture assembly semantics, and contrastive learning objectives that train the model to learn optimization patterns. On binary code decompilation, Nova improves Pass@1 and Pass@10 by 14.84–21.58 absolute percentage points over existing techniques, and on binary code similarity detection it improves Recall@1 by up to 6.17%.
arXivarXiv · · November 22, 2023
0
76
Authors with the same name
Lin Tan · 5 papers
Lin Tan #0001 · 20 papers
Frequent collaborators
Nan Jiang (20)
Shanchao Liang (10)
Yiran Hu (6)
Xiangyu Zhang (6)
Yi Wu (5)
Danning Xie (5)
Shangshu Qian (4)
Thibaud Lutellier (4)
Jiannan Wang (3)
Tianyi Zhang (3)
Xiangzhe Xu (3)
Chengxiao Wang (3)