Tien N. Nguyen

Tien N. Nguyen

Auto-generated profile, based on publicly available information

Tien N. Nguyen

University of Texas at Dallas, Dallas, USA

Research Focus & Metrics

Academic Career Length

19Years (2008-Present)

(Calculated once Scilit publication data is synced: current year − year of first publication + 1)

Representative Publications

View All Publications
16 April 2018 in IEEE Transactions on Software Engineering
Verified
Journal Article
Closed access
SASven Amann
Sven Amann
HNHoan Anh Nguyen
Hoan Anh Nguyen
SNSarah Nadi
Sarah Nadi
TNTien N. Nguyen
Tien N. Nguyen
MMMira Mezini
Mira Mezini
Application Programming Interfaces (APIs) often have usage constraints, such as restrictions on call order or call conditions. API misuses, i.e., violations of these constraints, may lead to software crashes, bugs, and vulnerabilities. Though researchers developed many API-misuse detectors over the last two decades, recent studies show that API misuses are still prevalent. Therefore, we need to understand the capabilities and limitations of existing detectors in order to advance the state of the art. In this paper, we present the first-ever qualitative and quantitative evaluation that compares static API-misuse detectors along the same dimensions, and with original author validation. To accomplish this, we develop MuC, a classification of API misuses, and MuBenchPipe, an automated benchmark for detector comparison, on top of our misuse dataset, MuBench. Our results show that the capabilities of existing detectors vary greatly and that existing detectors, though capable of detecting misuses, suffer from extremely low precision and recall. A systematic root-cause analysis reveals that, most importantly, detectors need to go beyond the naive assumption that a deviation from the most-frequent usage corresponds to a misuse and need to obtain additional usage examples to train their models. We present possible directions towards more-powerful API-misuse detectors.

29 April 2024 in Proceedings of the ACM on Programming Languages
Verified
Journal Article
Open access
AYAashish Yadavally
Aashish Yadavally
YLYi Li
Yi Li
SWShaohua Wang
Shaohua Wang
TNTien N. Nguyen
Tien N. Nguyen
Traditional program slicing techniques are crucial for early bug detection and manual/automated debugging of online code snippets. Nevertheless, their inability to handle incomplete code hinders their real-world applicability in such scenarios. To overcome these challenges, we present NS-Slicer, a novel learning-based approach that predicts static program slices for both complete and partial code Our tool leverages a pre-trained language model to exploit its understanding of fine-grained variable-statement dependencies within source code. With this knowledge, given a variable at a specific location and a statement in a code snippet, NS-Slicer determines whether the statement belongs to the backward slice or forward slice, respectively. We conducted a series of experiments to evaluate NS-Slicer's performance. On complete code, it predicts the backward and forward slices with an F1-score of 97.41% and 95.82%, respectively, while achieving an overall F1-score of 96.77%. Notably, in 85.20% of the cases, the static program slices predicted by NS-Slicer exactly match entire slices from the oracle. For partial programs, it achieved an F1-score of 96.77%–97.49% for backward slicing, 92.14%–95.40% for forward slicing, and an overall F1-score of 94.66%–96.62%. Furthermore, we demonstrate NS-Slicer's utility in vulnerability detection (VD), integrating its predicted slices into an automated VD tool. In this setup, the tool detected vulnerabilities in Java code with a high F1-score of 73.38%. We also include the analyses studying NS-Slicer’s promising performance and limitations, providing insights into its understanding of intrinsic code properties such as variable aliasing, leading to better slicing.

12 July 2024 in Proceedings of the ACM on Software Engineering
Verified
Journal Article
Open access
YWYan Wang
Yan Wang
XLXiaoning Li
Xiaoning Li
TNTien N. Nguyen
Tien N. Nguyen
SWShaohua Wang
Shaohua Wang
CNChao Ni
Chao Ni
LDLing Ding
Ling Ding
Pre-trained Large Language Models (LLM) have achieved remarkable successes in several domains. However, code-oriented LLMs are often heavy in computational complexity, and quadratically with the length of the input code sequence. Toward simplifying the input program of an LLM, the state-of-the-art approach has the strategies to filter the input code tokens based on the attention scores given by the LLM. The decision to simplify the input program should not rely on the attention patterns of an LLM, as these patterns are influenced by both the model architecture and the pre-training dataset. Since the model and dataset are part of the solution domain, not the problem domain where the input program belongs, the outcome may differ when the model is pre-trained on a different dataset. We propose S lim C ode , a model-agnostic code simplification solution for LLMs that depends on the nature of input code tokens. As an empirical study on the LLMs including CodeBERT, CodeT5, and GPT-4 for two main tasks: code search and summarization, we reported that 1) the removal ratio of code has a linear-like relation with the saving ratio on training time, 2) the impact of categorized tokens on code simplification can vary significantly, 3) the impact of categorized tokens on code simplification is task-specific but model-agnostic, and 4) the above findings hold for the paradigm–prompt engineering and interactive in-context learning. The empirical results showed that S lim C ode can improve the state-of-the-art technique by 9.46 % and 5.15 % in terms of MRR and BLEU score on code search and summarization, respectively. More importantly, S lim C ode is 133 times faster than the state-of-the-art approach. Additionally, S lim C ode can reduce the cost of invoking GPT-4 by up to 24 % per API query, while still producing comparable results to those with the original code. With this result, we call for a new direction on code-based, model-agnostic code simplification solutions to further empower LLMs.

15 April 2022 in The Journal of Rheumatology
Verified
Journal Article
Open access
PDF file
TNTien Nguyen
Tien Nguyen
MCMelvin Churchill
Melvin Churchill
RLRobert Levin
Robert Levin
GVGuillermo Valenzuela
Guillermo Valenzuela
JMJoseph F. Merola
Joseph F. Merola
OCOlivier Chambenoit
Olivier Chambenoit
Objective: To evaluate secukinumab (SEC) 300 mg and 150 mg vs placebo in a United States–only population of biologic-naïve patients with psoriatic arthritis (PsA).Methods: CHOICE was a double-blind, randomized controlled trial conducted in the US. Biologic-naïve patients with PsA and psoriasis (PsO) were randomized 2:2:1 to SEC 300 mg (n = 103), SEC 150 mg (n = 103), or placebo (n = 52). The primary objective was to show superiority of SEC 300 mg vs placebo in American College of Rheumatology 20% (ACR20) response at week 16. Additional objectives included the effect of SEC on dactylitis, enthesitis, PsO, and safety.Results: ACR20 response rates at week 16 were higher with SEC 300 mg than with placebo (51.5% vs 23.1%; odds ratio 3.51 [95% CI 1.65-7.45]; P = 0.001). SEC 300 mg also led to greater ACR50/70 responses and improvements in other variables vs placebo. Responses were generally sustained over time. Patients with inadequate response to SEC 150 mg at weeks 16, 28, or 40 who received dose escalation to 300 mg experienced improved clinical response after uptitration. The most common adverse events were upper respiratory tract infections and diarrhea. No inflammatory bowel disease was reported or new safety signals observed.Conclusion: SEC 300 mg led to rapid and significant improvements over placebo in symptoms of PsA in this heavier population of US-only, biologic-naïve patients. Findings were consistent with previous studies and suggest that SEC 300 mg is a safe and efficacious first-line biologic treatment for patients with PsA. [ClinicalTrials.gov: NCT02798211]

30 November 2023
Verified
Conference Paper
Open access
YLYi Li
Yi Li
AYAashish Yadavally
Aashish Yadavally
JZJiaxing Zhang
Jiaxing Zhang
SWShaohua Wang
Shaohua Wang
TNTien N. Nguyen
Tien N. Nguyen
Software Vulnerabilities (SVs) are security flaws that are exploitable in cyber-attacks. Delay in the detection and assessment of SVs might cause serious consequences due to the unknown impacts on the attacked systems. The state-of-the-art approaches have been proposed to work directly on the committed code changes for early detection. However, none of them could provide both commit-level vulnerability detection and assessment at once. Moreover, the assessment approaches still suffer low accuracy due to limited representations for code changes and surrounding contexts. We propose a Context-aware, Graph-based, Commit-level Vulnerability Detection and Assessment Model, VDA, that evaluates a code change, detects any vulnerability and provides the CVSS assessment grades. To build VDA, we have key novel components. First, we design a novel context-aware, graph-based, representation learning model to learn the contextualized embeddings for the code changes that integrate program dependencies and the surrounding contexts of code changes, facilitating the automated vulnerability detection and assessment. Second, VDA considers the mutual impact of learning to detect vulnerability and learning to assess each vulnerability assessment type. To do so, it leverages multi-task learning among the vulnerability detection and vulnerability assessment tasks, improving all the tasks at the same time. Our empirical evaluation shows that on a C vulnerability dataset, VDA achieves 25.5% and 26.9% relatively higher than the baselines in vulnerability assessment regarding F-score and MCC, respectively. In a Java dataset, it achieves 31% and 33.3% relatively higher than the baselines in F-score and MCC, respectively. VDA also relatively improves the vulnerability detection over the baselines from 13.4–322% in F-score.

12 April 2024
Verified
Conference Paper
Open access
YCYuchen Cai
Yuchen Cai
AYAashish Yadavally
Aashish Yadavally
AMAbhishek Mishra
Abhishek Mishra
GMGenesis Montejo
Genesis Montejo
TNTien Nguyen
Tien Nguyen
With practical code reuse, the code fragments from developers' forums often migrate to applications. Owing to the incomplete nature of such fragments, they often lack the details on exception handling. The adaptation for exception handling to the codebase is not trivial as developers must learn and memorize what API methods could cause exceptions and what exceptions need to be handled. We propose Neurex, an exception handling recommender that learns from complete code, and accepts a given Java code snippet and recommends 1) if a try-catch block is needed, 2) what statements need to be placed in a try block, and 3) what exception types need to be caught in the catch clause. Inspired by the sequence chunking techniques in natural language processing, we design Neurex via a multi-tasking model with the fine-tuning of the large language model CodeBERT for these three exception handling recommendation tasks. Via the large language model, Neurex can learn the surrounding context, leading to better learning the dependencies among the API elements, and the relations between the statements and the corresponding exception types needed to be handled. Our empirical evaluation shows that Neurex correctly performs all three exception handling recommendation tasks in 71.5% of the cases with a F1-score of 70.2%, which is a relative improvement of 166% over the baseline. It achieves high F1-score from 98.2%-99.7% in try-catch block necessity checking (a relative improvement of up to 55.9% over the baselines). It also correctly decides both the need for try-catch block(s) and the statements to be placed in try blocks with the F1-scores of 74.7% and 87.1% at the instance and statement levels, an improvement of 129.1% and 44.9% over the baseline, respectively. Our extrinsic evaluation shows that Neurex relatively improves over the baseline by 56.5% in F1-score for detecting exception-related bugs in incomplete Android code snippets.