Equity Look-Through Analysis with LLMs: Technical Architecture and Practices

    This article explains how to build an equity look-through analysis system with large language models, covering the four core subproblems, a four-layer architecture, verifiable relation extraction, entity normalization, calculation rules, and auditability. It shows a practical division of labor in which the model handles extraction and explanation while deterministic code handles graph computation and validation, helping teams deliver stable and auditable results in compliance and risk-control scenarios.

    1. What Is Equity Look-Through?

    Equity look-through is the process of tracing an ownership chain upward through multiple layers of shareholding, cross-shareholding, and indirect ownership until the ultimate interest holders and natural persons are identified. It is not a simple shareholder lookup; it is a relationship reasoning and graph computation problem.

    In engineering terms, equity look-through usually breaks down into four subproblems:

    1. Entity normalization: The same entity may appear with different names, ID numbers, or aliases across data sources, so entity alignment is required first.
    2. Relation extraction: Extract “who holds what percentage of whom” from announcements, annual reports, and business registration texts.
    3. Graph construction: Treat entities as nodes and shareholding as weighted directed edges to form a directed weighted graph.
    4. Look-through computation: Multiply or accumulate edge weights along paths to identify control chains, ultimate beneficiaries, and cycles.

    The result is often not a single answer but depends heavily on the business definition. Economic interest calculated by multiplying contribution ratios may differ completely from the actual control relationship determined by control criteria. Any engineering implementation must therefore make the definition explicit first.

    2. Why LLMs Are Needed

    Traditional approaches rely on template-based extraction and rule engines, which fall short on equity-related text:

    • Highly diverse expressions: “holds 51% equity,” “contributed RMB 5.1 million, accounting for 51% of registered capital,” and “holds shares indirectly through a subsidiary” are semantically similar but structurally different.
    • Implicit relationships: Multi-layer nesting, concerted action, and voting rights delegation require reasoning across sentences or even documents.
    • Noisy data: Scans, misaligned tables, and footnotes interfere with rule matching.

    LLMs turn unstructured text into structured candidate triples and handle ambiguity and contextual reasoning. They should not perform the final computation alone, because numerical calculation and graph algorithms require determinism and reproducibility. The right division of labor is: the model handles extraction and explanation; the program handles computation and validation.

    3. Overall Architecture: A Four-Layer Design

    A maintainable look-through system can be organized into four layers:

    1. Data ingestion layer: Ingest multi-source documents, convert them to text while preserving layout and table structure; store original files in object storage and metadata in a metadata database.
    2. Extraction and normalization layer: Use an LLM to extract candidate relations and rules plus dictionaries to normalize entities, outputting triples with confidence scores.
    3. Graph computation layer: Build a directed weighted graph and run look-through, cycle detection, and control-chain identification.
    4. Service and audit layer: Expose query interfaces externally while recording the reasoning basis for each step to support manual review.

    On the cloud, stateless extraction services can run on a container platform, a message queue can smooth peaks and decouple long-running tasks, logging and monitoring with alerting provide observability, and object storage keeps original materials and intermediate artifacts. These are general capability categories; specific choices depend on the team’s existing technology stack.

    4. Relation Extraction: Making Model Output Verifiable

    The key at the extraction stage is not to make the model say more, but to make what it says verifiable. Constrain the output to a fixed schema and require supporting text evidence:

    1. {
    2. "parent": {"name": "Company A", "id_hint": "last four digits of the unified social credit code 8821"},
    3. "child": {"name": "Company B"},
    4. "ratio": 0.51,
    5. "ratio_text": "holds 51% equity",
    6. "evidence": "page 12, row 3 of the shareholder information table",
    7. "confidence": 0.86
    8. }

    There are three hard requirements in engineering:

    • Numbers must trace back to the source text: Keep the original wording alongside the ratio field so the program can run consistency checks.
    • Evidence must be locatable: Extraction results without a page number, section, or table coordinate are treated as low confidence.
    • Confidence feeds into decision-making: Low-confidence results go to a manual review queue rather than directly into the graph.

    5. Entity Normalization: The Foundation of Look-Through Accuracy

    Normalization quality determines look-through quality. A practical strategy is “strong identifiers first, weak identifiers as fallback”:

    1. Prefer strong identifiers such as the unified social credit code;
    2. When missing, standardize names (remove full-width/half-width differences, bracketed suffixes, and administrative region prefixes);
    3. Then use weak identifiers such as registered address and legal representative for similarity matching;
    4. Do not auto-merge entities in the gray zone; mark them as pending confirmation.

    Illustrative logic:

    1. def normalize(entity):
    2. if entity.strong_id:
    3. return ("id", entity.strong_id)
    4. name = standardize(entity.name) # clean width, whitespace, and suffixes
    5. key = (name, entity.region, entity.legal_person)
    6. return ("weak", key) if key[0] else ("pending", entity.raw_name)

    Modeling “pending” explicitly instead of forcing a merge is a key design choice for avoiding incorrect look-through chains.

    6. Look-Through Computation: Definition First, Algorithm Second

    Once the graph is built, declare the definition before computing. Common definitions include:

    • Economic interest: Multiply ratios along each path and sum across multiple paths;
    • Control: Determine layer by layer whether control exists, forming a control chain rather than a ratio chain;
    • Consolidated calculation: Merge and aggregate multiple paths under the same ultimate controller.

    Illustrative implementation of multiplication and accumulation:

    1. def lookthrough(graph, start, target, memo=None):
    2. memo = memo or {}
    3. if start == target:
    4. return 1.0
    5. if start in memo:
    6. return memo[start]
    7. total = 0.0
    8. for nxt, w in graph.out_edges(start): # w is the shareholding ratio
    9. total += w * lookthrough(graph, nxt, target, memo)
    10. memo[start] = total
    11. return total

    Two boundary cases must be handled:

    • Cycles: Cross-shareholding creates cycles; use visited markers or strongly connected component detection to avoid infinite recursion and double counting;
    • Definition conflicts: When results under different definitions disagree, output an explanation of the difference rather than a single number.

    7. Result Validation and Explainability

    A look-through conclusion must be auditable and should provide at least three things: the result value, the calculation path, and the evidence sources. A production-ready output should include:

    • A path list with the ratio and cumulative product at each layer;
    • The normalization basis for each node;
    • The source evidence and confidence for each triple;
    • Explicit alerts for cycles and gray-zone nodes.

    Also build a regression evaluation set: turn confirmed historical cases into test samples and run automatic regression after any change to extraction or computation, preventing “conclusion drift caused by model upgrades.” This is the most easily overlooked yet most important engineering practice for long-term trust when LLMs participate in business systems.

    8. Common Pitfalls and Engineering Recommendations

    1. Treating the LLM as a calculator: Numbers and graph algorithms must be handled by deterministic code.
    2. Skipping definition declaration: Look-through results without a stated definition cannot be reviewed or aligned across departments.
    3. Merging entities automatically too early: Forced merges in the gray zone contaminate the entire chain and cost far more than manual confirmation.
    4. Lacking observability: Without trace logs and metrics, locating problems is extremely costly.
    5. One-time delivery: Equity data changes continuously, so design a switch mechanism between incremental updates and full recomputation.

    9. Conclusion

    Equity look-through is essentially a pipeline engineering problem that turns unstructured text into deterministic graph computation. LLMs raise the ceiling for extraction and reasoning, while the layered architecture, explicit definitions, entity normalization, and regression evaluation determine the floor. Combining the two and carrying an evidence chain through the entire process is what delivers stable, auditable, and maintainable look-through analysis in compliance and risk-control scenarios.