ELVIA.Evidence Atlas
← Back to analysis

AI context

ELVIA analysis of: Inverse Reinforcement Learning with Switching Rewards and History Dependency for Characterizing Animal Behaviors — Problem 1: The forward boundary omits the first action likelihood

Original paper: Jingyang Ke; Feiyang Wu; Jiyi Wang; Jeffrey Markowitz; Anqi Wu. Inverse Reinforcement Learning with Switching Rewards and History Dependency for Characterizing Animal Behaviors. Proceedings of the 42nd International Conference on Machine Learning, vol. 267, 2025. https://proceedings.mlr.press/v267/ke25b.html
Source version: {'label': 'PMLR 267 / ICML 2025 published proceedings version', 'publisher_publication_date': '2025/10/06', 'pages': '29608-29625', 'landing_url': 'https://proceedings.mlr.press/v267/ke25b.html', 'pdf_url': 'https://raw.githubusercontent.com/mlresearch/v267/main/assets/ke25b/ke25b.pdf', 'accessed_utc': '2026-10-24T14:10:19.850554+00:00'}
Source location: Retained report, Problem 1: Problem 1 (The forward initialization omits a mode-dependent first emission).

Question: What does the recorded analysis establish about “The forward boundary omits the first action likelihood”?
Bounded finding:
The printed E-step yields wrong likelihood and posterior inside the model domain. Major central mathematical inference error; bounded to published specification.

Recorded check:
Assessment: Major. Appendix A.2, p. 14, defines \(\alpha_{t,z}=p(s_{1:t},a_{1:t},z_t=z\mid\widehat\theta)\) but initializes \(\alpha_{1,z}=p(z_1=z\mid\widehat\theta)\). The recursion starts with the current action likelihood at \(t=2\). The stated terminal likelihood is \(\sum_z\alpha_{T,z}\), and the terminal posterior uses \(\beta_{T,z}=1\).
By the displayed formula, the required initialization is \[
\alpha_{1,z}=p(s_1)p(z_1=z)\pi_z(a_1\mid s_1^L).\] A common initial-state factor can be dropped from normalized mode posteriors if handled consistently, but a mode-dependent action probability cannot. The example below sets \(p(s_1)=1\), eliminating that possible distraction.
Use three states \(S=\{o,u,v\}\), two actions \(A=\{a,b\}\), two modes \(\{A,B\}\), history length \(L=1\), discount \(\gamma=0.95\), and entropy temperature one. The initial state is \(o\), and the initial modes have probability \(1/2\) each. From \(o\), action \(a\) reaches \(u\) deterministically and action \(b\) reaches \(v\). Both \(u\) and \(v\) are absorbing under either action. The hidden-mode kernel is the identity at every state.
This kernel is a valid state-independent special case of the stated state-conditioned model; no strict-positivity or irreducibility premise is imposed in the paper. It also makes the mode-specific policy optimal for the full process, removing any separate question about anticipated future mode changes.
Set \[d=\frac{1-\gamma}{\gamma}\log3,
\qquad
r_A(o,u,v)=(0,d,0),\qquad
r_B(o,u,v)=(0,0,d).\] Rewards are bounded, real and state-only. At an absorbing state \(s\), entropy-regularized optimal value is \[V_z(s)=\frac{r_z(s)+\log2}{1-\gamma}.\] At \(o\), the difference between the two mode-A action values is \(\gamma d/(1-\gamma)=\log3\), with the opposite sign in mode B. The Boltzmann policy therefore has \[\pi_A(a\mid o)=\tfrac34,\qquad
\pi_B(a\mid o)=\tfrac14,\] and each action at \(u\) or \(v\) has probability \(1/2\) in either mode. These emissions are derived from the paper’s soft-policy construction, rather than assigned arbitrarily.
The independent parent script constructs the soft values and action probabilities and checks their Bellman residuals. The reported maximum residual is zero at the used floating precision, below \(10^{-12}\); the auxiliary calculation independently confirms the construction.
Observe \(\xi=((o,a),(u,a))\). The environment transition factor is one. Exact joint weights are \[\begin{array}{c|cc}
 &z_2=A&z_2=B\\ \hline
z_1=A&3/16&0\\
z_1=B&0&1/16
\end{array}\] and hence \[p(\xi)=\tfrac14,\qquad
p(z_2\mid\xi)=(\tfrac34,\tfrac14).\] The printed initialization gives \(\alpha_1=(1/2,1/2)\). Even applying the subsequent recurrence correctly gives \[\alpha_2=(1/4,1/4),\qquad
p_{\rm printed}(\xi)=\tfrac12,\qquad
p_{\rm printed}(z_2\mid\xi)=(\tfrac12,\tfrac12).\] Thus the sequence likelihood doubles and the terminal mode-A posterior differs by \(1/4\). This calculation uses only the unambiguous terminal condition; it does not depend on the separate problematic backward boundary expression on the same page.
With the displayed formula, \(\alpha_1=(3/8,1/8)\) and \(\alpha_2=(3/16,1/16)\), restoring the enumerated likelihood and posterior exactly. These fractions are independently evaluated with exact rational arithmetic in the independent output cited above.
The E-step posterior weights determine reward fitting, hidden-mode transition fitting, and the inferred behavioral segmentation in main Eqs. (1)–(4) and Appendix A.1 Eqs. (5)–(7). The printed recurrence therefore fails at a central inference step for an allowed model. This supports Major even though the omission is short and a correct intended factorization is available elsewhere.
A reinterpretation of \(\alpha_1\) as a pre-emission message would require the recursion to multiply the first action before proceeding; the printed formulas do not do that. The joint on p. 13 is internal counterevidence about intended correctness, not a validation of the conflicting boundary formula.
The inspected release is correct on this point: `gw5/swirl/swirl_func.py`, lines 171–182, initializes log-forward values as `log(pi0) + log_likes[0]`. Lines 184–200 use the next emission in the backward scan; lines 202–224 construct normalized marginals and wire the E-step. Analogous first-emission terms occur in the inspected labyrinth and spontaneous-behavior routes. No released or historical run is claimed to omit the first action.
A consistent backward recursion from the displayed formula is \[\beta_{t,z}
=P(s_{t+1}\mid s_t,a_t)
 \sum_{z'}P_z(z'\mid z,s_t)
 \pi_{z'}(a_{t+1}\mid s_{t+1}^L)\beta_{t+1,z'},
\qquad \beta_{T,z}=1.\] The printed p. 14 expression instead uses current-action and shifted state-conditioning indices, with a separate self-referential first-boundary line. Correcting all boundaries and indices to the joint resolves the specification. The forward correction is verified exactly on the finite case; no empirical performance repair or complete implementation rerun is certified.

Case-wide limitations:
- P1 — The forward boundary omits the first action likelihood — Counterevidence: Correct generative joint includes the factor.
- P1 — The forward boundary omits the first action likelihood — Counterevidence: Pinned release alpha0=log(pi0)+log_likes[0] includes it and uses next emissions backward.
- P1 — The forward boundary omits the first action likelihood — Counterevidence: The example uses betaT=1, avoiding the ambiguous separate backward boundary.
- P1 — The forward boundary omits the first action likelihood — Counterevidence: No historical empirical result is shown wrong.
- P2 — The M-step descends a positive expected log joint — Counterevidence: p13argmax states intended maximization.
- P2 — The M-step descends a positive expected log joint — Counterevidence: Released transition/emission losses minimize -expectedlogjoint/T; prior uses posteriorcounts.
- P2 — The M-step descends a positive expected log joint — Counterevidence: No loss reduction in actual historical runs is alleged.
- Limitations: No trained-model inference, author code execution, raw-data reproduction or historical code-to-result matching.
- Limitations: Animal preprocessing, neural traces, causal biology and complete statistical selection effects not independently verified.
- Limitations: External cited sources and later errata not comprehensively audited; IQ-Learn extension not independently rederived.
- Limitations: Extra OpenReview-only attachments unavailable; serialized datasets/weights not staged.
- Unresolved claim: Effect, if any, on reported empirical runs.
- Unresolved claim: Complete historical algorithm version and raw-data/model correspondence.
- Unresolved claim: General convergence and empirical validity of proposed repairs.
- Not performed: No trained-model inference, author code execution, raw-data reproduction or historical code-to-result matching.
- Not performed: Animal preprocessing, neural traces, causal biology and complete statistical selection effects not independently verified.
- Not performed: External cited sources and later errata not comprehensively audited; IQ-Learn extension not independently rederived.
- Not performed: Extra OpenReview-only attachments unavailable; serialized datasets/weights not staged.
- The original report's complete scope, counterevidence and unresolved questions are retained below.
- This import checks publication format and identity; it does not repeat scientific review.
- Independent human scientific review is pending; author adoption has not been requested.
Source problem ID: p1
Source report index: 1

Original source excerpts (verbatim):
This work presents the first IRL model to incorporate history-dependent policies and rewards to advance our understanding of complex, naturalistic decision-making in animals.
Source: {'label': 'PMLR 267 / ICML 2025 published proceedings version', 'publisher_publication_date': '2025/10/06', 'pages': '29608-29625', 'landing_url': 'https://proceedings.mlr.press/v267/ke25b.html', 'pdf_url': 'https://raw.githubusercontent.com/mlresearch/v267/main/assets/ke25b/ke25b.pdf', 'accessed_utc': '2026-10-24T14:10:19.850554+00:00'}
Locator: Abstract, PDF p. 1
Source PDF SHA-256: 06c8d215071059ebab2b73c8c396d0f3f6683b48ff8ba74ba9cfd5cdce1270be

Review status: Independent review pending
Case: icml2025-0159-inverse-reinforcement-learning-with-switching-rewards-and-history
Revision: 1
Record created: 2026-10-26T04:21:21.357774+00:00
Permalink: https://elvia-atlas.org/atlas/cases/icml2025-0159-inverse-reinforcement-learning-with-switching-rewards-and-history.html#problem-1
Versioned public record: https://elvia-atlas.org/atlas/evidence/icml2025-0159-inverse-reinforcement-learning-with-switching-rewards-and-history/records/icml2025-0159-inverse-reinforcement-learning-with-switching-rewards-and-history.r1.json
Canonical record SHA-256: b9fd430a8611650a486a9120054e54b5c2f97f9333de5d1b0d0b66cd0997accd
The page follows the latest revision; the versioned record identifies this snapshot.