Randy L. Buckner

40 papers B 1Misc 1Journal 36Unranked 2
YearRankTypeTitle / Venue / Authors
2025 J jnl
J. Open Source Softw.
Daniel J. Asay, Timothy M. O'Keefe, Randy L. Buckner, Ross W. Mair
2023 J jnl
NeuroImage
Maxwell L. Elliott, Lindsay C. Hanford, Aya Hamadeh, Tom Hilbert, Tobias Kober, Bradford C. Dickerson, Ross W. Mair, Mark C. Eldaief, Randy L. Buckner
2021 J jnl
NeuroImage
Meher R. Juttukonda, Binyin Li, Randa Almaktoum, Kimberly A. Stephens, Kathryn M. Yochim, Essa Yacoub, Randy L. Buckner, David H. Salat
2019 J jnl
NeuroImage
Susan Y. Bookheimer, David H. Salat, Melissa Terpstra, Beau M. Ances, Deanna M. Barch, Randy L. Buckner, Gregory C. Burgess, Sandra W. Curtiss, Mirella Diaz-Santos, Jennifer Stine Elam, Bruce Fischl, Douglas N. Greve, Hannah A. Hagy, Michael P. Harms, Olivia M. Hatch, Trey Hedden, Cynthia Hodge, Kevin C. Japardi, Essa Yacoub
2018 J jnl
NeuroImage
Leah H. Somerville, Susan Y. Bookheimer, Randy L. Buckner, Gregory C. Burgess, Sandra W. Curtiss, Mirella Dapretto, Jennifer Stine Elam, Michael S. Gaffrey, Michael P. Harms, Cynthia Hodge, Sridhar Kandala, Erik K. Kastman, Thomas E. Nichols, Bradley L. Schlaggar, Stephen M. Smith, Kathleen M. Thomas, Essa Yacoub, David C. Van Essen, Deanna M. Barch
2017 J jnl
NeuroImage
Paul M. Thompson, Ole A. Andreassen, Alejandro Arias-Vasquez, Carrie E. Bearden, Premika S. Boedhoe, Rachel M. Brouwer, Randy L. Buckner, Jan K. Buitelaar, Kazima B. Bulayeva, Dara M. Cannon, Ronald A. Cohen, Patricia J. Conrod, Anders M. Dale, Ian J. Deary, Emily L. Dennis, Marcel A. de Reus, Sylvane Desrivières, Danai Dima, Gary Donohoe, Simon E. Fisher, Jean-Paul Fouche, et al.
2016 J jnl
NeuroImage
Qiuyun Fan, Thomas Witzel, Aapo Nummenmaa, Koene R. A. Van Dijk, John D. Van Horn, Michelle K. Drews, Leah H. Somerville, Margaret A. Sheridan, Rosario M. Santillana, Jenna Snyder, Trey Hedden, Emily E. Shaw, Marisa O. Hollinshead, Ville Renvall, Roberta Zanzonico, Boris Keil, Stephen F. Cauley, Jonathan R. Polimeni, M. Dylan Tisdall, Randy L. Buckner, Van J. Wedeen, Lawrence L. Wald, Arthur W. Toga, Bruce R. Rosen
2016 J jnl
NeuroImage
M. Dylan Tisdall, Martin Reuter, Abid Y. Qureshi, Randy L. Buckner, Bruce Fischl, André J. W. van der Kouwe
2015 J jnl
NeuroImage
Rebecca Shafee, Randy L. Buckner, Bruce Fischl
2015 J jnl
NeuroImage
Martin Reuter, M. Dylan Tisdall, Abid Y. Qureshi, Randy L. Buckner, André J. W. van der Kouwe, Bruce Fischl
2014 J jnl
NeuroImage
Randy L. Buckner, B. T. Thomas Yeo
2014 J jnl
NeuroImage
B. T. Thomas Yeo, Fenna M. Krienen, Michael W. L. Chee, Randy L. Buckner
2014 J jnl
Brain Connect.
Qiuyun Fan, Aapo Nummenmaa, Thomas Witzel, Roberta Zanzonico, Boris Keil, Stephen F. Cauley, Jonathan R. Polimeni, M. Dylan Tisdall, Koene R. A. Van Dijk, Randy L. Buckner, Van J. Wedeen, Bruce R. Rosen, Lawrence L. Wald
2012 J jnl
NeuroImage
Koene R. A. Van Dijk, Mert R. Sabuncu, Randy L. Buckner
2012 J jnl
NeuroImage
Randy L. Buckner
2010 J jnl
J. Cogn. Neurosci.
Daniel S. Marcus, Anthony F. Fotenos, John G. Csernansky, John C. Morris, Randy L. Buckner
2010 J jnl
PLoS Comput. Biol.
Jorge Sepulcre, Hesheng Liu, Tanveer Talukdar, Iñigo Martincorena, B. T. Thomas Yeo, Randy L. Buckner
2009 Misc conf
ICASSP
Archana Venkataraman, Koene R. A. Van Dijk, Randy L. Buckner, Polina Golland
2009 J jnl
NeuroImage
Bruce Fischl, Allison Stevens, Niranjini Rajendran, B. T. Thomas Yeo, Douglas N. Greve, Koen Van Leemput, Jonathan R. Polimeni, Sita Kakunoori, Randy L. Buckner, Jennifer L. Pacheco, David H. Salat, Jennifer Melcher, Matthew P. Frosch, Bradley T. Hyman, Patricia Ellen Grant, Bruce R. Rosen, André J. W. van der Kouwe, Graham C. Wiggins, Lawrence L. Wald, Jean Augustinack
2009 J jnl
NeuroImage
David H. Salat, Douglas N. Greve, Jennifer L. Pacheco, Brian T. Quinn, Karl G. Helmer, Randy L. Buckner, Bruce Fischl
2007 J jnl
IEEE Trans. Medical Imaging
Peng Yu, Patricia Ellen Grant, Yuan Qi, Xiao Han, Florent Ségonne, Rudolph Pienaar, Evelina Busa, Jenni Pacheco, Nikos Makris, Randy L. Buckner, Polina Golland, Bruce Fischl
2007 J jnl
NeuroImage
Theodore D. Satterthwaite, Leonard Green, Joel Myerson, Jamie Parker, Mohana Ramaratnam, Randy L. Buckner
2007 J jnl
Neuroinformatics
Christine Fennema-Notestine, Anthony Collins Gamst, Brian T. Quinn, Jenni Pacheco, Terry L. Jernigan, Leon Thal, Randy L. Buckner, Ron Killiany, Deborah Blacker, Anders M. Dale, Bruce Fischl, Bradford C. Dickerson, Randy L. Gollub
2007 J jnl
J. Cogn. Neurosci.
Daniel S. Marcus, Tracy H. Wang, Jamie Parker, John G. Csernansky, John C. Morris, Randy L. Buckner
2007 J jnl
Neuroinformatics
Daniel S. Marcus, Timothy R. Olsen, Mohana Ramaratnam, Randy L. Buckner
2007 J jnl
NeuroImage
Randy L. Buckner, Justin L. Vincent
2006 J jnl
NeuroImage
Rahul Desikan, Florent Ségonne, Bruce Fischl, Brian T. Quinn, Bradford C. Dickerson, Deborah Blacker, Randy L. Buckner, Anders M. Dale, Ralph Paul Maguire, Bradley T. Hyman, Marilyn S. Albert, Ronald J. Killiany
2006 conf
CVPR Workshops
Peng Yu, Xiao Han, Florent Ségonne, Rudolph Pienaar, Randy L. Buckner, Polina Golland, Patricia Ellen Grant, Bruce Fischl
2005 B conf
CBMS
Jorge Jovicich, Mirza Faisal Beg, Steve Pieper, Carey E. Priebe, Michael I. Miller, Randy L. Buckner, Bruce R. Rosen
2005 J jnl
J. Cogn. Neurosci.
Brenda A. Kirchhoff, Melissa L. Schapiro, Randy L. Buckner
2004 J jnl
NeuroImage
Randy L. Buckner, Denise Head, Jamie Parker, Anthony F. Fotenos, Daniel S. Marcus, John C. Morris, Abraham Z. Snyder
2004 J jnl
NeuroImage
Mark E. Wheeler, Randy L. Buckner
2003 J jnl
NeuroImage
Deanna M. Barch, Jennifer R. Mathews, Randy L. Buckner, Luigi Maccotta, John G. Csernansky, Abraham Z. Snyder
2003 J jnl
NeuroImage
Kristina M. Visscher, Francis M. Miezin, James E. Kelly, Randy L. Buckner, David I. Donaldson, Mark P. McAvoy, Vidya M. Bhalodia, Steven E. Petersen
2003 J jnl
NeuroImage
Pascale Michelon, Abraham Z. Snyder, Randy L. Buckner, Mark P. McAvoy, Jeffrey M. Zacks
2002 conf
MICCAI (1)
Polina Golland, Bruce Fischl, Mona Spiridon, Nancy Kanwisher, Randy L. Buckner, Martha Elizabeth Shenton, Ron Kikinis, Anders M. Dale, W. Eric L. Grimson
2002 J jnl
NeuroImage
E. Darcy Burgund, Hyunseon Christine Kang, James E. Kelly, Randy L. Buckner, Abraham Z. Snyder, Steven E. Petersen, Bradley L. Schlaggar
2001 J jnl
NeuroImage
Erica D. Palmer, Howard J. Rosen, Jeffrey G. Ojemann, Randy L. Buckner, William M. Kelley, Steven E. Petersen
2001 J jnl
NeuroImage
Todd S. Braver, Deanna M. Barch, William M. Kelley, Randy L. Buckner, Neal J. Cohen, Francis M. Miezin, Abraham Z. Snyder, John M. Ollinger, Erbil Akbudak, Thomas E. Conturo, Steven E. Petersen
2001 J jnl
NeuroImage
Luigi Maccotta, Jeffrey M. Zacks, Randy L. Buckner
redb/extractors/decompiler/bninja/similarity/minhasher.py
← Index redb/extractors/decompiler/bninja/similarity/minhasher.py python
import logging
import random
from enum import Enum

from ..analysis.medium_level_normalization import MediumLevelNormalization

try:
    from .minhashcustom import MinHashCustom
    from ..analysis.low_level_normalization import LowLevelNormalization
except ImportError:
    # Fallback to absolute imports (for multiprocessing spawned processes)
    from redb.extractors.decompiler.bninja.similarity.minhashcustom import MinHashCustom
    from redb.extractors.decompiler.bninja.analysis.low_level_normalization import LowLevelNormalization

## Values for this configuration were extracted from https://github.com/danielplohmann/mcrit/blob/main/mcrit/config/MinHashConfig.py#L10
# Length in number of Shingles of which a minhash consists
# this value represents the length of sha256sum hash truncated
MINHASH_SIGNATURE_LENGTH: int = 64
# Number of bits per signature element (1-32 bits)
MINHASH_SIGNATURE_BITS: int = 8


class TokenKind(Enum):
    LLIL = "llil"
    TYPED_LLIL = "typed_llil"
    MLIL = "mlil"
    TYPED_MLIL = "typed_mlil"


class MinHasher:
    # stick to the default method
    MINHASH_STRATEGY_HASH_ALL = 1

    def __init__(self, seed, il_function, kind: TokenKind = TokenKind.LLIL):
        self._minhash_seeds = []
        self.il_func = il_function
        self.kind = kind
        self._minhash_permutation = []
        self._signature_segments = []
        self._initMinhashing(seed)

    def _initMinhashing(self, MINHASH_SEED=None):
        random.seed(MINHASH_SEED)
        # init sequence of seeds
        self._minhash_seeds = [
            random.randint(0, MinHashCustom.getHashMax()) for _ in range(MINHASH_SIGNATURE_LENGTH)
        ]

    def make_ngrams(self, tokens, n=3):
        """Take the ngrams of the IL we try to pass into the functions"""
        return [tuple(tokens[i:i+n]) for i in range(len(tokens) - n + 1)]

    def _extract_tokens(self):
        """Extract the IL tokens from the IL function, picking the right
        normalizer (LLIL/MLIL) and the right normalization mode
        (skeleton/typed) based on self.kind."""
        if self.kind in (TokenKind.LLIL, TokenKind.TYPED_LLIL):
            normalizer = LowLevelNormalization()
        elif self.kind in (TokenKind.MLIL, TokenKind.TYPED_MLIL):
            normalizer = MediumLevelNormalization()
        else:
            raise ValueError(f"Unsupported token kind: {self.kind}")

        # typed variants include operand type info, skeleton variants don't
        if self.kind in (TokenKind.TYPED_LLIL, TokenKind.TYPED_MLIL):
            normalize = normalizer.normalize_instr_with_operands
        else:
            normalize = normalizer.normalize_instruction_all_levels

        instructions = []
        for basic_block in self.il_func.basic_blocks:
            for il in basic_block:
                instructions.append(normalize(il))

        return instructions

    def calculateMinHash(self):
        """Calculate hash function every time, then take minimum shingle per shingler"""
        minhash_result = MinHashCustom(minhash_bits=MINHASH_SIGNATURE_BITS)
        minhash_signature = []

        tokens = self._extract_tokens()
        shingles = self.make_ngrams(tokens, n=3)

        # Functions with fewer than 3 IL instructions can't produce n-grams
        # Return empty minhash for such small functions (thunks, stubs, etc.)
        # Triggered by 39d8ad95b0323c37bd3134ab93ac4af44c66a1a8443a41c1ac02cec19bb2816a
        if not shingles:
            return []

        # Generate the MinHash
        for seed in self._minhash_seeds:
            hashed_shingles = [
                self.shingle_hash(shingle, seed) for shingle in shingles
            ]
            min_value = min(hashed_shingles)

            if MINHASH_SIGNATURE_BITS < 32:
                min_value %= (2 ** MINHASH_SIGNATURE_BITS)

            minhash_signature.append(min_value)

        minhash_result.setMinHash(minhash_signature)
        return minhash_result.getMinHashInt()

    def shingle_hash(self, shingle, hash_seed=0):
        """Produce a single 32bit UINT hash for a given shingle"""
        return MinHashCustom.hashData(shingle, hash_seed)