Equity Look-through Analysis with Large Language Models: A Technical Practice Guide

    This article explains how to build an equity look-through analysis system using large language models, covering the problem definition, a layered data collection design, information extraction into structured triples, entity normalization and disambiguation, graph-based look-through algorithms, data quality validation, service APIs and visualization, and common pitfalls. Readers will learn the end-to-end workflow and key engineering decisions needed to trace ownership chains from text sources into a queryable knowledge graph.

    1. Problem Definition: What Is Equity Look-through

    Equity look-through means starting from a target entity and tracing upward through ownership relationships to the ultimate beneficial owners, or downward to the underlying operating entities, forming a complete control chain. It is essentially a multi-hop traversal problem on a directed graph: nodes are legal entities or natural persons, edges are ownership relationships, and edges carry attributes such as ratio, time, and currency.

    Compared with a simple shareholder lookup, look-through analysis has three difficulties. First, the depth is uncertain: chains often exceed three levels, and disclosure granularity varies widely across industries and jurisdictions. Second, the data is dirty: the same entity may appear as an abbreviation, a full name, or a historical name, which requires entity normalization. Third, the calculation basis is complex: direct ownership, indirect ownership, acting-in-concert arrangements, and voting rights delegation are not equivalent in computation, so they must be clearly distinguished.

    2. Data Sources and Collection Layer Design

    Commonly available sources include public business registration disclosures, annual corporate filings, ownership statements in tender and qualification documents, listed-company announcements, and contracts and onboarding materials accumulated in internal business systems. A layered collection design is recommended:

    1. Collection layer: scheduled jobs + incremental watermark
    2. ↓
    3. Raw text layer: original documents and text spans retained (object storage)
    4. ↓
    5. Parsing layer: layout restoration, table extraction, paragraph segmentation
    6. ↓
    7. Extraction layer: entity recognition, relation recognition, ratio normalization
    8. ↓
    9. Graph layer: nodes and attributed edges stored in a graph database
    10. ↓
    11. Service layer: look-through query, validation, visualization

    Two practices are critical. First, the source text must be traceable: every ownership edge must link back to its source span, otherwise manual review becomes extremely costly. Second, prioritize incremental processing, using entity identifiers and update timestamps as watermarks to avoid full re-runs.

    3. Information Extraction: From Text to Structured Triples

    Extraction can be split into two subtasks. Entity recognition locates company names, person names, and their roles in the text. Relation recognition determines whether an ownership relationship exists between two entities and extracts attributes such as ratio and time. The output is unified as triples:

    1. {
    2. "subject": "full name of the target entity",
    3. "object": "full name of the shareholder entity",
    4. "ratio": 0.35,
    5. "ratio_type": "direct",
    6. "effective_date": "2024-01-01",
    7. "source_ref": "doc_id#page#span"
    8. }

    Ratio normalization must handle multiple textual forms, such as “thirty-five percent”, “35%”, “0.35”, and “three point five tenths”. It is recommended to map them to floating-point numbers during preprocessing while retaining the original string for auditing. For vague expressions like “controlling” or “absolute control”, do not convert them into specific numbers on your own; mark them as pending confirmation.

    4. Entity Normalization and Disambiguation

    Multiple spellings of the same entity are the main bottleneck for accuracy. A practical approach is a three-tier strategy of “alias table + rules + similarity”: first, perform exact matching on a unique identifier such as a unified credit code; if there is no hit, apply rule-based cleaning to remove noise such as parenthetical notes and administrative-region prefixes; if there is still no hit, use edit distance and vector similarity to generate candidates, and let humans or a threshold policy decide. Normalization results should be written into a mapping table, forming an asset that accumulates over time.

    5. Look-through Algorithms and Ownership Calculation

    On a graph database, a look-through query typically appears as a variable-depth path traversal. Pseudocode:

    1. def lookthrough(root, max_depth=8, threshold=0.0):
    2. result = defaultdict(float)
    3. stack = [(root, 1.0, 0)]
    4. visited_path = set()
    5. while stack:
    6. node, weight, depth = stack.pop()
    7. if depth >= max_depth:
    8. continue
    9. for edge in outgoing(node):
    10. if (node, edge.to) in visited_path:
    11. continue # cycle protection
    12. w = weight * edge.ratio
    13. if w >= threshold:
    14. result[edge.to] += w
    15. stack.append((edge.to, w, depth + 1))
    16. return result

    Three points to note. First, indirect ownership is calculated by multiplying along the chain, and multiple paths are summed, so deduplication and cycle protection are required; otherwise cross-shareholding will cause infinite loops. Second, threshold pruning can significantly compress the result set, but the threshold must be defined by the product specification and cannot be decided implicitly by the algorithm. Third, the depth limit should be configurable, and the result should be labeled as “truncated” to prevent users from mistaking it for a complete chain.

    6. Data Quality and Consistency Validation

    It is recommended to establish four types of validation rules and enforce them before data ingestion: ratio domain validation, where single-side ownership must fall between zero and one; sum validation, where the total direct ownership of the same entity at the same point in time should not significantly exceed one; time validation, where the effective date must not be later than the disclosure date; and conflict validation, where a ratio discrepancy beyond tolerance across sources for the same relationship goes into a manual queue. All validation results should be persisted as queryable quality metrics rather than merely printed to logs.

    7. Service APIs and Visualization

    When exposing capabilities, it is recommended to abstract three common interfaces: entity normalization lookup, single-layer shareholder query, and look-through chain query. The response structure should provide both the conclusion and the evidence, making it easier for business teams to judge credibility. For visualization, use a hierarchical force-directed layout, highlight chains above the threshold, and color subgraphs containing cycles separately as a warning.

    For engineering deployment, container platforms can host parsing and extraction services, message queues can smooth peaks and drive asynchronous tasks, object storage can hold source text and intermediate artifacts, and logging and monitoring with alerting can handle tracing and failure retries. Baidu AI Cloud offers corresponding capabilities in these general categories, and you can choose managed or self-hosted options based on your own scale.

    8. Common Pitfalls

    First, treating look-through results as legal conclusions: the graph is only a clue, and final determination still requires professional judgment. Second, ignoring the time dimension: ownership is a state that changes over time, so queries must include a time dimension. Third, over-pursuing full automation: keeping human review for ambiguous ratios and entity disambiguation is actually more economical. Fourth, failing to retain the evidence chain, which makes results unauditable.