Estimating Model Scale Through Black-Box APIs: Factual Knowledge as a Clue

    This article explains how factual knowledge can serve as a proxy for estimating the scale of closed-source models through black-box APIs. It covers why factual recall differs from reasoning ability, how to build and score probe sets, how to map scores to parameter-count ranges, how to track when new facts enter model parameters, and how to control common sources of error such as retrieval augmentation, refusal behavior, training-data differences, and sampling randomness. It also provides practical recommendations for using these estimates in capability assessment, technology selection, and industry observation.

    1. Starting Point: The Problem

    Closed-source models usually do not disclose their parameter counts. However, what a model can remember and what it gets wrong leave observable traces. Reasoning ability can be changed through algorithmic optimization, distillation, and inference-time computation. Factual knowledge is harder to compress in the same way. For a fact to be reliably remembered by a model, it often needs to occupy a certain amount of parameter capacity. Therefore, there is a relationship between the scale of facts a model can reliably recall and its parameter count, which provides an entry point for black-box estimation.

    2. Why Factual Knowledge Can Serve as a Proxy for Scale

    1. Reasoning ability and memory capacity are different. Reasoning performance can be improved with longer thinking processes, tool calls, or better training data. Small models can also achieve good results on specific question types. Factual memory depends on information the model has seen and encoded during training, and it is difficult to obtain this from scratch through process optimization.

    2. Long-tail facts better reflect capacity. High-frequency common knowledge can be answered by almost all models. In contrast, long-tail facts such as obscure entities, specific values in niche domains, and biographical details of lesser-known people can only be covered by models with sufficient capacity. Coverage usually increases with scale, so it can serve as a gradient for relative comparison.

    3. Information-theoretic perspective. Parameters can be viewed as a limited storage medium, and the amount of information they can encode is constrained by parameter scale and numerical precision. This is a rough upper-bound heuristic, not a precise formula. Actual results are also affected by training-data quality, repetition count, and model architecture.

    3. Basic Black-Box Estimation Workflow

    The overall approach has four steps: construct a probe set, standardize query conditions, calculate scores, and map scores to scale ranges.

    1) Construct a probe set. Select a set of factual questions with clear reference answers, stratified by domain, popularity, and time, and ensure each stratum has enough samples. Question wording should remain neutral, and prompts should not hint at the answer.

    2) Standardize query conditions. Fix sampling parameters, such as setting temperature to 0, and use the same system prompt and output format. Comparisons across models must be made under identical conditions; otherwise, the results are not comparable.

    3) Score the responses. Multiple-choice and numerical questions are suitable for automatic judging. Open-ended questions can use semantic matching, or multiple independent annotators can label them and reach a consensus.

    4) Map to scale ranges. Compare probe scores with models of known scale from public research to produce an interval estimate. A single point value often exceeds the precision that the data can support.

    Example code:

    1. def estimate_knowledge_score(model, probes):
    2. correct = 0
    3. for item in probes:
    4. answer = model.query(item.question, temperature=0)
    5. if judge(answer, item.reference):
    6. correct += 1
    7. return correct / len(probes)
    8. # Run separately on multiple models to obtain a comparable score series
    9. scores = {m.name: estimate_knowledge_score(m, probe_set) for m in models}

    4. Tracking When Facts Enter Model Parameters

    Across multiple versions of the same model family, changes in how a fact is answered can be observed. If a recent event starts to be answered correctly and consistently in a certain version, it can be inferred that the fact was roughly incorporated before that version’s training-data cutoff. This method cannot pinpoint the exact training step, but it can provide a time window.

    Operational points:

    • Select new facts with clear publication dates and avoid content that heavily overlaps with existing older knowledge.
    • Use the same probe questions for each version and sample multiple times, focusing on stability rather than a single result.
    • Record changes in answer wording to distinguish true memorization from accidental guesses.

    5. Sources of Error and Mitigation

    Black-box estimation has several biases that need to be explicitly controlled.

    • Retrieval augmentation. If the server side has access to external retrieval, a correct answer does not mean that the fact is stored in the parameters. Test in a controlled environment, or check whether the answer depends on external sources.
    • Alignment and refusal training. Safety fine-tuning may cause a model to avoid certain questions. A drop in accuracy does not necessarily mean the model does not know the answer; refusal and lack of knowledge need to be distinguished.
    • Training-data differences. Data cleaning, deduplication, and mixture ratios can change knowledge coverage. Models of the same scale trained on different data may perform noticeably differently.
    • Sampling randomness. Single results can be noisy. Repeat sampling and report the range of score variation.

    6. Conclusion and Practical Recommendations

    Black-box estimation can provide order-of-magnitude judgments and is suitable for capability assessment, technology selection, and industry observation. It cannot replace official disclosure and should not be treated as a precise value. For internal team use, the following practices are recommended:

    1. State the confidence level of the conclusion and clearly describe the composition of the probe set and the scoring method.
    2. Fix query parameters and record version information so that results can be reproduced.
    3. Combine estimation results with task success rate, response latency, invocation cost, and other metrics as part of a comprehensive judgment.