Engineering Equity Look-through Analysis with Large Language Models

    This article explains how to build an engineering-grade equity look-through system, covering the problem definition, multi-source data governance, entity resolution, graph modeling and traversal algorithms, explainable results, cloud architecture, and common pitfalls with an acceptance checklist. Readers will learn how to handle variable-depth ownership chains, cycles, ratio decay, and data versioning while keeping conclusions auditable.

    1. Problem Definition: What Equity Look-through Is and Why It Becomes an Engineering Problem

    Equity look-through means starting from a target entity and tracing upward along equity investment relationships, layer by layer, until you identify the ultimate controller, beneficial owner, or state-owned/foreign-capital attributes. It looks like a financial concept, but from an engineering standpoint it is essentially a reachability and path-aggregation problem on a weighted directed graph.

    Typical challenges include:

    1. Variable depth: An ownership chain may be only two layers, or it may pass through multiple limited partnerships, asset management plans, and trust structures before reaching a dozen or more layers.
    2. Cycles: Cross-shareholding and mutual holdings among employee stock ownership platforms create cycles in the graph, so naive recursion falls into infinite loops.
    3. Ratio decay: The final look-through ratio is the product of the holding ratios at each layer, which requires precise numeric semantics (floating-point error, precision truncation).
    4. Non-unique entities: A single group often contains many entities with identical or near-identical names, requiring entity resolution.
    5. Data freshness: Business registration changes and capital increases or decreases happen frequently, so conclusions must carry timestamps and versions.

    As a result, a usable equity look-through system needs at least four layers of capability: data ingestion and governance, entity and relationship modeling, graph algorithm computation, and result explanation with a risk-control feedback loop.

    2. Data Layer: Ingestion and Governance of Multi-source, Heterogeneous Data

    Equity data typically comes from business registration records, listed company announcements, bond prospectuses, public tender and judicial information, and similar sources. A three-layer design is recommended:

    • Raw layer: Store scraped or imported structured/semi-structured data as-is, appending only source identifiers and fetch timestamps, with no cleaning, to guarantee traceability.
    • Standard layer: Unify field definitions, such as entity name, unified social credit code, registered capital, currency, holding ratio, subscribed versus paid-in capital, and change date.
    • Serve layer: Build query-oriented wide tables and graph indexes aggregated by entity, for upper-layer algorithms to call.

    Governance must explicitly handle the following:

    1. Input: one holding record (investor, investee, ratio, date, source)
    2. Rules:
    3. 1. Normalize ratio to [0,1], unifying percentages and decimals
    4. 2. Drop edges where ratio = 0, or is missing and cannot be completed
    5. 3. If the same (investor, investee) appears multiple times -> keep the latest by date, retaining historical versions
    6. 4. Standardize entity names: strip spaces, unify full-width/half-width characters, split bracketed content into a separate field
    7. 5. Attach a confidence score to the output; low-confidence edges go to a manual review queue

    Engineering recommendation: archive raw data immutably in object storage, use a message queue to carry incremental change events, have stateless cleaning jobs on a container platform consume them, and write cleaning results into a graph database or into an adjacency table in a relational database. Monitoring and alerting should cover three metrics: “data delay,” “abnormal ratio spikes,” and “rising parse failure rate for a given source.”

    3. Entity Resolution: The First Gate for Look-through Accuracy

    A single ultimate controller often holds stakes through dozens of descendant nodes, with heavy name noise. A practical approach is layered matching:

    1. Strong identifiers first: Use the unified social credit code as the primary key, with names only as a secondary aid.
    2. Rule matching: After name standardization, apply exact matching and suffix-stripped matching (generic suffixes such as “Group,” “Holdings,” and “Investment” stored separately).
    3. Similarity matching: Combine edit distance and character n-gram similarity with weighted scoring over attributes such as address, legal representative, and registered capital.
    4. Human feedback loop: Low-confidence candidates go to a review console, and review outcomes are written back as training/rule samples, forming an iteration.

    It is worth stressing that entity resolution errors get multiplicatively amplified along the look-through chain, so it is better to keep an “unconfirmed node” flag than to force a merge.

    4. Graph Modeling and Look-through Algorithms

    Model the data as a directed graph: edge direction is “shareholder → invested entity,” and edge weight is the holding ratio.

    The two most common requirements are:

    • Look-through Up: Given a target company, find all ultimate beneficiaries and their effective ratios.
    • Look-down: Given an ultimate controller, expand all enterprises under their control.

    The core of upward look-through is summing path products, with mandatory cycle detection:

    1. def lookthrough(graph, node, ratio=1.0, path=None, memo=None):
    2. """Traverse upward along shareholder edges; return {ultimate entity: cumulative ratio}"""
    3. path = path or set()
    4. if node in path: # cycle detection to avoid infinite recursion from cross-shareholding
    5. return {}
    6. path = path | {node}
    7. parents = graph.predecessors(node) # set of shareholders
    8. if not parents: # reached the top
    9. return {node: ratio}
    10. result = {}
    11. for p, w in parents: # w is the holding ratio at this layer
    12. for top, r in lookthrough(graph, p, ratio * w, path, memo).items():
    13. result[top] = result.get(top, 0.0) + r
    14. return result

    Engineering essentials:

    1. Threshold pruning: Stop traversing upward when the cumulative ratio falls below a set threshold (e.g., 0.01%), avoiding long-tail noise.
    2. Depth limit: Set a maximum number of traversal layers; mark results exceeding it as “not fully looked through.”
    3. Result caching: Cache keyed by (node, data version); invalidate whenever the data version changes.
    4. Consistency checks: The sum of ratios across all paths should satisfy a conservation relation; trigger a data audit on anomalies.
    5. Approximate computation: For very large subgraphs, use sampling or hierarchical pre-aggregation to keep online queries in the millisecond range.

    If the data reaches hundreds of millions of edges, separate graph storage from computation: generate common look-through results offline via batch processing, and let the online path handle only incremental corrections and explanation display.

    5. Result Explanation: Making Conclusions Auditable

    If look-through results cannot be explained, business stakeholders will not trust them. The recommended output includes the full path list, the ratio at each layer, the final effective ratio, data sources and timestamps, confidence, whether cycles exist, and whether the result is not fully looked through. Also provide a “path comparison view” that highlights differences in conclusions across data versions, so compliance staff can judge what caused the change.

    6. Combining with General Cloud Capabilities

    On Baidu AI Cloud, such a system is typically organized as follows: object storage holds raw and archived data; a message queue carries incremental events such as business registration changes; a container platform runs cleaning and graph computation jobs with elastic scaling; a relational database stores the standard layer; a graph database or adjacency table serves online queries; log and monitoring/alerting services provide observability; and a data lake/data warehouse supports offline aggregation and retrospective analysis. All components are general-purpose capabilities, and specific selections should be decided after load testing based on data scale, latency requirements, and compliance constraints.

    7. Common Pitfalls and an Acceptance Checklist

    • Treating holding ratios as strings, causing multiplication errors;
    • Ignoring the time dimension and answering current questions with historical ownership structures;
    • Failing to handle cycles, causing request timeouts in production;
    • Over-merging entities, combining two unrelated companies under one ultimate controller;
    • Missing confidence and sources, making conclusions unauditable.

    For acceptance, cover at least six test categories: multi-level nesting, cross-shareholding cycles, same name but different entities, conservation of ratio totals, data version switching, and above-threshold pruning. Define clear pass criteria and regression baselines for each category.