Articles

Optimal Foraging TheoryA familiar patch and an untested one carry different returns, search costs and uncertainties.

A small bird leaves a nearly stripped berry twig toward another fruiting branch across an open gap.
Staying and moving both have costs when the current patch is running out.

What It Is

An animal feeding in one place eventually faces a decision: keep extracting the resources that remain, or spend energy searching somewhere else. Staying has a known return that may be declining. Leaving costs energy before there is any assurance of finding food.

Optimal foraging theory (OFT) models this resource-acquisition problem. Developed in behavioral ecology during the 1960s and 1970s, it examines what animals eat, where they search and when they move. The organism has finite energy, resources are unevenly distributed, and their locations are visible only through imperfect cues. A useful search must acquire resources before the reserves run out.

The objective is to maximize energy gained minus energy spent searching, without exceeding the available budget. The same shape of problem appears in startup survival: runway supplies the finite reserve, product-market fit is unevenly distributed across possible markets, search consumes runway and signals about fit are imperfect. Each is resource-constrained search under uncertainty. A forager's intake can be counted in calories, while what a startup learns in a month has no such unit.

A closer look

A choice under limited reserves

A choice under limited reservesInspect the current return branches into Keep using this patch; Spend resources searching. The article uses foraging to reason about exploration and exploitation; the useful choice depends on costs and changing returns.Inspect the current returnKeep using thispatchSpend resourcessearchingA choice under limited reservesInspect the current return branches into Keep using this patch; Spend resources searching. The article uses foraging to reason about exploration and exploitation; the useful choice depends on costs and changing returns.Inspect the currentreturnKeep using this patchSpend resourcessearching

The article uses foraging to reason about exploration and exploitation; the useful choice depends on costs and changing returns.

Read this diagram

Inspect the current return branches into Keep using this patch; Spend resources searching.

The Central Trade-Off

Exploitation extracts resources from a known location. The gain is known because the resource has been discovered. The organism is already there, so the energy cost is low. The risk is depletion.

Exploration searches for a new location. Travel and search raise the cost, while the possible gain remains unknown. The organism may find nothing and exhaust its energy.

For a forager, the comparison can be written in units of energy:

E_total = E_current_patch × P_patch_remains - C_extraction
        vs
E_total = E_new_patch × P_find_patch - C_search - C_travel

Where:
  E = expected energy gain
  P = probability
  C = cost in energy units

Leaving is worthwhile when the expected return from a new search exceeds the return from continuing in the current patch. The marginal value theorem gives a rule for that transition.

The Marginal Value Theorem

An organism should leave a patch when its marginal rate of energy gain falls below the average rate available across the habitat. The relevant quantity is the return on the next interval of effort, rather than the total already collected.

Energy ↑
Gain   |     ╱─────  (Diminishing returns in patch)
       |   ╱
       | ╱
       |╱___________________
       0    Time spent in patch →

Leave when: (dE/dt)_patch < (E/T)_average_habitat

For a startup, the corresponding comparison is information gained per month of runway. Continue in the current direction while the next month there is expected to teach more than the average month after a pivot. When local insights diminish and another direction is expected to teach more, pivot.

The rate alone does not settle the decision. Confidence and the cost of validation also affect the expected return. Suppose a founder compares the two directions and finds this:

MetricCurrent directionNew directionImplication
What a month teachesLittle that is newMuch more, if the direction is realFavors pivoting
Confidence in directionFairly highLowFavors staying because uncertainty is costly
Runway required to validateAbout 2 monthsAbout 4 monthsFavors staying because validation costs less

An expected-value judgment combines these factors under the remaining resource constraint.

When to leave a patchInteractive example
Gathered from the patchBest time to leaveTravellingIn the patch30 minutesGathered from the patchBest time to leaveTravellingIn the patch30 minutes
4 minutes
12 minutes

Staying 12 minutes keeps working a patch that now yields more slowly than moving on would. That earns 85% of the best overall rate, which comes from leaving at about 6 minutes.

The curve is what one patch has yielded by a given time, and it flattens as the patch runs down. The straight line runs from setting out to leaving, so its steepness is the overall rate with travel counted. The curve's shape is drawn for illustration.

Patch Choice and Search Patterns

A search can use no cues, environmental cues or other searchers' results. Each changes how much space must be examined.

StrategySearch behaviorCostEfficiency
Random searchExplore space uniformlyGrows with the whole areaLow: empty and resource-rich areas receive equal attention
Informed searchConcentrate where cues predict resourcesGrows only with the area the cues point toHigh when cues correlate with resources
Social informationObserve where others found resourcesWatching, then travelingVery high: search begins from confirmed resources

The mosquito model combines heat, CO2 and movement to predict where blood is available. That is informed search. Five mosquitoes already feeding at a location provide social information: blood has been found there, rather than merely predicted from a cue.

Startups have corresponding search strategies:

StrategyExampleInformation/cost ratio
RandomBuild random features and hope something worksVery low
InformedBuild from user research and behavioral dataMedium
SocialCopy a validated model with a small differentiationHigh
HybridValidate similarly to competitors, then differentiate where sensors reveal opportunityVery high

The hybrid approach combines the social and the informed strategies. Others' product-market fit narrows the search space. Further observation can then locate an underserved niche inside that validated area. Following a demonstrated gradient and testing cheaply before committing resources preserves more of the search budget than beginning randomly.

Sensor Reliability and Search Efficiency

Search efficiency depends on how accurately a cue predicts a resource. Two rates describe a cue. The true-positive rate is how often the cue is present when the resource is there. The false-positive rate is how often the cue is present when the resource is not.

A larger difference between the true-positive and false-positive rates lowers expected search cost, because fewer visits are wasted. When the two rates are equal, the cue tells the searcher nothing. Poor calibration sends the organism to locations where the resource is absent, consuming energy without a return.

For startup sensors, the comparison is:

SensorSignal despite no PMFCalibration quality
Behavioral usage dataSeldomHigh
Payment behaviorRarelyVery high
Word-of-mouth growthSometimesHigh
Expressed interestOftenVery poor
Hypothetical commitmentMost of the timeExtremely poor

Expressed interest and hypothetical commitment appear readily where there is no fit. A search steered by those two is drawn toward locations where the resource is absent, which is systematic misdirection. Integrating multiple sensors reduces false positives and makes the search better match the resource distribution.

The Giving-Up Time Problem

Leaving too early discards information still available in the patch. Staying too long spends the remaining reserve on a depleted location. The optimal giving-up time balances the opportunity cost of staying against travel cost and the risk that the next patch is worse. The cost of staying is what better patches would have yielded in the same time, and it grows the longer the stay. The cost of leaving is the travel plus the chance that the next patch turns out worse. The time to give up is when the first has grown to match the second.

For a startup, the persistence rule has the same form. Persist while the current direction is expected to teach more over the remaining runway than a new direction would over what is left of that runway after the switch. The switch has a cost of its own, paid in runway: the context switch and a new learning curve.

Four judgments are required. Is the current direction still producing insights? What learning rate is realistically available in another direction? How much runway will the switch consume before reaching an equivalent information state? How much runway remains to carry out either strategy?

A premature pivot abandons a useful gradient before its local information has been extracted. A late pivot consumes runway after that information is exhausted. Timing depends on an honest estimate of all four variables.

Integration with Mechanistic Framework

A forager's decision is an expected value comparison under a resource constraint:

EV=(Eresource×Pfind)−CsearchEV = (E_{\text{resource}} \times P_{\text{find}}) - C_{\text{search}}

Execute if EV>0EV > 0 and EV>EValternativeEV > EV_{\text{alternative}}.

The expected-value account of motivation weighs the same kinds of input: the size of a reward, its probability, and the effort and delay of getting it. Both allocate resources under uncertainty.

Prevention architecture applies the same approach to attention. Removing frequent, low-value temptations such as phones and notifications excludes them from the search space. This resembles habitat selection: avoiding predator-rich or resource-poor places confines the search to areas with a higher yield.