cs.SEAug 27, 2026

The Thousand-Graph Hypothesis: A Testable Hypothesis of Task-Conditioned Relation Materialization in Repository-Level Code Reasoning

Authors: Fei Ding

Organizations: Alibaba Group

Abstract

Large software repositories are often beyond model context limits. Training repository knowledge into models is costly and quickly stale, while local retrieval can miss scattered requirements, and explicit relation graphs add ongoing maintenance burden. We propose an entity-only external interface with task-conditioned relation materialization during inference. A two-layer index separates global routing from local entity focus and is evaluated on DeepSeek-V4-Flash and SWE-bench Verified. The base, one-layer, and two-layer conditions achieve 92.1%, 94.2%, and 95.6% success, respectively, under zero pre-built entity-relation edges.

Figures & tables

Explore similar work

CardsList
  1. DeepDiscovery: A Location-Inference Framework for Task-Level Repository Understanding

    Jun 22, 2026Jiawei He, Weisong Sun, Mengyu Shi +4LLM GroundingSoftware Engineering Agents

  2. DeepRepoQA: Code Repository Question Answering with Deep Agent Exploration

    Aug 25, 2026Weihan Peng, Yuling Shi, Yingwei Ma +3Question AnsweringSoftware Engineering Agents