paper-with-me

홈 › Papers

Can LLMs Replace Humans During Code Chunking?

2025-06-24 · Christopher Glasz, Emily Escamilla, Eric O. Scott, Anand Patel, Jacob Zimmer, Colin Diggs, Michael Doyle, Scott Rosen, Nitin Naik, Justin F. Brunelle, Samruddhi Thaker, Parthav Poudel, Arun Sridharan, Amit Madan, Doug Wendt, William Macke, Thomas Schill

Large language models (LLMs) have become essential tools in computer science, especially for tasks involving code understanding and generation. However, existing work does not address many of the unique challenges presented by code written for government applications. In particular, government enterprise software is often written in legacy languages like MUMPS or assembly language code (ALC) and the overall token lengths of these systems exceed the context window size for current commercially available LLMs. Additionally, LLMs are primarily trained on modern software languages and have undergone limited testing with legacy languages, making their ability to understand legacy languages unknown and, hence, an area for empirical study. This paper examines the application of LLMs in the modernization of legacy government code written in ALC and MUMPS, addressing the challenges of input limitations. We investigate various code-chunking methods to optimize the generation of summary module comments for legacy code files, evaluating the impact of code-chunking methods on the quality of documentation produced by different LLMs, including GPT-4o, Claude 3 Sonnet, Mixtral, and Llama 3. Our results indicate that LLMs can select partition points closely aligned with human expert partitioning. We also find that chunking approaches have significant impact on downstream tasks such as documentation generation. LLM-created partitions produce comments that are up to 20% more factual and up to 10% more useful than when humans create partitions. Therefore, we conclude that LLMs can be used as suitable replacements for human partitioning of large codebases during LLM-aided modernization.

📄 PDF Abstract BibTeX arXiv:2506.19897

Code (0)

등록된 구현이 없습니다.

Tasks

Chunking

Methods 이 논문이 사용한 방법론

LLaMA LLaMA is a collection of foundation language models ranging from 7B to 65B parameters. It is based on the transformer architecture with various improvements that were…

Similar Papers 제목 키워드 기반

ViRC: Enhancing Visual Interleaved Mathematical CoT with Reason Chunking

2025-12-16 · Lihong Wang, Liangqi Li, Weiwei Feng, Jiamin Wu 외 arxiv

CoT has significantly enhanced the reasoning ability of LLMs while it faces challenges when extended to multimodal domains, particularly in mathematical tasks. Existing MLLMs typically perform textual reasoning solely fr…

Soft-NBCE: Entropy-Weighted Chunk Fusion for Long-Context

2026-05-31 · Shihao Ji, Mingyu Li, Zihui Song arxiv

The quadratic complexity of self-attention remains a bottleneck for Large Language Models (LLMs) processing ultra-long contexts. The Naive Bayes Cognitive Engine (NBCE) parallelizes long-context inference by chunking doc…

Text Chunking for Document Classification for Urban System Management using Large Language Models

2025-03-31 · Joshua Rodriguez, Om Sanan, Guillermo Vizarreta-Luna, Steven A. Conrad

Urban systems are managed using complex textual documentation that need coding and analysis to set requirements and evaluate built environment performance. This paper contributes to the study of applying large-language m…

ChunkingDocument ClassificationManagement

Meta-Chunking: Learning Text Segmentation and Semantic Completion via Logical Perception

2024-10-16 · Jihao Zhao, Zhiyuan Ji, Yuchen Feng, Pengnian Qi 외

While Retrieval-Augmented Generation (RAG) has emerged as a promising paradigm for boosting large language models (LLMs) in knowledge-intensive tasks, it often overlooks the crucial aspect of text chunking within its wor…

Binary ClassificationChunkingInstruction FollowingMulti-hop Question Answering+4

Document Retrieval-Aware Chunking (D-RAC): Universal Retrieval-Aware Ingestion of Enterprise Documents via PDF Normalization and Multimodal Markdown Conversion

2026-09-21 · Uday Allu, Abhivanth Sivaprakash, Pratik Singh, Aman Manocha hf

Retrieval-Augmented Generation (RAG) systems over enterprise knowledge bases must ingest heterogeneous document formats -- PDFs, Word documents, presentations, and scans -- whose content is locked inside complex visual l…