Equity Penetration Analysis with Large Language Models: A Technical Path

    This article outlines a technical approach to equity penetration analysis, the process of tracing multi-layer ownership structures to identify ultimate beneficiaries and quantify control ratios. It covers the core subproblems, data collection and normalization across heterogeneous sources, directed weighted graph modeling, relation extraction from text into structured triples, penetration algorithms with cycle detection and multi-path aggregation, engineering considerations for large-scale deployment, and quality evaluation with common pitfalls. Readers will gain a practical understanding of how data governance and graph computation combine to deliver accurate and maintainable penetration results.

    1. Problem Definition: What Is Equity Penetration

    Equity penetration means tracing upward through a multi-layer ownership structure along capital contribution paths to locate the ultimate beneficiaries, such as natural persons, state-owned entities, or listed companies, and to quantify the effective control ratio of each path. It involves three core subproblems: entity identification (who), relation extraction (who holds how much of whom), and path aggregation (how to merge multiple paths).

    It is important to note that penetration results depend on data completeness. Missing one intermediate entity distorts the ratios, and mistaking subscribed ratios for paid-in ratios skews the conclusions in the same way. For this reason, data quality assessment must come before the algorithms in any engineering effort.

    2. Data Layer: Collecting and Normalizing Multi-Source Information

    Common information sources include public business registration summaries, enterprise annual reports, bond prospectuses, IPO filings, news announcements, and internal due diligence materials. These materials are highly heterogeneous in format: some are structured tables, some are lengthy PDFs, and some are only scanned images.

    Normalization typically involves four steps:

    1. Entity disambiguation: same-name enterprises, abbreviations, and former names must be mapped to a unique entity identifier, using weighted matching on features such as registration location, founding year, and fragments of the unified social credit code.
    2. Field standardization: contribution ratios are unified as decimals, currency and amount units are unified, and dates are unified to ISO format.
    3. Missing-value annotation: distinguish “confirmed zero” from “unknown”; the latter must trigger an alert in subsequent computation rather than being treated as zero.
    4. Source traceability: each relation retains the source document and page location for manual review.

    An illustrative normalized structure:

    1. {
    2. "subject_id": "E10086",
    3. "name": "Example Holdings Co., Ltd.",
    4. "shareholder": "E20001",
    5. "ratio": 0.51,
    6. "ratio_type": "subscribed",
    7. "source": {"doc": "annual_report", "page": 42}
    8. }

    3. Graph Modeling: Representing Ownership as a Directed Weighted Graph

    Abstracting each entity as a node and each ownership relation as a directed edge with the ratio as its weight yields a directed weighted graph. Three modeling points matter:

    • Multi-edges: the same shareholder may hold stakes through different contribution batches; keep multiple edges and sum them during aggregation rather than overwriting them at write time.
    • Entity type labels: types such as natural person, enterprise, fund, and government platform affect the termination conditions for penetration.
    • Time dimension: ownership changes continuously, so introducing an effective-time field is recommended to support lookback at historical points in time.

    4. Relation Extraction: From Text to Structured Triples

    For extraction, rules and dictionaries can first lock down candidate fragments, then a sequence labeling model identifies entities and ratios, and finally type-constraint validation is applied. A simplified rule skeleton:

    1. def extract_candidates(text):
    2. for sent in split_sentences(text):
    3. if has_holder_pattern(sent) and has_ratio(sent):
    4. yield normalize(triple_from(sent))

    Validation rules should at least cover: ratios fall within the 0 to 1 range; parent-child node types are valid; within the same document, the ratios for the same pair of entities sum to no more than 1 (cases involving nominee holding or differences in statistical scope go to a manual queue).

    5. Penetration Algorithm: Recursion, Cycle Detection, and Multi-Path Merging

    The most basic implementation is a depth-first traversal that accumulates products upward from the target node:

    1. def penetrate(graph, node, acc=1.0, path=()):
    2. if node in path: # cycle detection to avoid infinite recursion
    3. return []
    4. if is_terminal(graph, node): # natural person or target level
    5. return [(node, acc)]
    6. out = []
    7. for parent, ratio in graph.in_edges(node):
    8. out += penetrate(graph, parent, acc * ratio, path + (node,))
    9. return out

    When merging multiple paths, the ratios of all paths to the same ultimate beneficiary are summed directly. If an “effective control” scope is required, a threshold check is introduced, treating paths below a certain ratio as non-controlling influence and counting them separately. Circular ownership must be handled explicitly; a common practice is to flag nodes within the cycle and emit an alert, leaving the true control relationship to manual confirmation.

    6. Engineering Implementation: Performance and Maintainability

    When entities reach the scale of hundreds of thousands and edges reach the millions, pure in-memory recursion hits performance bottlenecks. Viable strategies include: splitting the graph by connected components and computing in parallel; caching results for stable subgraphs; and storing graph data in a graph database or columnar store to accelerate multi-hop queries via indexes. Task scheduling, failure retries, and result versioning are all indispensable; otherwise a single data update can make historical conclusions irreproducible.

    For deployment, the container platform on Baidu AI Cloud can host compute tasks, object storage can hold original documents and result snapshots, a message queue can decouple tasks, and logging and monitoring with alerting can track extraction failure rates and penetration timeouts, evolving a one-off script into a continuously running data service.

    7. Quality Assessment and Common Pitfalls

    It is recommended to establish three categories of metrics: precision and recall at the extraction layer, connectivity rate and cycle ratio at the graph layer, and the agreement rate of sampled manual review at the result layer. Common pitfalls include: mixing direct and indirect ownership scopes; ignoring off-balance-sheet arrangements such as acting-in-concert agreements; answering historical point-in-time questions with the latest data; and failing to adapt currency and registration location for multi-layer offshore structures.

    8. Summary

    Equity penetration is essentially a combined engineering effort of “data governance + graph computation.” First make entity normalization and traceability solid, then use a time-dimensioned weighted graph to carry the relations, complete the quantification with cycle detection and multi-path merging, and finally rely on general-purpose cloud capabilities for scheduling, storage, and observability, so that a balance can be struck between accuracy and maintainability.