Equity Penetration Analysis with Large Language Models: A Technical Implementation Guide

    This article outlines a technical approach to equity penetration analysis for large language model (LLM) companies, where ownership structures tend to be deep, mixed, and frequently changing. It covers modeling ownership as a directed weighted graph, a three-layer data architecture with snapshots for reproducibility, entity alignment strategies, the multiplication rule and cycle handling in penetration algorithms, and the calculation conventions that must be declared. It also describes engineering practices such as incremental updates, quality assertions, and visualization, along with common pitfalls to avoid. Readers will learn how to build a reproducible, auditable penetration pipeline rather than a one-off report.

    1. Problem Definition: What Equity Penetration Is and Why the LLM Industry Needs It

    Equity penetration means tracing ownership relationships layer by layer upward until the ultimate controller or a designated level of shareholders is identified, while calculating the ownership percentage along each path. It is fundamentally different from simply reading a shareholder register: a register is single-layer and static, whereas penetration is a multi-hop, dynamic, weighted graph computation.

    In the LLM space, entity structures often exhibit three characteristics that make penetration analysis significantly more necessary:

    1. Deep hierarchies: Core R&D entities are often stacked beneath multiple holding platforms, with layers cross-nested through limited partnerships and shareholding platforms.
    2. Mixed node types: Natural persons, limited companies, limited partnerships, employee shareholding platforms, and offshore structures coexist, and the calculation rules differ from one node type to another.
    3. Frequent changes: Fundraising, restructuring, and equity incentives repeatedly rewrite the edge set within short periods, so historical versions must remain traceable.

    The core of penetration analysis is therefore not “drawing a graph” but defining a reproducible calculation convention and using engineering means to keep that convention stable as the data changes.

    2. Data Layer Design: Modeling Ownership as a Directed Weighted Graph

    Model all relationships as a single directed weighted graph $G=(V,E)$:

    • Nodes $V$: entity subjects, carrying a type attribute (natural person / legal person / partnership / shareholding platform).
    • Edges $E$: ownership relationships, with the ownership percentage as weight $w\in(0,1]$, plus a timestamp and a data source marker.

    An illustrative structure (showing the modeling idea only, not a specific product interface):

    1. {
    2. "node_id": "E1024",
    3. "node_type": "legal_person",
    4. "name": "A Technology Co., Ltd.",
    5. "attributes": {"region": "CN", "industry": "software"}
    6. }
    7. {
    8. "edge": {
    9. "from": "HOLD-07",
    10. "to": "E1024",
    11. "weight": 0.35,
    12. "effective_date": "2025-03-01",
    13. "source": "public_registry_snapshot"
    14. }
    15. }

    A three-layer structure is recommended: a raw layer, a standardized layer, and a snapshot layer. The raw layer preserves the data exactly as collected for auditing; the standardized layer performs entity alignment and field normalization; the snapshot layer freezes the entire graph by date, so the penetration result at any historical point can be fully replayed. Object storage is suitable for holding snapshot files, container platforms for running compute jobs, and logging plus monitoring/alerting for tracking job success rates and data freshness.

    3. Entity Alignment: The Biggest Source of Distorted Results

    The same entity may appear across data sources as a full name, an abbreviated name, a former name, or a unified registration identifier. If alignment fails, one entity gets split into multiple nodes on the graph, which directly dilutes the percentages.

    A practical alignment strategy has three levels:

    1. Strong identifiers first: merge primarily on unique identifiers such as the unified registration code.
    2. Weak identifiers as fallback: normalize names (removing full-width/half-width differences, bracketed suffixes, regional prefixes), then apply similarity matching with a manual review threshold.
    3. Keep a record of conflicts: write every merge into a mapping table with a confidence score; silent overwrites are not allowed.
    1. def normalize_name(raw: str) -> str:
    2. s = raw.strip().lower()
    3. for ch in ["(", ")", "(", ")", " ", "·"]:
    4. s = s.replace(ch, "")
    5. for suffix in ["有限公司", "有限责任公司", "股份公司"]:
    6. s = s.replace(suffix, "")
    7. return s

    4. Penetration Algorithms: The Multiplication Rule, Path Enumeration, and Cycle Handling

    4.1 Basic Calculation Rules

    If a path $v_0 \to v_1 \to \dots \to v_k$ exists, the penetrated percentage of $v_0$ in $v_k$ is the product of the edge weights along it:

    $W = \prod_{i=1}^{k} w_i$

    When multiple parallel paths exist, the contributions to the same target node must be summed, not maximized — this is the most common convention error in practice.

    4.2 Handling Circular Ownership

    Cross-shareholding creates cycles, and naive recursion will loop indefinitely. The engineering solution is path-stack deduplication:

    1. def penetrate(graph, start, target, max_depth=8, threshold=1e-4):
    2. results = {}
    3. def dfs(node, acc, path):
    4. if node == target:
    5. results[node] = results.get(node, 0.0) + acc
    6. return
    7. if len(path) >= max_depth:
    8. return
    9. for nxt, w in graph.out_edges(node):
    10. if nxt in path: # cycle: prune
    11. continue
    12. if acc * w < threshold: # prune negligible contributions
    13. continue
    14. dfs(nxt, acc * w, path | {nxt})
    15. dfs(start, 1.0, {start})
    16. return results

    max_depth and threshold must be written into the result metadata as explicit configuration items; otherwise the same data will yield different answers in different hands.

    4.3 Conventions Must Be Declared Explicitly

    A qualified penetration report must declare at least four things: the penetration endpoint (natural person / designated level), whether concerted-action relationships are merged, whether the calculation is based on a time snapshot, and the threshold for handling negligible percentages. Results without such declarations are not comparable.

    5. Engineering Implementation and Quality Assurance

    1. Incremental updates: drive partial recomputation with change events instead of rebuilding the whole graph; generate a snapshot before and after each change to make diffs easy.
    2. Reproducibility: parameterize the compute job and write the input snapshot ID together with the parameters into the result, enabling one-click replay.
    3. Quality checks: define three kinds of assertions — the sum of weights does not exceed 1, no isolated nodes exist, and the penetration result for key entities deviates from the previous version by no more than the threshold; anomalies trigger alerts.
    4. Visualization: use a layered layout to display penetration chains, map node size to the final percentage and edge width to the single-layer weight, and support collapsing by hierarchy depth.

    6. Summary of Common Pitfalls

    • Treating a single-layer ownership percentage as the final equity;
    • Taking only the largest path across multiple paths instead of summing them;
    • Ignoring the rule differences between general partners and limited partners in limited partnerships;
    • Failing to freeze data snapshots, making conclusions impossible to trace back;
    • Failing to declare conventions, so results from different teams cannot be aligned.

    In short, the reliability of equity penetration is determined jointly by four elements: data snapshots + entity alignment + explicit conventions + replayable computation. Treating it as a continuously iterable data engineering capability rather than a one-off report is what keeps conclusions stable and trustworthy in high-change scenarios like the LLM industry.