← 返回全部开发案例
本案例由 AI 匿名评审,尚未经过独立人工复核;请结合原稿、卡片与两边输出自行核对。
自动补全没卡片更好31 / 280 · beu-8b02862c1cf63910

A gentle tutorial on accelerated parameter and confidence interval estimation for hidden Markov models using Template Model Builder

统计学 · 2205.03686v1

FLOWING EVIDENCE BENCHMARK

我们怎样比较有卡片和无卡片的续写?

在同一个写作位置,我们用同一个模型分别生成有卡片和无卡片的首次结果。全部 280 组都进入整体匿名评审;一侧不续写时,评审会判断这种克制是否适合原稿。

整体结果:有卡片更好 138 次、差不多 26 次、无卡片更好 107 次、两边都不可用 5 次、评审未决 4 次。218 组双方有正文,48 组至少一侧主动不续写,14 组含无效输出。

同一段原稿 · 比较有无论文卡片

01 · 固定写作位置

论文原稿

同一处写作点位 ▌

同一原稿位置的自动补全成对比较

02 · 准备两个版本

两组共用

原稿、写作任务和生成模型

A · 有论文卡片

额外提供相关论文卡片

B · 无论文卡片

不提供论文卡片

生成模型

同一模型、同一版本

A → 首次输出

B → 首次输出

AI 匿名评审

匿名标记两份首次输出为 X、Y

按续写质量判断:准确性、任务贴合度和可用性
输出:X 更优 / 持平 / Y 更优 / 两组均不可用

交换两份答案的顺序再评一次

盲评具体怎么判?

① 匿名两份输出
AI 评审看到同一原稿和两份首次输出,但不知道哪份用了卡片。

② 比较并换序复评
根据当前任务的标准,按 X/Y、再按 Y/X 的顺序各评一次。

③ 复核分歧
两次结论不一致时再做第三次判定;未完成的评审也留在分母。

点位和卡片怎样选?

我们从 7 个学科各选取 40 个写作位置,共比较 280 次。每次比较前先确定写作位置和相关论文卡片,让有卡片和无卡片两组从同一原稿出发。

主结果保留了所有预先固定的点位,包括卡片可能无法补充有用内容的位置。这避免了根据输出筛选案例,但也意味着 49% 衡量的是整批点位的结果,不能直接解释为“证据能明显发挥作用时”的胜率。本批数据没有在生成前逐点标注这一证据机会,暂时无法可靠拆分两组。

CARD USE · 140/280

有正文且报告使用卡片的比例

模型会报告卡片是否影响了续写。280 次测试中,140 次有正文且报告使用卡片。原口径的 150 次包含 10 次无正文,已修正。

COMPARISON · 70 / 7 / 30

双方都有正文时,哪个版本更好?

在有正文且报告使用卡片、两组也都写出正文的 107 次比较中,AI 盲评认为有卡片更好 70 次、差不多 7 次、无卡片更好 30 次。

表格里的两个百分比怎么算?

有正文且报告使用卡片的比例

140有正文且报告使用
÷
280全部点位
=
50%

有卡片版本更好比例

70有卡片更好
÷
107可比较的测试
=
65%

两个百分比的分母不同:50% 看全部 280 次补全;65% 只看有正文且报告使用、且两边都有完整输出的 107 次。卡片是否被使用由生成模型报告,哪边写得更好由 AI 匿名评审。

卡片使用由生成模型自报,整体胜负由看到原稿和材料片段的 AI 匿名评审;没有独立人工评审,仍可能有材料偏好。整体结果反映这 280 个固定点位上的自动判断,不代表任意写作场景的获胜概率。

原稿写作位置

原文摘录 · 非 PDF 页面

研究论文 · 原文片段

A gentle tutorial on accelerated parameter and confidence interval estimation for hidden Markov models using Template Model Builder

7 Discussion

…ied fields with an introduction to parameter estimation for HMMs via TMB using R . Some procedures need to be coded in C++ , which represents a certain requirement on the user and may not be beneficial if, e.g., an HMM needs to be estimated only once. However, for users working more or less regularly with HMMs, the use of TMB accelerates existing parameter estimation procedures without having to carry out major changes to R code that is already in use. Moreover, after finishing the estimation procedure, TMB obtains standard errors for the estimated parameters at a very low computational cost.

…ions. Overall, it is notable that the parameter estimation process is strongly kcelerated on the one hand. This applies even to small data sets, and the highest acceleration is obtained when only the gradient is supplied by TMB (instead of both gradient and Hessian). On the other hand, the standard errors obtained through TMB are very similar to the standard errors obtained by profiling the likelihood and bootstrapping while being (much) less computationally intensive. This is novel since Hessian-based CIs did not seem to be reliable in the past, as illustrated e.g. by Visser et al., (2000) .

↓ 此处生成下一段续写

黄色标出写作点位附近的原文;本页根据评测输入重排文本,不是原始 PDF 截图。

同一写作位置的成对对照全样本 AI 评审:没卡片更好

两组使用同一模型、同一写作任务和原稿上下文,仅比较是否提供检索文献片段。下方展示评测记录中的首次输出。

查看全样本 AI 评审理由(英文)

A = 无卡片 · B = 有卡片

Both outputs provide coherent continuations, but Output A fits the manuscript's argument much better. The draft is specifically about TMB for HMMs—discussing how it accelerates parameter estimation, the gradient/Hessian trade-off, and the reliability of standard errors. Output A directly addresses a practical limitation of this specific approach: that analytic gradients must be derived for each new HMM model, and this implementation cost may offset gains for single estimations. This mirrors the draft's earlier point about 'Some procedures need to be coded in C++...may not be beneficial if, e.g., an HMM needs to be estimated only once,' creating a nice bookend structure and adding substantive nuance about the gradient derivation being 'the most demanding part.' Output B, while not incorrect, drifts to a generic observation about other likelihood-based frameworks and bootstrap procedures. This is broader and less connected to the specific TMB/HMM context; it reads more like an opening to a new section rather than a continuation of the current argument about TMB's specific trade-offs. The draft's paragraph already established the bootstrap/SE comparison, so B adds less new information relevant to the immediate context.

Evidence

同一模型与写作位置 · 提供检索文献片段 · 首次输出

本次未获偏好

The same trade-off between computational cost and inferential reliability arises in other likelihood-based frameworks, where bootstrap procedures are often used to obtain standard errors when analytic expressions are unavailable or the parameter distribution is asymmetric.

提供给 Evidence 版本的文献片段

卡片 1 · Bootstrap inference when using multiple imputation

Many modern estimators require bootstrapping to calculate confidence intervals because either no analytic standard error is available or the distribution of the parameter of interest is nonsymmetric. It remains however unclear how to obtain valid bootstrap inference when dealing with multiple imputa…

展开完整文献摘录

Many modern estimators require bootstrapping to calculate confidence intervals because either no analytic standard error is available or the distribution of the parameter of interest is nonsymmetric. It remains however unclear how to obtain valid bootstrap inference when dealing with multiple imputation to address missing data. We present 4 methods that are intuitively appealing, easy to implement, and combine bootstrap estimation with multiple imputation. We show that 3 of the 4 approaches yield valid inference, but that the performance of the methods varies with respect to the number of imputed data sets and the extent of missingness. Simulation studies reveal the behavior of our approaches in finite samples. A topical analysis from HIV treatment research, which determines the optimal timing of antiretroviral treatment initiation in young children, demonstrates the practical implications of the 4 methods in a sophisticated and realistic setting. This analysis suffers from missing dat …

卡片 2 · merDeriv: Derivative Computations for Linear Mixed Effects Models with Application to Robust Standard Errors

While likelihood-based derivatives and related facilities are available in R for many types of statistical models, the facilities are notably lacking for models estimated via lme4. This is because the necessary statistical output, including the Hessian, Fisher information and casewise contributions…

展开完整文献摘录

While likelihood-based derivatives and related facilities are available in R for many types of statistical models, the facilities are notably lacking for models estimated via lme4. This is because the necessary statistical output, including the Hessian, Fisher information and casewise contributions to the model gradient, is not immediately available from lme4 and is not trivial to obtain. In this article, we describe merDeriv, an R package which supplies new functions to obtain analytic output from Gaussian mixed models. We discuss the theoretical results implemented in the code, focusing on calculation of robust standard errors via package sandwich. We also use the sleepstudy data to illustrate the package and to compare it to a benchmark from package lavaan.

卡片 3 · Inference by Stochastic Optimization: A Free-Lunch Bootstrap

Assessing sampling uncertainty in extremum estimation can be challenging when the asymptotic variance is not analytically tractable. Bootstrap inference offers a feasible solution but can be computationally costly especially when the model is complex. This paper uses iterates of a specially designed…

展开完整文献摘录

Assessing sampling uncertainty in extremum estimation can be challenging when the asymptotic variance is not analytically tractable. Bootstrap inference offers a feasible solution but can be computationally costly especially when the model is complex. This paper uses iterates of a specially designed stochastic optimization algorithm as draws from which both point estimates and bootstrap standard errors can be computed in a single run. The draws are generated by the gradient and Hessian computed from batches of data that are resampled at each iteration. We show that these draws yield consistent estimates and asymptotically valid frequentist inference for a large class of regular problems. The algorithm provides accurate standard errors in simulation examples and empirical applications at low computational costs. The draws from the algorithm also provide a convenient way to detect data irregularities.

卡片 4 · Estimation and Inference by Stochastic Optimization

In non-linear estimations, it is common to assess sampling uncertainty by bootstrap inference. For complex models, this can be computationally intensive. This paper combines optimization with resampling: turning stochastic optimization into a fast resampling device. Two methods are introduced: a res…

展开完整文献摘录

In non-linear estimations, it is common to assess sampling uncertainty by bootstrap inference. For complex models, this can be computationally intensive. This paper combines optimization with resampling: turning stochastic optimization into a fast resampling device. Two methods are introduced: a resampled Newton-Raphson (rNR) and a resampled quasi-Newton (rqN) algorithm. Both produce draws that can be used to compute consistent estimates, confidence intervals, and standard errors in a single run. The draws are generated by a gradient and Hessian (or an approximation) computed from batches of data that are resampled at each iteration. The proposed methods transition quickly from optimization to resampling when the objective is smooth and strictly convex. Simulated and empirical applications illustrate the properties of the methods on large scale and computationally intensive problems. Comparisons with frequentist and Bayesian methods highlight the features of the algorithms.

卡片 5 · Bootstrapping Clustered Data in R using lmeresampler

Linear mixed-effects models are commonly used to analyze clustered data structures. There are numerous packages to fit these models in R and conduct likelihood-based inference. The implementation of resampling-based procedures for inference are more limited. In this paper, we introduce the lmeresamp…

展开完整文献摘录

Linear mixed-effects models are commonly used to analyze clustered data structures. There are numerous packages to fit these models in R and conduct likelihood-based inference. The implementation of resampling-based procedures for inference are more limited. In this paper, we introduce the lmeresampler package for bootstrapping nested linear mixed-effects models fit via lme4 or nlme. Bootstrap estimation allows for bias correction, adjusted standard errors and confidence intervals for small samples sizes and when distributional assumptions break down. We will also illustrate how bootstrap resampling can be used to diagnose this model class. In addition, lmeresampler makes it easy to construct interval estimates of functions of model parameters.

模型报告的实际卡片作用

卡片 1 · fact

影响的输出:bootstrap procedures are often used to obtain standard errors when analytic expressions are unavailable or the parameter distribution is asymmetric

模型说明:The row supplied the specific conditions under which bootstrap inference substitutes for analytic standard errors, which the generated sentence uses to frame the comparison with TMB-based standard errors.

无 Evidence

同一模型与写作位置 · 不提供检索文献片段 · 首次输出

盲评更优

A practical limitation of the approach is that the acceleration depends on the availability of analytic gradients, which must be derived and implemented for each new model. For HMMs whose likelihood involves recursive filtering, this derivation is often the most demanding part of the implementation, and it may offset the computational gains when only a single estimation is required.

原卡片使用口径的记录

以下是此前仅比较“报告使用卡片且双方有正文”案例的诊断记录,口径与上方全样本 AI 评审不同。

模型盲评判定“没卡片更好”。下方保留评审原始理由(英文),供核对判断依据。

查看模型评审原始理由(英文)

Output A provides a coherent, grounded continuation that directly addresses the practical limitations of TMB for HMM parameter estimation mentioned in the draft. It specifically notes that analytic gradients must be derived and implemented for each new model, and that for HMMs with recursive filtering likelihoods, this derivation is demanding—connecting back to the draft's point about C++ coding requirements and the trade-off for single vs. repeated use. The claim about recursive filtering for HMMs is a natural extension of the draft's established context (HMMs, TMB, gradient/Hessian computation) without introducing unsupported external claims. Output B introduces a broader claim about 'other likelihood-based frameworks' and 'bootstrap procedures' being 'often used' when analytic expressions are unavailable or parameter distributions are asymmetric. This generalization is not supported by the draft or sources. The draft mentions bootstrapping only as a comparison method for standard errors obtained through TMB, not as a general practice in other frameworks. None of the sources establish this claimed pattern across 'other likelihood-based frameworks.' The sources discuss specific bootstrap methods in specific contexts (multiple imputation, mixed models, stochastic optimization), but do not support the sweeping claim that bootstrap procedures are 'often used' broadly when analytic expressions are unavailable. The phrase 'the same trade-off' also creates an unsupported equivalence between TMB's gradient/Hessian trade-off and unspecified trade-offs in other frameworks.

文献片段是输入材料;出现于此不代表输出使用了它,也不代表它能够支持全部主张。原文与检索片段经过截取;页面没有展示模拟分数或模拟 PDF。