# categorical-cem

Published articles for categorical-cem.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## A Correct CEM Update Can Assign Half Its Probability to Bad Plans

DevFeed: [A Correct CEM Update Can Assign Half Its Probability to Bad Plans](<https://devfeed.tech/articles/a-correct-cem-update-can-assign-half-its-probability-to-bad-plans-106118.md>)

Original publisher: [Read original article](<https://hackernoon.com/a-correct-cem-update-can-assign-half-its-probability-to-bad-plans?source=rss>)

Author: ym p

Published: 2026-10-29T07:55:34Z

Content type: article

Language: en

Sources: [HackerNoon](<https://devfeed.tech/sources/hackernoon.md>)

Topics: [Language models](<https://devfeed.tech/topics/language-models.md>)

Tags: [actions](<https://devfeed.tech/tags/actions.md>), [categorical-cem](<https://devfeed.tech/tags/categorical-cem.md>), [cem-distribution-fitting](<https://devfeed.tech/tags/cem-distribution-fitting.md>), [cem-sampling](<https://devfeed.tech/tags/cem-sampling.md>), [cost](<https://devfeed.tech/tags/cost.md>), [costs](<https://devfeed.tech/tags/costs.md>), [cross-entropy-method](<https://devfeed.tech/tags/cross-entropy-method.md>), [dependencies](<https://devfeed.tech/tags/dependencies.md>), [distribution](<https://devfeed.tech/tags/distribution.md>), [distributions](<https://devfeed.tech/tags/distributions.md>), [error](<https://devfeed.tech/tags/error.md>), [exploration](<https://devfeed.tech/tags/exploration.md>), [half](<https://devfeed.tech/tags/half.md>), [horizon](<https://devfeed.tech/tags/horizon.md>), [independent](<https://devfeed.tech/tags/independent.md>), [joint-probability](<https://devfeed.tech/tags/joint-probability.md>), [machine-learning](<https://devfeed.tech/tags/machine-learning.md>), [python](<https://devfeed.tech/tags/python.md>), [reinforcement-learning](<https://devfeed.tech/tags/reinforcement-learning.md>), [sequences](<https://devfeed.tech/tags/sequences.md>), [update](<https://devfeed.tech/tags/update.md>)

### AI overview

For a two-step task where only action-changing sequences have low cost, fitting separate categorical frequencies at each time step yields 50% probability on rejected sequences when a planner samples steps independently. The update correctly preserves each elite's per-step action frequencies but loses the relationship between steps; its product distribution has expected cost 5, while sampling uniformly from the two whole elite sequences has expected cost 0. Using one elite removes the bad combinations in this example but makes the unsmoothed distribution deterministic and unable to rediscover alternatives. Smoothing supports exploration but does not restore dependencies; that requires a joint model or different sampling scheme. The example isolates this fitting issue from world-model error and implements only an unsmoothed categorical update.

### Source excerpt

Explore why CEM planners can generate bad action sequences by fitting independent probabilities that ignore dependencies between actions.