arXiv Machine Learning By Rakhshanda Jabeen, Morgan Ericsson, Yuyao Duan, Anna Wingkvist

What Carries Architectural Signal? A Code-to-Architecture Mapping Study

Read the original on arXiv Machine Learning →

The study examines how different representations of source code—lexical, structural, and contextual—affect the accuracy of mapping code files to modules in a reference architecture. It compares these representations with and without dependency neighbor aggregation, and evaluates a Heterogeneous Graph Transformer that incorporates file-level graphs extended with member nodes, folder nodes, or both. Results show that representations encoding dependency information generally outperform lexical ones, and folder-aware variants provide the largest consistent gains, though a simple directory rule already achieves high accuracy and adding folder information does not always help.

Machine-generated by The Flow from the publisher's headline and feed description — not written or checked by a human. The full article lives at arXiv Machine Learning.

arXiv Computation and Language
Oct 16

Enhancing Knowledge Density via Hierarchical Context Pruning for Retrieval-Augmented Repository-Level Code Completion

The paper introduces SaraCoder, a retrieval‑augmented framework that improves knowledge density for repository‑level code completion by pruning redundant context and selectively injecting cross‑file dependency definitions within a fixed token budget. It employs a Hierarchical Feature Optimization module to reduce an over‑complete candidate pool in four stages, freeing tokens for an External‑Aware Identifier Disambiguator. Experiments on CrossCodeEval and RepoEval‑Updated demonstrate that SaraCoder outperforms strong RAG baselines such as GraphCoder and Repocoder across multiple code LLMs without increasing token usage, and achieves synergistic gains when combined with other cross‑file methods.

By Xiaohan Chen, Xiang Chen, Yu Tian, Piji Li, Sheng-Jun Huang, Songcan Chen
arXiv Machine Learning
Oct 22

Code Comprehensor: Hierarchical Documentation and Cross-Modal Retrieval for Large Repositories

Code Comprehensor is a hybrid retrieval‑reasoning framework designed to aid understanding of large codebases. It combines a code dependency callgraph, CodeScribe—which generates hierarchical documentation using code‑aware LLMs—and CodeContrast, a CLIP‑style dual‑encoder that learns aligned text‑code embeddings for fast, semantically precise retrieval. Experiments on OpenCV and a 5M‑LOC proprietary repository show that CodeScribe‑derived supervision improves cross‑modal retrieval accuracy, and LLM‑based evaluation reports over 90% faithfulness.

By Sujoy Roychowdhury, Joseph H. R. Isaac, Jiangning Gao, Martin Klitte, Diarmuid Corcoran
arXiv Machine Learning
Nov 11

Hierarchical Graph Representation Learning with Pooling-Induced Substructures

The paper introduces Pooled-Substructure-Aware GNNs, a graph pooling method that explicitly preserves substructures identified by structure-based pooling, thereby improving the expressive power of pooling-based GNNs as measured by the Weisfeiler–Lehman test. The authors also present two synthetic datasets with controllable hierarchical structure and a metric for assessing hierarchical patterns in real-world graph-level benchmarks. Experiments show that the proposed approach outperforms matched pooling baselines on tasks with hierarchical structure while remaining competitive on simpler benchmarks.

By Luca Sbicego, Xiaowen Dong, Dorina Thanou
arXiv Computation and Language
Oct 21

FRAGMENT: Factorized Graph Representations for Document Generation and Editing via Entity-Aware Transformations

FRAGMENT is a two‑stage generative framework that models documents as typed relational graphs, factorizing the joint distribution into structure and content components. The first stage, the Architect, uses a causally masked Transformer to autoregressively generate graph topology and spatial relations, while the second stage, the Builder, employs a GATv2-based graph attention network to add bounding boxes, text, and visual style attributes. The framework provides explicit likelihood models for anomaly scoring and supports prompt‑conditioned, entity‑aware editing via cross‑attention.

By Ayoub El Bouchtili, Guilhaume Leroy-Meline
arXiv Machine Learning
Jun 11

GraphInfer-Bench: Benchmarking LLM's Inference Capability on Graphs

arXiv:2606. 11562v1 Announce Type: new Abstract: Graph analysis underlies many applications whose answers cannot be looked up in a single record or retrieved along a path: laundering rings, drug repurposing, user preference, and scientific theme are all inferred from a node together with its neighbourhood.

By Zhuoyi Peng, Jingzhou Jiang, Hanlin Gu, Lixin Fan, Yi Yang