paper-with-me

홈 › Papers

The Hidden DNA of LLM-Generated JavaScript: Structural Patterns Enable High-Accuracy Authorship Attribution

2025-10-12 · Norbert Tihanyi, Bilel Cherif, Richard A. Dubniczky, Mohamed Amine Ferrag, Tamás Bisztray arxiv

In this paper, we present the first large-scale study exploring whether JavaScript code generated by Large Language Models (LLMs) can reveal which model produced it, enabling reliable authorship attribution and model fingerprinting. With the rapid rise of AI-generated code, attribution is playing a critical role in detecting vulnerabilities, flagging malicious content, and ensuring accountability. While AI-vs-human detection usually treats AI as a single category we show that individual LLMs leave unique stylistic signatures, even among models belonging to the same family or parameter size. To this end, we introduce LLM-NodeJS, a dataset of 50,000 Node.js back-end programs from 20 large language models. Each has four transformed variants, yielding 250,000 unique JavaScript samples and two additional representations (JSIR and AST) for diverse research applications. Using this dataset, we benchmark traditional machine learning classifiers against fine-tuned Transformer encoders and introduce CodeT5-JSA, a custom architecture derived from the 770M-parameter CodeT5 model with its decoder removed and a modified classification head. It achieves 95.8% accuracy on five-class attribution, 94.6% on ten-class, and 88.5% on twenty-class tasks, surpassing other tested models such as BERT, CodeBERT, and Longformer. We demonstrate that classifiers capture deeper stylistic regularities in program dataflow and structure, rather than relying on surface-level features. As a result, attribution remains effective even after mangling, comment removal, and heavy code transformations. To support open science and reproducibility, we release the LLM-NodeJS dataset, Google Colab training scripts, and all related materials on GitHub: https://github.com/LLM-NodeJS-dataset.

📄 PDF Abstract BibTeX arXiv:2510.10493

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

AI-Generated Code Is Not Reproducible (Yet): An Empirical Study of Dependency Gaps in LLM-Based Coding Agents

2025-12-26 · Bhanu Prakash Vangala, Ali Adibifar, Ashish Gehani, Tanu Malik arxiv

The rise of Large Language Models (LLMs) as coding agents promises to accelerate software development, but their impact on generated code reproducibility remains largely unexplored. This paper presents an empirical study…

SODA: a TypeScript/JavaScript Library for Visualizing Biological Sequence Annotation

2022-05-12 · Jack W. Roddy, George T. Lesica, Travis J. Wheeler

We present SODA, a lightweight and open-source visualization library for biological sequence annotations that enables straightforward development of flexible, dynamic, and interactive web graphics. SODA is implemented in…

Nationality encoding in language model hidden states: Probing culturally differentiated representations in persona-conditioned academic text

2026-04-11 · Paul Jackson, Ruizhe Li, Elspeth Edelstein arxiv

Large language models are increasingly used as writing tools and pedagogical resources in English for Academic Purposes, but it remains unclear whether they encode culturally differentiated representations when generatin…

TensorFlow.js: Machine Learning for the Web and Beyond

2019-01-16 · Daniel Smilkov, Nikhil Thorat, Yannick Assogba, Ann Yuan 외

TensorFlow.js is a library for building and executing machine learning algorithms in JavaScript. TensorFlow.js models run in a web browser and in the Node.js environment. The library is part of the TensorFlow ecosystem, …

BIG-bench Machine Learning

CNNs for NLP in the Browser: Client-Side Deployment and Visualization Opportunities

2018-06-01 · NAACL 2018 6 · Yiyun Liang, Zhucheng Tu, Laetitia Huang, Jimmy Lin

We demonstrate a JavaScript implementation of a convolutional neural network that performs feedforward inference completely in the browser. Such a deployment means that models can run completely on the client, on a wide …

Interpretable Machine LearningSentence ClassificationSentiment Analysis