AI Glossary / Graphs and symbolic AI / Intermediate

Factored representation

Definition

A factored representation describes a state using a set of variables or features and their values. Instead of treating each situation as an indivisible label, it exposes components such as location, operating mode and available capacity. Different states can then share some components while differing in others.

What it means

Suppose an agent distinguishes situations only as State17 and State18. Those labels do not reveal what changed. A factored description might show that location and load stayed the same while battery level changed. This can make rules, transitions and constraints easier to express and inspect.

Factoring a state into variables does not make those variables statistically independent. A vehicle's location, fuel level and reachable destinations may be closely related. It also does not necessarily reduce the number of possible states: many combinations of feature values can still exist. The benefit comes from exposing structure that a model or algorithm may exploit.

How it works

Choose variables that capture distinctions relevant to the task. Give each variable a domain, such as a set of locations, a Boolean status or a numerical range. A fully specified state assigns one value to every state variable. Constraints may exclude combinations that are impossible or invalid.

Actions and observations can then be described in terms of those components. An action might require certain feature values and change only a subset. A goal might mention only the variables that matter to success. An uncertain belief can refer to multiple possible assignments or a distribution over them.

The representation should preserve information needed for decisions. If two situations require different actions but receive the same feature values, the encoding may be too coarse. Conversely, including irrelevant detail can enlarge the problem without improving decisions. Factoring is therefore a modeling choice, not merely a change in file format.

Three practical examples

1. A delivery robot represents its location, load status and battery band separately. A movement action can update location and battery without redefining every other aspect of the robot's state.

2. A scheduling model uses variables for task start times and assigned machines. Constraints describe allowed combinations, making resource conflicts explicit rather than hiding each complete schedule behind a unique label.

3. A support workflow stores request stage, required-document status and reviewer availability. A rule can identify eligible next steps using these fields, provided their definitions match the real process.

Think of it this way

Think of describing a suitcase by destination tag, weight category and whether it is checked in, instead of assigning one mysterious code to every possible suitcase situation. The fields reveal similarities and differences. The analogy has limits: a good AI state representation must retain the information its decision process needs, and the separate fields may remain strongly dependent.

Worked example

Consider three state variables for a small robot: Location is A, B or C; Load is Empty or Full; Battery is Low or High. Before constraints, the representation allows 3 × 2 × 2 = 12 combinations. One state is (A, Full, High).

Define a simplified MoveAB action with preconditions Location = A and Battery = High. Its effect is Location = B and Battery = Low, while Load remains unchanged. Applied to (A, Full, High), it produces (B, Full, Low). The same action description also applies to (A, Empty, High), producing (B, Empty, Low).

This reuses one transition description across two load settings. It does not assert that load has no effect on movement in a real robot; that is an explicit simplification of this teaching model. If heavy loads change energy use or eligibility, the action model must include that relationship. A goal Location = B accepts either load and battery value unless additional goal conditions are specified.

Illustrative case study

Fictional case study: Linden Dispatch initially gives each workflow situation a separate numbered status. Staff struggle to distinguish whether a delay concerns missing documents or unavailable reviewers. The team replaces the single opaque status with defined fields and explicit allowed combinations.

During review, it discovers that one proposed field merges two cases requiring different follow-up actions. The team separates those cases before automating transitions. The scenario illustrates how representation choices affect reasoning clarity; it makes no claim that the redesign reduced processing time or solved every workflow exception.

Common misconceptions and mistakes

A factored representation does not imply independent features, independent transitions or a product-form probability distribution. Those are additional modeling assumptions. Nor does a compact state description guarantee a small state space: twenty binary variables already permit over a million assignments before constraints.

Leaving a feature unknown is also different from assigning it a default value. If uncertainty matters, the system must represent what is unknown appropriately. Finally, an algorithm can ignore the internal structure and still treat whole assignments as atomic search nodes. Exposing structure helps only when the subsequent reasoning uses it correctly.

Business use

For business applications, factoring can make rules reusable and explanations easier to audit. Define variables with clear ownership, valid values and update rules. Check that combined values correspond to meaningful business states and that integrations do not silently reinterpret them.

Review whether the chosen fields are sufficient for the next decision, including relevant history when present values alone are inadequate. Document which relationships are constraints, which are probabilistic assumptions and which are simplifications. Estimate both representation size and the computational demands of solving the resulting problem; readable fields do not remove combinatorial complexity.

People also ask

Is every spreadsheet a factored AI model?

Columns can provide a factored description, but their presence alone does not define a state model, transition rules or an AI reasoning process.

Does factoring reduce twelve possible states to three?

No. Three variables can jointly describe twelve assignments, as in the worked example. Variable count and state count are different.

Can continuous values be used?

Yes. Features may be real-valued, but this changes the domain and may require algorithms appropriate for continuous state spaces.

Check your understanding

Why can the worked MoveAB rule apply to both empty and full robots?

Answer: Its stated preconditions do not restrict Load, and its effects leave Load unchanged. That reuse is valid within the simplified model; real load-dependent requirements would need to be added explicitly.

Related terms

  • Feature
  • State space
  • Atomic representation
  • Structured representation
  • State variable
  • constraint
  • action model
  • partial observability
  • factored Markov decision process

Learn next

Describe a familiar workflow using three or four variables, then enumerate possible combinations and exclude invalid ones. Write one action's preconditions and effects, checking whether omitted features can change its real-world outcome.

More in Graphs and symbolic AI

  • Fact - A fact, in a symbolic knowledge system, is an assertion treated as true for the purposes of reasoning.
  • Factor - A factor, in probabilistic graphical-model inference, is a function that assigns a numerical value to each combination of values of some variables.
  • Factored frontier - Factored frontier is an approximate inference algorithm for dynamic Bayesian networks.
  • Factorial HMM - A factorial hidden Markov model, or factorial HMM, represents a time-varying hidden state as several component state variables rather than one categorical...
  • Factoring - Factoring, in automated logical reasoning, is an inference rule that combines literals of the same sign within one clause when a substitution makes them...
  • Feed-forward network - A feed-forward network is a neural network whose prediction computation moves through a directed structure without recurrent cycles.

Sources

Primary source: Poole and Mackworth, “The Agent Function,” including feature-based belief-state and controller representations: https://artint.info/2e/html2e/ArtInt2e.Ch2.S2.SS1.html . The robot state space, action trace and fictional workflow are original teaching examples. Factoring here concerns the representation of state, not an independence approximation.

Previous: Factored Language Model Next: Factorial design

  • Home
  • Daily AI Updates
  • Blog
  • AIFBL Academy
  • AI Glossary
  • Products and Tools
  • Store
  • Free CFO AI Prompt Pack
  • About Shihan Sheriff
  • Privacy Policy
  • Terms of Use
  • Refund Policy
  • Cookie Policy
  • Earnings Disclaimer