Skip to content

Frame (Artificial intelligence)

Frames are an artificial intelligence data structure used to divide knowledge into substructures by representing "stereotyped situations".

Version
v1 · 2026-09-28 · History
Domain-specific #
7650
Origin domain
Computing And Information Systems

Core Idea

In artificial intelligence, a frame is a structured knowledge representation for a stereotyped object, event, or situation. It organizes what is normally expected into named slots, then instantiates or specializes that structure by filling, inheriting, or overriding slot values. A frame can hold facts, default values, constraints or facets on values, references to other frames, and procedural attachments. “If-needed” procedures can compute a value when queried, while “if-added” procedures can propagate consequences when a slot changes.

How would you explain it like I'm…

The Fill-In Guess Form

When you hear "birthday party," you already guess there will be cake, presents, and singing. A computer can keep a little form like that, with blanks for each thing it expects. When it learns about one real party, it fills in the blanks. It can also change a guess, like "this party had pie, not cake."

The Expectation Template

In artificial intelligence, a frame is a way for a computer to store what it usually expects about a kind of thing or situation. It has named slots, like 'waiter,' 'menu,' and 'paying the bill' for a restaurant. Some slots start with default guesses, which can be replaced when the computer learns the real details. A more specific frame, like 'pizza place,' can borrow everything from 'restaurant' and just change what's different. Frames can even have little rules attached that figure out a slot's value when it's needed.

Slot-Based Stereotype Structure

An AI frame is a structured representation of a stereotyped object, event, or situation, organized into named slots. Slots can hold facts, default values, constraints on allowed values, links to other frames, and attached procedures—'if-needed' ones compute a value when asked, 'if-added' ones react when a value changes. Frames form hierarchies, so a specialized frame inherits expectations from a general one but can override exceptions. Defaults let the system reason with incomplete information without claiming they are always true. A frame is not a picture border or a story's point of view, and while it resembles an object-oriented class, frames emphasize inspectable knowledge and reasoning rather than hiding data and controlling behavior.

 

A frame is a knowledge-representation structure for a stereotyped situation, object, or event. Its stable upper-level content is a schema, and its slots, or terminals, accept case-specific values. Slots can carry values, defaults, facets or constraints, pointers to other frames, and procedural attachments. If-needed procedures compute values on demand, and if-added procedures propagate the effects of updates. Frames are arranged in subsumption hierarchies, so specialized frames inherit expectations and override them where an instance departs from the stereotype. Activating a frame narrows reasoning to a context. A restaurant frame, for example, supplies expected participants and stages before anything is observed, and a particular visit fills or revises them. Querying, inheritance, spreading activation, and attached procedures make frames an operational reasoning mechanism rather than a passive record. A frame is not a visual border, a narrative viewpoint, or a mere database row. It overlaps with object-oriented classes but prioritizes inspectable knowledge and default reasoning over encapsulation.

Scope of Application

An AI frame applies where a stereotyped object, event, or situation is represented by named slots whose fillers can be inherited, defaulted, constrained, computed, or overridden for a particular instance. - Stereotyped-situation modeling. Recurring contexts such as a restaurant visit are encoded with expected participants, stages, and relations that an instance can complete or revise. - Object and event representation. Stable attributes occupy a general schema while case-specific terminals or slots hold values for the represented entity or occurrence. - Frame-language knowledge bases. Languages such as KRL and KL-ONE organize frames into reusable, machine-processable representation systems. - Subsumption hierarchies. Specialized frames inherit slots and default fillers from broader frames while adding or overriding narrower expectations.

Clarity

An AI frame separates an expected situation structure from the evidence supplied by one instance. Defaults in inherited slots are defeasible expectations, not assertions that every restaurant visit, patient encounter, or device has the stereotyped value. The name also distinguishes a knowledge-representation frame from a record that merely has named fields.

Manages Complexity

A knowledge base may contain many facts about objects and recurring situations, most of which are irrelevant to the case currently being interpreted. A frame compresses that sprawl into a stereotyped schema with a small set of named slots, default fillers, constraints, references, and attached procedures. Reasoning can therefore stay within the activated context instead of searching every proposition in the knowledge base.

Abstract Reasoning

A frame supports schema-to-instance completion. From recognizing a stereotyped situation to activating its slots, inherited defaults, constraints, and attached procedures, a reasoner can predict what information should be present next and identify which fillers remain unknown. Explicit evidence for the instance then replaces or overrides defaults; the inference is defeasible because an exceptional case may legitimately depart from the stereotype. Inheritance enables an order-sensitive diagnostic. Frame selection itself can be tested.

Knowledge Transfer

Within artificial-intelligence knowledge representation, frames transfer literally across stereotyped objects, events, and situations when the representation preserves named slots, defaults, constraints, inheritance, overrides, links, and procedural attachments. The cargo that carries intact is the schema–instance distinction and defeasible completion: activate a frame, infer expected fillers, replace defaults with case evidence, and trace inherited or computed values when a conflict appears. Beyond frame systems, the honest case is (B) shared schema mechanism.

Relationships to Other Abstractions

Local relationship map for Frame (Artificial intelligence)Parents appear above the current abstraction, mutual partners to the right, and children below. Node labels state whether each abstraction is prime or domain-specific; colors identify relation types.Frame (Artificialintelligence)DOMAINPrime abstraction: Representation — is a kind ofRepresentationPRIME

Current abstraction Frame (Artificial intelligence) Domain-specific

Parents (1) — outgoing typed relations

  • Frame (Artificial intelligence) is a kind of Representation Prime

    The target is a recurring object, event, or situation; the distinct medium is a frame schema composed of named slots, fillers, constraints, links, defaults, and procedures.

Hierarchy path (1) — routes to 1 parentless root

Neighborhood in Abstraction Space

Frame (Artificial intelligence) sits in a sparse region of the domain-specific corpus (63rd percentile for distinctiveness): few abstractions share its structure, so a faithful description tends to retrieve it precisely.

Family — Unclustered & Miscellaneous (3155 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-11-14