Branch Predictor Bias-Free Filtering for Deeper Correlation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current branch predictors, especially those with moderate hardware budgets, are limited in predicting branch directions due to restricted correlation capabilities over larger distances, leading to increased access latencies and power consumption when attempting to track more branches.

Innovation Solution

A branch predictor apparatus that filters biased conditional branches and tracks only the latest occurrences of non-biased branches, allowing for deeper correlation analysis and improved prediction accuracy by using a biased branch filter and correlation element within a branch history buffer, along with a neural-based perceptron predictor.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If branch prediction hardware budget is increased to track more branches over larger distances, then prediction accuracy is improved, but access latency and power consumption increase

Engineering Contradiction:
Improveprediction accuracyVSAvoidpower consumption
Core Design Contradiction:
Measurement precisionVSUse of energy by moving object

Solution Approach 1:

The patent extracts and removes biased branches from the branch history buffer, keeping only non-biased branches. This selective extraction reduces the number of entries that need to be tracked and correlated, thereby reducing hardware budget, access latency, and power consumption while maintaining prediction accuracy for the most relevant branches.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent applies different treatment to different types of branches: biased branches are filtered out while non-biased branches are retained and tracked. This local differentiation optimizes resource allocation by focusing hardware resources on tracking only the branches that provide meaningful correlation signals.

Inventive Principle:
Principle #3Local quality

2Measurement precision

If branch prediction hardware budget is increased to track more branches over larger distances, then prediction accuracy is improved, but access latency increases

Engineering Contradiction:
Improveprediction accuracyVSAvoidaccess latency
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

By extracting only non-biased branches from the history buffer, the patent reduces the total number of entries that need to be searched and correlated. This smaller, filtered set reduces access latency while maintaining the ability to capture long-distance correlations that improve prediction accuracy.

Inventive Principle:
Principle #2Taking out (Extraction)

3Use of energy by moving object

If moderate hardware budget (32-64 KB) is used in branch predictor, then power consumption is reduced, but correlation capability over large distances is limited

Engineering Contradiction:
Improvepower consumptionVSAvoidprediction accuracy
Core Design Contradiction:
Use of energy by moving objectVSMeasurement precision

Solution Approach 1:

The patent extracts only the most valuable branch information (non-biased branches) from the instruction stream, creating a compact but highly effective history buffer. This selective filtering allows moderate hardware budgets to achieve better prediction accuracy by focusing resources on branches that provide meaningful correlation signals over long distances.

Inventive Principle:
Principle #2Taking out (Extraction)

4Measurement precision

If larger data structures are used to track more branches, then prediction accuracy is improved, but training time for neural-based perceptron predictors increases

Engineering Contradiction:
Improveprediction accuracyVSAvoidtraining time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

By extracting only non-biased branches into the history buffer, the patent creates a smaller, more focused training dataset for neural-based perceptron predictors. This reduced dataset requires less training time while maintaining the ability to capture long-distance correlations, as biased branches do not provide useful correlation signals.

Inventive Principle:
Principle #2Taking out (Extraction)

Data Source

PatentUS9952870B2Apparatus and method for bias-free branch prediction
Publication Date: 2018.04.24 WISCONSIN ALUMNI RES FOUND
  • US9952870B2 patent drawing
  • US9952870B2 patent drawing
  • US9952870B2 patent drawing

AI summary

An apparatus and method for filtering biased conditional branches in a branch predictor in favor of non-biased conditional branches are disclosed. Biased conditional branches, which are consistently skewed toward one direction or outcome, are filtered such that an increased number of non-biased conditional branches which resolve in both directions may be considered. As a result, more useful branches may be captured over larger distances, thereby providing correlations deeper in a global history. In addition, by tracking only the latest occurrences of non-biased conditional branches using a recency stack structure, even more distant branch correlations may be made.