Equity Penetration Analysis for LLMs: Engineering Practices

    This article presents an engineering approach to equity penetration analysis for LLM development entities. It covers a three-table data model, layered entity name normalization, recursive traversal with cycle handling, and three calculation modes: direct holding, penetration holding, and actual control. It also outlines automated quality checks, common pitfalls, and reproducibility practices for due diligence and risk control scenarios. All example data is fictional.

    1. Background and Modeling Goals

    In AI investment, compliance review, and supply chain due diligence, a seemingly simple but genuinely complex question often arises: which natural persons or institutions ultimately hold a given LLM development entity, and in what proportions? This type of analysis is commonly called equity penetration. The difficulty lies not in obtaining individual business registry records, but in multi-level nested relationships, inconsistent names, differences in ratio definitions, and cycle handling.

    This article discusses only general technical methods and data modeling. It does not cover the actual situation of any specific company or product, and all example data is fictional, used only to illustrate the calculation process.

    We break the goal into four verifiable sub-problems:

    1. Entity identification: aligning names from different sources to the same legal entity.
    2. Relationship expansion: recursively traversing holding edges downward until reaching natural persons or terminal institutions.
    3. Ratio calculation: clarifying three definitions: direct holding, penetration holding, and actual control.
    4. Result trustworthiness: cycle detection, ratio conservation checks, reproducibility, and auditability.

    2. Data Model Design

    A robust penetration system centers on three tables: an entity table, a holding edge table, and a calculation configuration table.

    1. Entity(entity_id, name_raw, name_norm, type, region, source)
    2. HoldingEdge(edge_id, holder_id, target_id, ratio, ratio_type, as_of_date, source)
    3. CalcConfig(config_id, mode, stop_type, loop_policy, version)

    Here, ratio_type distinguishes subscribed ratio from paid-in ratio, as_of_date supports point-in-time retrospection, and source retains the data origin for auditing. name_norm is the normalized name; it is recommended to also retain strong identifiers such as the unified social credit code as primary key candidates.

    3. Entity Normalization: The Foundation of Penetration Accuracy

    Name inconsistency is the primary cause of penetration failures. Common cases include mixed use of abbreviations and full names, differences between Chinese and English parentheses, historical renaming, and multiple similar names under the same group. A layered approach is recommended in engineering:

    • Layer 1: Strong identifiers first. Align directly when a unified credit code exists.
    • Layer 2: Standardized strings. Convert full-width to half-width, remove whitespace and punctuation, unify case, strip generic suffixes such as “Limited Company,” and then compare.
    • Layer 3: Fuzzy matching. Use edit distance or vector similarity to generate candidates, then review them manually or with rules.
    1. def normalize(name: str) -> str:
    2. s = unicodedata.normalize("NFKC", name).lower()
    3. s = re.sub(r"[\s\W_]+", "", s)
    4. for suffix in ("有限责任公司", "有限公司", "公司"):
    5. if s.endswith(suffix):
    6. s = s[: -len(suffix)]
    7. break
    8. return s

    The quality of normalization directly determines whether subsequent recursion splits the same entity into two nodes, thereby underestimating the penetration ratio.

    4. Recursive Expansion and Cycle Handling

    Penetration is essentially a weighted path product operation on a directed graph. Starting from a node, traverse downward along holding edges; multiplying the ratios along a path gives the penetration coefficient for that path. Summing the coefficients of multiple paths to the same terminal entity yields the final penetration ratio.

    1. def penetrate(start, edges, mode="multiply", max_depth=20):
    2. result, visited = {}, set()
    3. def dfs(node, acc, depth, path):
    4. if depth > max_depth:
    5. return
    6. if node in path: # Cycle: truncate according to policy
    7. result.setdefault(node, 0.0)
    8. return
    9. children = [e for e in edges if e.holder_id == node]
    10. if not children:
    11. result[node] = result.get(node, 0.0) + acc
    12. return
    13. for e in children:
    14. dfs(e.target_id, acc * e.ratio, depth + 1, path | {node})
    15. dfs(start, 1.0, 0, set())
    16. return result

    Cycles are not uncommon in real equity data. A common practice is to truncate the path and log an alert when a repeated node is detected, while marking the result with “a cycle exists; ratios are for reference only.” Another strategy is to treat the entire cycle as a single group node and merge the calculation, but this changes the definition and must be explicitly declared in the configuration.

    5. Differences and Selection Among the Three Definitions

    • Direct holding: takes only the first layer. It is the simplest to calculate but severely underestimates actual control.
    • Penetration holding: sums path products, suitable for financial consolidation and interest attribution analysis.
    • Actual control: builds on penetration by introducing non-equity factors such as concerted action, voting rights delegation, and board seats. It belongs to the rule engine domain and requires additional data support.

    The three definitions cannot be mixed. A report must state the definition used, the cutoff date, and the data source; otherwise, the conclusions cannot be reviewed.

    6. Engineering Implementation and Quality Checks

    In a cloud implementation, a combination of general capabilities can be used: a relational database stores entities and edges, object storage keeps raw snapshots, a message queue drives incremental updates, a container platform hosts compute tasks, and logging services with monitoring and alerting provide observability.

    Before going live, four types of automated checks are recommended:

    1. Ratio conservation: the sum of ratios of child nodes under the same parent should be close to 1; alert when the deviation exceeds a threshold.
    2. Depth distribution: compute a histogram of penetration depths; abnormally deep chains often indicate normalization errors.
    3. Cycle list: output all cycles for manual confirmation.
    4. Reproducibility: fix the configuration version and data snapshot; reruns should produce identical results.

    7. Common Pitfalls

    First, treating subscribed ratio as paid-in ratio, inflating proportions. Second, ignoring historical renaming and splitting one chain into two. Third, failing to handle cycles, causing infinite recursion. Fourth, mixing data across time points and producing unexplainable conclusions. Fifth, over-relying on a single data source without cross-validation. The mitigations are not complex: fix the definition, retain snapshots, enforce checks, and require two-person review.

    8. Summary

    The engineering value of equity penetration lies in turning scattered business registry and investment relationships into computable, verifiable, and reproducible conclusions. Mastering the four key points—entity normalization, recursive products, cycle policies, and definition declaration—makes it possible to reliably produce trustworthy results in due diligence and risk control scenarios. Building the pipeline with the general data and compute capabilities of Baidu AI Cloud can further reduce manual review costs to an acceptable range.